summaryrefslogtreecommitdiff
path: root/misc_gui.c
AgeCommit message (Collapse)Author
2006-06-28(svn r5409) - Regression [r5391]: WE_CLICK event of SelectScenarioWndProc() ↵peter1138
cascaded to WE_RESIZE handler, causing the Save and Map toolbar widgets to be altered. Fix by putting the break; back.
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-06-10(svn r5210) Many small changes which piled up: const, unsigned, variable ↵tron
scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
2006-05-22(svn r4946) "Feature": Add a cheat that allows running electric engines on ↵celestar
normal rail
2006-05-09(svn r4802) - Codechange: replace _stringwidth_base and associated magic ↵peter1138
numbers with a FontSize enum, using the numbers (which are SpriteIDs) in only the places needed.
2006-05-02(svn r4690) [Fix] Fixed ShowQueryString() to close FS#151miham
2006-04-29(svn r4623) - Codechange: s/byte/PlayerID/Darkvater
2006-04-19(svn r4478) -Fix (FS#107) In the cheat menu, don't hard-code the player ↵celestar
icon, but compute its position from the length of the string.
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-04-06(svn r4302) - Fix: s/maxlength/maxwidth of course, the buffer size is always ↵Darkvater
set. Comment-change only
2006-04-06(svn r4301) - Fix: the maxlength parameter of Textbuf is supposed to be the ↵Darkvater
size of the buffer (so length of string + '\0'), but in the code it was a mix of both. It didn't cause any problems though, only an occasionaly one-less character than allowed. (thanks Tron for noticing)
2006-04-03(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZEcelestar
2006-03-25(svn r4105) - Feature: Add proper ISO-8859-15 <> LOCALCODE conversion. As ↵Darkvater
the mess that is makefile can't properly support it at the moment, it is only available for MACOSX. Windows doesn't need FS conversion and I have no idea about OS/2 so it's disabled for them. - CodeChange: Change the function GetCurrentLocale(). It returns the locale from some default environment-variables, plus a custom one defined as parameter. If all fail, it tries $LANG.
2006-03-21(svn r4002) - Fix: Use the title of a savegame in the saveload ↵Darkvater
dialog-editbox. This gets rid of the '.sav' appended to each game as well as properly showing UTF-8 saves when this is implemented. Also don't change the text if the save has failed.
2006-03-21(svn r4001) - Add length parameter to FiosMakeSavegameName() and use this ↵Darkvater
function for creating the full path instead of home-brewn snprintf.
2006-03-13(svn r3853) - Fix a change of SetDParam64 to SetDParam in r3713 that caused ↵Darkvater
slightly vibrating text when pressing the cheat-button. Thanks to peter1138 for noticing.
2006-03-01(svn r3713) - Fix up the cheats window a little. The cheats code is still ↵Darkvater
abominable, but at least a bit more readable now. Use the now generalized ReadValue/WriteValue functions as well as using general variable-types (SLE_VAR, instead of custom CE_ ones). Remove the CE_CLICK type and use a SLE_BOOL type instead with a flag of CE_CLICK. Remove stepsize from the struct. The stepsize is automatically calculated from the minimum and maximum values (in 20 steps).
2006-03-01(svn r3710) - Use the general function DrawArrowButtons() instead of doing ↵Darkvater
it manually. The function has two parameters added, colour and an enabled flag.
2006-02-01(svn r3511) More whitespace ([FS#46] by Rubidium)tron
2006-01-27(svn r3453) - CodeChange: Also show the landinfo debug information when ↵Darkvater
building in release mode; however it is shown at debug level 1.
2006-01-26(svn r3439) - CodeChange: Remove a whole bunch of global variables and put ↵Darkvater
them into the WP() macro. Also combine more than one WP-custom element. For this the maximum size of w->custom (WP) has been increased, and multiple types put inside one with possibly moved to the corresponding gui file if it is only used there.
2006-01-23(svn r3421) - Revert r3412 as it didn't work.peter1138
- Fix station builder issue by checking the tile is in bounds.
2005-12-14(svn r3298) Remove unused and write-only variablestron
2005-12-13(svn r3295) - Regressionfix: scrolling with mousewheel no longer worked in ↵Darkvater
saveload dialogs because of restriction that scroller is only active for widget + next widget is scrollbar. Yes, we need a better window system.
2005-12-13(svn r3293) - Miscellaneous: add peter1138 as developerDarkvater
2005-12-10(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()peter1138
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-29(svn r3247) - Fix: "[ 1335580 ] sticky windows not sticky anymore" peter1138
Determine clicked status of sticky icon from window flags rather than the widget click state. This keeps the status in one place where it can't get out of sync.
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-13(svn r3173) Use the trinary operator and switch to improve readabilitytron
Also align short cases nicely
2005-11-13(svn r3172) static, consttron
2005-10-28(svn r3096) - Feature: 'HOME' icon to saveload dialogs that jumps to the ↵Darkvater
default save/load directory based on the dialog (added icon to openttd.grf, introduced FIOS_TYPE_DIRECT that allows arbitrary directory jumping). - Fix: on Win32 capitalize the drive-letter in the saveload dialog windows when it is first opened.
2005-10-23(svn r3078) Some more stuff, which piled up:tron
- 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
2005-10-19(svn r3064) Replace some numbers by sprite namestron
2005-10-17(svn r3055) Give the savegame/scenarion sort order flags symbolic namestron
2005-10-07(svn r3024) -Codechange: Another batch of replacements of ↵tron
int/uint/int16/byte/-1 with proper types and constants
2005-09-30(svn r3001) s/Player*/const Player*/tron
s/byte/PlayerID/ s/int/PlayerID/ and related changes
2005-09-14(svn r2952) Querytool output is be 0xAAAA. with leading 0x. Couldn't use # ↵Darkvater
cause that would have written 0X
2005-09-10(svn r2932) Give the strings consisting of an up/a down arrow symbolic namestron
2005-08-23(svn r2886) Rename the "owner" attribute to "m1", because when it stores an ↵tron
owner it is accessed by [GS]etOwner anyway and when it doesn't store an owner, but arbitrary data, accessing a field called "owner" is confusing.
2005-08-14(svn r2866) Move all functions and tables which aren't directly involved in ↵tron
managing the sprite heap to a new file gfxinit.c. This doesn't ease the global variable mess, but makes the distinction between sprite heap and gfx loading routines easier.
2005-08-07(svn r2836) fixed the alphabetical order of the credits list like it says it ↵bjarni
is in
2005-08-03(svn r2799) Make the only two non-const widget lists consttron
2005-08-01(svn r2781) Fix some of the issues with variables in .h files.ludde
2005-08-01(svn r2775) Deleting a file can fail, display an error message when it happenstron
2005-07-26(svn r2717) Move _userstring to strings.[ch]tron
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 r2681) - Fix OS/2 port, please do not modify openttd.wpj/tgt by hand ↵orudge
unless you know what you're doing!
2005-07-22(svn r2675) - Fix: pressing enter on a load-window resulted in saving the ↵Darkvater
game (Luca)