Jump to content

Recommended Posts

Spoiler
AddClassPostConstruct("screens/redux/pausescreen", function(self)
	self.menu:SetScale(.9)
	self.menu:SetPosition(self.menu:GetPosition() + GLOBAL.Vector3(0,8,0)) -- move up 8 units tried local bw, bh = self.menu.items[1]:GetSize() but didnt work
	self.menu:AddItem("example", function() 
		return -- Whatever you want ur button to do
	end)
	for _,v in pairs(self.menu.items) do
		v:SetScale(.7)
	end
end)

 

You're going to have to use EditItem if you want to swap the position of menu items, I think.

EditItem(num, text, text_size, cb)

cb is the function, num is the index

Edited by oregu

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...