32 lines
644 B
C#
32 lines
644 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using EventParts;
|
|
using Godot;
|
|
using Godot.Bridge;
|
|
using Godot.NativeInterop;
|
|
|
|
[ScriptPath("res://Scripts/Events/EventParts/DialoguePart.cs")]
|
|
public partial class DialoguePart : Node, EventPart
|
|
{
|
|
[Export(PropertyHint.None, "")]
|
|
private string pointer;
|
|
|
|
[Export(PropertyHint.None, "")]
|
|
public bool parallel { get; set; }
|
|
|
|
public Coroutine routine { get; set; }
|
|
|
|
EventController EventPart.parent { get; set; }
|
|
|
|
public IEnumerator Routine()
|
|
{
|
|
TextSystem.GetText(pointer);
|
|
while (TextSystem.instance.Visible)
|
|
{
|
|
yield return null;
|
|
}
|
|
}
|
|
|
|
}
|