summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
AgeCommit message (Collapse)Author
2021-04-22Codechange: Replace CMD_SET_GROUP_REPLACE_PROTECTION with generic ↵peter1138
CMD_SET_GROUP_FLAG.
2021-04-22Codechange: Replace Group::replace_protection with Group::flagspeter1138
2021-04-21Cleanup: Remove unnecessary parameter of GetScrolledRowFromWidget()Peter Nelson
Line height defaults to the resize height of the relevant widget, which is set in all cases. Therefore it is not necessary to specify this value every time. Additionally fixes scrolled padding for the framerate window.
2021-04-17Change: Improve layout and spacing of vehicle group widgets. (#9041)PeterN
Existing layout included a blank widget above the group list to align with the vehicle list, however since then an additional sort-by row was added. Group list size tweaks to match normal row size (at least with normal gui and text size.) Removed reduction of 2 rows in the group list <- main culprit of odd sizing. Removed fill attribute on buttons which gave strange sizes, and put it on the group info widget instead. Tweaked various soft-padding values to line up (centreing text with a 1px offset does not make centred text.)
2021-04-06Fix #8922: Show vehicle window for single vehicle in shared order grouping ↵Bernard Teo
(#8926)
2021-02-05Codechange: Apply coding style (#8640)SamuXarick
* Fix: Missing or needed spaces * Codechange: Remove space * Codechange: Remove space * Codechange: More missing spaces * Codechange: Missing spaces * Codechange: Remove space * Codechange: Remove space
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2021-01-07Fix #8332: aborting group drag&drop could cause crashes with vehicle ↵Patric Stout
drag&drop (#8511) The selected group was not reset when drag&drop was aborted. When after that vehicle drag&drop was successful, group drag&drop code was still executed, causing weird behaviour or even crashes.
2020-12-21Feature: Drag-and-drop vehicles in group GUI for shared order groupsBernard Teo
2020-12-21Cleanup: Use range-based for-loop in group_gui.cppBernard Teo
2020-12-21Feature: Option to group vehicle lists by shared ordersBernard Teo
This applies to all kinds of vehicle lists, as well as the "vehicle groups" window.
2020-12-21Codechange: Make vehicle lists internally support grouping of vehiclesBernard Teo
This is in preparation for the new UI feature that allows grouping by shared orders.
2020-06-18Fix: Violation of strict weak ordering in group name sortersJonathan G Rennison
This could be caused by a group being renamed, and the old name being cached from a previous sort. See: #7838
2020-02-06Fix #7974: Crash when CTRL+click to show a vehicle group that is collapsedstormcone
2020-01-09Codechange: Use const instead of magic number for vehicle profit thresholdSamu
2019-12-23Feature: Control + click on the vehicle details button in the vehicle view ↵stormcone
window opens the vehicle group window, then selects and scrolls to the vehicle's group.
2019-12-23Feature: Control + click on a vehicle in the vehicle group window selects ↵stormcone
and scrolls to the vehicle's group.
2019-12-23Add: A function which selects and scrolls to a particular group in the ↵stormcone
vehicle group window.
2019-12-21Codechange: Replace FOR_ALL_GROUPS with range-based for loopsglx
2019-11-25Fix: Do not refer to a function in the documentation that was removed years ↵stormcone
ago (#7844) The 'DoDrawString' was removed with this commit: f11300d
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-07Fix #7188: check the validity of command callback for scripts (#7701)glx22
2019-04-13Codechange: use std::sort() in GUIListglx
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-04-09Codechange: Switch DropDownList to directly use std::vector, thus making ↵Michael Lutz
AutoDeleteSmallVector obsolete. DropDownListItem are strongly managed using std::unique_ptr to ensure leak-free handling. Appropriate use of move-semantics make intent a lot clearer than parameter comments and allows the compiler to generate copy-free code for most situations.
2019-03-28Fix: MSVC warnings (#7423)glx22
2019-03-27Feature #6053: Collapsible vehicle groups (3298)Charles Pigott
2019-03-27Add #6189: Groups now count the total number of vehicles in subgroups (3298)Charles Pigott
2019-03-26Codechange: Removed SmallVector completelyHenry Wilson
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-26Codechange: Replace SmallVector::Length() with std::vector::size()Henry Wilson
2019-03-26Codechange: Replaced SmallVector::Compact() with std::vector::shrink_to_fit()Henry Wilson
2019-03-26Codechange: Replace SmallVector::Clear() with std::vector::clear()Henry Wilson
2019-03-24Codechange: Use override specifier in Window-derived classes.peter1138
2019-02-15Change: Use selected group as parent when creating a new group. (#7224)PeterN
2019-01-31Feature: Group liveries, and livery window usability enhancements. (#7108)PeterN
* Change: Replace checkbox in livery selection window with Default option in drop down selection. This reduces clutter in the UI and allows for primary/secondary colours to independently follow the default scheme if desired. * Feature: Add vehicle group liveries.
2019-01-28Codechange: Rename function to match what it does and reduce code indenting.Peter Nelson
2019-01-28Fix: Group hierarchy not visible in RTL languages.Peter Nelson
2019-01-11Change: OnGameTick() is only called when not paused.Peter Nelson
2019-01-11Change: Split up Window::OnTick into OnGameTick and OnRealtimeTick. Adjust ↵Peter Nelson
timers to work with milliseconds instead of ticks.
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2017-03-24(svn r27822) -Feature: Vehicle Group Info: Add profits and occupancy display ↵peter1138
to group vehicle list (mtm, JGR)
2016-08-15(svn r27630) -Codechange: Deduplicate code to attach vehicle to cursor.frosch
2015-06-20(svn r27300) -Fix [FS#6306]: Silence GCC warning (Cif)frosch
2014-10-05(svn r26960) -Codechange: Draw sort button symbols as sprites, and pad sort ↵peter1138
buttons with non-static width.
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-11(svn r26455) -Change: Prompt for confirmation when deleting a vehicle group.peter1138
2014-04-08(svn r26450) -Feature: Hierarchical vehicle subgroups.peter1138
2013-06-30(svn r25537) -Codechange: Optionally make WWT_MATRIX compute the number of ↵frosch
rows and columns from the resize step size.