by Roody_Yogurt » Sun Mar 04, 2012 12:33 pm
So yesterday, I thought it was time to finally upload some of my library contributions to the IF Archive, including my menu update. Of course, as luck would have it, later that day, while putting menus into my WIP, I realized that colors are messed up when people actually define the hugolib-provided MENU_TEXTCOLOR, MENU_BGCOLOR, MENU_SELECTCOLOR, and MENU_SELECTBGCOLOR global variables.
Fortunately for my ego, part of the problem was due to the original menu routine. Like, if you have a non-black default background, in CZK, when you go to the in-game options menu, menu options are on "islands" of color, instead of the whole page.
Unfortunately, the "islands" effect sometimes looks kind of cool so I feel bad about turning it off completely, but I guess consistency is the more important thing here.
Anyhow, I've updated newmenu.h both to fix this issue, and I also provided some color-holding properties for menu_category objects so you can have connected menus have different color schemes. I haven't been able to decide whether this is overkill.
I think I'm going to sit on this one a bit longer before I upload it to HbE and the IF archive, just in case there are some more tweaks ahead, but you guys can take a look at it now:
http://roody.gerynarsabode.org/JC/test/newmenu.h
So yesterday, I thought it was time to finally upload some of my library contributions to the IF Archive, including my menu update. Of course, as luck would have it, later that day, while putting menus into my WIP, I realized that colors are messed up when people actually define the hugolib-provided MENU_TEXTCOLOR, MENU_BGCOLOR, MENU_SELECTCOLOR, and MENU_SELECTBGCOLOR global variables.
Fortunately for my ego, part of the problem was due to the original menu routine. Like, if you have a non-black default background, in CZK, when you go to the in-game options menu, menu options are on "islands" of color, instead of the whole page.
Unfortunately, the "islands" effect sometimes looks kind of cool so I feel bad about turning it off completely, but I guess consistency is the more important thing here.
Anyhow, I've updated newmenu.h both to fix this issue, and I also provided some color-holding properties for menu_category objects so you can have connected menus have different color schemes. I haven't been able to decide whether this is overkill.
I think I'm going to sit on this one a bit longer before I upload it to HbE and the IF archive, just in case there are some more tweaks ahead, but you guys can take a look at it now:
http://roody.gerynarsabode.org/JC/test/newmenu.h