Dialogue text position

  • #1, by marianna-lapinaMonday, 15. April, 13:58 4 months ago
    I want the caracher text, and dialogue text to also be placed down where the object text is. Does anyone know how to do that? Thank you in advance!

    Newbie

    8 Posts


  • #2, by sebastianMonday, 15. April, 14:25 4 months ago
    I want the caracher text, and dialogue text to also be placed down where the object text is. Does anyone know how to do that? Thank you in advance!

    there is a very old script example in the wiki for that:

    Should still work =)

    Thread Captain

    2318 Posts

  • #3, by marianna-lapinaFriday, 17. May, 09:12 3 months ago
    It did work, thank you a lot. My next question is how to position the dialog options to be centered not aligned to the left? 

    Newbie

    8 Posts

  • #4, by AFRLmeSaturday, 18. May, 12:12 3 months ago
    I'm not sure that that's possible. I'm not seeing any options to center align them. I think Sebastian made a custom dialog script, maybe it's possible with that?

    Imperator

    6587 Posts

  • #5, by sebastianSaturday, 18. May, 12:57 3 months ago
    it would be possible. Did a stream (in german) on twitch where I showed /programmed a new version (with some bugs in the stream).
    The gui based on display object text, so its possible to center it. 
    But i guess the stream video is not available anymore... 

    Thread Captain

    2318 Posts

  • #6, by blanoSaturday, 06. July, 08:52 A month ago
    hello everyone, i followed the Tut. to manage text position but now i've to reset text position to default, how can i?

    Newbie

    54 Posts

  • #7, by sebastianSaturday, 06. July, 11:48 A month ago
    hello everyone, i followed the Tut. to manage text position but now i've to reset text position to default, how can i?

    just check for a condition in your script and either activate or deactivate the repositioning by setting this condition to true or false.

    Thread Captain

    2318 Posts

  • #8, by AFRLmeSaturday, 06. July, 12:13 A month ago
    Something along the lines of this...

    -- * function which updates the text position of displayed texts (character & narration) * --
    function txtPos(text)

    if Conditions["example"].Value then -- if condition "example" is true...
    text:setValue(VTextPosition, {x = game.ScrollPosition.x + (game.WindowResolution.x / 2), y = game.ScrollPosition.y + (game.WindowResolution.y - 85)}) -- define the new text position
    return true -- update text position
    end

    return false -- else don't update text position

    end

    registerHookFunction("setTextPosition", "txtPos") -- define the hook function for handling text position
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13



    Imperator

    6587 Posts

Write post