Page 1 of 1

BUG: DrawLocalizedVersions method of Actor Section fails to draw Display Name

Posted: Thu Mar 28, 2024 11:28 pm
by WeiYiHua
v 2.2.44.1

The Actor Section fails to draw the Localized Versions for Display Name. This seems to be caused by incorrect values in DialogueEditorWindow.languages.

Additionally, I would like to inquire about how to draw the Localized Versions of Description in the Actor Section. Could you provide a code example? Thank you!

Re: BUG: DrawLocalizedVersions method of Actor Section fails to draw Display Name

Posted: Fri Mar 29, 2024 8:42 am
by Tony Li
Hi,

If you want a field to appear in the main section, add it to the Template and tick the "Main" checkbox:

mainSection1.png
mainSection1.png (47.89 KiB) Viewed 186 times

Then it will appear in the main section:

mainSection2.png
mainSection2.png (34.62 KiB) Viewed 186 times

p.s. - Please remove the fields whose titles are blank.

Re: BUG: DrawLocalizedVersions method of Actor Section fails to draw Display Name

Posted: Fri Mar 29, 2024 9:11 am
by WeiYiHua
Thank you, this is effective. I have one more question: why don't the Templates for Items, Locations, and Variables have a 'Main' checkbox?

Re: BUG: DrawLocalizedVersions method of Actor Section fails to draw Display Name

Posted: Fri Mar 29, 2024 9:16 am
by Tony Li
Hi,

Variables always only have a Title, Initial Value, and Description. There's no need to show anything else in the main section.

The missing "Main" checkbox for Items and Locations is an oversight. (No one's asked for them before.) I'll add them in version 2.2.45.

Re: BUG: DrawLocalizedVersions method of Actor Section fails to draw Display Name

Posted: Fri Mar 29, 2024 9:33 am
by WeiYiHua
Thank you, this is very helpful.
Just a reminder, in Scripts\Editor\Dialogue Editor\DialogueEditorWindowActorSection.cs, Line: 287 calls the DrawLocalizedVersions method, similar to what's done in DialogueEditorWindowItemSection.cs. The Quest Section displays correctly, but the Actor Section does not.