Is there a way I can allign the text to the center on multiple question choises?

  • #1, by nerdTuesday, 25. September 2018, 07:36 2 years ago
    Is there a way I can allign the text to the center on multiple question choises?
    I don't mean the textbox position, I mean the text allignment, I'd like it to the center instead of showing alligned to left

    Forum Fan

    147 Posts


  • #2, by sebastianTuesday, 25. September 2018, 11:02 2 years ago
    As far as i know this is not possible with the standard dialogue system.
    I cant find any setting for this. 

    If you really need this, i would recommend to send the feature request to one of the devs or post it here in the forum and hope they add that function in a future release. 

    Another solution right now would be to code your own dialogue system which may would require Lua. 

    Thread Captain

    2336 Posts

  • #3, by nerdTuesday, 25. September 2018, 15:03 2 years ago
    As far as i know this is not possible with the standard dialogue system.
    I cant find any setting for this. 

    If you really need this, i would recommend to send the feature request to one of the devs or post it here in the forum and hope they add that function in a future release. 

    Another solution right now would be to code your own dialogue system which may would require Lua. 
    I m not a programmer unfortunately, but I want to learn.
    Can you guys help me with the script? I used this script for char dialogues, it must not look something different from the script for dialogues:
    -- let's create the function which sets the position of displayed text
    function setTextPosHook(text)
    -- if text owner is a character then...
    if text:getLink(VTextOwner):getId().tableId == eCharacters then
    text:setValue(VTextPosition, {x=960, y=100})
    return true
    end
    end
    1
    2
    3
    4
    5
    6
    7
    8
    9

    Forum Fan

    147 Posts

  • #4, by afrlmeTuesday, 25. September 2018, 17:13 2 years ago
    That script will just force display texts (when a character speaks) into the specified position. The alignment you set for text alignment under the main game settings area of the editor will also play a part.

    This will not affect the dialog system at all.

    Imperator

    6815 Posts

  • #5, by nerdWednesday, 26. September 2018, 00:44 2 years ago
    That script will just force display texts (when a character speaks) into the specified position. The alignment you set for text alignment under the main game settings area of the editor will also play a part.

    This will not affect the dialog system at all.
    I know. Can you suggest me some script to allign to the center the multiple question dialogue? Pleeeeeaaaase

    Forum Fan

    147 Posts

  • #6, by sebastianWednesday, 26. September 2018, 01:00 2 years ago
    Beside repositioning the texts, you would also need to change the polygon for the clickable area, too. And there is currently no way to change it for the default dialogue system, as it has no possibilities to hook into or change the relevant information for the displayed texts. 

    Depending on how complex you want to have your dialogues itself, you may could build your own interface with centered object texts from scratch. But this will not work with the default system. 

    Thread Captain

    2336 Posts

  • #7, by nerdWednesday, 26. September 2018, 12:47 2 years ago
    Beside repositioning the texts, you would also need to change the polygon for the clickable area, too. And there is currently no way to change it for the default dialogue system, as it has no possibilities to hook into or change the relevant information for the displayed texts. 

    Depending on how complex you want to have your dialogues itself, you may could build your own interface with centered object texts from scratch. But this will not work with the default system. 
    Well since I understand nothin of scripting I cannot manage all this stuff. Anyway at least I've manage to copy/paste two codes that make it possibile to center dialoges and alternate text boxes based on who s speaking

    Forum Fan

    147 Posts

  • #8, by afrlmeWednesday, 26. September 2018, 13:46 2 years ago
    Wouldn't be a bad idea to look into learning a bit of Lua script. It's one of the easier languages to learn. You only really need the basics, then you use the data structure & scripting pages on the wiki (link in menu above) or Simon's Lua docs page.

    This is a great place to start. It's a blog that covers the basics; written out in laymen terms.

    Imperator

    6815 Posts

  • #9, by nerdWednesday, 26. September 2018, 14:31 2 years ago
    Wouldn't be a bad idea to look into learning a bit of Lua script. It's one of the easier languages to learn. You only really need the basics, then you use the data structure & scripting pages on the wiki (link in menu above) or Simon's Lua docs page.

    This is a great place to start. It's a blog that covers the basics; written out in laymen terms.

    Ok, nice, thank you for the docs.

    Forum Fan

    147 Posts

Write post