Skip to content

Commit e49eab0

Browse files
committed
2 parents b7205c9 + e3e114e commit e49eab0

File tree

17 files changed

+99
-14
lines changed

17 files changed

+99
-14
lines changed

LuaSTGEditorSharp.Core/EditorData/Node/ProjSettings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public override string ToString()
9494
public override IEnumerable<string> ToLua(int spacing)
9595
{
9696
string modvera = Macrolize(4) == "" ? "4096" : Macrolize(4);
97-
yield return "-- Generated by LuaSTG Editor Sharp X 0.74.1\n-- Mod name: " + NonMacrolize(0) + "\n_author = \"" +
97+
yield return "-- Generated by LuaSTG Editor Sharp X 0.74.2\n-- Mod name: " + NonMacrolize(0) + "\n_author = \"" +
9898
Macrolize(1) + "\"\n_mod_version = " + modvera + "\n_allow_practice = " + Macrolize(2) +
9999
"\n_allow_sc_practice = " + Macrolize(3) + "\n";
100100
}

LuaSTGEditorSharp/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
xmlns:tb="clr-namespace:LuaSTGEditorSharp.Plugin;assembly=LuaSTGEditorSharp.Core"
1010
xmlns:om="clr-namespace:System.Collections.Generic;assembly=mscorlib"
1111
mc:Ignorable="d"
12-
Title="LuaSTG Editor Sharp X v0.74.1"
12+
Title="LuaSTG Editor Sharp X v0.74.2"
1313
Height="679.6"
1414
Width="800"
1515
WindowState="Maximized"

LuaSTGEditorSharp/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@
5151
// 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号
5252
// 方法是按如下所示使用“*”: :
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("0.74.1")]
55-
[assembly: AssemblyFileVersion("0.74.1")]
54+
[assembly: AssemblyVersion("0.74.2")]
55+
[assembly: AssemblyFileVersion("0.74.2")]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
0,{"$type":"LuaSTGEditorSharp.EditorData.Node.RootFolder, LuaSTGEditorSharp","Attributes":[{"attrCap":"Name","attrInput":"File","EditWindow":""}],"IsExpanded":true,"IsSelected":true}
22
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.ProjSettings, LuaSTGEditorSharp","Attributes":[{"attrCap":"Output Name","attrInput":"","EditWindow":""},{"attrCap":"Author","attrInput":"LuaSTG User","EditWindow":""},{"attrCap":"Allow practice","attrInput":"true","EditWindow":"bool"},{"attrCap":"Allow sc practice","attrInput":"true","EditWindow":"bool"}, {"attrCap":"Mod version","attrInput":"true","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
3-
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.EditorVersion, LuaSTGEditorSharp","Attributes":[{"attrCap":"Editor version","attrInput":"0.74.1","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
3+
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.EditorVersion, LuaSTGEditorSharp","Attributes":[{"attrCap":"Editor version","attrInput":"0.74.2","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
0,{"$type":"LuaSTGEditorSharp.EditorData.Node.Project.ProjectRoot, LuaSTGEditorSharp","Attributes":[{"attrCap":"Name","attrInput":"Project","EditWindow":""}],"IsExpanded":true,"IsSelected":true}
22
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.ProjSettings, LuaSTGEditorSharp","Attributes":[{"attrCap":"Output Name","attrInput":"","EditWindow":""},{"attrCap":"Author","attrInput":"LuaSTG User","EditWindow":""},{"attrCap":"Allow practice","attrInput":"true","EditWindow":"bool"},{"attrCap":"Allow sc practice","attrInput":"true","EditWindow":"bool"},{"attrCap":"Mod version","attrInput":"true","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
3-
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.EditorVersion, LuaSTGEditorSharp","Attributes":[{"attrCap":"Editor version","attrInput":"0.74.1","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
3+
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.EditorVersion, LuaSTGEditorSharp","Attributes":[{"attrCap":"Editor version","attrInput":"0.74.2","EditWindow":""}],"IsExpanded":true,"IsSelected":false}

LuaSTGEditorSharp/Templates/Extra.lstges

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
0,{"$type":"LuaSTGEditorSharp.EditorData.Node.RootFolder, LuaSTGEditorSharp","Attributes":[{"attrCap":"Name","attrInput":"File","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
22
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.ProjSettings, LuaSTGEditorSharp","Attributes":[{"attrCap":"Output Name","attrInput":"","EditWindow":""},{"attrCap":"Author","attrInput":"LuaSTG User","EditWindow":""},{"attrCap":"Allow practice","attrInput":"true","EditWindow":"bool"},{"attrCap":"Allow sc practice","attrInput":"true","EditWindow":"bool"},{"attrCap":"Mod version","attrInput":"true","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
3-
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.EditorVersion, LuaSTGEditorSharp","Attributes":[{"attrCap":"Editor version","attrInput":"0.74.1","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
3+
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.EditorVersion, LuaSTGEditorSharp","Attributes":[{"attrCap":"Editor version","attrInput":"0.74.2","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
44
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.General.Folder, LuaSTGEditorSharp","Attributes":[{"attrCap":"Name","attrInput":"Resources","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
55
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.General.Folder, LuaSTGEditorSharp","Attributes":[{"attrCap":"Name","attrInput":"Classes","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
66
2,{"$type":"LuaSTGEditorSharp.EditorData.Node.Stage.StageGroup, LuaSTGNodeLib","Attributes":[{"attrCap":"Name","attrInput":"Extra","EditWindow":"stageGroup"},{"attrCap":"Start life","attrInput":"7","EditWindow":""},{"attrCap":"Start power","attrInput":"400","EditWindow":""},{"attrCap":"Start faith","attrInput":"50000","EditWindow":""},{"attrCap":"Start bomb","attrInput":"3","EditWindow":""},{"attrCap":"Allow practice","attrInput":"true","EditWindow":"bool"},{"attrCap":"Difficulty value","attrInput":"1","EditWindow":"difficulty"}],"IsExpanded":true,"IsSelected":false}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
0,{"$type":"LuaSTGEditorSharp.EditorData.Node.RootFolder, LuaSTGEditorSharp","Attributes":[{"attrCap":"Name","attrInput":"File","EditWindow":""}],"IsExpanded":true,"IsSelected":true}
22
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.ProjSettings, LuaSTGEditorSharp","Attributes":[{"attrCap":"Output Name","attrInput":"","EditWindow":""},{"attrCap":"Author","attrInput":"","EditWindow":""},{"attrCap":"Allow practice","attrInput":"true","EditWindow":"bool"},{"attrCap":"Allow sc practice","attrInput":"true","EditWindow":"bool"},{"attrCap":"Mod version","attrInput":"true","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
3-
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.EditorVersion, LuaSTGEditorSharp","Attributes":[{"attrCap":"Editor version","attrInput":"0.74.1","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
3+
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.EditorVersion, LuaSTGEditorSharp","Attributes":[{"attrCap":"Editor version","attrInput":"0.74.2","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
44
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.General.Folder, LuaSTGEditorSharp","Attributes":[{"attrCap":"Name","attrInput":"Resources","EditWindow":""}],"IsExpanded":true,"IsSelected":false}
55
1,{"$type":"LuaSTGEditorSharp.EditorData.Node.General.Folder, LuaSTGEditorSharp","Attributes":[{"attrCap":"Name","attrInput":"Classes","EditWindow":""}],"IsExpanded":true,"IsSelected":false}

LuaSTGEditorSharp/Templates/Spell Card.lstges

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
0,{"$type":".RootFolder, LuaSTGEditorSharp","Attributes":[{"attrCap":"Name","attrInput":"File","EditWindow":""}],"AttributeCount":1}
22
1,{"$type":".ProjSettings, LuaSTGEditorSharp","Attributes":[{"attrCap":"Output Name","attrInput":"","EditWindow":""},{"attrCap":"Author","attrInput":"LuaSTG User","EditWindow":""},{"attrCap":"Allow practice","attrInput":"true","EditWindow":"bool"},{"attrCap":"Allow sc practice","attrInput":"true","EditWindow":"bool"},{"attrCap":"Mod version","attrInput":"true","EditWindow":""}],"AttributeCount":4}
3-
1,{"$type":".EditorVersion, LuaSTGEditorSharp","Attributes":[{"attrCap":"Editor version","attrInput":"0.74.1","EditWindow":""}],"AttributeCount":1}
3+
1,{"$type":".EditorVersion, LuaSTGEditorSharp","Attributes":[{"attrCap":"Editor version","attrInput":"0.74.2","EditWindow":""}],"AttributeCount":1}
44
1,{"$type":".General.Folder, LuaSTGEditorSharp","Attributes":[{"attrCap":"Name","attrInput":"Resources","EditWindow":""}],"AttributeCount":1}
55
1,{"$type":".General.Folder, LuaSTGEditorSharp","Attributes":[{"attrCap":"Name","attrInput":"Classes","EditWindow":""}],"AttributeCount":1}
66
2,{"$type":".Boss.BossDefine, ","Attributes":[{"attrCap":"Name","attrInput":"Boss","EditWindow":""},{"attrCap":"Difficulty","attrInput":"All","EditWindow":"objDifficulty"},{"attrCap":"Displayed name","attrInput":"Name","EditWindow":""},{"attrCap":"Background","attrInput":"","EditWindow":"BG"},{"attrCap":"Background Music","attrInput":"\"\"","EditWindow":"BGM"}],"AttributeCount":5}

LuaSTGEditorSharp/Update Log.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
-- Update Log(2022-07-30)
1+
-- Update Log(2022-08-22)
2+
3+
v0.74.2:
4+
-Fixed fatal behavior on defined player bullets (uninitialized default procedure for _object type class)
5+
-Added show mouse node (game data tab)
26

37
v0.74.1:
48
-Added event type parameter for default action node
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Collections.ObjectModel;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
using LuaSTGEditorSharp.EditorData.Message;
8+
using LuaSTGEditorSharp.EditorData.Document;
9+
using LuaSTGEditorSharp.EditorData.Node.NodeAttributes;
10+
using Newtonsoft.Json;
11+
12+
namespace LuaSTGEditorSharp.EditorData.Node.Object
13+
{
14+
[Serializable, NodeIcon("setsplash.png")]
15+
[LeafNode]
16+
[CreateInvoke(0), RCInvoke(1)]
17+
class SetSplash : TreeNode
18+
{
19+
[JsonConstructor]
20+
private SetSplash() : base() { }
21+
22+
public SetSplash(DocumentData workSpaceData)
23+
: this(workSpaceData, "true") { }
24+
25+
public SetSplash(DocumentData workSpaceData, string show)
26+
: base(workSpaceData)
27+
{
28+
ShowMouse = show;
29+
}
30+
31+
[JsonIgnore, NodeAttribute]
32+
public string ShowMouse
33+
{
34+
get => DoubleCheckAttr(0, "bool", "Display mouse on screen").attrInput;
35+
set => DoubleCheckAttr(0, "bool", "Display mouse on screen").attrInput = value;
36+
}
37+
38+
public override IEnumerable<string> ToLua(int spacing)
39+
{
40+
string sp = Indent(spacing);
41+
yield return sp + $"SetSplash({Macrolize(0)})";
42+
}
43+
44+
public override string ToString()
45+
{
46+
if (NonMacrolize(0) == "true")
47+
return "Show the mouse on game screen";
48+
else
49+
return "Don't show the mouse on game screen";
50+
}
51+
52+
public override IEnumerable<Tuple<int, TreeNode>> GetLines()
53+
{
54+
yield return new Tuple<int, TreeNode>(1, this);
55+
}
56+
57+
public override object Clone()
58+
{
59+
var n = new SetSplash(parentWorkSpace);
60+
n.DeepCopyFrom(this);
61+
return n;
62+
}
63+
}
64+
}

0 commit comments

Comments
 (0)