Browse Source

fixed list not clear

master
jkpete 2 months ago
parent
commit
78c3800c9f
  1. 6
      Example/SaveSystem/Script/ViewSaveSystem.cs
  2. 4
      addons/EGFramework/Module/GenerateTools/Templete/Godot/UI/EGodotEditList.cs

6
Example/SaveSystem/Script/ViewSaveSystem.cs

@ -88,6 +88,12 @@ namespace EGFramework.Examples.Test @@ -88,6 +88,12 @@ namespace EGFramework.Examples.Test
{
GD.Print("Name:" + e["Name"] + "Age:" + e["Age"] + "School:" + e["School"] + "Path:" + e["Path"]);
}, "Edit");
DataStu dataStu = new DataStu("F", 1, "DE");
EGodotEditList editList2 = container.CreateNode<EGodotEditList>();
editList2.InitList(dataStu.EGenerateDictiontaryByObject(), e =>
{
GD.Print("Name:" + e["Name"] + "Age:" + e["Age"] + "School:" + e["School"] + "Path:" + e["Path"]);
}, "Edit");
}
public void TestJson()

4
addons/EGFramework/Module/GenerateTools/Templete/Godot/UI/EGodotEditList.cs

@ -90,8 +90,8 @@ namespace EGFramework.UI @@ -90,8 +90,8 @@ namespace EGFramework.UI
try
{
OnEdit.Invoke(EditCache);
OnDataEdit.UnRegister();
this.Visible = false;
// OnDataEdit.UnRegister();
// this.Visible = false;
}
catch (NullReferenceException)
{

Loading…
Cancel
Save