Commit Graph

29 Commits

Author SHA1 Message Date
jeffman 6ca5f8543a Custom control codes force a window draw
Also made the cash window one tile shorter
2018-12-09 21:15:42 -05:00
jeffman 442d52054b Fix cash window formatting (when pressing B)
Does not fix the cash window that pops up when e.g. accessing the ATM.
2018-12-06 23:07:35 -05:00
jeffman aa4191aec2 bin_to_bcd can be called from C
Remove old cash window formatting code (we'll be rewriting it in C)
2018-12-06 23:05:00 -05:00
jeffman bd7dff7d47 Fix printing ATM balance to main text window 2018-12-06 20:44:08 -05:00
jeffman e64b58d89e Number menu prints and clears properly 2018-12-04 23:52:35 -05:00
jeffman a7ffd1059d Number selection menu fixes
Dollar sign, initial zeroes, and 00 symbol all display properly now
2018-12-04 22:22:53 -05:00
jeffman debdea78bd Add print_menu_string
This essentially does the same thing as print_string, but with some
additional behaviour:
- Custom control codes (5F and 60) are checked
- Will automatically update the window's cursor_delta value
- Updates the window's text X values
2018-12-01 00:50:29 -05:00
jeffman 5db8ff5901 Some type changes
Use stdbool; change int* to byte* for the window text pointers; put
typedefs into types.h
2018-12-01 00:43:22 -05:00
jeffman 26ad3435c0 Add missing function signature 2018-11-29 21:50:06 -05:00
jeffman fcfbeb2b7a Add print_blankstr_window
Same as print_blankstr, but relative to a window.
2018-11-27 23:15:28 -05:00
jeffman 1d3ef8de13 Factored out some magic numbers 2017-04-16 19:25:11 -04:00
jeffman a633b9d643 Added code to draw equip window header 2017-04-16 19:15:22 -04:00
jeffman 6f448b8f2c Added some clearing routines 2017-04-16 19:14:02 -04:00
jeffman 1264803232 Imported m2_strlookup 2017-04-16 19:13:32 -04:00
jeffman 3ff08bb07f Some code reformatting 2017-04-16 19:07:19 -04:00
jeffman 87d792f156 Moved window header code to C 2017-04-15 23:38:32 -04:00
jeffman 3bc7fd417e Fixed YOU WON! graphics 2017-04-15 13:36:42 -04:00
jeffman 21c703def1 Made argument types more consistent 2017-04-15 13:31:53 -04:00
jeffman bc29d81c05 Generalized print_character
Now has the option to pass a get_tile callback for different coordinate
systems. Can also turn off tilemap editing.
2017-04-15 12:49:47 -04:00
jeffman e49701cb5e Centralized character decoding 2017-04-15 12:48:33 -04:00
jeffman 89a848376a Fixed some VWF bugs 2017-04-13 18:11:46 -04:00
jeffman 72f37b4dfb Moved print_space to vwf.c 2017-04-11 17:39:56 -04:00
jeffman b46539dd34 Moved a bunch of tile clearing/copying code to C 2017-04-11 17:16:58 -04:00
jeffman 5b98d5d406 Added CpuFastSet stub 2017-04-11 17:12:20 -04:00
jeffman 8aac0f707e Mark extern ROM tables as const 2017-04-11 12:50:41 -04:00
jeffman c5de0ebb16 Moved weld_entry to vwf.c 2017-04-11 01:16:14 -04:00
jeffman d7ae1edd3f Ported core VWF code to C 2017-04-10 19:41:21 -04:00
jeffman ff59fee5ca Cleaner syntax 2017-04-08 05:01:02 -04:00
jeffman 2d0a5997b8 Proof of concept by porting get_tile_number to C 2017-04-08 02:22:38 -04:00