From 7f0d59ccc8289211ab56dd1c4204f950413b5202 Mon Sep 17 00:00:00 2001 From: Fesiug Date: Wed, 1 Nov 2023 19:08:44 -0400 Subject: [PATCH] DPropertySheet for the rightside thing --- .../benny/gamemode/modules/tools/cl_deadeye.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/gamemodes/benny/gamemode/modules/tools/cl_deadeye.lua b/gamemodes/benny/gamemode/modules/tools/cl_deadeye.lua index 539aa52..2ef5d48 100644 --- a/gamemodes/benny/gamemode/modules/tools/cl_deadeye.lua +++ b/gamemodes/benny/gamemode/modules/tools/cl_deadeye.lua @@ -213,9 +213,14 @@ function OpenDeadeye() draw.SimpleText( "fov: " .. math.Round( MODEL:GetFOV() ), "Trebuchet24", 8, 4+48, color_white, TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP ) end + local MODELPSHEET = SIDE_MODEL:Add( "DPropertySheet" ) + MODELPSHEET.Paint = QUICKDIRT + local MODELSETTINGS = SIDE_MODEL:Add( "DScrollPanel" ) MODELSETTINGS.Paint = QUICKDIRT + MODELPSHEET:AddSheet( "Actor Alyx", MODELSETTINGS ) + local flexlist = {} for i=0, MODEL.Entity:GetFlexNum()-1 do -- Model settings flexlist[MODEL.Entity:GetFlexName( i )] = true @@ -247,7 +252,7 @@ function OpenDeadeye() local DIVIDER = SIDE_MODEL:Add( "DHorizontalDivider" ) DIVIDER:Dock( FILL ) DIVIDER:SetLeft( MODEL ) - DIVIDER:SetRight( MODELSETTINGS ) + DIVIDER:SetRight( MODELPSHEET ) DIVIDER:SetDividerWidth( 8 ) DIVIDER:SetLeftMin( 20 ) DIVIDER:SetRightMin( 240 ) @@ -274,6 +279,16 @@ function OpenDeadeye() SPEED:SetValue( 100 ) SPEED:SetDecimals( 0 ) SPEED.Paint = QUICKDIRT + + do + local BLINKY = SIDE_CHOREO:Add( "DPanel" ) + BLINKY:SetPos( 4, 4+4+20 ) + BLINKY.Paint = QUICKDIRT + function BLINKY:PerformLayout( w, h ) + local par = BLINKY:GetParent() + BLINKY:SetSize( par:GetWide() - 8, par:GetTall() - 20 - 12 ) + end + end end end end