improved answerbox string

This commit is contained in:
2023-02-07 16:15:23 +01:00
parent 04348e38e4
commit f94393e883

View File

@@ -59,7 +59,7 @@ public partial class dialog_bubble : CanvasLayer
} }
else if (dlgLines.AsGodotArray()[dlgPointer].VariantType == Variant.Type.Dictionary) else if (dlgLines.AsGodotArray()[dlgPointer].VariantType == Variant.Type.Dictionary)
{ {
MakeAnswerBox(dlgLines.AsGodotArray()[dlgPointer].AsGodotDictionary().Keys.ToString().Trim('[', ']').Split(",")); MakeAnswerBox(Json.ParseString(dlgLines.AsGodotArray()[dlgPointer].AsGodotDictionary().Keys.ToString()).AsStringArray());
GetNode<PanelContainer>("box/panel_container").Visible = true; GetNode<PanelContainer>("box/panel_container").Visible = true;
} }