Sometimes the name of the speaker should appear at the right of the screen to look decent. How can I make the secondary message box to have different actors name position?
Change actor's name position on show messages (2 positions)
● ARCHIVED · READ-ONLY
-
-
Hello Ekix,
the way to achieve that depends on the project template you are using. Did you select Scripted-UI or Action-based UI when you created the project? -
is Scene based UI 1080p, and I mean the shadowy-transparent message box, the other message box is just a common event but I dont use that white message box
-
Ok, why do not use the common event based message box? Because that shadowy message box requires script changes to also open the right menus when you click on Menu, Save and Load. If you want to change that message box, you have to edit the templates.
Go to Script Editor > Layouts > Templates > Template_MessageBox and look out for this part:
Code:{ "type": "ui.Text", "updateBehavior": "continuous", "text": "", "style": "messageBoxNameText", "formulas": [ $ -> o.text = $dataFields.scene.currentCharacter.name $ -> if @onTextChange $dataFields.scene.currentCharacter.name then o.font.color.setFromObject $dataFields.scene.currentCharacter.textColor or Color.WHITE ], "zIndex": 5005, "sizeToFit": true, "frame": [148, "100% - 210", 128, 30] }
At the bottom you can see "frame" which controls the position of the name-text. By default, the position on x-axis is 148. If you increase that value, the name text will move more to the right. Let me know if that helps you out. -
Thanks it did help but I wanted to keep the left position too and have both name box positions to use when I want.
I don't use the common event message box because I couldn't control the text area message to be the same as the bg for the message box, seems like is bugged or something. Also I like the menu of shadowy message box.