summaryrefslogtreecommitdiff
path: root/rail_gui.c
AgeCommit message (Collapse)Author
2006-11-16(svn r7176) -Fix: remove button was not always disabled when it should have ↵glx
been (rail/road build toolbar)
2006-11-11(svn r7130) -Codechange: Handle the positioning of windows through the ↵Darkvater
desc->left/top settings with some special values (WDP_) instead of checking window-class. This also fixes FS#172 now that we can position windows arbitrarily and are not restricted to window-classes.
2006-11-10(svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc ↵Darkvater
positioning WDP_AUTO = -1)
2006-11-07(svn r7099) -Fix (r4768): When changing the selected newstation type, ensure ↵peter1138
the station size chosen is permitted. If not, pick the first valid sizes.
2006-10-31(svn r7022) -Fix [FS#292]: Properly guard against viewing company-sensitive ↵Darkvater
information from invalid players (eg spectators) which could lead to crashes.
2006-10-28(svn r7000) -Fix: Incorrect use of e->we.click when the event is a 'place'. ↵Darkvater
This didn't cause any bugs so far because the 'click' element was at the same position in the union for both events.
2006-10-24(svn r6926) -Codechange: Rename WWT_4 to WWT_TEXTBTN_2 and WWT_6 to ↵Darkvater
WWT_INSET (credits to peter1138 for the aptly found name) -Codechange: Remove the explicit numbering from WindowWidgetTypes
2006-10-24(svn r6925) -Codechange: Be more strict with widget distinctions. WWT_PANEL ↵Darkvater
is only plain panel, WWT_IMGBTN must contain an image for drawing. Renamed WWT_PANEL_2 to WWT_IMGBTN_2 because that is what it is. Added WWT_PUSHBTN that is either just a pushable button, or a textbutton, which text's drawn dynamically independent of widget.
2006-10-24(svn r6924) -Codechange: Give the last (in the widget arrays at least) ↵Darkvater
sprites meaningful names.
2006-10-15(svn r6779) -Fix r6631: waypoint selector now correctly shows the current ↵glx
selected waypoint type (thx Maedhros)
2006-10-14(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to ↵Darkvater
PLAYER_SPECTATOR and put it into player.h where it belongs (instead of map.h)
2006-10-11(svn r6740) -Fix: if a rail is not available, don't show toolbar even with ↵Darkvater
hotkey 'A'
2006-10-05(svn r6659) -Fix r6619: Fix widget state setting of the rail toolbar when ↵glx
using global hotkeys.
2006-10-05(svn r6650) - Fix (r6619): Fix widget state setting of the rail toolbar when ↵peter1138
using hotkeys.
2006-10-05(svn r6643) -Fix(r6631): Adjust proper disabled and lowered states of ↵belugas
removal button on railtoolbar
2006-10-04(svn r6639) -CodeChange : Conversion of SetWidgetLoweredState to ↵belugas
SetWindowWidgetLoweredState, in order to follow pre-established standard
2006-10-03(svn r6631) -Codechange: Use accessors for click_state.belugas
Another step toward merging XTDwidget. The only two files not converted (window.h and widget.c) will be done at the very last commit)
2006-10-03(svn r6619) -Codechange: Use accessors for disabled_state.belugas
Another step toward merging XTDwidget. The only two files not converted (window.h and widget.c) will be done at the very last commit)
2006-09-23(svn r6499) -Codechange: Finally, got "byte event" outside of the union ↵belugas
WindowEvent, which is now a struct
2006-09-05(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because ↵Darkvater
it accepts DiagDirections, and add TileOffsByDir that handles Directions. -Codechange: Make the treeloop use TileOffsByDir().
2006-09-04(svn r6379) -Codechange: cast 'remove babel' on widget's unkA and rename it ↵Darkvater
to 'data'.
2006-08-28(svn r6184) Remove the unused (because it was NULL in all callers) second ↵tron
parameter of FillDrawPixelInfo() and simplify some expressions
2006-08-22(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. ↵rubidium
whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
2006-07-26(svn r5609) CodeChange : Apply coding stylebelugas
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-05-30(svn r5048) - NewStations: Set up clipping areas to draw the station preview ↵peter1138
graphics in. This prevents larger station graphics from overflowing onto the list.
2006-05-27(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous ↵KUDr
support and users for testing.
2006-05-09(svn r4792) - Codechange: change a uint to a uint16 to avoid a ↵peter1138
signed/unsigned warning from some compilers.
2006-05-09(svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and ↵rubidium
RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity
2006-05-07(svn r4775) - Newstations: allow clicking on any part of the station class ↵peter1138
dropdown to bring up the list, instead of just the button (thanks tron)
2006-05-07(svn r4773) - Newstations: add proper tooltips to the station builder windowpeter1138
2006-05-07(svn r4768) - Newstations: Add newstation selector GUI. The additions are ↵peter1138
only active if a newstation set is loaded, otherwise it will look the same.
2006-04-16(svn r4449) - NewStations, remove parameter to use first custom station when ↵peter1138
building a railway station. The parameters will be changing.
2006-04-10(svn r4342) Change the first two parameters of commands - virtual pixel ↵tron
coordinates of the tile to operate on - to a TileIndex Remove DoCommandByTile(), because now it does the same as DoCommand()
2006-03-19(svn r3981) More work for the rail accessing functions and enumstron
2006-03-08(svn r3783) Replace further ints and magic numbers by Direction, ↵tron
DiagDirection and friends
2006-03-03(svn r3747) Change HASBIT() to return 0/1 instead of 0/value of tested bit, ↵tron
because the name suggests it does the former and current behavior broke in some places in very subtle ways (for example HASBIT(x, 0) != HASBIT(y, 1) doesn't work, returning a bool after HASBIT(x, 9) neither)
2006-02-01(svn r3511) More whitespace ([FS#46] by Rubidium)tron
2005-12-07(svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect ↵peter1138
their actual use, and add "Close Window" tooltip where missing.
2005-11-16(svn r3205) Some more uses for GB/SBtron
2005-11-14(svn r3181) -Bracingtron
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if
2005-11-14(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBITtron
2005-11-13(svn r3172) static, consttron
2005-11-12(svn r3169) Little bit of coding style fixing, and change from value to ↵peter1138
lengthof()
2005-11-12(svn r3167) - NewGRF: Start moving custom station code to separate files.peter1138
Rewrite handling of station classes. Allow for more than 8 station tile layouts. Start of code to unload custom stations.
2005-11-09(svn r3157) - Feature: Added patch option to link the terraform toolbar to ↵peter1138
the rail, road, water and airport toolbars. If enabled, the terraform toolbar will open and close with those toolbars.
2005-10-31(svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by ↵tron
adding/using some sprite enums
2005-10-26(svn r3090) Remove long dead pieces of codetron
2005-10-16(svn r3049) Replace byte/int/uint by RailType where appropriatetron
2005-10-14(svn r3040) Don't deduce the cursor sprites when building rails from magic ↵tron
numbers, but fetch them from the central rail info array.