summaryrefslogtreecommitdiff
path: root/window.h
AgeCommit message (Collapse)Author
2005-11-14(svn r3178) - Codechange: move static _dropdown_* vars into the window ↵peter1138
custom data, giving var1 and var2 more meaningful names.
2005-11-13(svn r3176) Use proper types, not some variants of inttron
2005-11-10(svn r3162) -Fix: renamed 'Message' to 'WindowMessage', a struct named ↵truelight
'Message' already exists on MorphOS
2005-11-04(svn r3133) - static, consttron
- remove long unused stuff and bogus comments - complement struct typedefs - remove read-only (_demo_mode) and unused (_fix_mouse_at) global variables
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-07(svn r3024) -Codechange: Another batch of replacements of ↵tron
int/uint/int16/byte/-1 with proper types and constants
2005-09-23(svn r2974) -Fix: Drag and drop selection on drop down boxes didn't select ↵peter1138
correct item when some items were hidden. -Separate disabled and hidden masks in drop downs to support both hidden and disabled items.
2005-09-18(svn r2962) - const correctness for all Get* functions and most Draw* ↵Darkvater
functions that don't change their pointer parameters - change a lot of byte player types to PlayerID - beautify header files, same "#endif /* filename */" ending
2005-07-28(svn r2734) -Feature: The Main Toolbar Dropdown Menu can now display ↵celestar
disabled items
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-21(svn r2669) Shuffle some more stuff around to reduce dependenciestron
2005-07-17(svn r2626) static, const, misc.tron
2005-07-15(svn r2573) Codechange: Removed WDF_RESTORE_DPARAM, it's not needed with the ↵ludde
new string system. Also fixed a bug introduced in r2564, forgot to remove 4 global variables in network_gui.c.
2005-07-08(svn r2530) - Fix: [ 1219829 ] Mouse-wheel crashes OTTD. Widget detection ↵Darkvater
failed to detect the most-right and most-bottom pixels of a widget. If scrollwheel is used on a not-found widget (such as the background of the toolbar), it will now fail correctly (glx)
2005-06-24(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"tron
2005-06-15(svn r2444) - CodeChange: Add an enum for demagicifying the values of the ↵hackykid
'flags' parameter of DrawFrameRect(). (_Abraxa_)
2005-04-05(svn r2152) - Fix: Chatbar in MP games is now on-top of the news window.darkvater
- CodeChange: Introduction of SendWindowMessage() where a window can send another window a message (ala windows style msg, wparam, lparam). Messages can be sent by windowclass and by windowpointer. - CodeChange: IsVitalWindow() simplifies a lot of checks for window handling that need to know what windows it can close, or be on top of, etc.
2005-03-26(svn r2074) MouseLoop -> InputLoop(), factor out a real mouse-specific ↵pasky
MouseLoop from the new InitLoop() (more in the spirit of HandleKeypress()).
2005-03-09(svn r1978) - Fix: Plug some memleaks; thanks ValgrindDarkvater
2005-02-21(svn r1894) - Codechange: cleaned up the console a bit, wholly unified ↵Darkvater
handling of text with that of editboxes - Codechange: Introduction of Textbuf struct which not only holds physical data as length but also pixel-constrains (width) and information about the caret - Codechange: Move Clipboard function to OS specific file. Currently only Windows has clipboard actions - Feature: Editboxes, console and exit screen also accept the numeric-enter as a yes - Feature: Navigation through text with cursor keys is possible, as well as arbitrary insertion (also paste) and deletion; both backspace and del keys. Functions DeleteTextBufferChar, InsertTextBufferChar and InsertTextBufferClipboard handle input and deletion. Navigation is done through MoveTextBufferPos. - Fix: OTTD crash when opening 'add server' editbox - CodeChange: fix up some stringwidth calculations in gfx.c. You can get the width in pixels of a character by calling GetCharacterWidth().
2005-02-19(svn r1890) Begin to clean up the edit box: Remove one global variable and ↵tron
split the combined edit/original buffer into two
2005-02-06(svn r1827) Next iteration of the byte -> char transition: some string ↵tron
drawing functions and buffers
2005-01-26(svn r1680) Feature: Replace train GUI now remembers the railtype selected ↵bjarni
in the dropdown menu
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
2005-01-14(svn r1508) Remove duplicate declarations and include proper headers where ↵tron
necessary
2005-01-14(svn r1503) Added feature:miham
o allows users to setup the production values of the rawmaterial producing industries in the editor Modified: o ttd.h - added CT_INVALID for 0xFF cargo type o english.txt - added 1 string o industry_gui.c - the feature itself o window.h - added compile asserts to the structs which checks whether their sizes are smaller than WINDOW_CUSTOM_SIZE Thanks: o Darkvater to bother me to constantly improve the patch o Various users at #openttd for testing
2005-01-13(svn r1496) -Fix: highscore no longer crashes in network games with a ↵darkvater
dedicated server. At the end of the game (can only be set by the server) the highscore is shown for the top5 companies of that game -Fix: fixed some compiler warnings -Added PF_NETWORK_ONLY flag to settings. Such a setting can only be modified in a network game.
2005-01-11(svn r1479) -Added highscore chart (accessible from the difficulty window) ↵darkvater
with top5 companies for a given difficulty (select the difficulty in the menu) -Added endgame score on 1 jan 2051 where you are added to the highscore if sufficiently large points have been accumulated. Game is paused while -These values are saved in hs.dat; added read/write functions for it -Added code to delete all windows to show charts. There is one issue left: somehow a news-gui pops up in front of the the chart at the end of the game.
2005-01-11(svn r1478) -Fix: [1099195] mouse-wheel in train replace window. Scrollbar1 ↵darkvater
and Scrollbar2 now work independently. You can only scroll on list and scrollbar itself; scrollbar must be next widget of the list. -Fix: updated the few gui's that didn't have the scrollbar right after the listbox.
2005-01-03(svn r1350) Replace Vehicle GUI: bjarni
- Replaced "WP(w,replaceveh_d).line_height" with "w->resize.step_height" since they needed to be the same anyway - Cleaned the code a litte for readability (like correct tabbing) - Added company color to replace vehicle windows to make them look like the rest of the vehicle windows and made the caption text white (also to fit the standard) --This line, and those below, will be ignored-- M vehicle_gui.c M lang/english.txt M window.h
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
2005-01-03(svn r1340) -Feature: scrolling credits list...finally! Hope nobody gets ↵darkvater
offended if I forgot them.
2005-01-03(svn r1330) Increase size of some vars from int16 to int32 to guard against ↵tron
future overflows
2005-01-02(svn r1323) Adding autoreplace featurebjarni
This feature works much like autorenew, but it will get you a new engine type instead of a new one of the same type. Once ordered, it will automatically replace the engines while they visits a depot. The GUI for setting this up have been added on the vehicle overview windows Note: autorenew is now autoreplace, but to the same engine type Nice new features, that was added to make this possible - windows can now have two independant vertical scrollbars - CMD_SHOW_NO_ERROR have been added as a flag for DoCommandP. It will make it do the action instead of showing the red box with estimated costs even if shift is pressed - fixed problem where enginetypes where not initialized when loading a game. It's now done in InitializeGame()
2004-12-29(svn r1297) Language fixes in the source.. (ln-)miham
2004-12-22(svn r1225) -Feature: SHIFT+DEL now deletes all non-vital windows (only ↵darkvater
status bar and main bar remain) -Fix: For everyone who tried to crash the game by opening a huge amount of windows and stickying all of them; bad luck. It's fixed now (thanks Tron for the helpful criticism). First all normal windows are a candidate for replacement, then if none are found, sticky windows. Then..well that should not happen :)
2004-12-15(svn r1121) -Feature: Added sticky windows feature. A small pin allows the ↵darkvater
user to set the window as undeletable and can only be closed by hand. As an example the viewport window has been stickied (thanks to Neko-San) -To use the feature add WDF_STICKY_BUTTON to the widget description and update all widget-ID's since sticky button will be widget 2.
2004-12-10(svn r1009) -Feature: per-station vehicle liststron
This adds a little button per vehicle class to the station window which opens a list of all vehicles that have this station on their schedule. As side effect this gets rid of some global variables.
2004-12-04(svn r942) -Merged branch/network back into the trunktruelight
2004-11-15(svn r623) -Feature: [ 1066504 ] Pause key pauses the gametron
2004-11-13(svn r569) Fix type mismatchtron
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-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-09-05(svn r159) -Fix: w->custom[] was too small for 64bit pointerstruelight
2004-08-24(svn r130) Change: hotkey for console is Backquote (the key left to '1', ↵dominik
regardless of keyboard layout
2004-08-23(svn r117) Feature: Performance details window in company league menu ↵dominik
(TrueLight)
2004-08-16(svn r69) -Feature: align toolbar left/center/right patch (TrueLight)darkvater
-Feature: added callback feature to patches options
2004-08-16(svn r63) Fix: [ 1009385 ] Too many save games prevented loadingdominik
2004-08-09(svn r1) Import of revision 975 of old (crashed) SVNtruelight