diff --git a/iw4x/iw4x_00/ui_mp/dpad_hd.menu b/iw4x/iw4x_00/ui_mp/dpad_hd.menu index 60739d1..b74090e 100644 --- a/iw4x/iw4x_00/ui_mp/dpad_hd.menu +++ b/iw4x/iw4x_00/ui_mp/dpad_hd.menu @@ -43,7 +43,7 @@ textStyle 3 textFont 10 feeder 0 - visible 1 + visible when ( !dvarbool( "gpad_enabled" ) || !dvarint( "gpad_present" ) ) } itemDef { @@ -70,7 +70,7 @@ feeder 0 visible 1 exp text ( "^3" + keybinding( "+actionslot 1" ) ) - visible when ( actionslotusable( 1 ) ) + visible when ( ( !dvarbool( "gpad_enabled" ) || !dvarint( "gpad_present" ) ) && actionslotusable( 1 ) ) } itemDef { @@ -94,7 +94,7 @@ textStyle 3 textFont 10 feeder 0 - visible 1 + visible when ( !dvarbool( "gpad_enabled" ) || !dvarint( "gpad_present" ) ) } itemDef { @@ -121,7 +121,7 @@ feeder 0 visible 1 exp text ( "^3" + keybinding( "+actionslot 3" ) ) - visible when ( actionslotusable( 3 ) ) + visible when ( ( !dvarbool( "gpad_enabled" ) || !dvarint( "gpad_present" ) ) && actionslotusable( 3 ) ) } itemDef { @@ -145,7 +145,7 @@ textStyle 3 textFont 10 feeder 0 - visible 1 + visible when ( !dvarbool( "gpad_enabled" ) || !dvarint( "gpad_present" ) ) } itemDef { @@ -172,7 +172,69 @@ feeder 0 visible 1 exp text ( "^3" + keybinding( "+actionslot 4" ) ) - visible when ( actionslotusable( 4 ) ) + visible when ( ( !dvarbool( "gpad_enabled" ) || !dvarint( "gpad_present" ) ) && actionslotusable( 4 ) ) + } + itemDef + { + rect -68.6667 -42.3333 42.6667 42.6667 10 10 + style 3 + decoration + visible 1 + foreColor 1 1 1 0.65 + background "hud_dpad_xbox360" + textScale 0.55 + visible when ( dvarbool( "gpad_enabled" ) && dvarint( "gpad_present" ) ) + } + itemDef + { + rect -68.6667 -42 42.6667 42.6667 10 10 + style 3 + decoration + visible 1 + foreColor 1 0.9 0.5 1 + background "hud_dpad_arrow_left" + textScale 0.55 + visible when ( ( dvarbool( "gpad_enabled" ) && dvarint( "gpad_present" ) ) && actionslotusable( 3 ) ) + } + itemDef + { + rect -93 -33 32 32 10 10 + ownerdraw 173 + visible 1 + foreColor 1 1 1 1 + type 8 + textFont 10 + textAlign 2 + textAlignX -21 + textAlignY -3 + textScale 0.3333 + textStyle 3 + visible when ( dvarbool( "gpad_enabled" ) && dvarint( "gpad_present" ) ) + } + itemDef + { + rect -68.6667 -42 42.6667 42.6667 10 10 + style 3 + decoration + visible 0 + foreColor 1 0.9 0.5 1 + background "hud_dpad_arrow_right" + textScale 0.55 + exp foreColor a ( 0.25 + ( sin( milliseconds( ) / 200 ) + 1 ) ) + visible when ( ( dvarbool( "gpad_enabled" ) && dvarint( "gpad_present" ) ) && actionslotusable( 4 ) ) + } + itemDef + { + rect -30 -36 32 32 10 10 + ownerdraw 174 + visible 1 + foreColor 1 1 1 1 + type 8 + textFont 10 + textAlignX -40 + textScale 0.3333 + textStyle 3 + visible when ( dvarbool( "gpad_enabled" ) && dvarint( "gpad_present" ) ) } } }