- Initiateur de la discussion
MaathisHDYT
Geek
- Messages
- 16
- Score réaction
- 0
- Points
- 70
Bonjour j'ai un problème mon DButton est cacher par la DFrame voici le code
local Frame = vgui.Create( "DFrame" )
Frame:SetSize( ScrW() - 1250, ScrH() - 250 )
Frame:SetTitle( "" )
Frame:SetVisible( true )
Frame:SetDraggable( false )
Frame:ShowCloseButton( true )
Frame:MakePopup()
Frame:Center()
Frame.Paint = function()
draw.RoundedBox( 15, 0, 0, Frame:GetWide()-0, Frame:GetTall()-0, Color( 5, 1, 131, 200 ) )
local DButton = vgui.Create( "DButton", frame ) // Create the button and parent it to the frame
DButton:SetText( "Forum" ) // Set the text on the button
DButton:SetPos( 800, 500 ) // Set the position on the frame
DButton:SetSize( 250, 30 ) // Set the size
DButton.DoClick = function()gui.OpenURL("https://forumlaloucherp.mtxserv.com/forums/index.php")// A custom function run when clicked ( note the . instead of : )
end
Merci
local Frame = vgui.Create( "DFrame" )
Frame:SetSize( ScrW() - 1250, ScrH() - 250 )
Frame:SetTitle( "" )
Frame:SetVisible( true )
Frame:SetDraggable( false )
Frame:ShowCloseButton( true )
Frame:MakePopup()
Frame:Center()
Frame.Paint = function()
draw.RoundedBox( 15, 0, 0, Frame:GetWide()-0, Frame:GetTall()-0, Color( 5, 1, 131, 200 ) )
local DButton = vgui.Create( "DButton", frame ) // Create the button and parent it to the frame
DButton:SetText( "Forum" ) // Set the text on the button
DButton:SetPos( 800, 500 ) // Set the position on the frame
DButton:SetSize( 250, 30 ) // Set the size
DButton.DoClick = function()gui.OpenURL("https://forumlaloucherp.mtxserv.com/forums/index.php")// A custom function run when clicked ( note the . instead of : )
end
Merci