Object text gets ignored

  • #1, by ke4Monday, 17. April 2017, 10:01 7 years ago
    Hi,

    i've been trying to solve this but can't find anything. I'm moving with interface via the :to() function, all works but the object texts inside of this interface linked to the interface buttons gets ignored. They don't move with the interface, they are being shown at the position that has been set for them no matter what.

    Any idea what could be wrong? This same thing works for Sebastian. Tested in RC0.
    Thanks.

    Key Killer

    810 Posts


  • #2, by sebastianMonday, 17. April 2017, 11:12 7 years ago
    could it be that it has something to do with the text font  itself? That's the only thibg we didn't check over the last private messages... 

    I use a png font with a max line width set. 

    Thread Captain

    2346 Posts

  • #3, by ke4Monday, 17. April 2017, 11:24 7 years ago
    Damn Sebastian you've solved it! grin I'm using .ttf fonts for the game. Works with .png fonts. Well .ttf fonts looks better, they have better adjustments but i can work with that.

    Maybe this could be fixed in the future? razz

    Key Killer

    810 Posts

  • #4, by sebastianMonday, 17. April 2017, 12:12 7 years ago
    Haha, glad it works now smile 

    to make this clear for the devs: sticked object text to their corresponding object/button should be normal. When moving an interface via Lua with object text on it, the whole text should move with it smile 

    (like it does with non ttf Fonts already) 

    So the coordinates using in the object text action part are not absolute to the screen but relative to its parent (interface) . 

    Even if we can't move the text directly. Moving its interface and by that moving the text is pretty cool. 

    Scrolling texts are possible with this (credits, scrollable lists, diary entries) . 

    Slide-in/out texts make some things look cooler (my custom dialog system uses this) .  

    If i interpret it right these texts would also be affected indirectly by all the :to stuff applied to its holding interface. 

    peace out  *drops mic*

    Thread Captain

    2346 Posts