Age | Commit message (Collapse) | Author |
|
in the station list window,
thanks for the inspiration Rince. Workings of the small 1-pixel wide bar have changed a
little. Up till now it was pretty random, now it is only drawn for stations with minimal
amount of cargo (<=30) and 1-pixel height is 5 units.
|
|
station list and centre the
cargo abbreviations. The window at least looks a lot better this way.
|
|
cargo-colours. Change Food
colour to pink everywhere (fixes FS#303)
|
|
Window is now part of the cargo selection scheme. Again.
|
|
STATIONLIST_WIDGET_CARGONONE.
It is not "No Cargo selected", but rather station with no cargo waiting, thus STATIONLIST_WIDGET_NOCARGOWAITING.
Hoping it is now clearer for everyone (mainly me...).
Will fix the behaviour next time.
|
|
correctly.
-Fix: Clicking on SORT button (same window) does not reset everything anymore.
-Featurette: cargo, NONE and both ALL buttons are now shown fully down on pressed, as the text is deported by one pixel on y and y
Some widgets enum and code clean-up
|
|
GetNumXXX() and add GetMaxXXXIndex() functions. This prepares for the new pool interface.
|
|
the filter line isn't scrollable...
|
|
with the actual window
structs inside their array, and possibly invalidating pointers higher up.
Meaning that any function called within an wndproc could cause unknown/invalid pointers
once control was returned to this function. Solved by the introduction of an extra
abstraction layer, an array of z-window positions that is only concerned with the
pointers.
|
|
positioning WDP_AUTO = -1)
|
|
when needed, when building station acceptance lists.
|
|
information from
invalid players (eg spectators) which could lead to crashes.
|
|
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.
|
|
The last parameter should point to the end of the buffer (eg lastof(buf))
Courtesy of Tron.
|
|
the {CARGO} command and supply the cargo type and quantity, instead of manually looking up the cargo type's string.
|
|
SetWindowWidgetLoweredState, in order to follow pre-established standard
|
|
Another step toward merging XTDwidget.
The only two files not converted (window.h and widget.c) will be done at the very last commit)
|
|
Another step toward merging XTDwidget.
The only two files not converted (window.h and widget.c) will be done at the very last commit)
|
|
It made no sense to maintain 8 nearly identically arrays when a single one can do the job
Also made the two buttons always use half of the bottom width each, even when resizing
|
|
WindowEvent, which is now a struct
|
|
more uniform.
-Cleanup: whitespace alignment of a few tables.
|
|
which should be
integral to strings.c
|
|
(or, will do that).
It isn't the best name, but we couldn't find any better.
This unifies the pool-system even more.
|
|
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.
|
|
whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
|
|
textboxes to only
allow certain patterns (like numbers only)
|
|
of r5907.
|
|
fix some bogus warnings on MSVC by using (void*) casts
|
|
unnecessary global variable
|
|
date.[ch]
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
|
|
widgets (peter1138)
|
|
the clicked-states on drawing the window. This also allows the 'Sort by' button to be visually clickable
|
|
-Credit: Chrishuebsch for initial idea and implementation of station filters
|
|
waiting cargo type and facilities)
|
|
comments, aligning arrays etc...
|
|
their actual use, and add "Close Window" tooltip where missing.
|
|
-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
|
|
|
|
|
|
- const, whitespace, indentation, bracing, GB/SB, pointless casts
- use the trinary operator where appropriate
- data types (uint[] -> AcceptedCargo, ...)
- if cascade -> switch
- if (ptr) -> if (ptr != NULL)
- DeMorgan's Law
- Fix some comments
- 0 -> '\0', change magic numbers to symbolic constants
|
|
0/-1 -> INVALID_ENGINE
0x10 -> OWNER_NONE
|
|
don't pass them
|
|
attribute of stations
|
|
int/uint/int16/byte/-1 with proper types and constants
|
|
proper types or just removing them
|
|
s/byte/PlayerID/
s/int/PlayerID/
and related changes
|
|
|
|
|
|
|
|
- Renamed the plural command to "P" instead of "PLURAL". Now write something like this to append an s on plural: {P "" s}. (You can optionally still add an argument index to explicitly specifiy which number that's used)
- Removed the pluralized cargo strings from the string files. The new method is to use the plural specifier {P}
- Added support for genders. First add "##gender der das die" on top, then use {G=der} on a cargoname/industry to set the gender, and to switch between genders do something like {G neu neu neue} {STRING}
- Updated the swedish/english translation with P strings.
|