Change action text area in different scenes

  • #1, by sebastianWednesday, 18. May 2016, 22:12 8 years ago
    Hey there

    Is there a way to change the action text area from a rectangular display at the bottom of the screen (default) to display it relative to the cursor in some screens?

    Kind regards
    Sebastian

    Thread Captain

    2346 Posts


  • #2, by afrlmeWednesday, 18. May 2016, 22:48 8 years ago
    I take it you didn't check the data structure page on the wiki? razz
    game.DrawActionText = 0 -- don't draw action text
    game.DrawActionText = 1 -- draw action text at cursor
    game.DrawActionText = 2 -- draw action text inside rect
    

    game.ActionTextRect is apparently unscriptable. If that just means that updating it will not get stored in the save file, or it needs the scene reloading to show changes or it's not scriptable in general, I don't know.

    Imperator

    7278 Posts

  • #3, by sebastianWednesday, 18. May 2016, 23:00 8 years ago
    I must confess that i didnt check the wiki, yes^^

    Thought i have to add extra interfaces and add an action text area there, etc... Wasn't sure whats best practice here...

    I will try to do as you mentioned. Seems to be the easiest way.

    Thread Captain

    2346 Posts

  • #4, by sebastianThursday, 19. May 2016, 10:15 8 years ago
    One more thing:
    Can i positionate the text which is drawn at thw cursor relative to it?
    I want it to be (nearly) centered below the cursor instead of its normal place...

    Thread Captain

    2346 Posts

  • #5, by afrlmeThursday, 19. May 2016, 11:26 8 years ago
    No I don't think so, but you could probably use the display object text or a background narration text in a loop & use Lua to force the position of that & the string part of a value for inputting the text into. Clear the text to make it empty. It's just an idea out of my (currently half asleep) mind.

    Imperator

    7278 Posts

  • #6, by sebastianThursday, 19. May 2016, 11:30 8 years ago
    If nothing helps i will create special cursors with predefined texts inside the cursor graphic...

    But first: testing and stuff...

    *throws a smoke granade and disappears*
    $Ninja

    Thread Captain

    2346 Posts

  • #7, by afrlmeThursday, 19. May 2016, 14:20 8 years ago
    I -ing hate ninjas! thieving bugrit's millennium hand & shrimp!

    Imperator

    7278 Posts

  • #8, by sebastianThursday, 19. May 2016, 15:24 8 years ago
    @devs : By the way changing the relative position of the actiontext to the cursor would be a great feature smile

    Thread Captain

    2346 Posts

  • #9, by afrlmeThursday, 19. May 2016, 15:53 8 years ago
    Yeah it would be nice. We recently tried displaying text at cursor, but for some reason it's pushed really far over to the right of the cursor. Maybe the offset is based on the width of the entire cursor sprite?

    Imperator

    7278 Posts

  • #10, by sebastianThursday, 19. May 2016, 18:03 8 years ago
    "Maybe the offset is based on the width of the entire cursor sprite?"

    I would guess so.

    Thread Captain

    2346 Posts

  • #11, by afrlmeThursday, 19. May 2016, 21:05 8 years ago
    We had quite a wide background amount as one of the cursors (exit) used to have a fairly large & overly complicated animation. We changed that recently though, so I might use XnConvert to crop into the animation frames for all of the cursors.

    Imperator

    7278 Posts