diff --git a/reaction/uifiles/ingame_callvote.menu b/reaction/uifiles/ingame_callvote.menu index 820d53e6..22a3d3a0 100644 --- a/reaction/uifiles/ingame_callvote.menu +++ b/reaction/uifiles/ingame_callvote.menu @@ -1,5 +1,8 @@ #include "ui/menudef.h" +#define SECCOLOR1 1 1 1 0 +#define SECCOLOR2 1 1 1 .2 + { //----------------// // CALL VOTE MENU // @@ -15,7 +18,10 @@ style WINDOW_STYLE_EMPTY shadowStyle 1 border 0 - onOpen { uiScript loadVoteArenas ; hide grpcallVote ; show map } + onOpen { uiScript loadVoteArenas ; hide grpcallVote ; show map ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFade sectionMap backColor SECCOLOR2 0 250 ; + setfocus sectionMap } //Window @@ -72,7 +78,7 @@ shortcutKey "M" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 44 72 16 textalign ITEM_ALIGN_RIGHT textalignx 64 @@ -82,8 +88,11 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpCallVote ; show map } + action { play "sound/misc/menu1.wav" ; hide grpCallVote ; show map ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 } } itemDef { @@ -93,7 +102,7 @@ shortcutKey "K" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 68 72 16 textalign ITEM_ALIGN_RIGHT textalignx 64 @@ -103,8 +112,11 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpCallVote ; show kick } + action { play "sound/misc/menu1.wav" ; hide grpCallVote ; show kick ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 } } itemDef { @@ -114,7 +126,7 @@ shortcutKey "T" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 92 72 16 textalign ITEM_ALIGN_RIGHT textalignx 64 @@ -124,8 +136,11 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpCallVote ; show type } + action { play "sound/misc/menu1.wav" ; hide grpCallVote ; show type ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 } } //======================= @@ -178,7 +193,7 @@ bordercolor .25 .25 .25 1 visible 0 decoration - } + } itemDef { name map diff --git a/reaction/uifiles/ingame_controls.menu b/reaction/uifiles/ingame_controls.menu index 248924de..6bc14bfa 100644 --- a/reaction/uifiles/ingame_controls.menu +++ b/reaction/uifiles/ingame_controls.menu @@ -1,5 +1,8 @@ #include "ui/menudef.h" +#define SECCOLOR1 1 1 1 0 +#define SECCOLOR2 1 1 1 .2 + { //----------// // CONTROLS // @@ -16,7 +19,10 @@ style WINDOW_STYLE_EMPTY shadowStyle 1 border 0 - onOpen { play "sound/misc/menu1.wav" ; hide grpControls ; show look ; setfocus sectionLook } + onOpen { play "sound/misc/menu1.wav" ; hide grpControls ; show look ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFade sectionLook backColor SECCOLOR2 0 250 ; + setfocus sectionLook } //Window @@ -72,6 +78,7 @@ name tabSystem group grpTabs text "System" + shortcutKey "S" type ITEM_TYPE_BUTTON textscale .225 style WINDOW_STYLE_EMPTY @@ -106,6 +113,7 @@ name tabGame group grpTabs text "Game" + shortcutKey "G" type ITEM_TYPE_BUTTON textscale .225 style WINDOW_STYLE_EMPTY @@ -124,10 +132,11 @@ itemdef { name sectionLook group grpSections - text "Look" + text "Look. 1" + shortcutKey "1" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 72 96 16 textalign ITEM_ALIGN_RIGHT textalignx 88 @@ -137,17 +146,22 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpControls ; show look } + action { play "sound/misc/menu1.wav" ; hide grpControls ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 ; + show look } } itemdef { name sectionMove group grpSections - text "Move" + text "Move. 2" + shortcutKey "2" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 96 96 16 textalign ITEM_ALIGN_RIGHT textalignx 88 @@ -157,17 +171,22 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpControls ; show move } + action { play "sound/misc/menu1.wav" ; hide grpControls ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 ; + show move } } itemdef { name sectionWeapon group grpSections - text "Weapons" + text "Weapons. 3" + shortcutKey "3" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 120 96 16 textalign ITEM_ALIGN_RIGHT textalignx 88 @@ -177,17 +196,22 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpControls ; show weapon } + action { play "sound/misc/menu1.wav" ; hide grpControls ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 ; + show weapon } } itemdef { name sectionMisc group grpSections - text "Misc" + text "Misc. 4" + shortcutKey "4" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 144 96 16 textalign ITEM_ALIGN_RIGHT textalignx 88 @@ -197,17 +221,22 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpControls ; show misc } + action { play "sound/misc/menu1.wav" ; hide grpControls ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 ; + show misc } } itemdef { name sectionReaction group grpSections - text "Reaction" + text "Reaction. 5" + shortcutKey "5" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 168 96 16 textalign ITEM_ALIGN_RIGHT textalignx 88 @@ -217,8 +246,12 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpControls ; show reaction } + action { play "sound/misc/menu1.wav" ; hide grpControls ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 ; + show reaction } } //Keys diff --git a/reaction/uifiles/ingame_matchmode_captain.menu b/reaction/uifiles/ingame_matchmode_captain.menu index 3a10ed92..564a0383 100644 --- a/reaction/uifiles/ingame_matchmode_captain.menu +++ b/reaction/uifiles/ingame_matchmode_captain.menu @@ -1,5 +1,8 @@ #include "ui/menudef.h" +#define SECCOLOR1 1 1 1 0 +#define SECCOLOR2 1 1 1 .2 + { menuDef { @@ -12,7 +15,10 @@ style WINDOW_STYLE_EMPTY shadowStyle 1 border 0 - onOpen { uiScript readMMcaptainSettings ; hide grpCaptain ; show status } + onOpen { uiScript readMMcaptainSettings ; hide grpCaptain ; show status + setitemcolor grpSections backcolor SECCOLOR1; + timeFade sectionStatus backColor SECCOLOR2 0 250 + setFocus sectionStatus } //Window @@ -65,11 +71,11 @@ itemDef { name sectionStatus group grpSections - text "1. Status" + text "Status. 1" shortcutKey "1" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 44 80 16 textalign ITEM_ALIGN_RIGHT textalignx 72 @@ -79,18 +85,21 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpCaptain ; show status } + action { play "sound/misc/menu1.wav" ; hide grpCaptain ; show status ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 } } itemDef { name sectionSettings group grpSections - text "2. Settings" + text "Settings. 2" shortcutKey "2" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 68 80 16 textalign ITEM_ALIGN_RIGHT textalignx 72 @@ -100,18 +109,21 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpCaptain ; show settings } + action { play "sound/misc/menu1.wav" ; hide grpCaptain ; show settings ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 } } itemDef { name sectionRef group grpSections - text "3. Referee" + text "Referee. 3" shortcutKey "3" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 92 80 16 textalign ITEM_ALIGN_RIGHT textalignx 72 @@ -121,8 +133,11 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpCaptain ; show ref } + action { play "sound/misc/menu1.wav" ; hide grpCaptain ; show ref ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 } } //======================= diff --git a/reaction/uifiles/ingame_matchmode_referee.menu b/reaction/uifiles/ingame_matchmode_referee.menu index b0ef75e4..9a3ffd57 100644 --- a/reaction/uifiles/ingame_matchmode_referee.menu +++ b/reaction/uifiles/ingame_matchmode_referee.menu @@ -1,5 +1,8 @@ #include "ui/menudef.h" +#define SECCOLOR1 1 1 1 0 +#define SECCOLOR2 1 1 1 .2 + { menuDef { @@ -12,7 +15,10 @@ style WINDOW_STYLE_EMPTY shadowStyle 1 border 0 - onOpen { uiScript loadVoteArenas ; hide grpReferee ; show login } + onOpen { uiScript loadVoteArenas ; hide grpReferee ; show login ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFade sectionLogin backColor SECCOLOR2 0 250 ; + setfocus sectionLogin } //Window @@ -65,11 +71,11 @@ itemDef { name sectionLogin group grpSections - text "1. Login" + text "Login. 1" shortcutKey "1" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 40 72 16 textalign ITEM_ALIGN_RIGHT textalignx 64 @@ -79,18 +85,21 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpReferee ; show login } + action { play "sound/misc/menu1.wav" ; hide grpReferee ; show login ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 } } itemDef { name sectionMap group grpSections - text "2. Map" + text "Map. 2" shortcutKey "2" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 64 72 16 textalign ITEM_ALIGN_RIGHT textalignx 64 @@ -100,18 +109,21 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpReferee ; show map } + action { play "sound/misc/menu1.wav" ; hide grpReferee ; show map ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 } } itemDef { name sectionKick group grpSections - text "3. Kick" + text "Kick. 3" shortcutKey "3" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 88 72 16 textalign ITEM_ALIGN_RIGHT textalignx 64 @@ -121,18 +133,21 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpReferee ; show kick } + action { play "sound/misc/menu1.wav" ; hide grpReferee ; show kick ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 } } itemDef { name sectionMatch group grpSections - text "4. Match" + text "Match. 4" shortcutKey "4" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 112 72 16 textalign ITEM_ALIGN_RIGHT textalignx 64 @@ -142,8 +157,11 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor + backcolor SECCOLOR1 visible 1 - action { play "sound/misc/menu1.wav" ; hide grpReferee ; show match } + action { play "sound/misc/menu1.wav" ; hide grpReferee ; show match ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 } } //======================= diff --git a/reaction/uifiles/ingame_options.menu b/reaction/uifiles/ingame_options.menu index 3eb89186..b3f3ecc0 100644 --- a/reaction/uifiles/ingame_options.menu +++ b/reaction/uifiles/ingame_options.menu @@ -1,5 +1,8 @@ #include "ui/menudef.h" +#define SECCOLOR1 1 1 1 0 +#define SECCOLOR2 1 1 1 .2 + { //--------------// // GAME OPTIONS // @@ -16,7 +19,10 @@ style WINDOW_STYLE_EMPTY shadowStyle 1 border 0 - onOpen { play "sound/misc/menu1.wav" ; hide grpGame ; show page1 ; setfocus sectionPage1 } + onOpen { play "sound/misc/menu1.wav" ; hide grpGame ; show page1 ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFade sectionPage1 backColor SECCOLOR2 0 250 ; + setfocus sectionPage1 } //Window @@ -70,6 +76,7 @@ name tabSystem group grpTabs text "System" + shortcutKey "S" type ITEM_TYPE_BUTTON textscale .225 style WINDOW_STYLE_EMPTY @@ -87,6 +94,7 @@ name tabControls group grpTabs text "Controls" + shortcutKey "C" type ITEM_TYPE_BUTTON textscale .225 style WINDOW_STYLE_EMPTY @@ -122,10 +130,12 @@ itemDef { name sectionPage1 group grpSections - text "Settings" + text "Settings. 1" + shortcutKey "1" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED + backcolor SECCOLOR1 rect 0 72 96 16 textalign ITEM_ALIGN_RIGHT textalignx 88 @@ -136,16 +146,20 @@ bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor visible 1 - action { play "sound/misc/menu1.wav" ; hide grpGame ; show page1 } + action { play "sound/misc/menu1.wav" ; hide grpGame ; show page1 ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFade sectionPage1 backColor SECCOLOR2 0 250 } } itemDef { name sectionPage2 group grpSections - text "Crosshair" + text "Crosshair. 2" + shortcutKey "2" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED + backcolor SECCOLOR1 rect 0 96 96 16 textalign ITEM_ALIGN_RIGHT textalignx 88 @@ -156,7 +170,33 @@ bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor visible 1 - action { play "sound/misc/menu1.wav" ; hide grpGame ; show page2 } + action { play "sound/misc/menu1.wav" ; hide grpGame ; show page2 ; + setitemcolor grpSections backcolor SECCOLOR1;timeFade sectionPage2 backColor SECCOLOR2 0 250 } + } + + itemDef { + name sectionPage3 + group grpSections + text "Models. 3" + shortcutKey "3" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_FILLED + backcolor SECCOLOR1 + rect 0 120 96 16 + textalign ITEM_ALIGN_RIGHT + textalignx 88 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpGame ; show page3 ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFade sectionPage3 backColor SECCOLOR2 0 250 ; + uiScript buildReplacementList } } //Options @@ -568,5 +608,187 @@ decoration } -} +// Page 3 // + + //Background + itemdef { + name page3 + group grpGame + rect 103 63 96 96 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-loadout" + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + //backcolor .5 .5 .5 .4 + decoration + visible 1 + } + + //Preview + itemdef { + name page3 + group grpGame + //type ITEM_TYPE_MODEL + ownerdraw UI_RQ3_REPLACEMENTMODEL + rect 103 63 96 96 + /* + model_origin 28 0 0 + model_fovx 60 + model_fovy 60 + //textscale .75 + model_rotation 10 + model_angles 270 0 90 + */ + decoration + visible 1 + } + + // Text + + //Name + itemDef { + name page3 + group grpGame + style 1 + //text "Gold akimbo" + ownerdraw UI_RQ3_REPLACEMENTNAME + rect 103 158 96 16 + textalign ITEM_ALIGN_LEFT + textalignx 5 + textaligny 12 + textscale .18 + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + visible 0 + decoration + } + + //Type + itemDef { + name page3 + group grpGame + style 1 + text "Replace:" + ownerdraw UI_RQ3_REPLACEMENTTYPE + rect 103 178 96 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + textscale .2 + forecolor Ig_Sub_TextColor + visible 0 + action { play "sound/misc/menu1.wav" } + } + + //Sub-Type + itemDef { + name page3 + group grpGame + style 1 + text "Type:" + ownerdraw UI_RQ3_REPLACEMENTSUBTYPE + rect 103 194 96 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + textscale .2 + forecolor Ig_Sub_TextColor + visible 0 + action { play "sound/misc/menu1.wav" } + } + + //Description + itemDef { + name page3 + group grpGame + style 1 + //text "Text goes here" + ownerdraw UI_RQ3_REPLACEMENTINFO + rect 208 64 156 96 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + decoration + } + + //Prev model + itemDef { + name page3 + group grpGame + rect 107 108 16 16 + style WINDOW_STYLE_SHADER + background "ui/assets/arrow_left_white" + type ITEM_TYPE_BUTTON + visible 1 + forecolor 1 1 1 .3 + onFocus { timefadeSelf forecolor 1 1 1 1 0 250 } + leaveFocus { timefadeSelf forecolor 1 1 1 .3 0 250 } + action { play "sound/misc/menu1.wav" ; uiScript nextReplacement "-1" } + } + + //Next model + itemDef { + name page3 + group grpGame + rect 179 108 16 16 + style WINDOW_STYLE_SHADER + background "ui/assets/arrow_right_white" + type ITEM_TYPE_BUTTON + visible 1 + forecolor 1 1 1 .3 + onFocus { timefadeSelf forecolor 1 1 1 1 0 250 } + leaveFocus { timefadeSelf forecolor 1 1 1 .3 0 250 } + action { play "sound/misc/menu1.wav" ; uiScript nextReplacement "1" } + } + + //Note + + itemDef { + name page3 + group grpGame + style 1 + text "Note: pressing the apply button will restart " + "Reaction Quake 3 in order to load the new " + "models and skins" + autowrapped + rect 112 256 232 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + decoration + } + + //Apply button + + itemDef { + name page3 + group grpGame + text "Apply" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_FILLED + rect 284 304 64 16 + textalign ITEM_ALIGN_CENTER + textalignx 32 + textaligny 12 + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 0 + action { exec "vid_restart" } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + } \ No newline at end of file diff --git a/reaction/uifiles/ingame_system.menu b/reaction/uifiles/ingame_system.menu index 5038f594..6128e191 100644 --- a/reaction/uifiles/ingame_system.menu +++ b/reaction/uifiles/ingame_system.menu @@ -1,5 +1,8 @@ #include "ui/menudef.h" +#define SECCOLOR1 1 1 1 0 +#define SECCOLOR2 1 1 1 .2 + { //----------------// // SYSTEM OPTIONS // @@ -17,9 +20,10 @@ border 0 shadowStyle 1 onOpen { play "sound/misc/menu1.wav" ; hide grpSystem ; - //setitemcolor grpSections backcolor 0 0 0 0 ; - //setitemcolor sectionGraphics backcolor Ig_Window_Color ; - show graphics ; setfocus sectionGraphics } + show graphics ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFade sectionGraphics backColor SECCOLOR2 0 250 ; + setfocus sectionGraphics } //Window @@ -91,6 +95,7 @@ name tabControls group grpTabs text "Controls" + shortcutKey "C" type ITEM_TYPE_BUTTON textscale .225 style WINDOW_STYLE_EMPTY @@ -108,6 +113,7 @@ name tabGame group grpTabs text "Game" + shortcutKey "G" type ITEM_TYPE_BUTTON textscale .225 style WINDOW_STYLE_EMPTY @@ -126,10 +132,11 @@ itemDef { name sectionGraphics group grpSections - text "Graphics" + text "Graphics. 1" + shortcutKey "1" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 72 96 16 textalign ITEM_ALIGN_RIGHT textalignx 88 @@ -139,21 +146,24 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor - //backcolor 0 0 0 0 + backcolor SECCOLOR1 visible 1 action { play "sound/misc/menu1.wav" ; hide grpSystem ; //setitemcolor grpSections backcolor 0 0 0 0 ; //setitemcolor sectionGraphics backcolor Ig_Window_Color ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 ; show graphics } } itemDef { name sectionDriver group grpSections - text "Driver info" + text "Driver info. 2" + shortcutKey "2" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 96 96 16 textalign ITEM_ALIGN_RIGHT textalignx 88 @@ -163,21 +173,24 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor - //backcolor 0 0 0 0 + backcolor SECCOLOR1 visible 1 action { play "sound/misc/menu1.wav" ; hide grpSystem ; //setitemcolor grpSections backcolor 0 0 0 0 ; //setitemcolor sectionDriver backcolor Ig_Window_Color ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 ; show driver } } itemDef { name sectionOther group grpSections - text "Other" + text "Other. 3" + shortcutKey "3" type ITEM_TYPE_BUTTON textscale .225 - style WINDOW_STYLE_EMPTY + style WINDOW_STYLE_FILLED rect 0 120 96 16 textalign ITEM_ALIGN_RIGHT textalignx 88 @@ -187,11 +200,13 @@ bordersize 1 bordercolor Ig_Window_BorderColor forecolor Ig_Sub_TextColor - //backcolor 0 0 0 0 + backcolor SECCOLOR1 visible 1 action { play "sound/misc/menu1.wav" ; hide grpSystem ; //setitemcolor grpSections backcolor 0 0 0 0 ; //setitemcolor sectionOther backcolor Ig_Window_Color ; + setitemcolor grpSections backcolor SECCOLOR1; + timeFadeSelf backColor SECCOLOR2 0 250 ; show Other } } diff --git a/reaction/uifiles/menudef.h b/reaction/uifiles/menudef.h index ab02b15f..269a7020 100644 --- a/reaction/uifiles/menudef.h +++ b/reaction/uifiles/menudef.h @@ -70,6 +70,8 @@ #define FEEDER_INGAME_SERVERINFO 0x10 //Makro - for the captains' ingame menu #define FEEDER_MMHEADS 0x11 +//Makro - weapon replacements list +#define FEEDER_REPLACEMENTS 0x12 // display flags #define CG_SHOW_BLUE_TEAM_HAS_REDFLAG 0x00000001 @@ -125,6 +127,8 @@ #define UI_SHOW_ITEM6 0x02000000 //Makro - toggle #define UI_SHOW_TOGGLE 0x04000000 +//Makro - hack ! +#define UI_SHOW_REPLACEMENT 0x08000000 // owner draw types @@ -228,6 +232,13 @@ #define UI_RQ3_JOINTEAM1 161 #define UI_RQ3_JOINTEAM2 162 +//Makro - replacement model info +#define UI_RQ3_REPLACEMENTINFO 163 +#define UI_RQ3_REPLACEMENTNAME 164 +#define UI_RQ3_REPLACEMENTMODEL 165 +#define UI_RQ3_REPLACEMENTTYPE 166 +#define UI_RQ3_REPLACEMENTSUBTYPE 167 + #define UI_OWNERDRAW_BASE 200 #define UI_HANDICAP 200 #define UI_EFFECTS 201