1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00
Commit Graph

37 Commits

Author SHA1 Message Date
Gymnasiast
3cf463b379 Name some window flag aliases 2017-07-28 13:09:32 +02:00
Kuriibo
d0db59e196 Keyboard Shortcut for Scenery Remover - #5835
Added a hotkey for the "clear scenery" window. By default, the hotkey is the "b" key (b/c bulldozer).
2017-07-26 17:23:47 +01:00
wolfreak99
2155aa26fa Begin reorder of "mouse_down" window event parameters 2017-07-13 10:15:34 +02:00
Ted John
fd2eda921f Merge pull request #5705 from Broxzier/hardcoded-values
Replace -1 with SPR_NONE for viewport sprite, sort some includes
2017-07-02 00:08:33 +01:00
Ted John
ddb96ec267 Refactor load park result
Use a C++ struct and pass that to C.
2017-07-01 01:29:35 +01:00
rwjuk
214bf3988b Implement 'missing objects' window
Implement 'missing objects' window

Basic implementation of 'bad objects' window

Add new object_load_error.c

Add object_load_error.c

Faffing about

String stuff

Stuff

Get window basically displaying

Proper col header for object

Display object types

Display file name and explanatory message

Probably about time I added myself to the dev list

Cleanup and comments

Make bad object window work with SC6

Fix whitespace, string IDs, flip core function sense

Fix spacing in string_ids.h

Fix string ID snafu

Fix HasNoInvalidObjects() sense

Attempt to refactor this to pass data properly

Move typedefs to separate header

Fix up signatures

Add park_load_result_types.h

Clean up includes and remnants of prev implementation

Split duplication into function, free invalid entries list on close

Use pointer for object_validity_result param

Fixup string IDs

Use LoadObject() directly

Use dependency injection, fix string termination

Xcode fix, make helper function static

Fix buffer overrun and memory leak

Use SDL for clipboard functionality

Fix function & variable declarations

Rework editor_read_s6() to use new park load result type

Update changelog for #5624

[ci skip]

Fix mem leak, function signature and whitespace
2017-07-01 01:28:51 +01:00
Gymnasiast
b806ded6a4 Refactor land rights window 2017-06-26 20:01:35 +02:00
wolfreak99
27f5773e4d rename event unknown_14 to viewport_rotate 2017-06-26 10:06:58 +02:00
Broxzier
9e204c11a9 Replace newly added SPR_NONE's with SPRITE_INDEX_NULL, remove new includes
needed to change its type to match .
2017-06-25 22:44:58 +02:00
Ted John
ee7c97b7be Move scancode to key to openrct2ui 2017-06-11 23:22:32 +01:00
Ted John
cbd53f920c Create IWindowManager to open window from libopenrct2 2017-06-11 17:23:51 +01:00
Ted John
c8e4e6dae1 Remove usages of MAX_PATH 2017-06-11 15:42:06 +01:00
Michał Janiszewski
61d38511bc Expand tabs to spaces
This commit expands tabs to spaces (ts=4) in all the files under src/
and test/.

Until now we had two wildly different code styles with C using tabs and
new C++ using spaces. It is painful to maintain as none of the commonly
used tools support this kind of setup and in reality is needless, as we
can simply convert all the sources to spaces and have opened PRs do the
same, where needed.

Additionally, trailing whitespace has been removed.
2017-06-06 23:46:14 +02:00
Gymnasiast
dd8a0847e1 Replace TOP_TOOLBAR_CLEARANCE with TOP_TOOLBAR_HEIGHT 2017-06-02 16:34:30 +02:00
Gymnasiast
fad3c11827 Create define for top toolbar clearance and fix #837 2017-06-01 22:22:49 +02:00
Michael Steenbeek
9b041e0018 Name some sub_hex functions 2017-06-01 22:03:14 +02:00
Michał Janiszewski
79d76759bb Fix #5516: Update copyrights for 2017
Not all files were necessarily _changed_, but all were touched, see
https://github.com/OpenRCT2/OpenRCT2/pull/4932
2017-06-01 21:55:10 +02:00
Ted John
9d24e47e6f Fix build 2017-05-29 22:38:42 +02:00
Daniel Kamil Kozar
a64e08f997 Don't flash the white frame around network status windows
This commit turns off the white border for all network status windows. This is
mostly evident when downloading a map from the server before starting a
multiplayer game, as the window is repeatedly brought to the front with a white
border. This results in needlessly flashing the border, since
window_network_status_open is called for every chunk of data received from the
network socket.
2017-05-26 15:58:54 +02:00
Hielke Morsink
bfa03583fa Apply window themes only when created or when the selected theme is changed 2017-05-17 13:19:42 +02:00
Marijn van der Werf
a0259b79d4 Use rct_widgetindex type 2017-05-03 22:43:33 +02:00
Marijn van der Werf
927190103b Use enum for tools 2017-05-03 16:09:21 +02:00
Marijn van der Werf
2b54032b8e Replace magic numbers in windows with constants 2017-05-02 14:41:53 +02:00
Marijn van der Werf
3cf725745d Add compile-time checked constants for widget ids 2017-05-02 09:58:25 +02:00
Ted John
ae8aa2d466 Fix top toolbar tool switching
Moved tool active checks to top toolbar so that it can use constants.
2017-04-30 22:33:19 +01:00
Broxzier
810103b90f Use loadsave window for selecting the heightmap 2017-04-24 23:19:51 +02:00
Michał Janiszewski
b87a8095d1 Make input buffers' sizes consistent 2017-04-14 19:17:38 +02:00
Michał Janiszewski
f3ad6de014 Update gTextBoxInput size to be at least CHAT_INPUT_SIZE large
Fixes #5365
2017-04-14 17:58:42 +02:00
Joël Troch
8167ff9678 Fix #1730: Add keyboard shortcuts for track construction (#5200) 2017-03-03 09:35:42 +01:00
Michał Janiszewski
7f48df20ec Refactor input 2017-02-27 20:20:41 +01:00
Jacob W. Breen
b1b5fa9c5a Fix #4972: Map window not updated properly when shrinking map... 2017-02-09 18:54:03 +00:00
Ted John
a0fc01d54e Clean up game init a bit more 2017-01-23 12:55:59 +00:00
Ted John
288f4782b6 Make dedicated method for window set location 2017-01-23 12:48:10 +00:00
zaxcav
e8d6cba5be Initial attempt at paintClip UI
Compiles but untested.

NOT INTENDED FOR MERGING
2017-01-22 20:45:21 +01:00
Broxzier
60603ae10a Use types from common.h 2017-01-14 12:37:31 +01:00
LRFLEW
47c532d020 Don't zoom to cursor for keyboard or toolbar inputs (#5028) 2017-01-11 17:43:11 -06:00
Ted John
25bc798ff8 Move contents of src into project sub directory 2017-01-04 17:44:12 +00:00