Usage:
call GUI_setLoadProg(percent) to set the bar
set percent to -1 to not show bar
set percent from 0~1.0 to show current load percentage
call GUI_toggle() as leaving and re-entering menu to clear the screen and come back to GUI
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.
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.
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*)
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