1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

173 Commits

Author SHA1 Message Date
Ted John
c5899139d7 Move scenario sources to sub directory 2016-12-16 01:25:05 +00:00
Ted John
abc3835d7b Rename openrct2.c h to OpenRCT2.c h 2016-12-14 00:32:06 +00:00
Michał Janiszewski
1ae2ca54f7 Sort includes 2016-12-01 16:03:16 +01:00
Michał Janiszewski
54e622659d Extract common parts from rct2.h to common.h 2016-12-01 16:03:16 +01:00
Michał Janiszewski
3f7fd56328 Remove trailing whitespace in sources 2016-11-13 20:32:55 +01:00
Michał Janiszewski
a8b8b04dd4 Unify key modifiers definition 2016-11-13 19:36:03 +01:00
Alexander Overvoorde
55d3ab8cc8 Fix #3062: Backtick ` opens console when inputting text into chat or other things
For some reason SDL_IsTextInputActive() returns SDL_TRUE before any call to SDL_StartTextInput(). This may be an SDL bug, but I've worked around it for this feature by also checking if there is a valid gTextInput.buffer. I've made an exception for the console itself, where the backtick should probably continue to close it.
2016-10-12 21:52:33 +01:00
Ted John
33a6c4fce3 Refactor cursors to C++ and improve isolation 2016-10-11 18:23:49 +01:00
duncanspumpkin
c919a71e9e Fix #4484. Shortcuts no longer run in textboxes
Issue was causing shortcuts to be run when a text box was in use. This would end up causing a crash on widget text boxes and cause annoyance for dialog text boxes.
2016-09-25 10:23:54 +01:00
Ted John
2e0bfc9369 Allow more keyboard shortcuts on title screen 2016-09-25 00:09:55 +01:00
Michael Steenbeek
78a38b07b9 Merge pull request #3819 from marcovmun/Fix-3571
Fix #3571 and made scrolling in windowed mode more generic
2016-09-06 22:57:01 +02:00
Ted John
d10fdd4904 Remove unread variable 2016-09-05 20:54:22 +01:00
Ted John
9d49dbd782 Integrate gCurrentCursor 2016-09-05 20:53:30 +01:00
Ted John
1338f7cedd Remove mouse state globals, use parameters instead 2016-09-05 20:50:33 +01:00
Ted John
029da58459 Integrate _clickRepeatTicks 2016-09-05 20:42:08 +01:00
Ted John
9966ee9092 Clean up game_handle_input 2016-09-05 20:30:06 +01:00
Luke Lau
c05eef02d6 Fix #3809: No tooltip delay 2016-08-21 15:47:20 +01:00
Michał Janiszewski
b16b6814aa Fix pointer types for 64 bit builds 2016-08-01 23:14:42 +02:00
Marijn van der Werf
5204fb0ce9 Clean up string and sprite ID's (#3977) 2016-07-14 14:07:49 +02:00
Michał Janiszewski
644a36a310 Fixes to -Wall compilation
By default, not all warnings are enabled. This change makes sure that
the project compiles correctly with following options turned on:

    -Wall -Wno-unused-but-set-variable -Wno-missing-braces \
    -Wno-unknown-pragmas -Wno-unused-function
2016-06-20 13:46:27 +01:00
Wirlie
0209fcc9bf Improve horizontal scrollbars. 2016-06-19 19:23:46 -05:00
Wirlie
20fce67e9a Improve vertical scrollbars. 2016-06-19 15:52:40 -05:00
Josue Acevedo
5e5ec75eea Fix #2754: Dragging scrollview fails when scaled 2016-06-19 13:15:39 +01:00
Marco van Munster
120ae883d4 Fix #3571 and made scrolling in windowed mode more generic 2016-06-04 18:40:06 +02:00
Michał Janiszewski
9d5827520a Replace shifting with multiplication when dragging (#3789)
`dx`, `dy` can be signed negative values, shifting them left is
undefined.
2016-05-31 22:03:31 +01:00
Ted John
781c422c76 integrate tick variables 2016-05-20 22:56:45 +01:00
Ted John
8efe699754 integrate gMapTooltipFormatArgs 2016-05-18 00:02:26 +01:00
Ted John
8d4e4ed0e9 remove unread RCT2_GLOBALs 2016-05-17 23:39:37 +01:00
janisozaur
658e877955 Name all the typdef-ed structs (#3581) 2016-05-12 22:57:40 +01:00
janisozaur
68bad6505c Add and correct licence headers to all sources (#3108) 2016-05-04 18:24:41 +01:00
Ted John
98f732aaf7 integrate screen variables (#3411) 2016-04-24 00:36:39 +01:00
Ted John
4cdb2df9dc integrate screen variables 2016-04-23 11:16:46 +01:00
Ted John
63f008566c Merge branch 'master' into develop 2016-04-15 23:25:45 +01:00
Ted John
84edd049d9 integrate current tool variables:
- gCurrentToolId
- gCurrentToolWidget
2016-04-15 18:26:47 +01:00
IntelOrca
89ad0cc769 store windows in openrct2 memory and increase max
Allocate a bigger window list and viewport list in OpenRCT2 static memory and move over all references from RCT2.
This also removes the 'active' viewport pointer list and instead changes everything to just enumerate the whole viewport list
2016-04-14 23:00:35 +01:00
IntelOrca
de79bd4599 fix #3294: crash when closing a window being dragged 2016-04-14 17:41:06 +01:00
IntelOrca
e6ca13d32c fix #3181: key shortcuts work on multiplayer chat 2016-03-27 12:50:32 +01:00
Michał Janiszewski
aa8437cb9d Minor fixes 2016-02-26 20:49:01 +01:00
Michał Janiszewski
6b514d1e3a Fix possible issues highlighted at higher warn levels
Mostly possibly uninitialized values and signedness
2016-02-26 12:54:00 +01:00
IntelOrca
13921111f3 remove old RCT2 cursor code and RCT2 error location variable 2016-02-16 20:30:43 +00:00
IntelOrca
5cf0c4bd07 remove commented out callproc/funcs 2016-02-16 20:10:24 +00:00
Alexander Overvoorde
ad05d0b5f0 Fix enter not working for text inputs in the title screen (fixes #2941) 2016-02-15 02:45:57 +01:00
Michał Janiszewski
9ff064ff7f On scroll widgets only display tooltip in main area
This makes sure tooltip is only displayed in the "view" area of scroll
widget. Other areas are scrollbars and since they cannot have custom
tooltips, it should not affect any functionality.

Fixes #2848.
2016-01-31 13:42:54 +01:00
IntelOrca
e3f0d22988 invalidate dropdown when highlighted index is set to default 2016-01-25 18:12:13 +00:00
IntelOrca
1ffee2435a fix #2363: show default item highlight, refactor 2016-01-17 23:37:14 +00:00
Marijn van der Werf
6568798af7 Use globals instead of addresses where applicable 2016-01-15 21:01:49 +01:00
Marijn van der Werf
98b5ad1bf4 Replace known addresses with constants 2016-01-15 21:01:34 +01:00
IntelOrca
cdee534eb1 use SDL2's platform defines to normalise platform guards 2016-01-14 20:12:43 +00:00
Marijn van der Werf
623952d966 Only perform command key state detection on OS X 2016-01-12 22:53:01 +01:00
Marijn van der Werf
72739e8cd8 Allow setting CMD as shortcut key 2016-01-12 22:29:36 +01:00