Change action text area in different scenes

  • #1, z sebastianWednesday, 18. May 2016, 22:12 hodinky 9 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

    Kapitán

    2346 Posts


  • #2, z afrlmeWednesday, 18. May 2016, 22:48 hodinky 9 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.

    Imperátor

    7285 Posts

  • #3, z sebastianWednesday, 18. May 2016, 23:00 hodinky 9 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.

    Kapitán

    2346 Posts

  • #4, z sebastianThursday, 19. May 2016, 10:15 hodinky 9 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...

    Kapitán

    2346 Posts

  • #5, z afrlmeThursday, 19. May 2016, 11:26 hodinky 9 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.

    Imperátor

    7285 Posts

  • #6, z sebastianThursday, 19. May 2016, 11:30 hodinky 9 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

    Kapitán

    2346 Posts

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

    Imperátor

    7285 Posts

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

    Kapitán

    2346 Posts

  • #9, z afrlmeThursday, 19. May 2016, 15:53 hodinky 9 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?

    Imperátor

    7285 Posts

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

    I would guess so.

    Kapitán

    2346 Posts

  • #11, z afrlmeThursday, 19. May 2016, 21:05 hodinky 9 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.

    Imperátor

    7285 Posts