1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 03:23:15 +01:00
Commit Graph

795 Commits

Author SHA1 Message Date
Marco Costa
73dda39374 Small refactor on climate_update
* Extracted the logic of stepping "weather level" variables.
* Simplified the rain stepping code, as "rain level" is always between 0 and 2.
2014-07-22 00:05:32 -04:00
Marco Costa
54933646f1 Implement draw_rain_window and call_draw_rain_func
Implement procedure (0x006842AF) as two methods: draw_rain_window and
call_draw_rain_func.
Avoid using global variable 0x00EE7850 by passing it as a parameter:
draw_rain_func. This global variable was only used by these procedures.
Rain has some visual artifacts in RCT2, specially when using game
windows. This implementation matches the original game, and thus has the
same artifacts.
2014-07-20 02:50:06 -04:00
Duncan Frost
5f030c6b1e Cleaned up code to remove goto. 2014-07-19 12:04:32 +01:00
Duncan Frost
6727c216e4 fixed bug due to incorrect function calls 2014-07-19 11:55:34 +01:00
Duncan Frost
c4f49bb7cd Added missing case still not working 2014-07-19 11:22:46 +01:00
Duncan Frost
00381d9313 Deleted twice reversed function added note to prevent this happening. Labled global vars where noticed. 2014-07-19 11:22:45 +01:00
Duncan Frost
cbb913c8af Added final part of input_scroll_left. Requires more testing 2014-07-19 11:22:44 +01:00
Duncan Frost
3cc9863fc5 Added switch for scroll state 2014-07-19 11:22:43 +01:00
Duncan Frost
16860a8817 Added sub_6E9F92 determines scroll action type 2014-07-19 11:22:42 +01:00
Duncan Frost
d8727e8998 Started reverse of scoll_left 2014-07-19 11:22:41 +01:00
Ted John
7d16c653cb Merge pull request #214 from adrian17/master
Use address names from addresses.h
2014-07-19 11:12:46 +01:00
Ted John
a2240932e2 Merge pull request #213 from duncanspumpkin/game_cleanup
Implemented check affordability and clean up
2014-07-19 11:12:36 +01:00
Ted John
01e62c1769 Merge pull request #212 from marcotc/rain
Implemented draw_rain_animation
2014-07-19 11:12:30 +01:00
Ted John
fb76c022e8 Merge pull request #211 from duncanspumpkin/viewport_create
Viewport create
2014-07-19 11:12:20 +01:00
Ted John
94bb349d24 Merge pull request #144 from MaciekBaron/master
Labelling addresses, adding initial happiness calculation
2014-07-19 11:11:16 +01:00
Marco Costa
a13da0f7ec Rename variables in draw_rain_animation
Renamed variables to better represent their meaning.
Use global g_window_list instead of manually fetching it.
2014-07-18 19:36:06 -04:00
adrian17
843c45aafc Use address names from addresses.h 2014-07-18 22:28:15 +02:00
Marco Costa
2130c85e90 Implemented draw_rain_animation
Implemented the first level of the rain drawing routine.
Still not sure what the parameter means, so I keep its register name.
2014-07-17 23:29:39 -04:00
Duncan Frost
a51d057ded Fixed bugs related with last commit 2014-07-17 18:41:23 +01:00
Duncan Frost
2bbcf146c6 Finished first draft of viewport_create 2014-07-17 17:59:49 +01:00
Duncan Frost
9d9f3424cf Added error_string_quit and a litle part of viewport_create 2014-07-16 21:39:39 +01:00
Duncan Frost
9e566b876b Added stub viewport_paint function 2014-07-15 18:11:32 +01:00
Duncan Frost
52f96a262c Fixed small bug causing a crash when resizing. 2014-07-15 17:56:42 +01:00
Duncan Frost
05a71929b6 Fix small errors. Does not work with window resize. 2014-07-15 17:40:05 +01:00
Duncan
3506899261 Now uses viewport functions. 2014-07-15 14:59:43 +01:00
Duncan
c5c4127194 Add description comment for viewport_create 2014-07-15 14:58:43 +01:00
Duncan Frost
7a60b0d53b Implemented check affordability and cleanedup some function calls to use openrct 2014-07-14 19:46:45 +01:00
Ted John
9de7af5075 Merge pull request #208 from duncanspumpkin/window_tooltip_cleanup
Window tooltip cleanup
2014-07-14 07:31:27 +01:00
Ted John
5a6d40b82e Merge pull request #206 from AngeloG/formatting
Consistency in window_dropdown_show_image in relation to 0x009DE518 flags
2014-07-14 07:31:18 +01:00
Ted John
830f881f3c Merge pull request #209 from duncanspumpkin/viewport_render
Viewport render
2014-07-14 07:30:54 +01:00
Duncan Frost
0d144540cc Fixed gfx_wrap_string error. Cleanedup tooltip 2014-07-13 13:10:14 +01:00
Duncan Frost
5232fc378b Trying to use the gfx wrap functions. 2014-07-13 12:24:27 +01:00
Angelo Geels
51d9db9f73 Consistency in window_dropdown_show_image in relation to 0x009DE518 flags 2014-07-13 13:11:38 +02:00
Angelo Geels
3e30e147cf Formatting 2014-07-11 21:49:01 +02:00
Angelo Geels
4e7883f20b Implemented input_vscrollbar_bottom_trough 2014-07-11 21:43:51 +02:00
Angelo Geels
e691f86780 Implemented input_vscrollbar_top_trough 2014-07-11 21:39:54 +02:00
Angelo Geels
e01cce4918 Implemented input_hscrollbar_right_trough 2014-07-11 21:36:11 +02:00
Angelo Geels
f3caea6bae Some consistency cleanup 2014-07-11 21:22:26 +02:00
Angelo Geels
3bca6b699a Implemented input_hscrollbar_left_trough 2014-07-11 21:21:17 +02:00
Duncan Frost
87fe239ac0 Switched to g_viewport_list 2014-07-11 19:00:26 +01:00
Duncan Frost
144470e5aa Finished viewport_render decompile. 2014-07-11 18:32:32 +01:00
Angelo Geels
0081a7581c Implemented scrollbar buttons left, right, up, down
input_hscrollbar_leftbutton, input_hscrollbar_rightbutton,
input_vscrollbar_topbutton, input_vscrollbar_bottombutton
2014-07-11 14:41:42 +02:00
Duncan Frost
3a3cbbc7c4 Fixed another small window bug and changed to using global window list var 2014-07-10 21:22:32 +01:00
Ted John
ca82c74244 Merge pull request #201 from JeroenSack/master
Found a little inconsistency in window_find_by_id
2014-07-10 07:47:44 +01:00
Jeroen Sack
540bbc18b4 bug in window_find_by_id
Looking at the assembly it seems there is an inconsistency in the code.
2014-07-09 23:03:55 +02:00
Angelo Geels
981141b03f Fix bottom toolbar not invalidating on finance payment 2014-07-09 17:00:39 +02:00
Duncan Frost
fbd4476a5f Fix issue in non MSC_VER 2014-07-07 19:10:04 +01:00
Duncan Frost
b383280c3c Fixed bottom toolbar tooltip issues. Fixes #196 2014-07-07 19:07:46 +01:00
Duncan Frost
62398e14ca Added missing function calls 2014-06-29 15:55:02 +01:00
Duncan Frost
8b97931491 Swapped sprite list to use global var 2014-06-29 14:51:18 +01:00