summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
AgeCommit message (Collapse)Author
2008-02-20(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the ↵smatz
train had negative income -Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
2008-02-17(svn r12166) -Fix [FS#337]: when drag&drop mode was cancelled by keyboard ↵smatz
input, depot/group window wasn't updated (original patch by GrimRC)
2008-02-13(svn r12134) -Change: count the number of ticks a vehicle was running this ↵smatz
day to calculate running cost -Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
2008-01-18(svn r11915) -Codechange: Add a function to draw a sort button's up/down ↵peter1138
arrow. Arrows are now drawn in a consistent position based on the widget, instead of randomly positioned by pixel.
2008-01-17(svn r11904) -Codechange: use dropdown widget in 3 more windows, build ↵peter1138
vehicle, group vehicle list and station list.
2008-01-17(svn r11892) -Fix (r11879): View switched from ungrouped to all vehicles as ↵peter1138
ungrouped is not technically a valid group, and ensure dropdown is removed on any click in the window.
2008-01-16(svn r11880) -Codechange: Generate vehicle group action dropdown ↵peter1138
dynamically, and assign an enum for the function return codes.
2008-01-16(svn r11879) -Fix: Only update group action drop down list when clicking on ↵peter1138
the dropdown text/button. Other times is not needed and caused a double free.
2008-01-16(svn r11878) -Fix: Crash in MP in vehicle group window if the currently ↵peter1138
selected group is deleted by another player.
2008-01-14(svn r11848) -Codechange: New class-based drop down list functionality. ↵peter1138
Lists are now dynamically generated, and can include parameters, or be extended however needed.
2008-01-13(svn r11828) -Codechange: include table/* as the last includes and remove an ↵rubidium
unneeded include from openttd.h.
2008-01-12(svn r11818) -Codechange: split player.h into smaller pieces.rubidium
2008-01-09(svn r11801) -Codechange: remove some unneeded includes from some header files.rubidium
2008-01-09(svn r11787) -Codechange: more header rewrites. This time related to viewport.h.rubidium
2008-01-07(svn r11777) -Codechange: split the string header and make do not include it ↵rubidium
when it's not necessary.
2008-01-07(svn r11775) -Codechange: move all autoreplace/autorenew functions to a ↵rubidium
single location.
2008-01-01(svn r11742) -Codechange [FS#1319]: Run window tick events when paused, so ↵peter1138
that news pop-ups and the about window still progress. For other windows the events are ignored when paused.
2007-12-27(svn r11706) -Codechange: split vehicle.h and remove another bunch of ↵rubidium
useless includes.
2007-12-26(svn r11702) -Codechange: move all date related stuff to date*.rubidium
2007-12-25(svn r11692) -Codechange: move some functions from 'functions.h' to a more ↵rubidium
logical place and remove about 50% of the includes of 'functions.h'
2007-12-25(svn r11691) -Codechange: move+rename helpers.hpp and only include it when ↵rubidium
it is really needed.
2007-12-22(svn r11682) -Codechange: move some 'generic' geometry related types into a ↵rubidium
single file and do not include gfx.h everywhere to get a Point type.
2007-12-21(svn r11677) -Codechange: move price and command related types/functions to ↵rubidium
their respective places.
2007-12-21(svn r11675) -Codechange: split the string types from the string functions.rubidium
2007-12-20(svn r11671) -Fix: sometimes a vehicle was selected in the vehicle list when ↵smatz
it was opened
2007-12-19(svn r11668) -Codechange: more refactoring aimed at reducing compile time ↵rubidium
and making it more logic where function definitions can be found.
2007-12-19(svn r11667) -Codechange: split window.h into a header that defines some ↵rubidium
'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps.
2007-12-08(svn r11600) -Cleanup: remove extra out-of-memory checks, since it's now ↵glx
done in *allocT functions.
2007-12-02(svn r11561) -Fix [FS#1504] (r11463): group list was not updated when ↵glx
removing the last group
2007-12-02(svn r11555) -Codechange: use the new members introduced in r11551.rubidium
2007-11-19(svn r11478) -Fix: two small layout issues with the vehicle grouping GUI.rubidium
2007-11-18(svn r11463) -Fix: some OSes seem not to handle allocating 0 bytes in the ↵rubidium
same manner as others do.
2007-11-15(svn r11441) -Fix [FS#1443]: manage list dropdown menu did not "disappear" ↵rubidium
when the all vehicles are removed from the "current" group.
2007-11-15(svn r11440) -Codechange: replace magic numbers with enumified ↵rubidium
WindowHighlightMode constants. Patch by SmatZ.
2007-11-04(svn r11374) -Codechange: Give meaning to the magical number that specifies ↵belugas
the color of the text in a DrawString call. Patch heavily based on BiBB's work (FS#1383)
2007-09-09(svn r11067) -Codechange: also make it possible to use the advanced vehicle ↵rubidium
list for other players. Patch by SmatZ.
2007-08-29(svn r11001) -Codechange: unify the way to determine whether a vehicle is in ↵rubidium
a depot.
2007-08-29(svn r10997) -Codechange: unify the vehicle view window. Patch by PhilSophus.rubidium
2007-08-07(svn r10820) -Codechange: make negative currencies red and restore the ↵rubidium
colour from before the currency was printed; this removes the need to make two strings for printing currencies (one for positive currencies and one for negative currencies). -Fix [FS#1036]: do not use green for currencies as it is practically unreadable on CRT monitors.
2007-08-04(svn r10780) -Fix: assertion when opening the advanced vehicle list with the ↵rubidium
shortcut when being a spectator.
2007-08-02(svn r10756) -Codechange: use vehicle->IsValid in favour of ↵rubidium
IsValidVehicle(vehicle).
2007-07-27(svn r10710) -Codechange: allow automatic downsizing of the group window. ↵rubidium
Same as idea as for the previous commits, i.e. you could already do so but the button would be out of reach.
2007-07-27(svn r10704) -Codechange: provide an infrastructure to have resizable ↵rubidium
windows that are smaller than the default window size.
2007-07-14(svn r10567) -Add [FS#915]: a "group" with ungrouped vehicles. Patch by ↵rubidium
Matthias Wolf.
2007-07-01(svn r10408) -Codechange: make GetImage a class method of Vehicle instead of ↵rubidium
Get(Aircraft|RoadVeh|Ship|Train)Image.
2007-06-25(svn r10323) -Codechange: reference company name, number and player ↵peter1138
(president) name by index
2007-06-25(svn r10316) -Codechange: (consistently) use index to refer to group names. ↵peter1138
Also the group string_id is irrelevant unless it is a custom name, so don't 'waste' a savegame string id.
2007-06-21(svn r10258) -Codechange: as we are now using int64 all over the place, it's ↵rubidium
better to use int64 variables in the string generating too instead of packing them into two int32s. -Fix: some displays of money were wrong.
2007-06-21(svn r10247) -Fix (r10210): *always* call SetDParamMoney when you want to ↵rubidium
place money in some string.
2007-05-22(svn r9898) -Fix (r9874): Many...peter1138
- Group protection status wasn't changed via a command. - Group renaming didn't check group owner (and in fact changed the owner, just like renaming a sign...). - Added owner checks to other group commands. - Invalidate window data after the command has been completed instead of after the command has been sent. This fixes gui issues in network play.