removed useless function
This commit is contained in:
@@ -65,7 +65,17 @@ public partial class dialog_bubble : CanvasLayer
|
|||||||
{
|
{
|
||||||
if (Visible)
|
if (Visible)
|
||||||
ProcessMode = ProcessModeEnum.Inherit;
|
ProcessMode = ProcessModeEnum.Inherit;
|
||||||
else ProcessMode = ProcessModeEnum.Disabled;
|
else if (richText != null)
|
||||||
|
{
|
||||||
|
dlgPointer = 0;
|
||||||
|
richText.VisibleCharacters = -1;
|
||||||
|
GetNode<Label>("box/name_label").Text = "???";
|
||||||
|
richText.Text = "";
|
||||||
|
if (GetParent().Name == "player") player.allowMovement = true;
|
||||||
|
isTalking = false;
|
||||||
|
forceClose = false;
|
||||||
|
ProcessMode = ProcessModeEnum.Disabled;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public override void _Process(double delta)
|
public override void _Process(double delta)
|
||||||
{
|
{
|
||||||
@@ -96,8 +106,7 @@ public partial class dialog_bubble : CanvasLayer
|
|||||||
}
|
}
|
||||||
dlgPointer++;
|
dlgPointer++;
|
||||||
}
|
}
|
||||||
if (dlgPointer > dlgLines.AsGodotArray().Count || forceClose)
|
Visible = !(dlgPointer > dlgLines.AsGodotArray().Count || forceClose);
|
||||||
CloseDialog();
|
|
||||||
}
|
}
|
||||||
public void UpdateDialog()
|
public void UpdateDialog()
|
||||||
{
|
{
|
||||||
@@ -158,16 +167,4 @@ public partial class dialog_bubble : CanvasLayer
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CloseDialog()
|
|
||||||
{
|
|
||||||
Visible = false;
|
|
||||||
dlgPointer = 0;
|
|
||||||
richText.VisibleCharacters = -1;
|
|
||||||
GetNode<Label>("box/name_label").Text = "???";
|
|
||||||
richText.Text = "";
|
|
||||||
if (GetParent().Name == "player") player.allowMovement = true;
|
|
||||||
isTalking = false;
|
|
||||||
forceClose = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user