Text Box Positioning with UnifiedAreaRect
Moderators: CEGUI MVP, CEGUI Team
Text Box Positioning with UnifiedAreaRect
I managed to get my editbox somewhat positioned where I want it with "<Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.45,0},{0.6,0},{0.48,0}}" />" but it is just roughly positioned. Im extremely anal, so I am wondering if there is a more precise way to position elements. Something like xPos = (ParentWindowWidth / 2) - (TextBoxWidth / 2). Obviously I can't do math operations from the layout file, but I am wondering if something more precise is there that I am missing.
Re: Text Box Positioning with UnifiedAreaRect
Sounds like you want the item centered? I believe you can set the window alignment to "Centre". Then, all you really need to do is set the dimensions. I don't have any samples in front of me unfortunately.
Who is online
Users browsing this forum: Google [Bot] and 15 guests