forked from OtherworldBob/ManiacEditor
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Large Amount of Changes, Preparing for the "FOOLS" Update
- Loading branch information
Showing
58 changed files
with
1,985 additions
and
1,886 deletions.
There are no files selected for viewing
Submodule GenerationsLib
updated
4 files
+1 −0 | GenerationsLib.Updates | |
+27 −0 | GenerationsLib.WPF/Controls/ThemeComboBox.xaml | |
+121 −0 | GenerationsLib.WPF/Controls/ThemeComboBox.xaml.cs | |
+7 −0 | GenerationsLib.WPF/GenerationsLib.WPF.csproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,48 @@ | ||
using RSDKv5; | ||
using System; | ||
using ManiacEditor.Classes.Scene; | ||
|
||
namespace ManiacEditor.Actions | ||
{ | ||
class ActionSwapSlotIDs : IAction | ||
{ | ||
SceneEntity EntityA; | ||
SceneEntity EntityB; | ||
ushort SlotA; | ||
ushort SlotB; | ||
Action<SceneEntity, SceneEntity, ushort, ushort> setValue; | ||
EditorEntity EntityA; | ||
EditorEntity EntityB; | ||
|
||
ushort SlotA | ||
{ | ||
get | ||
{ | ||
return EntityA.SlotID; | ||
} | ||
} | ||
ushort SlotB | ||
{ | ||
get | ||
{ | ||
return EntityB.SlotID; | ||
} | ||
} | ||
|
||
Action<EditorEntity, EditorEntity> setValue; | ||
|
||
public string Description => $"Swap SlotID's of {EntityA.Object.Name.Name} ({SlotA}) and {EntityB.Object.Name.Name} ({SlotB})"; | ||
|
||
public ActionSwapSlotIDs(SceneEntity entityA, SceneEntity entityB, ushort slotA, ushort slotB, Action<SceneEntity, SceneEntity, ushort, ushort> setValue) | ||
public ActionSwapSlotIDs(EditorEntity entityA, EditorEntity entityB, Action<EditorEntity, EditorEntity> setValue) | ||
{ | ||
this.EntityA = entityA; | ||
this.EntityB = entityB; | ||
this.SlotA = slotA; | ||
this.SlotB = slotB; | ||
this.setValue = setValue; | ||
} | ||
|
||
public void Undo() | ||
{ | ||
setValue(EntityA, EntityB, SlotB, SlotA); | ||
setValue(EntityA, EntityB); | ||
} | ||
|
||
public IAction Redo() | ||
{ | ||
return new ActionSwapSlotIDs(EntityA, EntityB, SlotB, SlotA, setValue); | ||
return new ActionSwapSlotIDs(EntityA, EntityB, setValue); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
ManiacEditor/Classes/General/SceneSelectCategoriesCollection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ManiacEditor.Classes.General | ||
{ | ||
public class SceneSelectCategoriesCollection | ||
{ | ||
public List<SceneSelectCategory> Items { get; set; } = new List<SceneSelectCategory>(); | ||
|
||
public void Clear() | ||
{ | ||
Items.Clear(); | ||
} | ||
|
||
public void Add(string _name, List<SceneSelectScene> _entries) | ||
{ | ||
Items.Add(new SceneSelectCategory(_name, _entries)); | ||
} | ||
} | ||
|
||
public class SceneSelectCategory | ||
{ | ||
public string Name { get; set; } | ||
public List<SceneSelectScene> Entries { get; set; } = new List<SceneSelectScene>(); | ||
|
||
public SceneSelectCategory(string _name, List<SceneSelectScene> _entries) | ||
{ | ||
Name = _name; | ||
Entries = _entries; | ||
} | ||
} | ||
|
||
public struct SceneSelectScene | ||
{ | ||
public string Name { get; set; } | ||
public string Path { get; set; } | ||
|
||
public SceneSelectScene(string _name, string _path) | ||
{ | ||
Name = _name; | ||
Path = _path; | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
ManiacEditor/Classes/General/SceneSelectDirectoriesCollection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using RSDKv5; | ||
|
||
namespace ManiacEditor.Classes.General | ||
{ | ||
public struct SceneSelectDirectory | ||
{ | ||
public string Name { get; set; } | ||
public Tuple<Gameconfig.SceneInfo,string> SceneInfo { get; set; } | ||
|
||
public SceneSelectDirectory(string _name, Gameconfig.SceneInfo _sceneInfo, string _path) | ||
{ | ||
Name = _name; | ||
SceneInfo = new Tuple<Gameconfig.SceneInfo, string>(_sceneInfo, _path); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.