Ted John
8b2eb8a13e
Move screen variables to OpenRCT2.h
2017-07-29 20:29:29 +01:00
Gymnasiast
8473a40bc4
Make gDropdownItemsChecked and gDropdownItemsDisabled static
2017-07-24 14:10:23 +02:00
Gymnasiast
50ba63df0e
Clean up dropdowns
...
Uses constants in more places.
Most of the changes were taken from a PR by @wolfreak99
2017-07-24 10:33:46 +02:00
wolfreak99
ac81072597
Fix hold down speed
2017-07-08 10:36:28 +02:00
Luke Lau
027be6010d
Fix #5583 : Right click to drag camera after menu ( #5748 )
...
Reset the input state to normal after receiving a right click outside of a dropdown.
2017-07-01 01:35:51 +01:00
Gymnasiast
f2f8cec944
Clean up dropdowns
2017-06-20 13:38:51 +02:00
Ted John
31c2b9c6b7
Move remaining SDL in input.c to openrct2ui
2017-06-11 21:18:56 +01:00
Ted John
7a86fc2cb5
Link back shortcut functions
...
Some of this will be temporary until input and windows move over to libopenrct2ui.
2017-06-11 17:23:52 +01:00
Ted John
dfa1b47a4f
Move keyboard shortcut code to libopenrct2ui.
2017-06-11 16:52:15 +01:00
Ted John
9cd8fd1498
Remove need of SDL in chat.c
2017-06-10 16:19:46 +01:00
Ted John
a9e5a58d28
Remove need of SDL in console.c
2017-06-10 16:13:07 +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
Richard Jenkins
a38d0711a6
Remove declaration of function never defined (sub_6EDE88)
2017-06-06 00:47:08 +01:00
Richard Jenkins
b62bb1db6d
Name sub_6ED990()
2017-06-06 00:47:08 +01:00
Ted John
e048f52738
Fix #5537 : SDL_Init(SDL_INIT_VIDEO) is called even when using --headless option
...
Create a dummy UI context and use that if headless is enabled. Some extra guards added to deal with the return values from the dummy class. It may be temporary until the window and input code is moved to openrct2ui.
2017-06-02 19:08:03 +01: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
3fcd42fe2b
Move more window code to UiContext
2017-05-29 22:38:43 +02:00
Ted John
0440c3deea
Clean up audio.cpp
2017-05-29 22:38:43 +02:00
Ted John
bd9839ff50
Get the game working
...
Mostly just needed to resolve screen size which is now retrieved via ui context.
2017-05-29 22:38:43 +02:00
Ted John
f736e8ff96
Move more platform code to UiContext
2017-05-29 22:38:42 +02:00
Ted John
5885cb646f
Start moving window logic to UI project
2017-05-29 22:38:42 +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
CraigCraig
58deb3a54a
Grammar, readability, and spelling fixes
...
[ci skip]
2017-05-11 11:45:59 +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
Michał Janiszewski
92d3e219d2
Add parentheses to enforce order of evaluation in input.c
2017-03-18 23:23:23 +01:00
Michał Janiszewski
fa65fd1481
Reduce scope of variables in input.c, rect.c
2017-03-18 23:23:23 +01:00
Michał Janiszewski
7f48df20ec
Refactor input
2017-02-27 20:20:41 +01:00
Ted John
fb2c835d52
Include new config header
2017-02-18 15:45:10 +00:00
duncanspumpkin
fef7445f0c
Use flags where known. Refactor large 3d signs slightly
2017-02-04 08:12:44 +00:00
Aaron van Geffen
990b9b8708
Fix #5005 : The Right Arrow in Horizontal scroll bars does not work anymore. ( #5107 )
...
Both horizontal and vertical scrollbars had a malfunctioning widget: both the
right and bottom widgets weren't fired properly.
The bug was less noticeable for vertical scrollbars, as clicking the widget would
be treated as clicking empty space, which did not happen for the horizontal
scrollbar.
This patch fixes the underlying inconsistencies, making sure the widgets for
both types of scrollbars work -- when using either scrollbar, or when combined.
2017-01-23 19:06:53 +01:00
Broxzier
60603ae10a
Use types from common.h
2017-01-14 12:37:31 +01:00
Ted John
25bc798ff8
Move contents of src into project sub directory
2017-01-04 17:44:12 +00:00