ige.ui.style - attributes

Post your help queries and engine programming questions here

ige.ui.style - attributes

Postby Killersan » Thu Aug 21, 2014 11:21 pm

Do You know is there any kind of list for ige.ui.style(name,data) - data attributes ?

I would like to know what can I do with text positioning (align, valign, etc.)
I want to display text-name over the character, which will be centered horizontally, but vertically on top of the character. Right now I can adjust it by placing 'top', 'left' parameters, but it won't resolve the problem because the length will depends on the characters name.
User avatar
Posts: 24
Joined: Sat Jun 21, 2014 1:45 pm

Re: ige.ui.style - attributes

Postby robaldred » Wed Sep 17, 2014 12:04 pm

Hello, I know this is an old post, I just though I would provide an answer in the interest of others with similar queries.

Unfortunately there is no master list of the style properties available.

There are a few classes that will aid you to determine what you can use.
  • IgeUiElement
  • IgeUiStyleExtension
  • IgeUiPositionExtension
  • IgeFontEntity
Have a look through them it should give you and idea of the sorts of properties you can adjust.

Im assuming that you're using an IgeUiLabel entity for displaying text.
That object has an IgeFontEntity which is what actually contains the text you set for your label.

You can control the positioning using the textAlignX and textAlignY methods.


Code: Select all
//possible arguments are 0,1,2 (left, centre, right)

//possible arguments are 0,1,2 (top, middle, bottom)
I don't work for Irrelon. All comments are my own.
I would strongly encourage anyone building production projects with Isogenic to buy a premium licence, it costs very little and will help towards continued development of the engine. Irrelon have spent thousands of hours developing this wonderful platform with many features found in AAA game engine.
User avatar
Posts: 243
Joined: Wed Oct 23, 2013 8:09 pm
Location: Manchester, England

Return to Help & Questions

Who is online

Users browsing this forum: No registered users and 1 guest