Darkvater
615e7b2892
(svn r7208) -Revert [r6040]: Remove double-click action in minimap and reintroduce lmb-scrolling (Rubidium)
2006-11-18 17:12:39 +00:00
KUDr
c32ba85700
(svn r7166) -Fix: [FS#402] MiniMap was misplacing vehicles sometimes (HMage)
2006-11-16 12:31:38 +00:00
Darkvater
e786cd5c6b
(svn r7128) -Codechange: Replace magic numbers by magic enums (windowdesc positioning WDP_AUTO = -1)
2006-11-10 19:24:14 +00:00
Darkvater
3a2c773411
(svn r7094) -Codechange: Get rid of the window-specific code in DoZoomInOutWindow (enable, disable
...
buttons depending on calling window, game-mode); handle it by broadcasting messages
to the calling window, because that knows how and what buttons to set.
2006-11-07 13:06:02 +00:00
Darkvater
56b4a2ad7b
(svn r7078) -Codechange: Make the zoom in/out buttons of the extra viewport into proper push-buttons.
2006-11-06 00:17:32 +00:00
Darkvater
02a6df391d
(svn r6926) -Codechange: Rename WWT_4 to WWT_TEXTBTN_2 and WWT_6 to WWT_INSET (credits to peter1138
...
for the aptly found name)
-Codechange: Remove the explicit numbering from WindowWidgetTypes
2006-10-24 16:27:18 +00:00
Darkvater
c7c65ce6d5
(svn r6925) -Codechange: Be more strict with widget distinctions. WWT_PANEL 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 14:15:17 +00:00
Darkvater
13df23c586
(svn r6924) -Codechange: Give the last (in the widget arrays at least) sprites meaningful names.
2006-10-24 13:20:54 +00:00
Darkvater
94339a884d
(svn r6773) -eh...I had to test it didn't i, just forgot to save
2006-10-14 15:44:28 +00:00
Darkvater
227cebb0be
(svn r6772) -Codechange: Do not abuse OWNER_SPECTATOR as the "owner" of the industry for
...
the minimap. This also saves us from having this huge _owner_colors table.
2006-10-14 15:43:37 +00:00
belugas
3319eb0b3f
(svn r6639) -CodeChange : Conversion of SetWidgetLoweredState to SetWindowWidgetLoweredState, in order to follow pre-established standard
2006-10-04 19:11:43 +00:00
belugas
688da1d940
(svn r6631) -Codechange: Use accessors for click_state.
...
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 20:16:20 +00:00
belugas
cf210fdf6b
(svn r6619) -Codechange: Use accessors for disabled_state.
...
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 02:08:15 +00:00
belugas
98ba395277
(svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct
2006-09-23 02:39:24 +00:00
rubidium
21ac20aeca
(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines more uniform.
...
-Cleanup: whitespace alignment of a few tables.
2006-09-04 20:40:33 +00:00
tron
48258d844f
(svn r6266) Replace four shifts by a single multiplication and let the compiler handle what to do with it - it does a better job
2006-08-31 11:25:00 +00:00
tron
a0416e2690
(svn r6238) Use the colour stored in _colour_gradient[] instead of explicitly retrieving it with GetNonSprite()
2006-08-30 14:30:26 +00:00
belugas
1f660a8175
(svn r6205) -CodeChange : use a switch case instead of a cascade of if
...
-CodeChange : rename var Engine *e to Engine *eng, since we have WindowEvent *e in same fnct
-CodeChange : fix a broken tabulation on a switch case. SOme breathing spaces too
2006-08-29 00:17:47 +00:00
tron
3306d9829f
(svn r6184) Remove the unused (because it was NULL in all callers) second parameter of FillDrawPixelInfo() and simplify some expressions
2006-08-28 07:33:51 +00:00
truelight
a21b2750bd
(svn r6057) -Codechange: made a function GetRandomXXX, that _always_ returns a valid XXX, unless there are none to pick from. Then NULL is returned.
2006-08-22 21:14:45 +00:00
truelight
505566da5c
(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips invalid ones
...
-Codechange: use IsValidXXX where ever possible
Note: both changes to prepare for new pool system, which needs those changes.
For every pool there are 2 ugly lines, which will be removed when done
implementing new pool system.
Based on FS#13 by blathijs, partly implemented.
2006-08-22 15:33:35 +00:00
rubidium
908d3bcfe6
(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
2006-08-22 14:38:37 +00:00
truelight
d95a3d9879
(svn r6040) -Add: when clicking twice on a Location Button, the SmallMap centers on your position (based on FS#54 by thomasdev)
...
-Add: when clicking twice in SmallMap on a position, it centers there (based on FS#54 by thomasdev)
-Add: add a button in SmallMap that centers the SmallMap on your current position (based on FS#54 by thomasdev)
2006-08-21 17:41:04 +00:00
truelight
a824598367
(svn r6038) -Codechange: move mousewheel code to event WE_MOUSEWHEEL instead of a general function that handles that
...
-Codechange: use always 'e' for WindowsEvent, neverr 'we'
2006-08-21 14:59:58 +00:00
truelight
f6b17149c6
(svn r6036) -Codechange: do not handle SCROLL in a central function, but let windows handle them theirself. Added WE_SCROLL for this.
2006-08-21 14:34:59 +00:00
belugas
40a8964911
(svn r5609) CodeChange : Apply coding style
2006-07-26 03:33:12 +00:00
tron
a2362674e3
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
2006-06-10 08:37:41 +00:00
tron
9bd8bccaa0
(svn r4938) Remove STATION_HANGAR, because it isn't really a station type of its own
2006-05-21 12:01:57 +00:00
belugas
ddd96570ca
(svn r4350) CodeChange : Add and use accessors [G|S]etIndustrype. Define and use IndustryGfx type instead of uint
2006-04-10 21:00:56 +00:00
tron
aa5777c874
(svn r4279) s/\<CL_/CLEAR_/
2006-04-04 21:35:13 +00:00
tron
b7ee0b8ba3
(svn r4271) s/\<TR_/TREE_/ resp. s/\<TR_/TREE_GROUND/
2006-04-04 06:25:05 +00:00
celestar
6443c14ebd
(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE
2006-04-03 05:32:11 +00:00
peter1138
6e97540f1e
(svn r4199) - Codechange: Use industry map accessors to get industry graphics type.
2006-03-31 10:44:32 +00:00
tron
c40740e058
(svn r4120) Use the new station functions where appropriate
2006-03-26 19:20:15 +00:00
belugas
ed86c3d818
(svn r4092) CodeChange : Named sprites instead of magic numbers plus create/use helper macro/enum for recoloring scheme
2006-03-24 18:16:39 +00:00
tron
6e988259a4
(svn r3907) Replace many bridge related direct map accesses with calls to shiny new functions and mark some strange constructs with XXX
2006-03-16 15:16:27 +00:00
tron
0100871412
(svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
2006-03-12 15:04:03 +00:00
tron
86491ca257
(svn r3820) Be a bit more strict with types: use special types instead of generic byte and don't fill arbitrary data into inappropriate types
2006-03-11 17:06:16 +00:00
tron
4efa560ffc
(svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme
2006-03-05 10:19:33 +00:00
tron
087fe86ed2
(svn r3564) Several smaller changes:
...
- Don't treat non-booleans as booleans
- Reduce variable scope
- Bracing
- Use DeMorgan's law to make conditionals easier to read
- if cascade -> switch
- Replace some magic numbers by symbolic names
- Avoid assignments within other statements
2006-02-06 09:18:04 +00:00
Darkvater
d9d4a4c4bd
(svn r3559) - CodeChange: simplify MKCOLOR(x) macro for smallmap_gui.c by adding a TO_LE32X() macro next to TO_BE32X(). The 'X' signifies them as macros and not-inline functions so they can be used in variable declarations.
2006-02-05 23:12:23 +00:00
tron
72eeae1546
(svn r3556) Add accessors for handling tree tiles
...
See tree.h for details
2006-02-05 14:47:15 +00:00
Darkvater
e57ea5e57d
(svn r3529) - Fix: [ 1415782 ] crash in string code with openbsd/zaurus; alignment issues (thanks Tron for the help)
2006-02-03 21:51:42 +00:00
tron
5e0c8a239e
(svn r3514) -Codechange: Replace direct fiddling of bits for the ground type and density of clear tiles with symbolic names and accessors.
...
See clear.h for details
2006-02-01 15:31:21 +00:00
tron
1c3e8630fe
(svn r3511) More whitespace ([FS#46] by Rubidium)
2006-02-01 07:36:15 +00:00
tron
9712d6f639
(svn r3510) Fiddle with whitespace and parentheses
2006-02-01 06:32:03 +00:00
Darkvater
1693f5052b
(svn r3462) - Fix: a one-off pixel alignment in the minimap window that "overflowed" its panel in the tropical climate (qball should be satisfied now)
2006-01-28 12:23:54 +00:00
peter1138
5f3dc36983
(svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect their actual use, and add "Close Window" tooltip where missing.
2005-12-07 15:48:52 +00:00
tron
524fd25cbd
(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT
2005-11-14 08:09:57 +00:00
tron
0b936c3222
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
...
nothing spectacular, just some stuff, which piled up
2005-10-22 06:39:32 +00:00