Commit Graph

69 Commits (ff89c704fa40362b7c3f958bade4b8380182a54b)

Author SHA1 Message Date
rubidium 0251a9c529 (svn r14310) -Fix: don't show palette information in the newgrf lists of the network lobby. 16 years ago
rubidium 6d52fce720 (svn r14299) -Fix: disable 'toggle palette' when no NewGRF has been selected. 16 years ago
rubidium a4cd12274c (svn r14233) -Feature/Fix [FS#2172]: save the palette of the loaded NewGRFs in the savegame, so joining with a server using Windows palette will make a client with the DOS palette do palette conversion and (thus) not cause a desync due to the different palettes disabling different NewGRFs. 16 years ago
frosch 7c5d237447 (svn r14112) -Fix (r13715)[FS#2232]: Action B custom messages with parameteers were broken. 16 years ago
peter1138 aff313cd4b (svn r14009) -Cleanup (r14008): Bad whitespace... 16 years ago
peter1138 1e5175451a (svn r14008) -Fix (r14004): NewGRF preset drop down list not working 16 years ago
belugas 5bbb5721df (svn r13896) -Codechange: Replace numbers with Colours enum on newgrf, order and osk guis 16 years ago
peter1138 b98deeb5cc (svn r13818) -Fix [FS#2157]: Deselect currently selected NewGRF when changing GRF preset. 16 years ago
peter1138 9a6b7a90e0 (svn r13789) -Fix (r13781): Saved preset was not automatically selected. 16 years ago
peter1138 6e0af9fdfe (svn r13781) -Feature: NewGRF presets, selected by a drop down list in the NewGRF window. Presets are saved in the config file. 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 c7a9637834 (svn r13375) -Add: logging of actions that could possibly cause desyncs and crashes to simplify debugging. See readme.txt for details 16 years ago
rubidium 27c38052b7 (svn r13185) -Codechange: remove everything related to the WindowProc callbacks. 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
peter1138 153acec334 (svn r13073) -Codechange: make classes of the NewGRF windows 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 2eef026fe3 (svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor. 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 d03994098b (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
peter1138 ffe07b9292 (svn r12445) -Fix: Add missing compile asserts for window data structs 16 years ago
smatz bfae49aeb2 (svn r12368) -Codechange: use explicit body for loops and conditions and remove -Wno-empty-body from the configure script 17 years ago
peter1138 db0eb9570c (svn r12172) -Codechange: Allow buttons to resize in NewGRF settings window 17 years ago
rubidium d4e6a6bf57 (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. 17 years ago
rubidium 0e517fe023 (svn r11787) -Codechange: more header rewrites. This time related to viewport.h. 17 years ago
rubidium a3ccdcea36 (svn r11777) -Codechange: split the string header and make do not include it when it's not necessary. 17 years ago
rubidium 38115acf5a (svn r11776) -Codechange: more header splittings to reduce the dependencies. 17 years ago
rubidium 429521a7d1 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h' 17 years ago
rubidium bf98e25e43 (svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed. 17 years ago
rubidium 8f0e68285b (svn r11682) -Codechange: move some 'generic' geometry related types into a single file and do not include gfx.h everywhere to get a Point type. 17 years ago
rubidium 433a9f3c09 (svn r11675) -Codechange: split the string types from the string functions. 17 years ago
rubidium d582aea639 (svn r11668) -Codechange: more refactoring aimed at reducing compile time and making it more logic where function definitions can be found. 17 years ago
rubidium 8896bea306 (svn r11667) -Codechange: split window.h into a header that defines some 'global' window related types, on that defined 'global' window functions and one that defines functions and types only used by *_gui.cpps. 17 years ago
glx ea1ae563c7 (svn r11631) -Fix (r11585, r11626): remove MSVC warnings 17 years ago
skidd13 7159007a35 (svn r11585) -Codechange: Enumify the widgets of the newGRF gui and a slight cleanup there 17 years ago
belugas 6c70cf2d82 (svn r11579) -Revert(r11578): some cases of key propagation are not handled correctly.
A better solution will be deviced, but not now.  Let's not cause a ton of bug reports
17 years ago
belugas 7edf28529d (svn r11578) -Codechange: Introduce the window default flag WDF_TEXTENTRY which specifies that the window holding it is actually one that enables an edit box.
Use this flag when dispatching a key event instead of using some hard coded window IDs.
This should ease a little bit the creation of new edit aware windows.
17 years ago
rubidium 527b72749d (svn r11555) -Codechange: use the new members introduced in r11551. 17 years ago
skidd13 71c4325c50 (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style 17 years ago
rubidium f546de602b (svn r11433) -Fix: starting OpenTTD with DOS files made it look weird out of the box.
-Change: make extra sprites (the ones not in the TTD GRFs) replaceable using Action 5.
-Feature: make replacing contiguous subsets of sprites in for some types possible in Action 5.
Note to GRF authors: when you replaced OpenTTD sprites that are not from the TTD GRF files using Action A, your GRF will not have the intended result anymore as the sprite numbers have changed. You should replace the Action A with an Action 5 from now on.
17 years ago
belugas 56e6282f2f (svn r11374) -Codechange: Give meaning to the magical number that specifies the color of the text in a DrawString call.
Patch heavily based on BiBB's work (FS#1383)
17 years ago
rubidium 93303cffc4 (svn r11329) -Fix: if a NewGRF failed to load for some reason (like fatal errors), but it was a "compatible" NewGRF, it was shown with the compatible colour and not the not-loaded colour in the NewGRF list. 17 years ago
belugas ebfc4b2842 (svn r11272) -Codechange: Truncate text describing the grf file in the NewGrf settings gui 17 years ago
rubidium bf35f3a21a (svn r11211) -Fix [FS#1302]: NewGRF GUI scrollbar does funny things when being resized. 17 years ago
rubidium c03cb2c8db (svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size. 17 years ago
rubidium 6402d00190 (svn r10298) -Fix [FS#903]: show the subdirectory below the default data directory in this filename in the newgrf list. The directory was removed in r9560 because then it used to full path instead of the path relative to the data directory, but since the inclusion of "search paths" that is not necessary anymore. 17 years ago
glx 8dff21e421 (svn r10267) -Add: enable double clic to add in 'add newgrf' window 17 years ago
glx 23af871615 (svn r10211) -Feature: [NewGRF] Add support for action 0F 17 years ago
maedhros 109dd33c4a (svn r10114) -Fix: Only load newgrf error messages if the language matches the current
language. Since only one error can be loaded anyway, if the language didn't
match you'd get "Undefined string". Also since we're only loading one language
there's no need to use AddGRFString any more.
17 years ago
rubidium 62c20a9698 (svn r10021) -Fix (r9560): memory "corruption" that could lead to a failure to load newgrfs. 17 years ago
belugas 4eb87ac62b (svn r9669) -Documentation: some more doxygen fixes 17 years ago