Jump to content

Recommended Posts

When you set the position (SetPosition) of a text or button. It always alight (for me at least) from the center of the text and button.
Is it possible to change alignment or move the pivot point? So it calc the new position from the left side of a text or button?
I tested with:

require "constants"
...
function MyRecipePopup:Refresh()
	self.name:SetHAlign(ANCHOR_LEFT)
...

So my guess SetHAlign is more for the widget anchour in the container rather than the text alignment.

Edited by The-any-Key

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...