I’ve got this DLabel code I’m testing with for practice:
for k, v in ipairs( maps ) do
local text = vgui.Create( "DLabel", menurtv )
text:SetFont( "DermaDefault" )
text:SetColor( Color( 255, 255, 255, 255 ) )
text:SetText( tostring(k).."] "..v )
text:SetPos( 5, (26 * k-1) )
text:SizeToContents()
Keys[k+1] = { text, v == "Extend Current Map" and "EXTEND" or k }
end
Now, how would I position the label so that it as an object as a whole is moved down, changing the yaxis in SetPos() only changes the separation.