diff --git a/gamemodes/zombiesurvival/gamemode/cl_init.lua b/gamemodes/zombiesurvival/gamemode/cl_init.lua index c98147b..5be61c1 100644 --- a/gamemodes/zombiesurvival/gamemode/cl_init.lua +++ b/gamemodes/zombiesurvival/gamemode/cl_init.lua @@ -28,6 +28,7 @@ include("vgui/dexrotatedimage.lua") include("vgui/dexnotificationslist.lua") include("vgui/dexchanginglabel.lua") +include("vgui/mainmenu.lua") include("vgui/pmainmenu.lua") include("vgui/poptions.lua") include("vgui/phelp.lua") diff --git a/gamemodes/zombiesurvival/gamemode/init.lua b/gamemodes/zombiesurvival/gamemode/init.lua index 8bcb1a9..68bd714 100644 --- a/gamemodes/zombiesurvival/gamemode/init.lua +++ b/gamemodes/zombiesurvival/gamemode/init.lua @@ -59,6 +59,7 @@ AddCSLuaFile("vgui/dexrotatedimage.lua") AddCSLuaFile("vgui/dexnotificationslist.lua") AddCSLuaFile("vgui/dexchanginglabel.lua") +AddCSLuaFile("vgui/mainmenu.lua") AddCSLuaFile("vgui/pmainmenu.lua") AddCSLuaFile("vgui/poptions.lua") AddCSLuaFile("vgui/phelp.lua") diff --git a/gamemodes/zombiesurvival/gamemode/vgui/ppointshop.lua b/gamemodes/zombiesurvival/gamemode/vgui/ppointshop.lua index eadbdbe..88cea4e 100644 --- a/gamemodes/zombiesurvival/gamemode/vgui/ppointshop.lua +++ b/gamemodes/zombiesurvival/gamemode/vgui/ppointshop.lua @@ -85,10 +85,12 @@ local function ItemPanelThink(self) if newstate then self:AlphaTo(255, 0.75, 0) self.m_NameLabel:SetTextColor(COLOR_WHITE) + self.m_NameLabel:InvalidateLayout() self.m_BuyButton:SetImage("icon16/accept.png") else self:AlphaTo(90, 0.75, 0) self.m_NameLabel:SetTextColor(COLOR_RED) + self.m_NameLabel:InvalidateLayout() self.m_BuyButton:SetImage("icon16/exclamation.png") end diff --git a/gamemodes/zombiesurvival/gamemode/vgui/pworth.lua b/gamemodes/zombiesurvival/gamemode/vgui/pworth.lua index 2a90134..56d281f 100644 --- a/gamemodes/zombiesurvival/gamemode/vgui/pworth.lua +++ b/gamemodes/zombiesurvival/gamemode/vgui/pworth.lua @@ -54,10 +54,13 @@ local function CartDoClick(self, silent, force) pWorth.WorthLab:SetText("Worth: ".. WorthRemaining) if WorthRemaining <= 0 then pWorth.WorthLab:SetTextColor(COLOR_RED) + pWorth.WorthLab:InvalidateLayout() elseif WorthRemaining <= GAMEMODE.StartingWorth * 0.25 then pWorth.WorthLab:SetTextColor(COLOR_YELLOW) + pWorth.WorthLab:InvalidateLayout() else pWorth.WorthLab:SetTextColor(COLOR_LIMEGREEN) + pWorth.WorthLab:InvalidateLayout() end pWorth.WorthLab:SizeToContents() end @@ -497,10 +500,13 @@ function PANEL:DoClick(silent, force) pWorth.WorthLab:SetText("Worth: ".. WorthRemaining) if WorthRemaining <= 0 then pWorth.WorthLab:SetTextColor(COLOR_RED) + pWorth.WorthLab:InvalidateLayout() elseif WorthRemaining <= GAMEMODE.StartingWorth * 0.25 then pWorth.WorthLab:SetTextColor(COLOR_YELLOW) + pWorth.WorthLab:InvalidateLayout() else pWorth.WorthLab:SetTextColor(COLOR_LIMEGREEN) + pWorth.WorthLab:InvalidateLayout() end pWorth.WorthLab:SizeToContents() end