#137438 - relpats_eht - Sat Aug 11, 2007 9:13 pm
Can anyone name any project (it doesn't have to be for the DS, as long as I can access the source) which uses a tile-based GUI? Due to memory restrictions, my only GUI option is tiled and, although I am about half way through making my own, I find the whole thing exceedingly boring for some odd reason. I would much prefer to work on the actual game instead.
Am I stuck grinding out this particular task, or can anyone point me to a place where this wheel has already been invented?
_________________
- relpats_eht
#137444 - tepples - Sat Aug 11, 2007 9:38 pm
What do you mean exactly by "tile-based GUI"? Do you mean something that might be found in an old DOS app or a UNIX app that uses curses? What kind of memory restrictions are you talking about?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#137451 - relpats_eht - Sat Aug 11, 2007 10:17 pm
I mean a GUI that builds its entire output--widgets and all--by constructing a map of indices to much smaller images of the same size (preferably 8x8). Basically, a GUI that could run in a text background (or maybe rotation) on the DS. I am unfamiliar with old DOS and UNIX applications, but that could be what I am looking for.
I am using banks A-D for textures, so I only have H and I for the sub-screen where the GUI is located. 46kb really wouldn't suit well for a bitmaped graphics mode as far as I know.
_________________
- relpats_eht
#137456 - tepples - Sat Aug 11, 2007 11:48 pm
You might want to look at how RAC draws its text and the file selector. It uses a 16-color tile map, with tiles numbered 0 to 767 (or 0 to 599 when the same library is used on a GBA), to simulate a bitmap within a 32 KiB VRAM bank. The technique is explained in this post and a few that follow. If you need further explanation of how it works, I'll be glad to help.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#137457 - relpats_eht - Sat Aug 11, 2007 11:57 pm
That seems interesting and I will likely read into it, however, the more I think about it the more it seems to me that this post, as is just about every other I have made, has merely been an excuse for my own laziness. I think I'll just force myself to finish the half finished GUI I already have.
_________________
- relpats_eht
#137481 - lyptt - Sun Aug 12, 2007 7:37 am
You could try coding a point and click GUI Editor and have it generate all of the images/etc for you, that'd make it a bit less tedious, and probably easier to update the GUI in the future.
#137502 - relpats_eht - Sun Aug 12, 2007 6:52 pm
Oh no, I really don't care at all about drawing any GUI--that is pretty easy as it uses signals, slots, and classes--I was just bored making the GUI lib.
_________________
- relpats_eht
#137823 - LiraNuna - Thu Aug 16, 2007 5:26 am
You can fake a GUI using a static image and a palette changing, of course you'll have to build your image wisely.
_________________
Private property.
Violators will be shot, survivors will be shot again.