by Metalor Tue Apr 17, 2012 12:27 pm
Well I did what you said to do and going from there I was able to enable the feature I wanted, however I have a few more bugs that have arisen that I need help with (they're on this subject, so I'll post them here).
A picture for clarity:
Anyways, the bugs should be apparent right away.
First, the shading tab is outside of the controls selection box (and the cursor will go outside that box as well, causing further image distortion).
And second, the Light that signifies of the shading tab is active or deactive is next to the Control customization tab instead of the shading tab.
I need to fix both of these, but I'm also going to be adding another controls menu, so I need to extend the dark green box surroudning the menu items so that there is room for another item (this one, placed directly below the Customize Controls tab, and above the Shading Toggle which will be located at the bottom of the menu altogether).
Here's the code for my DrawCtlScreen:
- Code:
void
DrawCtlScreen (void)
{
int i, x, y;
#ifdef JAPAN
CA_CacheScreen (S_CONTROLPIC);
#else
ClearMScreen ();
DrawStripes (10);
VWB_DrawPic (80, 0, C_CONTROLPIC);
VWB_DrawPic (112, 184, C_MOUSELBACKPIC);
DrawWindow (CTL_X - 8, CTL_Y - 5, CTL_W, CTL_H, BKGDCOLOR);
#endif
WindowX = 0;
WindowW = 320;
SETFONTCOLOR (TEXTCOLOR, BKGDCOLOR);
if (IN_JoyPresent())
CtlMenu[CTL_JOYENABLE].active = 1;
if (MousePresent)
{
CtlMenu[CTL_MOUSESENS].active = CtlMenu[CTL_MOUSEENABLE].active = 1;
}
CtlMenu[CTL_MOUSESENS].active = mouseenabled;
DrawMenu (&CtlItems, CtlMenu);
x = CTL_X + CtlItems.indent - 32;//24;
y = CTL_Y + 3;
if (mouseenabled)
VWB_DrawPic (x, y, C_SELECTEDPIC);
else
VWB_DrawPic (x, y, C_NOTSELECTEDPIC);
y = CTL_Y + 29;
if (joystickenabled)
VWB_DrawPic (x, y, C_SELECTEDPIC);
else
VWB_DrawPic (x, y, C_NOTSELECTEDPIC);
//x = CTL_X + CtlItems.indent - 24;
y = CTL_Y + 40; // LinuxWolf: 40 will need to be adjusted to something else
if (shadingenabled)
VWB_DrawPic (x, y, C_SELECTEDPIC);
else
VWB_DrawPic (x, y, C_NOTSELECTEDPIC);
//
// PICK FIRST AVAILABLE SPOT
//
if (CtlItems.curpos < 0 || !CtlMenu[CtlItems.curpos].active)
{
for (i = 0; i < CtlItems.amount; i++)
{
if (CtlMenu[i].active)
{
CtlItems.curpos = i;
break;
}
}
}
DrawMenuGun (&CtlItems);
VW_UpdateScreen ();
}
Can anyone help me with this? I'd be immensely greatful.