alberth
f5c6fd1a25
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
14 years ago
rubidium
ed04bef953
(svn r21248) -Codechange: don't run the tar scanner twice upon startup
14 years ago
rubidium
30637a8340
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
14 years ago
alberth
17695611cb
(svn r21111) -Add: Remove the buttons below the newgrf details if the list is not editable.
14 years ago
alberth
a026ee9b4c
(svn r21110) -Add: Tidy up the buttons of the active newgrfs list.
14 years ago
alberth
5962e1db3a
(svn r21109) -Add: Don't display available newgrfs when the newgrf list is not editable.
14 years ago
alberth
f961fe626b
(svn r21108) -Add: Copy the 'editable' flag of the newgrf window to its layout widget.
14 years ago
planetmaker
9a0a76cc32
(svn r20992) -Fix (r20958): Show either version and minimum compatible version or neither
14 years ago
frosch
38c350fad5
(svn r20960) -Add: Allow setting 'minimal compatible version' via Action14. (planetmaker)
...
Note: Setting 'VRSN' also sets 'MINV' resulting in the Grf being only compatible to the same version. Set 'MINV' after 'VRSN' if your Grf is compatible to older versions.
14 years ago
frosch
3972c790c2
(svn r20957) -Codechange: Add another parameter to FindGRFConfig() to define search restrictions.
14 years ago
frosch
98250ad8da
(svn r20951) -Codechange: Add SmallMap::Contains() and use it.
14 years ago
yexo
15212cf948
(svn r20812) -Fix [FS#4125]: crash when confirming newgrf changes with the newgrf parameter window open
14 years ago
frosch
06678a8ac2
(svn r20779) -Add [FS#4025]: If GRFs do not have action14 parameter information, allow to set the number of parameters in the GUI explicitly.
14 years ago
yexo
cf2032d0f8
(svn r20694) -Fix [FS#4087]: empty newgrf presets were not selectable
14 years ago
rubidium
7b16c7650b
(svn r20670) -Add: support for action F
...
-Add: a window to select (NewGRF) objects
14 years ago
yexo
f6f218cf6b
(svn r20604) -Feature: add a reset button to the newgrf parameters window
14 years ago
yexo
a36159614a
(svn r20601) -Feature: [NewGRF] Add 'DEFA' field to set parameter defaults with action 14
14 years ago
frosch
7e5309a28a
(svn r20479) -Change: Use 'Buttons Name: Value' layout for AI and NewGRF parameter GUI.
14 years ago
frosch
9e538acc03
(svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR.
14 years ago
frosch
71ca58c2bb
(svn r20453) -Codechange: Remove direct accesses to Window::hscroll, vscroll and vscroll2.
...
Note: All windows get individual members with the same names, which are initialised via Window::GetScrollbar(). This caching is not required at all, but simplifies conversion.
14 years ago
frosch
10339c60c0
(svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar().
14 years ago
terkhen
80c43f52e8
(svn r20289) -Codechange: Unify fall through coding style.
14 years ago
frosch
4bd32799f1
(svn r20286) -Codechange: Unify end of doxygen comments.
14 years ago
frosch
ed4f806f1d
(svn r20283) -Codechange: Unify start of doygen comments.
14 years ago
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
14 years ago
yexo
b65a9eb856
(svn r20268) -Add: append 'On'/'Off' after the name for boolean NewGRF settings
14 years ago
yexo
adf94b8529
(svn r20264) -Fix (r20258): saving a new preset was broken
14 years ago
rubidium
5f8cfba77a
(svn r20263) -Change: only show the NewGRF version when newgrf_developer_tools are enabled
14 years ago
rubidium
ac280af8bc
(svn r20259) -Add: allow NewGRFs to specify their version and use that to hide old NewGRFs / to choose the newest when loading compatible NewGRFs
14 years ago
yexo
5a2862814a
(svn r20258) -Feature: more user-friendly gui to change NewGRF parameters
14 years ago
rubidium
e469a94a2d
(svn r20253) -Codechange: change GRFConfig::windows_paletted into a bitmask/bitset
14 years ago
yexo
1ca16aa979
(svn r20248) -Codechange: use a copy-constructor instead of a separate function co clone GRFConfig/GRFError
14 years ago
terkhen
88ca183191
(svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH).
14 years ago
alberth
4203e641f8
(svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget().
14 years ago
frosch
b71aabdfb7
(svn r20217) -Fix [FS#3969]: Invalidate saveload GUI after rescanning NewGRFs.
14 years ago
frosch
4f51623d12
(svn r20066) -Fix: When rescanning NewGRFs resp. after content download also check whether compatible grfs are available now.
14 years ago
alberth
22b9bc5157
(svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine().
14 years ago
frosch
717d134947
(svn r19986) -Fix (r19841): One could add and remove Grfs from the list via doubleclicking even if editing the list is not allowed.
15 years ago
frosch
56fbbdeafd
(svn r19972) -Change: Use the md5sum from the previous save of the game for BaNaNaS instead of the initial (when the grf was added) md5sum from the gamelog. Neither method is 'better', but this way it is independent from the gamelog.
15 years ago
alberth
bee74bd82b
(svn r19849) -Fix: Center sprite and text seperately in the newgrf gui active list.
15 years ago
alberth
255a3331bf
(svn r19848) -Fix (r19837): Center the texts of the inactive newgrfs.
15 years ago
alberth
255bb5bb1f
(svn r19845) -Feature: Dynamically switch between 2 and 3 column NewGRF gui for improved user experience.
15 years ago
alberth
637ee45545
(svn r19841) -Feature: Setup NewGRFs from a single window.
15 years ago
alberth
e49cb2d320
(svn r19840) -Add: Add 'rescan' functionality to the NewGRF window.
15 years ago
alberth
d233845370
(svn r19838) -Change: Add filter capability to the availables list.
15 years ago
alberth
b7a8497ccd
(svn r19837) -Change: Display list of available (non-active) grfs in the NewGRF window.
15 years ago
alberth
219ae56f8a
(svn r19836) -Codechange: Move sprite palette selection code in NewGRF gui to its own method.
15 years ago
alberth
9c3b9690fb
(svn r19834) -Change: Replace matrix list widget in NewGRF gui by a panel with black background.
15 years ago
alberth
22b868f4d5
(svn r19833) -Change: Modify NewGRF window towards having combined lists, add captions.
15 years ago
alberth
cf6e1165b5
(svn r19832) -Codechange: Rename variables list->actives, sel->active_sel.
15 years ago
alberth
f0779f0163
(svn r19831) -Codechange: Rename formal parameters of the constructor to match data member variable names.
15 years ago
alberth
c4b29c5124
(svn r19830) -Codechange: Move variable declarations to their first use.
15 years ago
alberth
8b582edb38
(svn r19829) -Codechange: Extract assignment from the condition-check in the for statement.
15 years ago
alberth
3b8c4440c5
(svn r19823) -Fix: Ensure that both texts of the newgrf gui download button fit.
15 years ago
rubidium
062dd0e24c
(svn r19814) -Codechange: give some more unnamed enums a name, in case they consisted of unrelated values use static const (u)int
15 years ago
frosch
f835f67a39
(svn r19597) -Fix: Removing NewGRFs from the GUI list leaked.
15 years ago
smatz
5eb1e3d033
(svn r19577) -Codechange: apply coding style to names of functions in settings.cpp
15 years ago
alberth
1e48b2332e
(svn r19576) -Codechange: Unduplicating parse_intlist().
15 years ago
yexo
404df87b1f
(svn r19295) -Codechange: introduce wrapper functions for GRFConfig::name/info
15 years ago
yexo
a9c8dbc0a0
(svn r19255) -Codechange: encapsulate GRFIdentifier in GRFConfig instead of subclassing it
15 years ago
smatz
f051066bc4
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
15 years ago
alberth
33a96b5ef3
(svn r19132) -Codechange: No need to end a line with ;;.
15 years ago
yexo
6406b75b8f
(svn r19094) -Codechange: don't check for NULL values before calling StrEmpty
15 years ago
frosch
88019e64e1
(svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick().
15 years ago
yexo
ea227aa033
(svn r18948) -Fix: removing a newgrf from the list didn't update the scrollbar
15 years ago
yexo
81882039e3
(svn r18947) -Fix [FS#1510]: after clicking move up/move down in the newgrf/ai the selected item could be out of range
15 years ago
rubidium
f94c83a387
(svn r18872) -Codechange: introduce PaletteID and use it
15 years ago
yexo
72572a0586
(svn r18815) -Fix (r18813): adding a single newgrf via the newgrf gui added all newgrfs after the selected one too
15 years ago
yexo
bd102b78ee
(svn r18813) -Codechange: deduplicate copying a newgrf config
15 years ago
rubidium
82fc28f77f
(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header
15 years ago
rubidium
409007cd92
(svn r18697) -Fix [FS#3471]: crash when scrolling to an item removed by filtering in the 'add NewGRF window'
15 years ago
alberth
5a083f183e
(svn r18580) -Codechange: Use widget information only for setting scrollbar capacity.
15 years ago
rubidium
3e6c530e1e
(svn r18506) -Fix [FS#3368]: no error message was created for the first fatal NewGRF error.
15 years ago
rubidium
293dfd7c3e
(svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice.
15 years ago
rubidium
8d6e323ef8
(svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input
15 years ago
rubidium
14300d309c
(svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions
15 years ago
rubidium
69b6d9309a
(svn r18274) -Codechange: remove the unused WDF flags
15 years ago
alberth
450e40b997
(svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize().
15 years ago
alberth
2b6f792513
(svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool.
15 years ago
frosch
41ad9d505e
(svn r18227) -Fix (r17676)[FS#3325]: GRF parameters and palette were no longer displayed in NewGRF gui.
15 years ago
rubidium
a9e09df923
(svn r18221) -Codechange: make the NewGRF window big font aware
15 years ago
alberth
bf93372ca2
(svn r18220) -Codechange: Reduce number of nested widget dynamic casts.
15 years ago
rubidium
e9b6e73333
(svn r18211) -Cleanup: remove unneeded tooltip, size and fill 'parameters' from WWT_RESIZEBOX instances
15 years ago
rubidium
68400db749
(svn r18183) -Codechange: make the NewGRF window RTL aware
15 years ago
peter1138
f216fcecd4
(svn r18178) -Codechange: Let NewGRF Add window's text filter expand.
15 years ago
rubidium
5f2ddfbc5a
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
15 years ago
rubidium
626de6b128
(svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation
15 years ago
rubidium
3d2d7af88f
(svn r18086) -Codechange: remove 'widget' from WindowDesc
15 years ago
alberth
44aacfc59f
(svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
...
Gentlemen, swap your string parameters.
15 years ago
rubidium
86fd0c0bce
(svn r17922) -Fix [FS#3291]: crash when closing NewGRF parameter window with no NewGRF selected
15 years ago
rubidium
a5d005dd53
(svn r17920) -Codechange: add a 'filter' for numbers+spaces and use it for the NewGRF parameter list
15 years ago
rubidium
2ef0746007
(svn r17890) -Feature: double clicking on a NewGRF opens the parameters window
15 years ago
rubidium
ca0521f89f
(svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone.
15 years ago
rubidium
d1d35b95b6
(svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows
15 years ago
rubidium
d6cded5380
(svn r17693) -Cleanup: remove some unneeded includes
15 years ago
rubidium
6e6af43d77
(svn r17676) -Codechange: make the NewGRF GUI nested
15 years ago
rubidium
a96d161b00
(svn r17675) -Codechange: move the 'state' changes out of the OnPaint of the newgrf window
15 years ago
rubidium
0032405093
(svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class
15 years ago
alberth
f7f2d1caa5
(svn r17580) -Fix (r17541): Fix signed/unsigned mismatch with MSVC 2008.
15 years ago
alberth
116c77c342
(svn r17572) -Codechange: Use the Window::GetWidget() function to access nested widgets through the nested_array.
15 years ago
rubidium
1f1161f10d
(svn r17559) -Fix [FS#3206]: close the "Add NewGRF" window when you close the "NewGRF Settings" window. The add window has a pointer to the settings which means that not deleting it would cause dereferencing an already freed pointer
15 years ago
frosch
2d9c54c9a8
(svn r17541) -Feature: Filtering in Add-NewGRF dialog.
15 years ago
frosch
e720d23d86
(svn r17514) -Codechange: Nestify Add-NewGRF dialog.
15 years ago
frosch
d0de94be99
(svn r17511) -Codechange: Simplify ShowNewGRFInfo() by passing 'right' instead of 'width'.
15 years ago
rubidium
7aeaa4f132
(svn r17371) -Codechange: make the newgrf, news and order GUIs use the scrollbar wrappers
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
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
alberth
d0a47fc1b4
(svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field.
15 years ago
alberth
bc9c2e43fe
(svn r16413) -Codechange: Allow leading/trailing whitespace and comma in newgrf parameters instead of treating them as invalid.
16 years ago
rubidium
9dff385c38
(svn r16304) -Codechange: remove some magic numbers from the newgrf add window so it mirrors nicely.
16 years ago
frosch
ddd47a056d
(svn r16223) -Fix (r8881): ActionB should use the online parameters from GRFFile instead of the initial user-specified values from GRFConfig. Also use the values as they were set when the ActionB was executed, not as they are set when the message is shown.
16 years ago
alberth
e62df0abf9
(svn r16186) -Codechange: Adding nested widgets to _newgrf_desc and _newgrf_add_dlg_desc window descriptions.
16 years ago
alberth
a0e7f1647d
(svn r16185) -Codechange: Moving the ShowNewGRFStateWidgets and AddNewGRFWindowWidgets widget enums outside their window structs.
...
-Codechange: Improvements to the _newgrf_add_dlg_widgets and _newgrf_widgets widget arrays in preparation for nested widgets.
16 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.
16 years ago
alberth
9d2738b9c4
(svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback
16 years ago
rubidium
d837fc4d03
(svn r15797) -Codechange: make users of the old DrawStringMultiLine use the new one.
16 years ago
rubidium
45f189fdca
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
16 years ago
rubidium
93fe44a3c5
(svn r15783) -Codechange: make the dropdown draw code pass around the left/right instead of the x and width to make drawing text at offsets easier.
16 years ago
rubidium
f9def73be6
(svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth)
16 years ago
rubidium
c876e3e1b2
(svn r15561) -Fix [FS#2646]: segfault when saving a preset with unknown NewGRFs
16 years ago
peter1138
7cd579e7ef
(svn r15311) -Fix (r15126): Obiwan error
16 years ago
smatz
0d3f5e6e74
(svn r15299) -Cleanup: remove many redundant includes
16 years ago
Yexo
60dc54b234
(svn r15250) -Fix (r15126): The NewGRF Settings window was 1 pixel to low.
16 years ago
rubidium
aff27ca884
(svn r15245) -Fix: don't "save" the NewGRF settings on closing the NewGRF window when the content of the window isn't editable
16 years ago
rubidium
aaad553233
(svn r15225) -Fix (r15126): searching for 'missing' NewGRFs gave the 'compatability loaded' NewGRF instead of the one that we're actually looking for
16 years ago
rubidium
8382b76b0f
(svn r15221) -Change [FS#2574]: only show missing NewGRFs when opening the content download window from a NewGRF list and there are missing NewGRFs, otherwise show just all NewGRFs the system knows.
16 years ago
rubidium
a46245f21f
(svn r15142) -Fix (r15126): missing NewGRFs cause a crash when getting the content list.
16 years ago
rubidium
3a13b75e37
(svn r15126) -Feature: downloading content from a central server (content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates.
16 years ago
smatz
606f4defdc
(svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString()
16 years ago
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
17 years ago
rubidium
27c38052b7
(svn r13185) -Codechange: remove everything related to the WindowProc callbacks.
17 years ago
rubidium
8b54212900
(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.
17 years ago
peter1138
153acec334
(svn r13073) -Codechange: make classes of the NewGRF windows
17 years ago
rubidium
f23026cce8
(svn r13027) -Codechange: use StrEmpty instead of arr[0] == '\0' and remove the need for WE_ON_EDIT_TEXT_CANCEL.
17 years ago
rubidium
2eef026fe3
(svn r13004) -Codechange: replace AllocateWindow and AllocateWindowDesc with a Window constructor.
17 years ago
rubidium
9bf519f26b
(svn r12976) -Codechange: use w->SetDirty() instead of SetWindowDirty(w) when it's certain that w != NULL.
17 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.
17 years ago