zc
This commit is contained in:
Binary file not shown.
@@ -22,15 +22,14 @@ namespace WulaFallenEmpire
|
|||||||
EventDef eventDef = DefDatabase<EventDef>.GetNamed(defName, false);
|
EventDef eventDef = DefDatabase<EventDef>.GetNamed(defName, false);
|
||||||
if (eventDef != null)
|
if (eventDef != null)
|
||||||
{
|
{
|
||||||
var existing = Find.WindowStack.WindowOfType<Overlay_WulaLink>();
|
var existing = Find.WindowStack.WindowOfType<Dialog_AIConversation>();
|
||||||
if (existing != null)
|
if (existing != null)
|
||||||
{
|
{
|
||||||
existing.Expand();
|
|
||||||
Find.WindowStack.Notify_ManuallySetFocus(existing);
|
Find.WindowStack.Notify_ManuallySetFocus(existing);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Find.WindowStack.Add(new Overlay_WulaLink(eventDef));
|
Find.WindowStack.Add(new Dialog_AIConversation(eventDef));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user