- Initiateur de la discussion
R
RgV
Nouveau né
- Messages
- 5
- Score réaction
- 0
- Points
- 15
Bonjour je suis en train de faire un script mais je n'arrive pas a rajouter une scroll barre je la vois mais quand je la descend sa ne descend pas mon DFrame.
EXEMPLE
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 50,50 )
DermaPanel:SetSize( 250, 250 )
DermaPanel:SetTitle( "Testing Derma Stuff" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true )
DermaPanel:ShowCloseButton( true )
DermaPanel:MakePopup()
DermaList = vgui.Create( "DPanelList", DermaPanel )
DermaList:SetPos( 25,25 )
DermaList:SetSize( 200, 200 )
DermaList:SetSpacing( 5 ) -- Spacing between items
DermaList:EnableHorizontal( false ) -- Only vertical items
DermaList:EnableVerticalScrollbar( true ) -- Allow scrollbar if you exceed the Y axis
local DVScrollBar = vgui.Create("DVScrollBar", DermaFrame )
DVScrollBar:SetSize( 16, 690)
DVScrollBar:SetPos(DermaFrame:GetWide() - 16,30)
DVScrollBar:SetUp(300,1000)
DVScrollBar:SetEnabled(true)
Slawer à dit:Utilises un DPanelList pour tout tes items. Il intègre la scrollbar direct si besoin
DPanelList was succeeded in version 13 by more specialised layout elements, such as a combination of DIconLayout, DListLayout and DScrollPanel.
Ne pas utiliser :vThis feature is deprecated.
You should avoid using it as it may be removed in a future version.