更改了Class初始化方式
This commit is contained in:
@@ -58,11 +58,6 @@ namespace ScenesScripts.GalPlot
|
||||
public Queue<XElement> MainPlot = new();
|
||||
public class Struct_Choice
|
||||
{
|
||||
public Struct_Choice (string Title, string JumpID)
|
||||
{
|
||||
this.Title = Title;
|
||||
this.JumpID = JumpID;
|
||||
}
|
||||
public string Title;
|
||||
public string JumpID;
|
||||
}
|
||||
@@ -250,7 +245,7 @@ namespace ScenesScripts.GalPlot
|
||||
foreach (var ClildItem in PlotData.NowPlotDataNode.Elements())
|
||||
{
|
||||
if (ClildItem.Name.ToString() == "Choice")
|
||||
PlotData.ChoiceText.Add(new Struct_Choice(ClildItem.Value, ClildItem.Attribute("JumpID").Value));
|
||||
PlotData.ChoiceText.Add(new Struct_Choice { Title = ClildItem.Value, JumpID = ClildItem.Attribute("JumpID").Value };);
|
||||
|
||||
}
|
||||
Gal_Text.StartTextContent(PlotData.NowPlotDataNode.Attribute("Content").Value, _nodeinfo.Name, _nodeinfo.Affiliation, () =>
|
||||
|
||||
Reference in New Issue
Block a user