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
{ {
GD.Print("Name:" + e["Name"] + "Age:" + e["Age"] + "School:" + e["School"] + "Path:" + e["Path"]); GD.Print("Name:" + e["Name"] + "Age:" + e["Age"] + "School:" + e["School"] + "Path:" + e["Path"]);
}, "Edit"); }, "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() public void TestJson()

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

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

Loading…
Cancel
Save