Ted John
4bf9748143
fix drawing of object preview
...
We can't use dpi->width and dpi->height as they only define the clip region, not the viewport
2016-07-11 22:09:15 +01:00
Ted John
5785020b07
fix clip size of preview
2016-07-09 01:28:57 +01:00
Ted John
488da7942c
use object_manager_get_loaded_object instead
2016-07-08 22:58:38 +01:00
Ted John
a47c039f22
remove lots of old object code
2016-07-08 22:58:38 +01:00
Martin Černáč
3bdc06dc25
Refactor hard-coded strings to use string_ids.h constants (and couple sprites too) ( #3658 )
2016-05-18 21:51:37 +01:00
Ted John
1cc35dfe6e
integrate common format args
2016-05-15 22:03:53 +01:00
Ted John
3d47f9869f
write get entry methods for scenery and path
2016-05-15 16:09:26 +01:00
janisozaur
68bad6505c
Add and correct licence headers to all sources ( #3108 )
2016-05-04 18:24:41 +01:00
Ted John
489ea66cc9
add global macro for gCurrentFontSpriteBase and gCurrentFontFlags
2016-04-25 23:00:58 +01:00
Ted John
4cdb2df9dc
integrate screen variables
2016-04-23 11:16:46 +01:00
duncanspumpkin
957d5a9735
Fix #2324 . Inventions list changes no longer break scenery window.
...
Issue was caused by the invention list flags being passed into the finish research function and interpreting always researched scenery sets as rides. This could also cause crashes if there were more scenery sets than rides researched.
2016-02-29 22:02:03 +00:00
Michał Janiszewski
14bff0c66f
Rename rct_ride_type to rct_ride_entry
2016-02-25 13:33:19 +01:00
Michał Janiszewski
6d6f9f3c23
Refactor rides to be only accessible with getters
...
This changes how rides are accessed from macros to getter functions.
2016-01-23 01:13:36 +01:00
IntelOrca
40a4bd1fa8
remove old object_paint calls, replace with new
2016-01-07 19:01:19 +00:00
IntelOrca
586e5ef9cd
integrate variable: gPressedWidget
2016-01-05 21:46:38 +00:00
IntelOrca
88c391120a
integrate tooltip variables
2016-01-05 00:02:23 +00:00
Michał Janiszewski
8a5d066efe
Fix strict aliasing violations
...
Compiler only guarantees proper accesses to variables when using
variable's native type or `char` (i.e. single byte type) [1].
This commit fixes violations of this rule. In most cases changing code
to a simple cast was enough, some required a bit deeper modifications.
This fixes #2596 .
[1] http://blog.qt.io/blog/2011/06/10/type-punning-and-strict-aliasing/
2015-12-31 13:27:26 +01:00
Aaron van Geffen
020334fa18
Name rct_window's var_494: highlighted_item.
2015-12-26 18:46:19 +09:00
Kyle Kirby
caf07c2064
Clean up the comments a litte
...
• Make comment heads be /**
• Make rct2 addresses be double spaced indented
• Make there be a space afte rct2: and the address
• Make single-line rct2 addresses be full block comments
• Move description of method to top of comment
2015-12-11 16:19:46 -06:00
duncanspumpkin
5bd3b8d6af
Implement util_rand due to rand having a poor range on some platforms
2015-11-20 21:40:36 +00:00
IntelOrca
48e3d70e57
refactor colour maps
2015-11-08 18:55:32 +00:00
Alexander Overvoorde
01793e11b7
Replace RCT2_GLOBAL magic numbers with address identifiers and string ids
2015-10-29 09:44:46 +01:00
Michał Janiszewski
7d0ce00bab
Strip all whitespace
2015-10-20 20:48:51 +02:00
Jonathan Haas
ae82ffcd96
Rename window flags
2015-10-03 17:20:53 +02:00
Gymnasiast
8490a19328
Don't apply select by track type to research, fixes #1733
2015-08-31 20:20:36 +02:00
Gymnasiast
d04d2f5069
Silently update invented items when using Inventions List in-game
2015-08-12 16:21:16 +02:00
IntelOrca
d228d13918
implement utf8, part 23 (bug fixes)
2015-08-01 16:40:15 +01:00
IntelOrca
f906391c9d
remove registers from window events and changed to typed signatures
2015-07-10 01:39:16 +01:00
Gymnasiast
ca1b88fc53
Don't modify flags when in select_by_track_type mode; make it switchable in-game again.
2015-06-25 11:46:17 +02:00
Gymnasiast
a6225ebf06
Add option to select by track type (RCT1 style); correct misspellings of 'separate'
2015-06-24 12:41:19 +02:00
IntelOrca
dc3fe2a6c8
remove commented out CALLPROCs and CALLFUNCs
2015-06-09 15:09:45 +01:00
Duncan Frost
4f03b0c997
Refactor of research.
...
Fix bug that would cause a crash on a scenario that had rides with same base type
2015-06-07 19:19:17 +01:00
Duncan Frost
9ad775625a
Fix small bugs in the inventions window.
...
I think there might have been a case where the list could get corrupted that this may prevent.
2015-06-07 19:19:16 +01:00
Duncan Frost
97966ac707
Implemented scenery_set_setup for research.
...
I've also labelled ride_type->flags.
2015-06-07 19:19:16 +01:00
Duncan Frost
cd22f9bd08
Implement the reset ride research function
2015-06-07 19:18:50 +01:00
Duncan Frost
47e41b5d82
Fix bug introduced in previous bug fixing!
...
Accidently switched two functions. Small refactor as well.
2015-06-04 20:15:27 +01:00
danidoedel
c481905d0a
fix research label position
2015-06-04 17:34:47 +02:00
Duncan Frost
c9543005de
Fix small issues with scrolling.
...
I've found the cause of the cursors not correctly changing. It would appear ebx is popped to its previous value as the call function returns. This causes the cursor value to never change. This can be solved when all windows are complete. Fixes points i, ii, iii, iv of #1127 (Fixed by reseting scroll positions when the height is 0. And actually passing the scroll index to the calling function)
2015-06-03 20:54:28 +01:00
Robert Jordan
765bf976ee
Renamed Colour Schemes to Themes
...
Themes window now opens to settings/presets tab so it's less confusing
for others.
Can no longer change default presets, you get a warning when you try.
now stores themes in themes folder.
Now clips theme names.
2015-06-01 11:02:09 -04:00
Robert Jordan
dc1e38180e
Starting work on colour schemes config settings
2015-05-29 12:04:53 -04:00
Adrian Wielgosik
fa5bee8c40
Fix "research group" being displayed when no item is selected
2015-03-16 13:58:07 +01:00
IntelOrca
66c302eb3d
use new create_window_centred function
2015-02-14 18:26:59 +00:00
IntelOrca
a66b29076b
move osinterface code to shared or windows
2015-02-12 20:51:40 +00:00
IntelOrca
a319bb15e2
fix compile error for GCC
2014-12-16 11:37:46 +00:00
IntelOrca
d7212c1b14
implement inventions list window, fixes #630
2014-12-16 01:24:13 +00:00
IntelOrca
8e3ee3f7e9
implement bare minimum so that close button is implemented on object selection window, partial fix for #433
2014-11-24 23:05:35 +00:00