summaryrefslogtreecommitdiff
path: root/town_gui.c
AgeCommit message (Collapse)Author
2005-09-10(svn r2932) Give the strings consisting of an up/a down arrow symbolic namestron
2005-07-24(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic ↵celestar
numbers by enums. There remains work in gfx.c to move the "transparency" and "recolor" bits around to make space for more sprites. However, 2800 additional sprites can now be loaded. There also remains cleanup and Doxygen work on many of the header files.
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-22(svn r2673) Include functions.h directly, not globally via openttd.htron
2005-07-21(svn r2669) Shuffle some more stuff around to reduce dependenciestron
2005-07-15(svn r2580) Change: Added {INDUSTRY} command for printing industry names ↵ludde
instead of the old {TOWN} {STRING} way. - The formatting of the industry name can be controlled with the string STR_INDUSTRY_FORMAT. Change: Changed several occurences of {STRING1} into {TOWN} to get rid of townnametype being used directly.
2005-07-15(svn r2572) - Codechange: [string] Changed string system so it's not as ↵ludde
dependent on decode_parameters - Feature: [strgen] Allow changing the order of parameters in translated strings. - Use {1:TOWN} syntax to set the order. - Codechange: [strgen] Rewrote lots of strgen internals.
2005-06-21(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayercelestar
2005-06-02(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.Darkvater
2005-05-15(svn r2324) Introduce _cmd_text for passing strings with a command instead ↵tron
of abusing _decode_parameters as text buffer. This should prevent several possible buffer overruns and is a bit cleaner to use. As bonus it reduces the size of most command packets by 79 bytes.
2005-05-14(svn r2307) - Fix (regression): it was not possible to change the drive-side ↵Darkvater
in the intro-game. - CodeChange: remove unused "CANT_DO_THIS" double-string.
2005-05-12(svn r2297) - CodeChange: server-check the next batch of commands.Darkvater
- CodeChange: since only the server will be able to modify difficulty settings, leave the checking of correct values besides, and trust users will join legit servers. - CodeChange: for renaming signs, only check if GetDParam(); eg _decode_parameters is empty ('\0') or not, instead of the extra check of players, etc. That basically does the same thing. Also dirty sign two times when renaming, once before, once after the action. Because if the name becomes shorter and you update only after, garbage remains on the screen. - CodeChange: made GetMaskOfTownActions() available to the town-cmd to double-check if the action was available to the player. For this purpose the hardcoded _local_player has been removed from the function and is now passed as a parameter.
2005-02-13(svn r1867) Include tables/sprites.h only in files which need ittron
2005-02-06(svn r1827) Next iteration of the byte -> char transition: some string ↵tron
drawing functions and buffers
2005-02-06(svn r1813) Declare functions implemented in strings.c in their own shiny ↵tron
new header (though i think some of these function don't belong into strings.c)
2005-02-05(svn r1803) Move debugging stuff into files of it's owntron
2005-02-01(svn r1764) -Add: dynamic towns, you can now have up to 64k towns (let me ↵truelight
know when you have that amount of towns in a map ;))
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
2005-01-21(svn r1581) Added a display for the total map population to the town display ↵celestar
(Jango)
2005-01-14(svn r1504) enummed town ratings (Jango)celestar
2005-01-06(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns ↵truelight
and _industries (in prepare of dynamic arrays): - DEREF_XXX is changed into GetXXX - All direct call are directed via GetXXX - struct Industry has now an index-field - ENUM'd some stuff - Replaced home built loops with FOR_ALL_XXX - Added _stations_size, _vehicles_size, ... which gives the length of the array (which will be dynamic in the near future) - Changed lengtof(XXX) to _XXX_size (e.g. _stations_size) - Removed all endof(XXX) (because mostly it was part of a FOR_ALL_XXX) - Made the sort-functions of all 4 dynamic - Made all 4 Initialize functions more of the same - Some minor tab-fixing and stuff (tnx to Tron for proof-reading my 100kb patch ;)) Note for all: please do NOT directly call _stations, _vehicles, _towns and _industries, but use the right wrapper to access them. Thank you. Ps: please also do not use 'v++', where v is of type Vehicle *.
2005-01-04(svn r1379) -Fix: various GUI glitches. Added default sizes to various ↵darkvater
widgets. Sticky/Resize- and Scrollbar must be 11 pixels wide, Horizontal scrollbar 11 pixels high, caption must be 13 pixels. I hope I didn't forget any widgets, the game will assert for that so report them to me!
2005-01-04(svn r1377) -Fix: only a server can rename a town in a MP gamedarkvater
2005-01-03(svn r1348) -Feature: resizable windows. Read the comment in window.h to ↵truelight
find out how the system works. All useful windows are already made resizable. Enjoy :) -Fix: fixed some GUI-glitches and flaws along the way
2004-12-28(svn r1292) -Codechange: also updated the town/industry sort-list to be ↵truelight
uint16 compatible
2004-12-22(svn r1214) -Feature: Stickified Industries (list & window), Smallmaps (all ↵darkvater
three), Stations (list & window) and Towns (list & window). I hope I didn't forget to update a widget somewhere :O -Feature: With the sticky windows on and some unfortunate resizing of your game it the 'close' button might go outside of the playing field, making it impossible to close. Added an option to the Options menu that closes all windows, even if they are stickified ("Close ALL windows")
2004-12-19(svn r1179) Fix: Tooltips for vehicle list sortingdominik
This has gotta be the greatest kick for Moriarty!
2004-12-09(svn r999) New icons for the network interface, newgrf gui and the tiny eurodominik
2004-12-02(svn r901) Small step in the process to clean up the DPARAM mess:tron
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest) - use inline functions instead of macros - add assert()s to check for buffer overruns
2004-11-25(svn r815) Include strings.h only in the files which need it.tron
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
2004-11-14(svn r607) -Patch: [ 985102 ] static cleanuptron
Thanks to lvoge
2004-09-14(svn r247) -Fix: Town exclusivity was not shown in town-window because ↵darkvater
stringformat ({YELLOW}) overrode colour-code. Now the exclusive player gets a red icon in front of its name
2004-09-12(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron ↵darkvater
for your diligent fixing of warnings (and some possibly bugs) (Tron) -CodeLayout: Remove trailing spaces and Windows linebreaks
2004-09-10(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!truelight
2004-09-07(svn r177) -Fix: padded out Widget code to solve warnings on C99 compiler (Tron)darkvater
-Fix: added WIDGETS_END macro for WWT_LAST which does this for all last widget-types
2004-09-07(svn r175) -Fix: [1023771] inconsistent/missing stations in station list. ↵darkvater
Forgot to change owner-sort after changing function. -Codechange: some more asserts to vehicle-sorts to quickly find any possible problems.
2004-09-06(svn r165) -Feature: Option to sort vehicles in vehicle-list window by ↵darkvater
different criteria. Total independent sort for all types and players. Periodic resort of list every 10 TTD days. Thank you for your graphical inspiration follow and buxo (since none of you provided any code). -Fix: Sorter icon pointing down 'v' sorts in every window lowest value first, '^' highest value first -CodeChange: move Dropdownlist from settings_gui.c to widget.c. More in place there.
2004-08-24(svn r126) Forgot to remove some test codedominik
2004-08-23(svn r123) Fixed some indentions... btw credits for the last commit go to ↵dominik
Celestar
2004-08-23(svn r122) Change: exclusive transport rights are now stored per town ↵dominik
instead of per station Exclusive rights from old savegames will be reset.
2004-08-16(svn r70) -Fix: typo in english.txtdarkvater
-Add some debug messages for misc=1
2004-08-16(svn r66) -Fix Station list updated on station deletion/station renamedarkvater
-Changed debug messages to comply with DEBUG(name, level) heuristics
2004-08-10(svn r17) -Fix Player window fixes, Getstring id0 fixes, Finances window is ↵darkvater
now ok
2004-08-10(svn r3) -[1005611] Player Window patch: When looking in dropdownlist for ↵darkvater
player stuff, it will say for all human players (Player #), not only for the first 2
2004-08-10(svn r2) -Fix [993829] UDP Fixes (lucaspiller)darkvater
-Fix change 255/0xFF to OWNER_SPECTATOR for spectator stuff (TrueLight)
2004-08-09(svn r1) Import of revision 975 of old (crashed) SVNtruelight