Commit graph

135 commits

Author SHA1 Message Date
tehpola@yahoo.com
80b3e543bd Menu now responds to input; capable of loading a ROM (SD only method tested) and playing it, exiting back to menu, but not playing anymore; menuFileBrowser should now support directories with more than GUI_TEXT_HEIGHT number of files properly 2007-12-27 08:28:58 +00:00
tehpola@yahoo.com
3d7001bd51 Committing the new code (menu, file browser) although it still doesn't work properly 2007-12-26 23:54:30 +00:00
sepp256
e13d4ba16d Added a cool splash screen!
Features:
 - analog stick translates the logo
 - C-stick rotates the logo
 - press and release A to skip the splash screen
2007-12-23 08:36:50 +00:00
sepp256
88b49ebce9 Added non-threaded version of the gui to be used with the new main().
Updated gui function calls in the new main().
2007-12-23 00:25:40 +00:00
sepp256
2047713597 Updated GUI background and logo.
Reformatted GUI and DEBUG text slightly.
2007-12-22 23:33:58 +00:00
tehpola@yahoo.com
e207ad1fa4 Implemented menuFileBrowser (not tested on the cube, but I created unit-tests to make sure it worked on my pc) 2007-12-20 06:11:35 +00:00
emukidid
d0ec47fec7 Removed some more compiler warnings (added that signed char in MIPS-to-PPC.c), added debug prints to pif,flashram and cache load blocks 2007-12-17 02:10:59 +00:00
tehpola@yahoo.com
52dd012610 Finished (save a couple fixes) menu system 2007-12-16 13:19:23 +00:00
emukidid
577209e48a DEBUG_update added to the current DEBUG printing, not tested, but should work 2007-12-16 02:30:14 +00:00
emukidid
c998573790 added a flag to print debug or not -DSHOW_DEBUG 2007-12-14 00:37:43 +00:00
emukidid
e95f07a8b4 Simplified debug printing system 2007-12-14 00:30:48 +00:00
tehpola@yahoo.com
c7832a0bae Fixing an invalid assumption I made about strncpy (thanks emu) 2007-12-13 00:46:55 +00:00
tehpola@yahoo.com
444c0a576a Fixed a bug in DEBUG.c that I believe would have prevented the full text from appearing when it was <= DEBUG_TEXT_HEIGHT 2007-12-06 00:27:21 +00:00
sepp256
b0352f07ac Implemented GUI_print colors.
Fixed a bug in GUI.c
Sometimes the GUI background doesn't update, again.  -> This will be resolved when we move GUI into the main() loop.
There is still a bug in DEBUG.c such that all DEBUG_text pointers are NULL.
2007-12-03 19:21:19 +00:00
tehpola@yahoo.com
913a7ff853 GUI color interface and implementation (probably working) 2007-12-01 00:07:53 +00:00
tehpola@yahoo.com
760351ebf5 GUI color interface (not implemented yet) 2007-11-30 22:49:48 +00:00
tehpola@yahoo.com
7e6a9618ae Again, another simple logic error in DEBUG: I forgot to incrememnt numLiveStrings when printing 2007-11-29 22:45:41 +00:00
sepp256
485a206fd6 Changed system font to be used as a texture for GUI, FPS, and DEBUG.
Fixed syntax error in DEBUG.c ln 85.
DEBUG_print doesn't seem to work because DEBUG_text seems to be all NULLs or empty strings.
Once DEBUG_print works, I'll make changes so that DEBUG is updated each VI.  Currently, DEBUG is updated every time a gfx list is executed.
2007-11-29 19:29:21 +00:00
tehpola@yahoo.com
ba43a977c9 Fixed a logic error in DEBUG_update 2007-11-28 21:39:40 +00:00
tehpola@yahoo.com
716e4d8643 Fixed a logic error and a NULL pointer exception in DEBUG 2007-11-28 21:21:02 +00:00
tehpola@yahoo.com
390c52008c Committed initial menu system (not functional) to help everyone get an idea of how things are going to work. 2007-11-16 22:41:21 +00:00
tehpola
0a4b0ca3e3 Rewrote DEBUG, it should (crosses fingers) actually work once a backend is written for it. 2007-11-11 03:22:28 +00:00
sepp256
950b76ebd6 Implemented textures for 2D games and for Mario64. Blend and Combine modes need to be finished before Mario64 will look right in game. I temporarily chose a compromise for blend/combine modes. 2007-10-31 04:25:22 +00:00
sepp256
b5ddd522e1 Fixed the culling problem in game when using the GUI.
Fixed the textfilebrowser to display the correct number of lines and look nice.  A parameter now specifies the number of lines that fit on the screen.
2007-10-25 06:38:27 +00:00
tehpola@yahoo.com
de6ece9073 Fixed the text from the next line showing up on the current line when it overflows one line in TEXT 2007-10-25 01:47:53 +00:00
sepp256
08eef29b5c Added 3D logo for gui.
Note that there is an issue with GX stalling when main() is busy.  However, I've worked around this for now so that only the 3D logo freezes.  I'll work more on this problem later.
Also, GUI_print still needs to be fixed.

Enjoy the GUI eye candy!  (Hint: try the C stick *wink*)
2007-10-23 04:39:37 +00:00
tehpola
e10cddbba7 Forgot to add NULL bytes at the end of each split string. Haven't tested 2007-10-18 17:27:18 +00:00
sepp256
b053ef8a68 Redesigned GUI so that it is now threaded.
There are bugs remaining in GUI_print:
1 - a string is not printed if ends in '\n' (I changed TEXT.c to add 1 to num_lines as a temporary fix
2 - the NULL char is not written at the end of a string, so that garbage text is shown from previous GUI_print calls
3 - the textptrs is also not sorted properly
2007-10-18 08:07:12 +00:00
tehpola
596b23a4be Changed the way I unwrap text to the obvious approach, works well now 2007-10-17 22:18:44 +00:00
tehpola@yahoo.com
db4a8a0c39 Fixed wrong return value for TEXT_split 2007-10-17 17:46:05 +00:00
tehpola@yahoo.com
376d518b35 Hopefully fixed the unwrapping of text in GUI 2007-10-17 17:30:07 +00:00
tehpola@yahoo.com
e8a0f62251 Bug fixes for TEXT.c and TLB-Cache-hash.c 2007-10-17 15:26:44 +00:00
sepp256
df7c0596ce This update includes the GX part of the GUI. I also changed some parameters in GUI and DEBUG functions. In order to display GUI for testing, uncomment the last 2 lines in main_gc.c. Also, be sure to check out the new Makefile if things don't compile. font.o is now a part of the main module. 2007-10-17 14:55:40 +00:00
tehpola@yahoo.com
b0f4236b9d DEBUG and GUI systems (may not be working properly) 2007-10-14 04:11:29 +00:00
tehpola@yahoo.com
fe5602650f Initial gui 'plugin'; interfaces for DEBUG and GUI 2007-10-12 20:49:41 +00:00