Search found 21026 matches

by Tony Li
Wed Mar 04, 2015 9:41 am
Forum: Dialogue System for Unity
Topic: Reload lua environment?
Replies: 3
Views: 1062

Reload lua environment?

Hi, Yes, call DialogueManager.ResetDatabase(). It takes one parameter, which can be: RevertToDefault: Restores the default database, removing any other databases that were added after startup, or KeepAllLoaded: Keeps all loaded databases in memory, but reverts them to their starting values. There ar...
by Tony Li
Wed Mar 04, 2015 2:46 am
Forum: Dialogue System for Unity
Topic: trouble with two npc sequential barks
Replies: 4
Views: 902

trouble with two npc sequential barks

Nick, Can you send an example project to tony (at) pixelcrushers.com? Exporting it as a unitypackage works best. If that's not possible, can you post screenshots of these: Inspector for Henry's dialogue entry and the entries immediate before and after. Inspector for Henry's and Mariah's bark UIs and...
by Tony Li
Tue Mar 03, 2015 2:38 pm
Forum: Dialogue System for Unity
Topic: trouble with two npc sequential barks
Replies: 4
Views: 902

trouble with two npc sequential barks

Hi Nick, For Jenny's lines, try setting the Sequence field like this: SendMessage(OnUse,,Mariah)@3 The "3" at the end tells the sequence to wait 3 seconds before sending "OnUse" to Mariah. On Jenny, make sure the bark UI's Duration field is set to 3 seconds (or however long you w...
by Tony Li
Tue Mar 03, 2015 11:03 am
Forum: Dialogue System for Unity
Topic: Clicking on an object to alter a quest state
Replies: 3
Views: 996

Clicking on an object to alter a quest state

Hi,



You can use the QuestLog class:

using PixelCrushers.DialogueSystem;



QuestLog.SetQuestState("My Quest", QuestState.Success);
by Tony Li
Thu Feb 26, 2015 6:12 pm
Forum: Dialogue System for Unity
Topic: Portrait Image Moving after first line of text.
Replies: 11
Views: 2602

Portrait Image Moving after first line of text.

This was a bug that affects versions up to 1.4.6.1. The fix is in the upcoming version 1.4.7.
by Tony Li
Wed Feb 25, 2015 4:39 pm
Forum: Dialogue System for Unity
Topic: Portrait Image Moving after first line of text.
Replies: 11
Views: 2602

Portrait Image Moving after first line of text.

I don't want to leave you waiting too long. The short answer is that the issue is with the Clip Children checkbox. Clip Children is a wrapper for GUI.BeginGroup() ... GUI.EndGroup(), which sets up clipping and temporarily adjusts the GUI coordinate system to the parent's rect bounds. When Clip Child...
by Tony Li
Wed Feb 25, 2015 8:48 am
Forum: Dialogue System for Unity
Topic: How to use a field from a Localized Text as a Dialogue Entry dialogue text ?
Replies: 1
Views: 530

How to use a field from a Localized Text as a Dialogue Entry dialogue text ?

Hi, The localization in dialogue databases (i.e., dialogue text) is separate from localized text tables. They're different things. Localized text tables are for non-dialogue purposes, such as localizing menu text. Dialogue text should be localized in the Dialogue Editor (directly in a dialogue entry...
by Tony Li
Wed Feb 25, 2015 8:02 am
Forum: Dialogue System for Unity
Topic: Portrait Image Moving after first line of text.
Replies: 11
Views: 2602

Portrait Image Moving after first line of text.

I got the link. I'll download it and let you know what I find.
by Tony Li
Wed Feb 25, 2015 5:40 am
Forum: Dialogue System for Unity
Topic: Portrait Image Moving after first line of text.
Replies: 11
Views: 2602

Portrait Image Moving after first line of text.

Please export it as a unitypackage. This will keep all the references intact. In the Project view, right-click on the scene and select Export package.... By default, it will pick up all of the dependencies. To make the package smaller, you can deselect the Dialogue System. I'm sure I have a copy of ...
by Tony Li
Wed Feb 25, 2015 4:52 am
Forum: Dialogue System for Unity
Topic: Portrait Image Moving after first line of text.
Replies: 11
Views: 2602

Portrait Image Moving after first line of text.

That's kind of an unusual scaled rect. If I read it correctly: The bottom left of the scaled rect is aligned to the bottom left of the screen. It's offset to the left by 0.7 of the screen width, and down by 0.07 of the screen height. So if the screen is 100x100, the rect is offset (-70,+7). The size...