I made a hack with multiple features such as checkboxes, sliders, combo boxes, buttons, text entry, labels.
When I go to the rage tab which is mostly filled with these features I drop about 100 fps.
I get the features by adding the function to the property sheet tab.
Example:
Code:
local function AddSlider(Parent, Text, X, Y, W, H, Min, Max, Decimals)
local Slider = vgui.Create("DSlider", Parent)
Slider:SetPos( X, Y )
Slider:SetSize( W, H )
Slider:SetText( Text )
Slider:SetMin( Min )
Slider:SetMax( Max )
Slider:SetDecimals( Decimals )
end
local function DrawFrame()
local Frame = vgui.Create( "DFrame" )
Frame:SetPos( 100, 100 )
Frame:SetSize( 300, 200 )
Frame:SetTitle( "My new Derma frame" )
Frame:SetDraggable( true )
Frame:MakePopup()
AddSlider(Frame, "Slider", 20, 20, 140, 10, 0, 100, 2)
end
DrawFrame()