Peter Nelson
fea7247072
Change: Use standard 'frametext' padding for settings window.
2022-11-12 18:28:39 +00:00
Peter Nelson
6f95e04005
Change: Use Rect helpers for widget drawing.
...
This replaces repetitive and sometimes unwieldy use of constants.
2022-11-12 18:28:39 +00:00
Peter Nelson
f5f035a22b
Codechange: Make use of Rect Width/Height helpers.
2022-11-12 18:28:39 +00:00
Peter Nelson
eb4ba1991b
Change: Use CenterBounds function in more places.
...
CenterBounds may have a 1 pixel difference so the result is not exactly
the same.
2022-11-12 18:28:39 +00:00
rubidium42
e588923bff
Codechange: add std::string accepting SetDParamStr to ErrorMessageData
2021-06-13 10:26:58 +02:00
glx22
5799402f7a
Codechange: Rename window related DeleteXXX to match new behaviour
2021-05-29 21:08:25 +02:00
Rubidium
fdc11a9f94
Codechange: introduce SpriteFile to be used by the sprite loader instead of the global FIO slot functionality
2021-05-08 12:39:34 +02:00
Peter Nelson
af70195e44
Fix: Tidy up sizing of sprite aligner window sprite list.
2021-04-30 17:08:15 +01:00
Patric Stout
853bfc3562
Codechange: replace _realtime_tick with std::chrono for mouse events
2021-02-27 00:36:14 +01:00
Michael Lutz
84636fc2af
Codechange: Remove all remaining uses of cpp_offset.
2021-02-13 20:08:53 +01:00
Charles Pigott
9b800a96ed
Codechange: Remove min/max functions in favour of STL variants ( #8502 )
2021-01-08 11:16:18 +01:00
dP
3db7cf54fd
Fix: sprite preview in sprite aligner is too small with scaled UI
2020-08-13 20:50:11 +02:00
Michael Lutz
f2b40f40aa
Codechange: Replace SmallPair with std::pair.
...
std::pair is already the smallest possible pair, and it already handles non-POD types correctly.
2020-05-21 20:02:34 +02:00
S. D. Cloudt
13cc8a0cee
Cleanup: Removed SVN headers
2019-11-10 17:59:20 +00:00
stormcone
6396ec05fe
Fix #7609 : In the sprite aligner window the 'Reset relative' button crashes the game.
...
The 'offs_start_map' is a 'SmallMap', so its own 'Erase' function should be called instead of the underlying vector's 'erase' function.
And fix a "typo". :)
2019-06-06 17:28:39 +01:00
Henry Wilson
7c8e7c6b6e
Codechange: Use null pointer literal instead of the NULL macro
2019-04-10 23:22:20 +02:00
glx22
66dd7c3879
Fix: MSVC warnings ( #7423 )
2019-03-28 00:09:33 +01:00
Henry Wilson
c01a2e2a81
Codechange: Removed SmallVector completely
2019-03-26 20:15:57 +00:00
Henry Wilson
ab711e6942
Codechange: Replaced SmallVector::[Begin|End]() with std alternatives
2019-03-26 20:15:57 +00:00
Henry Wilson
ca2f33c6d0
Codechange: Replaced SmallVector::Erase() with std::vector::erase()
2019-03-26 20:15:57 +00:00
Henry Wilson
a690936ed7
Codechange: Replace SmallVector::Length() with std::vector::size()
2019-03-26 20:15:57 +00:00
peter1138
317f69c152
Codechange: Use override specifier in Window-derived classes.
2019-03-24 16:10:04 +01:00
alberth
e9f12d666d
(svn r27451) -Feature[FS#6241]: Move sprite 8 positions in sprite aligner with ctrl+click. (based on work by juzza1)
2015-11-20 10:04:28 +00:00
alberth
a5843149b5
(svn r27174) -Feature[FS#6236]: Display relative offset changes in the sprite aligner (juzza1).
2015-03-01 08:17:14 +00:00
frosch
a4756c477d
(svn r27173) -Fix [FS#6237] (r27134): Use the regular clipping functions in the sprite aligner instead of some magic.
2015-02-28 20:09:49 +00:00
frosch
a8080b6256
(svn r27134) -Codechange: Simplify GUI scaling by adding UnScaleGUI() and ScaleGUITrad().
2015-02-01 20:54:24 +00:00
alberth
107bf32953
(svn r27086) -Codechange: Simplify opening of windows by always returning a valid window pointer.
2014-12-18 18:22:23 +00:00
peter1138
17cd86d762
(svn r26942) -Codechange: Make sprite aligner useful for people making full-zoom graphics.
2014-09-30 11:35:21 +00:00
peter1138
1273ca8e8d
(svn r26941) -Codechange: Make NewGRF sprite aligner work with GUI size.
2014-09-30 11:29:23 +00:00
rubidium
e61fe21237
(svn r26506) -Codechange: replace most of vsnprintf with vseprintf
2014-04-24 19:51:45 +00:00
rubidium
0463dbdc9e
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
frosch
0aae2fd606
(svn r25946) -Add: [NewGRF Debuggnig] Inspecting other vehicles in a chain.
2013-11-07 18:17:21 +00:00
frosch
b0c2ab4501
(svn r25945) -Codechange: Use member function of NewGRFInspectWindow to resolve FeatureIndex.
2013-11-07 18:15:32 +00:00
frosch
df10f7b9f9
(svn r25943) -Fix: NewGRF inspect window in RTL mode.
2013-11-06 15:10:17 +00:00
frosch
43ec0bf0c1
(svn r25537) -Codechange: Optionally make WWT_MATRIX compute the number of rows and columns from the resize step size.
2013-06-30 14:36:31 +00:00
frosch
98fdd20f84
(svn r25531) -Codechange: Use separate function to set data of WWT_MATRIX widgets.
2013-06-30 14:32:31 +00:00
frosch
4e4e635916
(svn r25294) -Feature: Add another button to window title bars to resize the window to its default size.
2013-05-26 19:30:07 +00:00
frosch
8157a8afd8
(svn r25290) -Add: Assign string names to notable windows.
2013-05-26 19:25:01 +00:00
frosch
56e4a8c4d6
(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window after construction.
2013-05-26 19:23:42 +00:00
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
frosch
03736af2ae
(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.
2012-11-11 16:10:43 +00:00
alberth
4c9bea2a71
(svn r24692) -Cleanup: Cleanup final parts of the old resolver code.
2012-11-10 20:45:59 +00:00
alberth
e087503fd6
(svn r24690) -Codechange: Add resolver classes for industry tiles.
2012-11-10 20:44:38 +00:00
alberth
f7352871fa
(svn r24689) -Codechange: Add resolver classes for industries.
2012-11-10 20:44:10 +00:00
alberth
82e6001451
(svn r24685) -Codechange: Add resolver classes for rail types.
2012-11-10 20:41:45 +00:00
alberth
438495b433
(svn r24678) -Codechange: Introduce scope resolver base class and prepare for adding derived classes.
2012-11-10 20:37:31 +00:00
planetmaker
7c7bd7fe86
(svn r23541) -Codechange: Consistent naming of widgets in NewGRF debug window
2011-12-16 17:15:40 +00:00
truebrain
2aa774e831
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
2011-12-15 22:22:55 +00:00
rubidium
5fc4ce1eb1
(svn r23419) -Fix [FS#4864] (r23316): the sprite aligner was broken as it didn't scale properly to 'GUI' scale
2011-12-04 09:15:13 +00:00
peter1138
81598273e9
(svn r23316) -Feature: Add ability to zoom in to 2x and 4x level.
2011-11-24 12:38:48 +00:00
rubidium
bd64bf6372
(svn r23193) -Codechange: don't cast away const unneededly
2011-11-12 08:10:22 +00:00
frosch
1ad7239247
(svn r23138) -Feature: [NewGRF] Allow passing 32bit parameters to 60+x variables (using var 7B). Currently most useful for vehicle var 60.
2011-11-08 17:23:30 +00:00
terkhen
8ddb3941f7
(svn r22571) -Add: [NewGRF] Show town persistent storage in the NewGRF debug GUI.
2011-06-12 20:53:16 +00:00
terkhen
46d1a06215
(svn r22570) -Codechange: Store the GrfID of the caller when opening a parent window in the NewGRF debug GUI.
2011-06-12 20:51:38 +00:00
terkhen
00e5c1df18
(svn r22567) -Codechange: Store persistent storages inside a pool.
2011-06-12 20:47:45 +00:00
terkhen
281bed03f4
(svn r22565) -Codechange: Use helper functions for getting the persistent storage in the NewGRF debug GUI.
2011-06-12 20:41:17 +00:00
rubidium
4d5dbf5170
(svn r22410) -Document: some more bits ;)
2011-05-02 16:14:23 +00:00
terkhen
10caf391a1
(svn r22343) -Change: Remove pixel limiter for query strings.
2011-04-17 18:42:17 +00:00
frosch
ec9540a12a
(svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData().
2011-03-13 21:31:29 +00:00
frosch
f34e9ff074
(svn r22140) -Fix (r22135): I like the letter 'l' nevertheless. (Alberth)
2011-02-24 21:48:06 +00:00
frosch
19b7249ade
(svn r22135) -Fix [FS#4523]: When commands need to invalidate windows, process these events asynchronously before the next redraw. Calling window code directly from command scope uses wrong _current_company and might issue nested DoCommands() which interfer with the running command.
2011-02-23 20:54:55 +00:00
frosch
40cc3324fa
(svn r22134) -Codechange: Move ReInit() of the landinfo window from DeleteNewGRFInspectWindow() into a InvalidateData call.
2011-02-23 20:45:52 +00:00
rubidium
eb299736c1
(svn r21886) -Codechange: move documentation towards the code to make it more likely to be updated [n].
2011-01-22 09:53:15 +00:00
alberth
f5c6fd1a25
(svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint().
2010-11-26 15:22:18 +00:00
michi_cc
406b4b3873
(svn r21065) -Fix (r19733): Crash when displaying 60+x parameters in the NewGRF inspect window.
2010-10-31 16:16:28 +00:00
rubidium
a8b992f4fd
(svn r20673) -Codechange: add support for inspecting objects
2010-08-28 19:48:46 +00:00
rubidium
30f2afac9b
(svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers
2010-08-26 22:01:16 +00:00
frosch
9e538acc03
(svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR.
2010-08-12 09:16:43 +00:00
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.
2010-08-12 08:37:01 +00:00
frosch
10339c60c0
(svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar().
2010-08-12 06:44:45 +00:00
rubidium
e356cb9405
(svn r20281) -Codechange: unify case scope closure + break coding style
2010-08-01 18:53:30 +00:00
alberth
4203e641f8
(svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget().
2010-07-26 13:08:48 +00:00
rubidium
52154e097c
(svn r20013) -Fix [FS#3890]: silence some warnings / take the advice of the warnings into account
2010-06-23 14:38:17 +00:00
rubidium
ac9af8e1e1
(svn r19738) -Fix: MSVC 64 bits compile warnings
2010-04-29 18:28:24 +00:00
frosch
8a9e1d4596
(svn r19733) -Change: Set var 60+x parameters in the inspect window per feature.
2010-04-27 17:32:10 +00:00
frosch
7b30f34ecf
(svn r19731) -Add: Spritepicker to sprite alignment tool.
2010-04-26 20:35:27 +00:00
rubidium
c72e2dde60
(svn r19723) -Add: a simple sprite alignment helper. It does not store the new offsets anywhere so as soon as the sprite is reloaded the offsets are gone (use a bigger sprite cache if this happens). Also anything that reloads NewGRFs (new games, loading games or (re)applying NewGRFs) clears the sprite cache and as such resets the offsets.
2010-04-25 16:27:30 +00:00
rubidium
21883a84d7
(svn r19708) -Add: NewGRF "debugging" window and data tables; should be a useful tool for NewGRF developers to get some insights into the value of some variables
2010-04-24 13:36:29 +00:00