diff --git a/.gitignore b/.gitignore index af52496b9..1857d78de 100644 --- a/.gitignore +++ b/.gitignore @@ -190,3 +190,4 @@ mp/game/neo/cfg/sourcemod # Excludes !makefile_base_posix.mak !sourcesdk_def.mak +/mp/src/lib/public/fgdlib.pdb diff --git a/mp/game/neo/resource/neo_ui/Neo_ClassMenu.res b/mp/game/neo/resource/neo_ui/Neo_ClassMenu.res index 4a29df5af..73698cb75 100644 --- a/mp/game/neo/resource/neo_ui/Neo_ClassMenu.res +++ b/mp/game/neo/resource/neo_ui/Neo_ClassMenu.res @@ -4,11 +4,11 @@ { "ControlName" "CNeoClassMenu" "fieldName" "classmenu" - "xpos" "325" - "ypos" "176" + "xpos" "cs-0.5" + "ypos" "cs-0.5" "wide" "430" "tall" "432" - "autoResize" "1" + "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" @@ -16,19 +16,68 @@ "settitlebarvisible" "0" "title" "#Frame_Untitled" } + "ngui_corner" + { + "ControlName" "ImagePanel" + "fieldName" "ngui_corner" + "xpos" "0" + "ypos" "0" + "wide" "16" + "tall" "16" + "autoResize" "0" + "pinCorner" "0" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "image" "ngui_corner" + "scaleImage" "0" + } + "title_bar" + { + "ControlName" "ImagePanel" + "fieldName" "title_bar" + "xpos" "16" + "ypos" "0" + "wide" "414" + "tall" "16" + "autoResize" "0" + "pinCorner" "0" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "image" "ngui_titlebar" + "fillcolor" "black" + "scaleImage" "1" + } + "background" + { + "ControlName" "ImagePanel" + "fieldName" "background" + "xpos" "0" + "ypos" "16" + "wide" "f" + "tall" "418" + "autoResize" "0" + "pinCorner" "0" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "image" "ngui_body" + "scaleImage" "1" + } "TitleLabel" { "ControlName" "Label" "fieldName" "TitleLabel" - "xpos" "165" + "xpos" "0" "ypos" "0" - "wide" "100" + "wide" "430" "tall" "16" - "autoResize" "1" + "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" - "tabPosition" "0" + "tabPosition" "1" "labelText" "CLASS MENU" "textAlignment" "center" "dulltext" "0" @@ -37,34 +86,34 @@ } "IconPanel1" { - "ControlName" "IconPanel" + "ControlName" "ImagePanel" "fieldName" "IconPanel1" "xpos" "87" "ypos" "20" "wide" "256" "tall" "32" - "autoResize" "1" + "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "image" "vgui/choose_class" + "image" "choose_class" "scaleImage" "0" } "IconPanel2" { - "ControlName" "IconPanel" + "ControlName" "ImagePanel" "fieldName" "IconPanel2" "xpos" "87" "ypos" "90" "wide" "256" "tall" "32" - "autoResize" "1" + "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "image" "vgui/choose_playermodel" + "image" "choose_playermodel" "scaleImage" "0" } "Scout_Button" @@ -75,7 +124,7 @@ "ypos" "55" "wide" "128" "tall" "30" - "autoResize" "1" + "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" @@ -97,7 +146,7 @@ "ypos" "55" "wide" "128" "tall" "30" - "autoResize" "1" + "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" @@ -118,7 +167,7 @@ "ypos" "55" "wide" "128" "tall" "30" - "autoResize" "1" + "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" @@ -131,10 +180,10 @@ "Command" "setclass 3" "Default" "0" } - "Model_ImagePanel" + "Model1_ImagePanel" { - "ControlName" "NImageButton" - "fieldName" "Model_ImagePanel" + "ControlName" "ImagePanel" + "fieldName" "Model1_ImagePanel" "xpos" "10" "ypos" "130" "wide" "128" @@ -143,18 +192,30 @@ "pinCorner" "0" "visible" "1" "enabled" "1" + "Default" "0" + "image" "cm/jinrai_assault01" + } + "Skin1_Button" + { + "ControlName" "Button" + "fieldName" "Skin1_Button" + "xpos" "10" + "ypos" "130" + "wide" "128" + "tall" "256" + "autoResize" "0" + "pinCorner" "0" + "visible" "1" + "enabled" "1" "tabPosition" "0" - "textAlignment" "west" - "dulltext" "0" - "brighttext" "0" - "wrap" "0" + "labelText" "" "Command" "SetVariant 0" "Default" "0" } - "Model_ImagePanel2" + "Model2_ImagePanel" { - "ControlName" "NImageButton" - "fieldName" "Model_ImagePanel2" + "ControlName" "ImagePanel" + "fieldName" "Model2_ImagePanel" "xpos" "150" "ypos" "130" "wide" "128" @@ -163,18 +224,30 @@ "pinCorner" "0" "visible" "1" "enabled" "1" + "Default" "0" + "image" "cm/jinrai_assault02" + } + "Skin2_Button" + { + "ControlName" "Button" + "fieldName" "Skin2_Button" + "xpos" "150" + "ypos" "130" + "wide" "128" + "tall" "256" + "autoResize" "0" + "pinCorner" "0" + "visible" "1" + "enabled" "1" "tabPosition" "0" - "textAlignment" "west" - "dulltext" "0" - "brighttext" "0" - "wrap" "0" + "labelText" "" "Command" "SetVariant 1" "Default" "0" } - "Model_ImagePanel3" + "Model3_ImagePanel" { - "ControlName" "NImageButton" - "fieldName" "Model_ImagePanel3" + "ControlName" "ImagePanel" + "fieldName" "Model3_ImagePanel" "xpos" "290" "ypos" "130" "wide" "128" @@ -183,11 +256,23 @@ "pinCorner" "0" "visible" "1" "enabled" "1" + "Default" "0" + "image" "cm/jinrai_assault03" + } + "Skin3_Button" + { + "ControlName" "Button" + "fieldName" "Skin3_Button" + "xpos" "290" + "ypos" "130" + "wide" "128" + "tall" "256" + "autoResize" "0" + "pinCorner" "0" + "visible" "1" + "enabled" "1" "tabPosition" "0" - "textAlignment" "west" - "dulltext" "0" - "brighttext" "0" - "wrap" "0" + "labelText" "" "Command" "SetVariant 2" "Default" "0" } @@ -196,10 +281,10 @@ "ControlName" "Button" "fieldName" "Back_Button" "xpos" "8" - "ypos" "150" + "ypos" "394" "wide" "207" "tall" "30" - "autoResize" "1" + "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" diff --git a/mp/game/neo/resource/neo_ui/Neo_LoadoutMenu_Dev.res b/mp/game/neo/resource/neo_ui/Neo_LoadoutMenu_Dev.res index 54ae3805c..e35c5f9e3 100644 --- a/mp/game/neo/resource/neo_ui/Neo_LoadoutMenu_Dev.res +++ b/mp/game/neo/resource/neo_ui/Neo_LoadoutMenu_Dev.res @@ -1,683 +1,497 @@ "resource/neo_ui/Neo_LoadoutMenu_Dev.res" { - "loadout_dev" - { - "ControlName" "CNeoLoadoutMenu_Dev" - "fieldName" "loadout_dev" - "xpos" "415" - "ypos" "159" - "wide" "850" - "tall" "450" - "autoResize" "1" - "pinCorner" "0" - "visible" "1" - "enabled" "1" - "tabPosition" "0" - "settitlebarvisible" "0" - "title" "#Frame_Untitled" - } - "Weapon_ImagePanel" + "neo_loadoutmenu" + { + "ControlName" "CNeoLoadoutMenu" + "fieldName" "neo_loadoutmenu" + "xpos" "cs-0.5" + "ypos" "cs-0.5" + "wide" "800" + "tall" "646" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "settitlebarvisible" "0" + "title" "#Frame_Untitled" + "BgColor" "0 0 0 0" + } + "ngui_corner" { "ControlName" "ImagePanel" - "fieldName" "Weapon_ImagePanel" - "xpos" "220" - "ypos" "25" - "wide" "620" - "tall" "385" - "autoResize" "1" - "pinCorner" "0" - "visible" "1" - "enabled" "1" - "tabPosition" "0" - "image" "loadout/none" - "scaleImage" "0" - } - "frame_topGrip" - { - "ControlName" "Panel" - "fieldName" "frame_topGrip" - "xpos" "8" - "ypos" "0" - "wide" "834" - "tall" "5" - "autoResize" "1" - "pinCorner" "0" - "visible" "1" - "enabled" "1" - "tabPosition" "0" - } - "frame_bottomGrip" - { - "ControlName" "Panel" - "fieldName" "frame_bottomGrip" - "xpos" "8" - "ypos" "445" - "wide" "824" - "tall" "5" - "autoResize" "1" - "pinCorner" "0" - "visible" "1" - "enabled" "1" - "tabPosition" "0" - } - "frame_leftGrip" - { - "ControlName" "Panel" - "fieldName" "frame_leftGrip" - "xpos" "0" - "ypos" "8" - "wide" "5" - "tall" "434" - "autoResize" "1" - "pinCorner" "0" - "visible" "1" - "enabled" "1" - "tabPosition" "0" - } - "frame_rightGrip" - { - "ControlName" "Panel" - "fieldName" "frame_rightGrip" - "xpos" "845" - "ypos" "8" - "wide" "5" - "tall" "424" - "autoResize" "1" - "pinCorner" "0" - "visible" "1" - "enabled" "1" - "tabPosition" "0" - } - "frame_tlGrip" - { - "ControlName" "Panel" - "fieldName" "frame_tlGrip" + "fieldName" "ngui_corner" "xpos" "0" "ypos" "0" - "wide" "8" - "tall" "8" - "autoResize" "1" + "wide" "16" + "tall" "16" + "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" + "image" "ngui_corner" + "scaleImage" "0" } - "frame_trGrip" + "title_bar" { - "ControlName" "Panel" - "fieldName" "frame_trGrip" - "xpos" "842" + "ControlName" "ImagePanel" + "fieldName" "title_bar" + "xpos" "16" "ypos" "0" - "wide" "8" - "tall" "8" - "autoResize" "1" - "pinCorner" "0" - "visible" "1" - "enabled" "1" - "tabPosition" "0" - } - "frame_blGrip" - { - "ControlName" "Panel" - "fieldName" "frame_blGrip" - "xpos" "0" - "ypos" "442" - "wide" "8" - "tall" "8" - "autoResize" "1" - "pinCorner" "0" - "visible" "1" - "enabled" "1" - "tabPosition" "0" - } - "frame_brGrip" - { - "ControlName" "Panel" - "fieldName" "frame_brGrip" - "xpos" "832" - "ypos" "432" - "wide" "18" - "tall" "18" - "autoResize" "1" + "wide" "784" + "tall" "16" + "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" + "image" "ngui_titlebar" + "fillcolor" "black" + "scaleImage" "1" } - "frame_caption" + "background" { - "ControlName" "Panel" - "fieldName" "frame_caption" + "ControlName" "ImagePanel" + "fieldName" "background" "xpos" "0" - "ypos" "0" - "wide" "840" - "tall" "23" - "autoResize" "1" + "ypos" "16" + "wide" "f" + "tall" "630" + "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - } - "frame_minimize" - { - "ControlName" "Button" - "fieldName" "frame_minimize" - "xpos" "0" - "ypos" "0" - "wide" "18" - "tall" "18" - "autoResize" "1" - "pinCorner" "0" - "visible" "0" - "enabled" "1" - "tabPosition" "0" - "labelText" "0" - "textAlignment" "north-west" - "dulltext" "0" - "brighttext" "0" - "wrap" "0" - "Default" "0" - } - "frame_maximize" - { - "ControlName" "Button" - "fieldName" "frame_maximize" - "xpos" "0" - "ypos" "0" - "wide" "18" - "tall" "18" - "autoResize" "1" - "pinCorner" "0" - "visible" "0" - "enabled" "1" - "tabPosition" "0" - "labelText" "1" - "textAlignment" "north-west" - "dulltext" "0" - "brighttext" "0" - "wrap" "0" - "Default" "0" - } - "frame_mintosystray" - { - "ControlName" "Button" - "fieldName" "frame_mintosystray" - "xpos" "0" - "ypos" "0" - "wide" "18" - "tall" "18" - "autoResize" "1" - "pinCorner" "0" - "visible" "0" - "enabled" "1" - "tabPosition" "0" - "labelText" "o" - "textAlignment" "north-west" - "dulltext" "0" - "brighttext" "0" - "wrap" "0" - "Command" "MinimizeToSysTray" - "Default" "0" - } - "frame_close" - { - "ControlName" "Button" - "fieldName" "frame_close" - "xpos" "0" - "ypos" "0" - "wide" "18" - "tall" "18" - "autoResize" "1" - "pinCorner" "0" - "visible" "0" - "enabled" "1" - "tabPosition" "0" - "labelText" "r" - "textAlignment" "north-west" - "dulltext" "0" - "brighttext" "0" - "wrap" "0" - "Default" "0" - } - "frame_menu" - { - "ControlName" "FrameSystemButton" - "fieldName" "frame_menu" - "xpos" "7" - "ypos" "8" - "wide" "18" - "tall" "18" - "autoResize" "1" - "pinCorner" "0" - "visible" "0" - "enabled" "1" - "tabPosition" "0" - "textAlignment" "west" - "dulltext" "0" - "brighttext" "0" - "wrap" "0" - "Default" "0" + "image" "ngui_body" + "scaleImage" "1" } "TitleLabel" { "ControlName" "Label" "fieldName" "TitleLabel" - "xpos" "250" + "xpos" "0" "ypos" "0" - "wide" "200" + "wide" "800" "tall" "16" "autoResize" "1" "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" "labelText" "LOADOUT MENU" - "textAlignment" "east" - "dulltext" "0" - "brighttext" "0" - "wrap" "0" - } - "Scout_Button" - { - "ControlName" "Button" - "fieldName" "Scout_Button" - "xpos" "616" - "ypos" "291" - "wide" "128" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" - "visible" "0" - "enabled" "0" - "tabPosition" "0" - "labelText" "Misc1" "textAlignment" "center" "dulltext" "0" "brighttext" "0" - "Font" "Default" "wrap" "0" - "Command" "setclass 1" - "Default" "0" + "centerwrap" "0" + "textinsetx" "0" + "textinsety" "0" + "auto_wide_tocontents" "0" + "use_proportional_insets" "0" } - "Misc2" + "IconPanel1" { - "ControlName" "Button" - "fieldName" "Misc2" - "xpos" "615" - "ypos" "322" - "wide" "128" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" - "visible" "0" - "enabled" "0" - "tabPosition" "0" - "labelText" "Misc2" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "wrap" "0" - "Command" "setclass 2" - "Default" "0" - } - "Done_Button" - { - "ControlName" "Button" - "fieldName" "Done_Button" - "xpos" "776" - "ypos" "418" - "wide" "64" - "tall" "25" - "autoResize" "1" + "ControlName" "ImagePanel" + "fieldName" "IconPanel1" + "xpos" "272" + "ypos" "20" + "wide" "256" + "tall" "32" + "autoResize" "0" "pinCorner" "0" "visible" "1" - "enabled" "0" + "enabled" "1" "tabPosition" "0" - "labelText" "GO!" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "wrap" "0" - "Command" "playerready" - "Default" "0" + "image" "choose_primary" + "scaleImage" "0" + } + "Button1Image" + { + "ControlName" "ImagePanel" + "fieldName" "Button1Image" + "xpos" "8" + "ypos" "64" + "wide" "256" + "tall" "128" + "image" "loadout/loadout_none" } "Button1" { "ControlName" "Button" "fieldName" "Button1" - "xpos" "10" - "ypos" "25" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" + "xpos" "8" + "ypos" "64" + "wide" "256" + "tall" "128" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "MPN45" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 0" + "labelText" "" + "command" "loadout 0" "Default" "0" } + "Button2Image" + { + "ControlName" "ImagePanel" + "fieldName" "Button2Image" + "xpos" "272" + "ypos" "64" + "wide" "256" + "tall" "128" + "image" "loadout/loadout_none" + } "Button2" { "ControlName" "Button" "fieldName" "Button2" - "xpos" "10" - "ypos" "55" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" + "xpos" "272" + "ypos" "64" + "wide" "256" + "tall" "128" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "SRM" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 1" + "labelText" "" + "command" "loadout 1" "Default" "0" } + "Button3Image" + { + "ControlName" "ImagePanel" + "fieldName" "Button3Image" + "xpos" "536" + "ypos" "64" + "wide" "256" + "tall" "128" + "image" "loadout/loadout_none" + } "Button3" { "ControlName" "Button" "fieldName" "Button3" - "xpos" "10" - "ypos" "85" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" + "xpos" "536" + "ypos" "64" + "wide" "256" + "tall" "128" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "SRM (silenced)" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 2" + "labelText" "" + "command" "loadout 2" "Default" "0" } + "Button4Image" + { + "ControlName" "ImagePanel" + "fieldName" "Button4Image" + "xpos" "8" + "ypos" "200" + "wide" "256" + "tall" "128" + "image" "loadout/loadout_none" + } "Button4" { "ControlName" "Button" "fieldName" "Button4" - "xpos" "10" - "ypos" "115" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" + "xpos" "8" + "ypos" "200" + "wide" "256" + "tall" "128" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "Jitte" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 3" + "labelText" "" + "command" "loadout 3" "Default" "0" } + "Button5Image" + { + "ControlName" "ImagePanel" + "fieldName" "Button5Image" + "xpos" "272" + "ypos" "200" + "wide" "256" + "tall" "128" + "image" "loadout/loadout_none" + } "Button5" { "ControlName" "Button" "fieldName" "Button5" - "xpos" "10" - "ypos" "145" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" + "xpos" "272" + "ypos" "200" + "wide" "256" + "tall" "128" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "Jitte (with scope)" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 4" + "labelText" "" + "command" "loadout 4" "Default" "0" } + "Button6Image" + { + "ControlName" "ImagePanel" + "fieldName" "Button6Image" + "xpos" "536" + "ypos" "200" + "wide" "256" + "tall" "128" + "image" "loadout/loadout_none" + } "Button6" { "ControlName" "Button" "fieldName" "Button6" - "xpos" "10" - "ypos" "175" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" + "xpos" "536" + "ypos" "200" + "wide" "256" + "tall" "128" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "ZR68-C (compact)" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 5" + "labelText" "" + "command" "loadout 5" "Default" "0" } + "Button7Image" + { + "ControlName" "ImagePanel" + "fieldName" "Button7Image" + "xpos" "8" + "ypos" "336" + "wide" "256" + "tall" "128" + "image" "loadout/loadout_none" + } "Button7" { "ControlName" "Button" "fieldName" "Button7" - "xpos" "10" - "ypos" "205" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" + "xpos" "8" + "ypos" "336" + "wide" "256" + "tall" "128" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "ZR68-S (silenced)" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 6" + "labelText" "" + "command" "loadout 6" "Default" "0" } + "Button8Image" + { + "ControlName" "ImagePanel" + "fieldName" "Button8Image" + "xpos" "272" + "ypos" "336" + "wide" "256" + "tall" "128" + "image" "loadout/loadout_none" + } "Button8" { "ControlName" "Button" "fieldName" "Button8" - "xpos" "10" - "ypos" "235" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" + "xpos" "272" + "ypos" "336" + "wide" "256" + "tall" "128" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "ZR68-L (accurized)" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 7" + "labelText" "" + "command" "loadout 7" "Default" "0" } + "Button9Image" + { + "ControlName" "ImagePanel" + "fieldName" "Button9Image" + "xpos" "536" + "ypos" "336" + "wide" "256" + "tall" "128" + "image" "loadout/loadout_none" + } "Button9" { "ControlName" "Button" "fieldName" "Button9" - "xpos" "10" - "ypos" "265" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" + "xpos" "536" + "ypos" "336" + "wide" "256" + "tall" "128" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "MX" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 8" + "labelText" "" + "command" "loadout 8" "Default" "0" } + "Button10Image" + { + "ControlName" "ImagePanel" + "fieldName" "Button10Image" + "xpos" "8" + "ypos" "472" + "wide" "256" + "tall" "128" + "image" "loadout/loadout_none" + } "Button10" { "ControlName" "Button" "fieldName" "Button10" - "xpos" "10" - "ypos" "295" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" + "xpos" "8" + "ypos" "472" + "wide" "256" + "tall" "128" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "PZ252" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 9" + "labelText" "" + "command" "loadout 9" "Default" "0" } + "Button11Image" + { + "ControlName" "ImagePanel" + "fieldName" "Button11Image" + "xpos" "272" + "ypos" "472" + "wide" "256" + "tall" "128" + "image" "loadout/loadout_none" + } "Button11" { "ControlName" "Button" "fieldName" "Button11" - "xpos" "10" - "ypos" "325" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" + "xpos" "272" + "ypos" "472" + "wide" "256" + "tall" "128" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "Murata Supa-7" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 10" + "labelText" "" + "command" "loadout 10" "Default" "0" } + "Button12Image" + { + "ControlName" "ImagePanel" + "fieldName" "Button12Image" + "xpos" "536" + "ypos" "472" + "wide" "256" + "tall" "128" + "image" "loadout/loadout_none" + } "Button12" { "ControlName" "Button" "fieldName" "Button12" - "xpos" "10" - "ypos" "355" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" + "xpos" "536" + "ypos" "472" + "wide" "256" + "tall" "128" + "autoResize" "0" + "pinCorner" "0" + "RoundedCorners" "15" + "pin_corner_to_sibling" "0" + "pin_to_sibling_corner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "Mosok" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 11" + "labelText" "" + "command" "loadout 11" "Default" "0" } - "Button13" + "ReturnButton" { "ControlName" "Button" - "fieldName" "Button13" - "xpos" "10" - "ypos" "385" - "wide" "200" - "tall" "25" - "autoResize" "1" + "fieldName" "ReturnButton" + "xpos" "8" + "ypos" "608" + "wide" "256" + "tall" "24" + "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "Mosok (with scope)" + "labelText" "<< CHANGE CLASS" "textAlignment" "center" "dulltext" "0" - "brighttext" "0" + "brighttext" "1" "Font" "Default" "wrap" "0" - "Command" "loadout 12" - "Default" "1" - } - "Button14" - { - "ControlName" "Button" - "fieldName" "Button14" - "xpos" "10" - "ypos" "415" - "wide" "200" - "tall" "25" - "autoResize" "1" - "pinCorner" "0" - "visible" "0" - "enabled" "0" - "tabPosition" "0" - "textAlignment" "center" - "dulltext" "0" - "brighttext" "0" - "Font" "Default" - "wrap" "0" - "Command" "loadout 13" + "Command" "classmenu" "Default" "0" } -// "Weapon_ImagePanel" -// { -// "ControlName" "ImagePanel" -// "fieldName" "Weapon_ImagePanel" -// "xpos" "220" -// "ypos" "25" -// "wide" "620" -// "tall" "385" -// "autoResize" "1" -// "pinCorner" "0" -// "visible" "1" -// "enabled" "1" -// "tabPosition" "0" -// "image" "vgui/loadout/none" -// "scaleImage" "0" -// } - "BuildModeDialog" - { - "ControlName" "BuildModeDialog" - "fieldName" "BuildModeDialog" - "xpos" "33" - "ypos" "60" - "wide" "300" - "tall" "420" - "autoResize" "1" - "pinCorner" "0" - "visible" "1" - "enabled" "1" - "tabPosition" "0" - "settitlebarvisible" "1" - "title" "#Frame_Untitled" - } } diff --git a/mp/game/neo/resource/neo_ui/Neo_TeamMenu.res b/mp/game/neo/resource/neo_ui/Neo_TeamMenu.res index e60aa0c25..ec78ba21c 100644 --- a/mp/game/neo/resource/neo_ui/Neo_TeamMenu.res +++ b/mp/game/neo/resource/neo_ui/Neo_TeamMenu.res @@ -1,27 +1,76 @@ -"Resource/UI/TeamMenu.res" +"resource/neo_ui/Neo_TeamMenu.res" { "team" { - "ControlName" "CNeoTeamMenu" - "fieldName" "team" - "xpos" "332" - "ypos" "276" - "wide" "360" - "tall" "215" + "ControlName" "CNeoTeamMenu" + "fieldName" "team" + "xpos" "cs-0.5" + "ypos" "cs-0.5" + "wide" "360" + "tall" "215" + "autoResize" "0" + "pinCorner" "0" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "settitlebarvisible" "0" + "BgColor" "0 0 0 0" + } + "ngui_corner" + { + "ControlName" "ImagePanel" + "fieldName" "ngui_corner" + "xpos" "0" + "ypos" "0" + "wide" "16" + "tall" "16" + "autoResize" "0" + "pinCorner" "0" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "image" "ngui_corner" + "scaleImage" "0" + } + "title_bar" + { + "ControlName" "ImagePanel" + "fieldName" "title_bar" + "xpos" "16" + "ypos" "0" + "wide" "344" + "tall" "16" "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" "tabPosition" "0" - "settitlebarvisible" "0" - "title" "#Frame_Untitled" + "image" "ngui_titlebar" + "fillcolor" "black" + "scaleImage" "1" + } + "background" + { + "ControlName" "ImagePanel" + "fieldName" "background" + "xpos" "0" + "ypos" "16" + "wide" "f" + "tall" "199" + "autoResize" "0" + "pinCorner" "0" + "visible" "1" + "enabled" "1" + "tabPosition" "0" + "image" "ngui_body" + "scaleImage" "1" } "neo_IconPanel1" { - "ControlName" "IconPanel" + "ControlName" "ImagePanel" "fieldName" "neo_IconPanel1" "xpos" "10" - "ypos" "17" + "ypos" "18" "wide" "110" "tall" "110" "autoResize" "0" @@ -29,12 +78,12 @@ "visible" "1" "enabled" "1" "tabPosition" "0" - "image" "vgui/jinrai_128tm" + "image" "jinrai_128tm" "scaleImage" "1" } "neo_IconPanel2" { - "ControlName" "IconPanel" + "ControlName" "ImagePanel" "fieldName" "neo_IconPanel2" "xpos" "125" "ypos" "18" @@ -45,7 +94,7 @@ "visible" "1" "enabled" "1" "tabPosition" "0" - "image" "vgui/nsf_128tm" + "image" "nsf_128tm" "scaleImage" "1" } "neo_Label1" @@ -65,13 +114,13 @@ "textAlignment" "east" "dulltext" "0" "brighttext" "0" - "font" "NHudOCRSmall" + "font" "DefaultBold" "wrap" "0" } - "neo_IconPanel3" + "neo_IconPanel4" { - "ControlName" "IconPanel" - "fieldName" "neo_IconPanel3" + "ControlName" "ImagePanel" + "fieldName" "neo_IconPanel4" "xpos" "10" "ypos" "166" "wide" "340" @@ -81,8 +130,8 @@ "visible" "1" "enabled" "1" "tabPosition" "0" + "image" "darkgrey_background" "fillcolor" "black" - "image" "vgui/darkgrey_background" "scaleImage" "1" } "neo_jplayercountlabel" @@ -102,6 +151,7 @@ "textAlignment" "west" "dulltext" "0" "brighttext" "0" + "font" "DefaultBold" "wrap" "0" } "neo_jscorelabel" @@ -117,10 +167,11 @@ "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "SCORE:" + "labelText" "SCORE:0" "textAlignment" "west" "dulltext" "0" "brighttext" "0" + "font" "DefaultBold" "wrap" "0" } "neo_Divider1" @@ -150,10 +201,11 @@ "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "PLAYERS: 1" + "labelText" "PLAYERS:0" "textAlignment" "west" "dulltext" "0" "brighttext" "0" + "font" "DefaultBold" "wrap" "0" } "neo_nscorelabel" @@ -169,10 +221,11 @@ "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "SCORE:" + "labelText" "SCORE:0" "textAlignment" "west" "dulltext" "0" "brighttext" "0" + "font" "DefaultBold" "wrap" "0" } "neo_jinraibutton" @@ -192,9 +245,9 @@ "textAlignment" "center" "dulltext" "0" "brighttext" "0" - "font" "NHudOCRSmall" + "font" "DefaultBold" "wrap" "0" - "Command" "jointeam 2" + "command" "jointeam 2" "Default" "0" } "neo_nsfbutton" @@ -214,9 +267,9 @@ "textAlignment" "center" "dulltext" "0" "brighttext" "0" - "font" "NHudOCRSmall" + "font" "DefaultBold" "wrap" "0" - "Command" "jointeam 3" + "command" "jointeam 3" "Default" "0" } "neo_autobutton" @@ -232,14 +285,14 @@ "visible" "1" "enabled" "1" "tabPosition" "1" - "labelText" "AUTO ASSIGN " + "labelText" "AUTO ASSIGN" "textAlignment" "center" "dulltext" "0" "brighttext" "0" - "font" "NHudOCRSmall" + "font" "DefaultBold" "wrap" "0" - "Command" "jointeam 0" - "Default" "1" + "command" "jointeam a" + "Default" "0" } "neo_specbutton" { @@ -254,13 +307,13 @@ "visible" "1" "enabled" "1" "tabPosition" "2" - "labelText" "SPECTATE " + "labelText" "SPECTATE" "textAlignment" "center" "dulltext" "0" "brighttext" "0" - "font" "NHudOCRSmall" + "font" "DefaultBold" "wrap" "0" - "Command" "jointeam 1" + "command" "jointeam 1" "Default" "0" } "neo_CancelButton" @@ -276,13 +329,13 @@ "visible" "1" "enabled" "1" "tabPosition" "0" - "labelText" "CANCEL " + "labelText" "CANCEL" "textAlignment" "center" "dulltext" "0" "brighttext" "0" - "font" "NHudOCRSmall" + "font" "DefaultBold" "wrap" "0" - "Command" "vguicancel" - "Default" "0" - } + "command" "vguicancel" + "Default" "1" + } } diff --git a/mp/src/game/client/neo/c_neo_player.cpp b/mp/src/game/client/neo/c_neo_player.cpp index 57c6b616c..64dc73195 100644 --- a/mp/src/game/client/neo/c_neo_player.cpp +++ b/mp/src/game/client/neo/c_neo_player.cpp @@ -75,6 +75,7 @@ IMPLEMENT_CLIENTCLASS_DT(C_NEO_Player, DT_NEO_Player, CNEO_Player) RecvPropBool(RECVINFO(m_bInVision)), RecvPropBool(RECVINFO(m_bHasBeenAirborneForTooLongToSuperJump)), RecvPropBool(RECVINFO(m_bInAim)), + RecvPropBool(RECVINFO(m_bDroppedAnything)), RecvPropTime(RECVINFO(m_flCamoAuxLastTime)), RecvPropInt(RECVINFO(m_nVisionLastTick)), @@ -122,22 +123,13 @@ class NeoLoadoutMenu_Cb : public ICommandCallback return; } + panel->SetProportional(false); // Fixes wrong menu size when in windowed mode, regardless of whether proportional is set to false in the res file (NEOWTF) panel->ApplySchemeSettings(vgui::scheme()->GetIScheme(panel->GetScheme())); - int panelWide = 960, panelTall = 700, screenWide, screenTall; - surface()->GetScreenSize(screenWide, screenTall); - // Resize panel, but make sure it fits the resolution. - panel->SetSize(Min(screenWide, panelWide), Min(screenTall, panelTall)); - panel->SetPos((screenWide / 2) - (panelWide / 2), - (screenTall / 2) - (panelTall / 2)); - panel->SetMouseInputEnabled(true); - panel->SetKeyBoardInputEnabled(true); + //panel->SetKeyBoardInputEnabled(true); panel->SetCursorAlwaysVisible(true); - panel->SetControlEnabled("Scout_Button", true); - panel->SetControlEnabled("Misc2", true); - panel->SetControlEnabled("Done_Button", true); panel->SetControlEnabled("Button1", true); panel->SetControlEnabled("Button2", true); panel->SetControlEnabled("Button3", true); @@ -150,8 +142,7 @@ class NeoLoadoutMenu_Cb : public ICommandCallback panel->SetControlEnabled("Button10", true); panel->SetControlEnabled("Button11", true); panel->SetControlEnabled("Button12", true); - panel->SetControlEnabled("Button13", true); - panel->SetControlEnabled("Button14", true); + panel->SetControlEnabled("ReturnButton", true); panel->MoveToFront(); @@ -193,18 +184,11 @@ class NeoClassMenu_Cb : public ICommandCallback Warning("Couldn't find class panel\n"); return; } - + panel->SetProportional(false); panel->ApplySchemeSettings(vgui::scheme()->GetIScheme(panel->GetScheme())); - int panelWide = 650, panelTall = 280, screenWide, screenTall; - surface()->GetScreenSize(screenWide, screenTall); - // Resize panel, but make sure it fits the resolution. - panel->SetSize(Min(screenWide, panelWide), Min(screenTall, panelTall)); - panel->SetPos((screenWide / 2) - (panelWide / 2), - (screenTall / 2) - (panelTall / 2)); - panel->SetMouseInputEnabled(true); - panel->SetKeyBoardInputEnabled(true); + //panel->SetKeyBoardInputEnabled(true); panel->SetCursorAlwaysVisible(true); panel->SetControlEnabled("Scout_Button", true); @@ -248,18 +232,11 @@ class NeoTeamMenu_Cb : public ICommandCallback return; } + panel->SetProportional(false); panel->ApplySchemeSettings(vgui::scheme()->GetIScheme(panel->GetScheme())); - int panelWide = 360, panelTall = 215, screenWide, screenTall; - panelWide *= 1.5; panelTall *= 1.5; - surface()->GetScreenSize(screenWide, screenTall); - // Resize panel, but make sure it fits the resolution. - panel->SetSize(Min(screenWide, panelWide), Min(screenTall, panelTall)); - panel->SetPos((screenWide / 2) - (panelWide / 2), - (screenTall / 2) - (panelTall / 2)); - panel->SetMouseInputEnabled(true); - panel->SetKeyBoardInputEnabled(true); + //panel->SetKeyBoardInputEnabled(true); panel->SetCursorAlwaysVisible(true); panel->SetControlEnabled("jinraibutton", true); @@ -326,6 +303,7 @@ C_NEO_Player::C_NEO_Player() m_bInThermOpticCamo = m_bInVision = false; m_bHasBeenAirborneForTooLongToSuperJump = false; m_bInAim = false; + m_bDroppedAnything = false; m_pNeoPanel = NULL; @@ -1033,6 +1011,7 @@ bool C_NEO_Player::ShouldDrawHL2StyleQuickHud(void) void C_NEO_Player::Weapon_Drop(C_NEOBaseCombatWeapon *pWeapon) { + m_bDroppedAnything = true; Weapon_SetZoom(false); if (pWeapon->IsGhost()) diff --git a/mp/src/game/client/neo/c_neo_player.h b/mp/src/game/client/neo/c_neo_player.h index 10b6ebaee..c1136af58 100644 --- a/mp/src/game/client/neo/c_neo_player.h +++ b/mp/src/game/client/neo/c_neo_player.h @@ -193,6 +193,7 @@ class C_NEO_Player : public C_HL2MP_Player CNetworkVar(bool, m_bLastTickInThermOpticCamo); CNetworkVar(bool, m_bInVision); CNetworkVar(bool, m_bInAim); + CNetworkVar(bool, m_bDroppedAnything); CNetworkVar(int, m_iNeoClass); CNetworkVar(int, m_iNeoSkin); diff --git a/mp/src/game/client/neo/game_controls/neo_classmenu.cpp b/mp/src/game/client/neo/game_controls/neo_classmenu.cpp index 7a1e89e23..b1f26e743 100644 --- a/mp/src/game/client/neo/game_controls/neo_classmenu.cpp +++ b/mp/src/game/client/neo/game_controls/neo_classmenu.cpp @@ -58,64 +58,81 @@ CNeoClassMenu *g_pNeoClassMenu = NULL; using namespace vgui; +const char* playerModels[]{ + "cm/jinrai_scout01", + "cm/jinrai_scout02", + "cm/jinrai_scout03", + "cm/jinrai_assault01", + "cm/jinrai_assault02", + "cm/jinrai_assault03", + "cm/jinrai_heavy01", + "cm/jinrai_heavy02", + "cm/jinrai_heavy03", + "cm/nsf_scout02", + "cm/nsf_scout03", + "cm/nsf_scout01", + "cm/nsf_assault01", + "cm/nsf_assault02", + "cm/nsf_assault03", + "cm/nsf_heavy01", + "cm/nsf_heavy02", + "cm/nsf_heavy03", +}; + CNeoClassMenu::CNeoClassMenu(IViewPort *pViewPort) : vgui::Frame(NULL, PANEL_CLASS) { + Assert(pViewPort); // Quiet "parent not sized yet" spew SetSize(10, 10); - m_pViewPort = pViewPort; g_pNeoClassMenu = this; m_bClassMenu = false; - // NEO TODO (Rain): It appears that original Neotokyo - // hardcodes its scheme. We probably need to make our - // own res definition file to mimic it. - SetScheme("ClientScheme"); + LoadControlSettings(GetResFile()); + + SetPaintBorderEnabled(false); + SetPaintBackgroundEnabled(false); + SetBorder(NULL); SetVisible(false); - SetProportional(true); + SetProportional(false); SetMouseInputEnabled(true); - SetKeyBoardInputEnabled(true); - + //SetKeyBoardInputEnabled(true); // Leaving here to highlight menu navigation with keyboard is possible atm SetTitleBarVisible(false); - m_pImage_Jinrai_Recon_Skin1 = surface()->GetIconImageForFullPath("vgui/cm/jinrai_scout01"); - m_pImage_Jinrai_Recon_Skin2 = surface()->GetIconImageForFullPath("vgui/cm/jinrai_scout02"); - m_pImage_Jinrai_Recon_Skin3 = surface()->GetIconImageForFullPath("vgui/cm/jinrai_scout03"); - - m_pSkinPanel1 = new ImagePanel(this, "Model_ImagePanel"); - m_pSkinPanel2 = new ImagePanel(this, "Model_ImagePanel2"); - m_pSkinPanel3 = new ImagePanel(this, "Model_ImagePanel3"); - m_pSkinPanel1->SetImage(m_pImage_Jinrai_Recon_Skin1); - m_pSkinPanel2->SetImage(m_pImage_Jinrai_Recon_Skin2); - m_pSkinPanel3->SetImage(m_pImage_Jinrai_Recon_Skin3); - - m_pClassMenuLabel = new Label(this, "TitleLabel", "labelText"); - - m_pDivider = new Divider(this, "Divider1"); - - m_pRecon_Button = new Button(this, "Scout_Button", "labelText"); - m_pAssault_Button = new Button(this, "Assault_Button", "labelText"); - m_pSupport_Button = new Button(this, "Heavy_Button", "labelText"); - m_pBack_Button = new Button(this, "Back_Button", "labelText"); - - m_pRecon_Button->AddActionSignalTarget(this); - m_pAssault_Button->AddActionSignalTarget(this); - m_pSupport_Button->AddActionSignalTarget(this); - m_pBack_Button->AddActionSignalTarget(this); + FindButtons(); +} - InvalidateLayout(); +CNeoClassMenu::~CNeoClassMenu() +{ + m_pSkinPanel1->SetAutoDelete(true); + m_pSkinPanel2->SetAutoDelete(true); + m_pSkinPanel3->SetAutoDelete(true); + m_pSkin1_Button->SetAutoDelete(true); + m_pSkin2_Button->SetAutoDelete(true); + m_pSkin3_Button->SetAutoDelete(true); + m_pRecon_Button->SetAutoDelete(true); + m_pAssault_Button->SetAutoDelete(true); + m_pSupport_Button->SetAutoDelete(true); + m_pBack_Button->SetAutoDelete(true); } -inline Button *CNeoClassMenu::GetPressedButton() +void CNeoClassMenu::FindButtons() { - if (m_pRecon_Button->IsCursorOver()) { return m_pRecon_Button; } - if (m_pAssault_Button->IsCursorOver()) { return m_pAssault_Button; } - if (m_pSupport_Button->IsCursorOver()) { return m_pSupport_Button; } - if (m_pBack_Button->IsCursorOver()) { return m_pBack_Button; } - return NULL; + m_pSkinPanel1 = FindControl("Model1_ImagePanel"); + m_pSkinPanel2 = FindControl("Model2_ImagePanel"); + m_pSkinPanel3 = FindControl("Model3_ImagePanel"); + m_pSkin1_Button = FindControl