mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 01:11:28 +00:00
Fix issue where vertical mouse aiming couldn't be enabled in the menu if in_aimmode was set to 1.
git-svn-id: https://svn.eduke32.com/eduke32@6022 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e8e34de6ef
commit
13c8ef2e93
1 changed files with 6 additions and 11 deletions
|
@ -763,6 +763,11 @@ static MenuLink_t MEO_MOUSESETUP_BTNS = { MENU_MOUSEBTNS, MA_Advance, };
|
||||||
static MenuEntry_t ME_MOUSESETUP_BTNS = MAKE_MENUENTRY( "Button assignment", &MF_Redfont, &MEF_BigOptionsRt, &MEO_MOUSESETUP_BTNS, Link );
|
static MenuEntry_t ME_MOUSESETUP_BTNS = MAKE_MENUENTRY( "Button assignment", &MF_Redfont, &MEF_BigOptionsRt, &MEO_MOUSESETUP_BTNS, Link );
|
||||||
static MenuRangeFloat_t MEO_MOUSESETUP_SENSITIVITY = MAKE_MENURANGE( &CONTROL_MouseSensitivity, &MF_Redfont, .5f, 16.f, 0.f, 32, 1 );
|
static MenuRangeFloat_t MEO_MOUSESETUP_SENSITIVITY = MAKE_MENURANGE( &CONTROL_MouseSensitivity, &MF_Redfont, .5f, 16.f, 0.f, 32, 1 );
|
||||||
static MenuEntry_t ME_MOUSESETUP_SENSITIVITY = MAKE_MENUENTRY( "Sensitivity:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_MOUSESETUP_SENSITIVITY, RangeFloat );
|
static MenuEntry_t ME_MOUSESETUP_SENSITIVITY = MAKE_MENUENTRY( "Sensitivity:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_MOUSESETUP_SENSITIVITY, RangeFloat );
|
||||||
|
|
||||||
|
static char const *MEOSN_MOUSESETUP_AIM_TYPE [] ={ "Toggle", "Hold" };
|
||||||
|
static MenuOptionSet_t MEOS_MOUSESETUP_AIM_TYPE = MAKE_MENUOPTIONSET(MEOSN_MOUSESETUP_AIM_TYPE, NULL, 0x2);
|
||||||
|
static MenuOption_t MEO_MOUSESETUP_MOUSEAIMINGTYPE = MAKE_MENUOPTION(&MF_Redfont, &MEOS_MOUSESETUP_AIM_TYPE, &ud.mouseaiming);
|
||||||
|
static MenuEntry_t ME_MOUSESETUP_MOUSEAIMINGTYPE = MAKE_MENUENTRY("Aiming type:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_MOUSESETUP_MOUSEAIMINGTYPE, Option);
|
||||||
static MenuOption_t MEO_MOUSESETUP_MOUSEAIMING = MAKE_MENUOPTION( &MF_Redfont, &MEOS_NoYes, &g_myAimMode );
|
static MenuOption_t MEO_MOUSESETUP_MOUSEAIMING = MAKE_MENUOPTION( &MF_Redfont, &MEOS_NoYes, &g_myAimMode );
|
||||||
static MenuEntry_t ME_MOUSESETUP_MOUSEAIMING = MAKE_MENUENTRY( "Vertical aiming:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_MOUSESETUP_MOUSEAIMING, Option );
|
static MenuEntry_t ME_MOUSESETUP_MOUSEAIMING = MAKE_MENUENTRY( "Vertical aiming:", &MF_Redfont, &MEF_BigOptionsRt, &MEO_MOUSESETUP_MOUSEAIMING, Option );
|
||||||
static MenuOption_t MEO_MOUSESETUP_INVERT = MAKE_MENUOPTION( &MF_Redfont, &MEOS_YesNo, &ud.mouseflip );
|
static MenuOption_t MEO_MOUSESETUP_INVERT = MAKE_MENUOPTION( &MF_Redfont, &MEOS_YesNo, &ud.mouseflip );
|
||||||
|
@ -776,6 +781,7 @@ static MenuEntry_t *MEL_MOUSESETUP[] = {
|
||||||
&ME_MOUSESETUP_SENSITIVITY,
|
&ME_MOUSESETUP_SENSITIVITY,
|
||||||
&ME_MOUSESETUP_BTNS,
|
&ME_MOUSESETUP_BTNS,
|
||||||
&ME_Space2,
|
&ME_Space2,
|
||||||
|
&ME_MOUSESETUP_MOUSEAIMINGTYPE,
|
||||||
&ME_MOUSESETUP_MOUSEAIMING,
|
&ME_MOUSESETUP_MOUSEAIMING,
|
||||||
&ME_MOUSESETUP_INVERT,
|
&ME_MOUSESETUP_INVERT,
|
||||||
&ME_MOUSESETUP_SMOOTH,
|
&ME_MOUSESETUP_SMOOTH,
|
||||||
|
@ -1956,17 +1962,6 @@ static void Menu_PreDraw(MenuID_t cm, MenuEntry_t *entry, const vec2_t origin)
|
||||||
"Enter = Modify Delete = Clear");
|
"Enter = Modify Delete = Clear");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MENU_MOUSESETUP:
|
|
||||||
if (entry == &ME_MOUSESETUP_MOUSEAIMING)
|
|
||||||
{
|
|
||||||
if (entry->flags & Disabled)
|
|
||||||
{
|
|
||||||
mgametextcenter(origin.x, origin.y + (167<<16), "Set mouse aim type to toggle on/off\n"
|
|
||||||
"in the Player Setup menu to enable");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case MENU_MOUSEBTNS:
|
case MENU_MOUSEBTNS:
|
||||||
mgametextcenter(origin.x, origin.y + (169<<16), "Up/Down = Select Button\n"
|
mgametextcenter(origin.x, origin.y + (169<<16), "Up/Down = Select Button\n"
|
||||||
"Enter = Modify");
|
"Enter = Modify");
|
||||||
|
|
Loading…
Reference in a new issue