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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
WeiYiHua
Posts: 10
Joined: Mon Mar 25, 2024 10:27 pm

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

Post 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!
Attachments
2024-03-29 110903.png
2024-03-29 110903.png (40.04 KiB) Viewed 194 times
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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 185 times

Then it will appear in the main section:

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

p.s. - Please remove the fields whose titles are blank.
WeiYiHua
Posts: 10
Joined: Mon Mar 25, 2024 10:27 pm

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

Post 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?
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
WeiYiHua
Posts: 10
Joined: Mon Mar 25, 2024 10:27 pm

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

Post 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.
Attachments
2024-03-29 213121.png
2024-03-29 213121.png (53.1 KiB) Viewed 181 times
2024-03-29 213202.png
2024-03-29 213202.png (80.33 KiB) Viewed 181 times
Post Reply