alberth
116c77c342
(svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array.
15 years ago
smatz
1858fef92f
(svn r17561) -Fix: diacritics was missing at few places
15 years ago
frosch
ebd916be3d
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
15 years ago
rubidium
ca7f6f5d7a
(svn r17528) -Codechange: use QSortT instead of qsort for sorting FiosItems
15 years ago
frosch
734edc178d
(svn r17525) -Cleanup: Remove SetWindowDirty(), it is completely covered by other functions already.
15 years ago
alberth
669b7d01ac
(svn r17502) -Codechange [FS#3184]: Extend QueryStringBaseWindow to support windows with nested widgets (by Terkhen with a few tweaks).
15 years ago
smatz
22e9d59559
(svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore
15 years ago
smatz
0bfea0646c
(svn r17420) -Codechange: replace assert() by assert_compile() where possible
15 years ago
rubidium
59ac4f6b21
(svn r17370) -Codechange: make the saveload and network GUIs use the scrollbar wrappers
15 years ago
smatz
2db855e00c
(svn r17359) -Fix: put static before cv qualifier, some compilers complain about that
15 years ago
smatz
352d07b1b5
(svn r17348) -Fix: don't mix 'sort by' strings used for buttons and dropdowns
15 years ago
Yexo
fe7ca1b3e3
(svn r17324) -Codechange: Land info window uses nested widget tree
15 years ago
yexo
dc24601b6d
(svn r17311) -Change: rename STR_WHITE_STRINGN to STR_WHITE_STRING
15 years ago
yexo
350a773925
(svn r17310) -Codechange: about window uses nested widget tree
15 years ago
smatz
f1e6772381
(svn r17309) -Fix: not all non-ASCII characters were entered with escapes in the About window
15 years ago
rubidium
10b3bcb90c
(svn r17299) -Fix: the tooltip could get truncated under some circumstances due to its custom string height determination
15 years ago
rubidium
aca7ba714a
(svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false
15 years ago
rubidium
7fbc33dae1
(svn r17248) -Fix: add GPL license notice where appropriate
15 years ago
rubidium
60a3bc9034
(svn r17247) -Change: move '3rd party' MD5 implementation also to the 3rdparty directory.
15 years ago
rubidium
d4adee0b1d
(svn r17216) -Update: MiniLZO from 1.08 to 2.03.
15 years ago
rubidium
2ae150af8e
(svn r17210) -Update: credits to reflect the (current) truth a bit better
15 years ago
rubidium
1fe3ad3288
(svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives
15 years ago
rubidium
4b2592dbc0
(svn r17062) -Change: unify the naming of some 125 strings
15 years ago
rubidium
e3053660c6
(svn r16886) -Codechange: unify naming of some string IDs related to string codes and group them logically
15 years ago
smatz
1f29e38b83
(svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get()
15 years ago
yexo
4843b3c45d
(svn r16789) -Codechange: unify the drawing of the Accepts/Supplies cargo lists in the station build windows.
15 years ago
frosch
a288e4d82f
(svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays.
15 years ago
alberth
9b070b5405
(svn r16677) -Codechange: Dimension width and height are unsigned.
15 years ago
frosch
812ad41f23
(svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names.
15 years ago
smatz
c30a87758f
(svn r16659) -Codechange: rename GetAcceptedCargo() to AddAcceptedCargo() and change its behaviour accordingly
...
-Codechange: remove dummy GetAcceptedCargo_*() handlers
15 years ago
alberth
b144a5451c
(svn r16516) -Codechange: Added click and drag handling for nested widgets.
15 years ago
alberth
ba9e014bdc
(svn r16489) -Fix [FS#2937] (r16258): Do not resize a widget twice (erikjanp)
15 years ago
alberth
5eecf3e5cb
(svn r16463) -Cleanup: Code style fixes.
15 years ago
frosch
8109a74c95
(svn r16414) -Change: Make it harder to ignore/close important error messages. Esp. do not close them automatically after some time.
15 years ago
smatz
62a7948af0
(svn r16378) -Codechange: replace OldPool with simpler Pool. Compilation time, binary size and run time (with asserts disabled) should be improved
15 years ago
smatz
00bc2659f2
(svn r16359) -Codechange: don't abuse company 0 when determining 'cost to clear land' in the LandInfoWindow
15 years ago
smatz
871107f529
(svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index)
15 years ago
smatz
6221d74644
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
15 years ago
alberth
a8aa4e2148
(svn r16259) -Codechange: Added nested widgets to the load and save dialogue windows.
15 years ago
alberth
bbb951151d
(svn r16258) -Codechange: Remove panel with negative height and some small adjustments in the load/save dialogue windows.
15 years ago
alberth
0cd6dde6a7
(svn r16257) -Codechange: Added empty widgets in load dialogue to move the resize box to the right place in the array.
15 years ago
alberth
590becf567
(svn r16256) -Codechange: Moved load/save dialogue widget numbers outside the window struct.
15 years ago
rubidium
2664f2a2d9
(svn r16242) -Codechange: rework pausing
...
-Fix [FS#2864]: autopause and manual pausing conflict with eachother
-Fix: new game + pause on new game + autopause make the game not unpause on the first join
15 years ago
alberth
34066a6027
(svn r16227) -Codechange: Added nested widgets for error windows, tooltip window, and dropdown window.
15 years ago
rubidium
e825d56786
(svn r16183) -Fix [FS#2872]: wrong string alignment for error messages with face
15 years ago
rubidium
afada70bac
(svn r16182) -Fix: hardcoded (old sized) MAX_COMPANIES constant
15 years ago
rubidium
53887e07bb
(svn r16160) -Codechange: remove the need for explicit TC_FROMSTRING for DrawString.
15 years ago
rubidium
11c6d30e77
(svn r16156) -Codechange: make the parameters of DrawStringMultiline the same as for DrawString (except the addition of the bottom parameter)
15 years ago
rubidium
59d45a04d6
(svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible.
15 years ago
rubidium
329cabab4f
(svn r16088) -Codechange: merge HighLightStyle and ViewportHighlightMode as they are basically the same thing
15 years ago
alberth
e5ab73e762
(svn r16033) -Codechange: Added nested widgets to about window, land-info window, and both query windows.
15 years ago
alberth
23f0277526
(svn r16032) -Codechange: Completing widget numbers of query windows.
15 years ago
rubidium
bee930f9b3
(svn r16024) -Codechange: harden string copying on places where it's possible
15 years ago
glx
e4a90f9688
(svn r15907) -Fix (r15841): some strings in save/load dialog were drawn with a 2 pixel offset
15 years ago
alberth
9d2738b9c4
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
15 years ago
rubidium
4a500bbcdb
(svn r15843) -Codechange: with RTL the caret would always be drawn at the end of the textbox.
15 years ago
rubidium
86b97f3127
(svn r15841) -Fix: the saveload window could draw directory partly outside the window
15 years ago
rubidium
57174a9301
(svn r15808) -Codechange: use the new DrawString API in a number of GUIs
15 years ago
rubidium
e74dc1e1d6
(svn r15803) -Codechange: use the new text drawing API for multicenter
...
-Fix (r15800): off-by-one w.r.t. offsets
15 years ago
peter1138
4c02622cae
(svn r15801) -Fix (r15797): The new DrawStringMultiLine() now returns the new y position instead of the height, so we don't need to add it on.
15 years ago
rubidium
d837fc4d03
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
15 years ago
rubidium
f11300d1f9
(svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API
15 years ago
rubidium
2d66f8e467
(svn r15787) -Codechange: enumify the land info and about window widgets and use them.
15 years ago
rubidium
45f189fdca
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
15 years ago
glx
ea2c50281e
(svn r15762) -Codechange: inlined utf8 chars are not handled properly on eastern version of windows so escape them
16 years ago
yexo
5e1cad1b1b
(svn r15753) -Fix (r15702)[FS#2742]: Crash when clicking the small area between the savegame list and the save button in the save game window.
16 years ago
rubidium
f9def73be6
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
16 years ago
yexo
e5204f96f9
(svn r15719) -Update: the credit section.
16 years ago
rubidium
27bcfd115b
(svn r15702) -Feature(tte): direct content download 'links' in the play scenario/heightmap windows.
16 years ago
yexo
2b0b9a6367
(svn r15669) -Change: Key presses that are not handles by an input box are no longer marked as handled but given to other OnKeyPress handlers. This makes the global shortcuts like F1 work again when an input box is open.
16 years ago
rubidium
908e850b5a
(svn r15605) -Codechange: constify a function
16 years ago
yexo
fb7b0536e7
(svn r15584) -Codechange: Move several variables from variables.h to more appropriate headers.
16 years ago
rubidium
1ad50ce4e6
(svn r15578) -Change: unexternalise squirrel.
16 years ago
rubidium
d846eef0b6
(svn r15434) -Codechange: bit of type safety for the DC_xxx flags.
16 years ago
rubidium
c0a8d09ca7
(svn r15428) -Codechange: consistently use colour instead of having both color and colour.
16 years ago
rubidium
861e9cefb3
(svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu).
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
belugas
9bb57ec840
(svn r15283) -Documentation: Apply some widget naming to the widget arrays.
...
-Codechange : use a pointer of the same repetitive reference of a widget, rather than an index in the array.
16 years ago
rubidium
18ed717410
(svn r15273) -Fix: OSK of the chat did not update the caret graphics
16 years ago
Yexo
8b04787d09
(svn r15151) -Fix: tile 0 can now be highlighted as error tile
16 years ago
rubidium
b1a33a494f
(svn r15104) -Codechange: unify the resolving of the xyz kbytes/megabytes strings.
16 years ago
rubidium
cda853872a
(svn r14944) -Cleanup: add spaces around some operators
16 years ago
glx
c7959ce2a9
(svn r14840) -Cleanup: remove duplicate includes
16 years ago
smatz
7368c740a6
(svn r14828) -Codechange: move most of save/load-specific code to separate files
16 years ago
rubidium
fad3519d4f
(svn r14820) -Codechange: use (the correct) enum-type instead of just int (Zuu)
16 years ago
rubidium
e5c1a7b5c3
(svn r14804) -Codechange: unify opening the OSK (Zuu)
16 years ago
rubidium
3a0d966ae4
(svn r14790) -Codechange: unify generation of default savegame/screenshot names (PhilSophus)
16 years ago
rubidium
87e5a8b52b
(svn r14754) -Codechange: get rid of _cmd_text and just pass it as (optional) parameter.
16 years ago
rubidium
b8d82cc28c
(svn r14752) -Fix [FS#2438]: revenue when clearing land would show up in red in the land info window as negative cost.
16 years ago
rubidium
1599ade7ca
(svn r14679) -Fix [FS#2431]: opening the OSK on the chatbox did disable map scrolling (with keyboard) until another window with editbox was opened and closed. Just "refcount" the open edit boxes instead of setting/clearing a bit when opening/closing a window.
16 years ago
skidd13
706dd0f86c
(svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible
16 years ago
glx
a6bfd7f15b
(svn r14534) -Codechange [FS#2382]: Enumify magic return values of HandleEditBox function (Zuu)
16 years ago
smatz
c10f7db576
(svn r14514) -Codechange: use 'size' instead of 'length' for querystring and textbuf, explicitly say it includes the terminating zero
...
-Fix: one couldn't rename things with too long default/automatic name
-Fix: buffer overflow in console when too long (1024 bytes) command was entered
16 years ago
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
16 years ago
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
16 years ago
rubidium
e7829c1a57
(svn r14414) -Fix: replace instances of strncpy with strecpy as strncpy doesn't guarantee the resulting string is '\0'-terminated.
16 years ago
rubidium
7ef5406946
(svn r14371) -Fix [FS#2313]: loading indicator didn't stay with the front engine when turning a train in a station.
16 years ago
smatz
1266b1a73f
(svn r14334) -Feature: ability to reset name to default/automatic value (for vehicles, engines, towns, groups, stations, waypoints, managers and companies)
16 years ago
smatz
606f4defdc
(svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString()
16 years ago
rubidium
ea1f180a55
(svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too.
16 years ago
belugas
1500ed3665
(svn r14099) -Codechange: Welcome back, Celestar.
...
While at it, an alphabetic error been fixed
16 years ago
rubidium
d986380169
(svn r14069) -Fix: silence MSVC 64-bits compile warnings.
16 years ago
rubidium
6995365535
(svn r14046) -Codechange: make the size of querystring "widgets" more configurable.
16 years ago
rubidium
fe4f23dba2
(svn r13932) -Add [YAPP]: PBS signals added to the map array. The signals are drawn using the old Patch-like PBS sprites. (michi_cc)
16 years ago
frosch
0fc769bb6c
(svn r13922) -Codechange: Move measurement-tooltip related stuff out of the general tooltip window.
16 years ago
belugas
22d9d9c588
(svn r13888) -Codechange: Replace numbers with Colours enum on miscellaneous guis.
16 years ago
smatz
05c2a8eba4
(svn r13830) -Feature: show additional NewGRF info in the Tile Info window for stations, houses and industries
16 years ago
smatz
ce7585101d
(svn r13826) -Codechange: use 'INVALID_DATE' instead of '0' as placeholder in tile description
16 years ago
smatz
4835e300c4
(svn r13800) -Codechange: minor comment style fixes in misc_gui.cpp
16 years ago
smatz
06a52be95c
(svn r13787) -Codechange: resize the red error message box if needed
16 years ago
rubidium
3a799389eb
(svn r13731) -Codechange: make a pool of the array of players.
16 years ago
rubidium
d06529ef4d
(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool.
16 years ago
rubidium
ab234cf90c
(svn r13715) -Fix [FS#2129]: C-like strings had to be rebound each time they were printed, otherwise the text could change due to the few number of slots that could be used to bind.
...
-Codechange: remove all BindCString and related functions and replace it by RAW_STRING which prints the C-string raw pointer that is on the 'print stack'.
16 years ago
smatz
2ca4b8b2e4
(svn r13601) -Codechange: resize the Tile Info window when it is needed, make it better readable
16 years ago
skidd13
8a40ca49c6
(svn r13359) -Codechange: convert _fios_items to a SmallVector
...
-Cleanup: some reincarnations of _fios_items in the code
16 years ago
rubidium
923e21129c
(svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
16 years ago
rubidium
27bca407de
(svn r13318) -Codechange: move some functions from gui.h/misc_gui.cpp to window_gui.h/window.cpp because they belong there.
16 years ago
smatz
f7233786d2
(svn r13310) -Fix: invalidate OSK when parent editbox changes (from keyboard)
16 years ago
peter1138
504d0d1ae5
(svn r13305) -Fix (r13039): Confirmation window sent both yes and no answers instead of just yes.
16 years ago
smatz
e15863fa77
(svn r13304) -Fix (r13042): possible double free (showed up in r13092)
16 years ago
rubidium
5c5ee7eb57
(svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings.
16 years ago
rubidium
4625695653
(svn r13251) -Codechange: rename _patches to _settings as that is more logic.
...
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
16 years ago
frosch
eca692ef90
(svn r13206) -Feature(ette): Display all owners of a tile in the tile-info-window.
16 years ago
smatz
f244b6b361
(svn r13191) -Fix: segfault after confirming query subwindow in the Generate New World window
16 years ago
rubidium
27c38052b7
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
16 years ago
rubidium
c3fd582c55
(svn r13182) -Doc: add documentation to mostly rail_gui related functions. Patch by Alberth.
16 years ago
rubidium
6da56ee87e
(svn r13169) -Codechange: remove a (now) unneeded parameter of one of the Window constructors.
16 years ago
rubidium
f5681547ef
(svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean.
16 years ago
rubidium
8b54212900
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
16 years ago
rubidium
d8154e00ac
(svn r13138) -Codechange: remove the need for IsWindowOfPrototype.
16 years ago
glx
5b54c9e373
(svn r13131) -Codechange: make a class of the ErrmsgWindow.
16 years ago
rubidium
0449abe88b
(svn r13094) -Fix: closing the QueryWindow would always send a 'query has been cancelled message' even when it was not cancelled causing joining passworded servers/companies to fail.
16 years ago
glx
be43bbc3f3
(svn r13093) -Codechange: make a class of AboutWindow.
16 years ago
glx
22960e82aa
(svn r13092) -Fix (r13042): don't add a variable in a subclass when the parent class already have it
16 years ago
rubidium
3ef0a1e3be
(svn r13049) -Codechange: make a class of the TooltipsWindow.
16 years ago
rubidium
eb2d47b547
(svn r13042) -Codechange: make a class of CreateScenarioWindow, GenerateLandscapeWindow, NetworkChatWindow, NetworkCompanyPasswordWindow, NetworkGameWindow, NetworkStartServerWindow, QueryStringWindow, SaveLoadWindow. All these classes depended on the 'querystr_d' object which is now put into QueryStringBaseWindow. As a side effect this removes quite a lot of WP macro usages and a few global variables.
16 years ago
rubidium
e63137f47f
(svn r13041) -Fix: calling a virtual function on a not fully constructed object is bound to cause errors.
16 years ago
rubidium
46875e28be
(svn r13039) -Codechange: make a class of the Query window.
16 years ago
smatz
d41f3def5c
(svn r13033) -Fix [FS#2003](r13029): land info tool wasn't working
16 years ago
rubidium
d24442ae8b
(svn r13029) -Codechange: more work in the road to getting the WP macros and byte[WINDOW_CUSTOM_SIZE] removed. This step changes the event handling to work directly on the Window class instead of via a function pointer and big switches while keeping backward compatability while we're rewriting the Windows to the new scheme.
16 years ago
rubidium
f23026cce8
(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.
16 years ago
rubidium
f438700402
(svn r13024) -Codechange: do not use WE_MOUSELOOP when WE_TICK suffices, rename WE_4 to something more descriptive and correct some (completely incorrect) comments.
16 years ago
rubidium
ba853fdb0b
(svn r13018) -Codechange: make a class of the LandInfo Window.
16 years ago
rubidium
4a11ebe76f
(svn r13015) -Codechange: move some 'WP' structs out of window_gui.h to the .cpp files where they are actually used.
16 years ago
rubidium
cd3dda5c0c
(svn r13010) -Codechange: move the tree building GUI out of misc_gui.cpp.
16 years ago
rubidium
23fc96c3e8
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
16 years ago
rubidium
2eef026fe3
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
16 years ago
rubidium
3d5567ccf7
(svn r12987) -Codechange: split viewport and tile selection.
16 years ago
rubidium
9bf519f26b
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
16 years ago
rubidium
e6c944a6c4
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
16 years ago