Menu buttons placement

I want to place some menu button side to side but the problem is that i can only move the button to the right because when i put SetSize( 0,50) it will be in the middle and when i put in SetSize( -150,50) it wont work.

Here the full code

team_5 = vgui.Create( "DButton", frame )
team_5:SetPos( frame:GetTall() / 150, 150 )
team_5:SetSize( 150, 50 )
team_5:SetText( "Team 5" )
team_5.DoClick = function()
    RunConsoleCommand( "team_5" )


To position the button, use SetPos, not SetSize.

he already has SetPos

Ever heard of DermaDesigner?

I was suggesting that he adjusts the SetPos he currently has, because it is obviously wrong. No offense, but I am pretty sure he has no idea what he is doing in the first place.

Well i know what im doing and i’m editing the right value but when i put it on “0” it goes to the middle of the menu and if i put it on “10” it will go 10 pixels to the left but how can i get it to move to the right?

If you parent it to the right frame, and set the position to (0,0), it will be in the top left corner. Adding 10 will not move it to the left.

As far as I know, DermaDesigner is not finished yet and people get positioning errors (etcetera) upon running the code.

I used derma as a quick test and it worked fine without error’s gonna give that a try for the full menu

(I do needed to modify the code before it worked)