From 442a1fc8e252c4d81b99214e73478b8a90c89534 Mon Sep 17 00:00:00 2001 From: Petr Bartos Date: Wed, 29 Mar 2023 22:42:11 +0200 Subject: [PATCH] JKO mod menu warning --- z_vr_assets_jko/strip/menus_vr.sp | 27 +++++++++- z_vr_assets_jko/ui/setup.menu | 85 ++++++++++++++++++++++++++++++- 2 files changed, 109 insertions(+), 3 deletions(-) diff --git a/z_vr_assets_jko/strip/menus_vr.sp b/z_vr_assets_jko/strip/menus_vr.sp index f19d194..7ba3c6e 100644 --- a/z_vr_assets_jko/strip/menus_vr.sp +++ b/z_vr_assets_jko/strip/menus_vr.sp @@ -3,7 +3,7 @@ CONFIG W:\bin\striped.cfg ID 100 REFERENCE MENUS_VR DESCRIPTION "VR Menu Localizations" -COUNT 155 +COUNT 160 INDEX 0 { REFERENCE COMMON_CONTROLS_ITEM @@ -779,3 +779,28 @@ INDEX 154 REFERENCE CONTROL_SCHEME_HELP TEXT_LANGUAGE1 "Default control scheme" } +INDEX 155 +{ + REFERENCE MODS_BUTTON_DESC + TEXT_LANGUAGE1 "Load custom mods." +} +INDEX 156 +{ + REFERENCE MODS_WARNING_TEXT_1 + TEXT_LANGUAGE1 "We recommend" +} +INDEX 157 +{ + REFERENCE MODS_WARNING_TEXT_2 + TEXT_LANGUAGE1 "the JKXR Companion App" +} +INDEX 158 +{ + REFERENCE MODS_WARNING_TEXT_3 + TEXT_LANGUAGE1 "to download and launch mods." +} +INDEX 159 +{ + REFERENCE MODS_WARNING_CONFIRM + TEXT_LANGUAGE1 "Continue" +} diff --git a/z_vr_assets_jko/ui/setup.menu b/z_vr_assets_jko/ui/setup.menu index a27e18d..d479bd0 100644 --- a/z_vr_assets_jko/ui/setup.menu +++ b/z_vr_assets_jko/ui/setup.menu @@ -28,6 +28,7 @@ hide sound ; hide options ; hide difficulty ; + hide mods_warning ; hide mods ; hide defaults ; show video ; @@ -731,6 +732,7 @@ hide sound ; hide options ; hide difficulty ; + hide mods_warning ; hide mods ; hide defaults ; setfocus graphics ; @@ -798,6 +800,7 @@ hide sound ; hide options ; hide difficulty ; + hide mods_warning ; hide mods ; hide defaults ; setitemcolor video1menubutton forecolor 0.65 0.65 1 1 ; @@ -864,6 +867,7 @@ show sound ; hide options ; hide difficulty ; + hide mods_warning ; hide mods ; hide defaults ; setitemcolor video1menubutton forecolor 0.65 0.65 1 1; @@ -929,6 +933,7 @@ hide sound ; show options ; hide difficulty ; + hide mods_warning ; hide mods ; hide defaults ; setitemcolor video1menubutton forecolor 0.65 0.65 1 1; @@ -994,6 +999,7 @@ hide sound ; hide options ; show difficulty ; + hide mods_warning ; hide mods ; hide defaults ; setitemcolor video1menubutton forecolor 0.65 0.65 1 1; @@ -1036,7 +1042,7 @@ textstyle 3 forecolor 0.65 0.65 1 1 visible 1 - descText @MENUS0_CONFIGURE_GAME_OPTIONS + descText @MENUS_VR_MODS_BUTTON_DESC mouseEnter { @@ -1061,7 +1067,8 @@ hide sound ; hide options ; hide difficulty ; - show mods ; + show mods_warning ; + hide mods ; hide defaults ; setitemcolor video1menubutton forecolor 0.65 0.65 1 1; setitemcolor video2menubutton forecolor 0.65 0.65 1 1; @@ -2954,6 +2961,80 @@ // MOD GAME MENU specific stuff // //---------------------------------------------------------------------------------------------- + itemDef + { + name none + group mods_warning + style WINDOW_STYLE_SHADER + rect 304 168 300 247 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 0.5 + visible 0 + decoration + } + itemDef + { + name none + group mods_warning + text @MENUS_VR_MODS_WARNING_TEXT_1 + rect 305 230 290 20 + textalign ITEM_ALIGN_CENTER + textalignx 145 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + decoration + } + itemDef + { + name none + group mods_warning + text @MENUS_VR_MODS_WARNING_TEXT_2 + rect 305 250 290 20 + textalign ITEM_ALIGN_CENTER + textalignx 145 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + decoration + } + itemDef + { + name none + group mods_warning + text @MENUS_VR_MODS_WARNING_TEXT_3 + rect 305 270 290 20 + textalign ITEM_ALIGN_CENTER + textalignx 145 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + decoration + } + itemDef + { + name none + group mods_warning + text @MENUS_VR_MODS_WARNING_CONFIRM + type ITEM_TYPE_BUTTON + rect 305 310 300 20 + textalign ITEM_ALIGN_CENTER + textalignx 150 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + action + { + play "sound/interface/button1.wav" + hide mods_warning + show mods + } + } + itemDef { name serverinfo