JD2022-TU1/main/tools/apps/DFlowDoc/Addins/DFlowDoc.addin.cs

232 lines
12 KiB
C#

using System;
using System.Xml.Linq;
using JD.TeaBoxAddinSystem.Addins;
public class DFlowDoc_Addin : IXmlAddin
{
public string FileName => "DFlowDoc.addin";
public XElement RootElement { get; } =
new XElement("TeaBox",
new XElement("Addin",
new XAttribute("id", "DFlowDoc"),
new XAttribute("author", "Ubisoft"),
new XAttribute("category", "General"),
new XAttribute("name", "D-Flow Doc"),
new XAttribute("description", "Allows to view realtime information from GameFlow."),
new XElement("Files",
new XElement("Import",
new XAttribute("assembly", "DFlowDoc.exe"),
new XElement("Import",
new XAttribute("resource", $"{typeof(DFlowDoc.Properties.Resources).FullName}")
)
)
),
new XElement("Dependencies",
new XElement("Addin",
new XAttribute("id", "JD.Application")
)
),
// Actions
new XElement("Extension",
new XAttribute("path", "Application/Actions"),
new XElement("Action",
new XAttribute("id", "DFlowDoc.EngineConnect"),
new XAttribute("text", "Engine Connect"),
new XAttribute("description", "Connect to a running engine"),
new XAttribute("icon", "Icons_30x30_Play")
),
new XElement("Action",
new XAttribute("id", "DFlowDoc.SnapshotCapture"),
new XAttribute("text", "Flow Snapshot"),
new XAttribute("description", "Make a snapshot of the current status of the flow"),
new XAttribute("icon", "Icons_30x30_Snapshot")
),
new XElement("Action",
new XAttribute("id", "DFlowDoc.RecordCapture"),
new XAttribute("text", "Record Capture"),
new XAttribute("description", "Start/Stop Capture Recording"),
new XAttribute("icon", "Icons_30x30_Record")
),
new XElement("Action",
new XAttribute("id", "DFlowDoc.PlaybackCapture"),
new XAttribute("text", "Capture Playback"),
new XAttribute("description", "Start/Stop Capture Playback"),
new XAttribute("icon", "Icons_30x30_Play")
),
new XElement("Action",
new XAttribute("id", "DFlowDoc.StepCapture"),
new XAttribute("text", "Capture Step-by-step"),
new XAttribute("description", "Goto Capture next step"),
new XAttribute("icon", "Icons_30x30_Step")
),
new XElement("Action",
new XAttribute("id", "DFlowDoc.StepBackCapture"),
new XAttribute("text", "Capture Step-by-step Backward"),
new XAttribute("description", "Goto Capture previous step"),
new XAttribute("icon", "Icons_30x30_StepBack")
),
new XElement("Action",
new XAttribute("id", "DFlowDoc.GotoStepCapture"),
new XAttribute("text", "Goto Step"),
new XAttribute("description", "Goto Specific Capture Step"),
new XAttribute("icon", "Icons_30x30_StopWatch")
)
),
// File
new XElement("Extension",
new XAttribute("path", "Application/MainMenu/File")
),
// ToolBars
new XElement("Extension",
new XAttribute("path", "Application/ToolBars"),
new XElement("Actions",
new XAttribute("id", "DFlowDoc"),
new XAttribute("showIconAndText", "True"),
new XAttribute("icon", "Icons_48x48_UAF"),
new XElement("ActionReference",
new XAttribute("id", "DFlowDoc.EngineConnect")
),
new XElement("Separator"),
new XElement("ActionReference",
new XAttribute("id", "DFlowDoc.SnapshotCapture")
),
new XElement("ActionReference",
new XAttribute("id", "DFlowDoc.RecordCapture")
),
new XElement("Separator"),
new XElement("ActionReference",
new XAttribute("id", "DFlowDoc.PlaybackCapture")
),
new XElement("ActionReference",
new XAttribute("id", "DFlowDoc.StepBackCapture")
),
new XElement("ActionReference",
new XAttribute("id", "DFlowDoc.StepCapture")
),
new XElement("Separator"),
new XElement("ActionReference",
new XAttribute("id", "DFlowDoc.GotoStepCapture")
)
)
),
// DocumentBindings
new XElement("Extension",
new XAttribute("path", "Application/DocumentBindings"),
new XElement("DocumentBinding",
new XAttribute("id", "Gameflow"),
new XAttribute("name", "Gameflow"),
new XAttribute("icon", "Icons_16x16_FlowChart"),
new XAttribute("class", "DFlowDoc.Sources.Documents.GameflowDocumentBinding"),
new XElement("FileFilter",
new XAttribute("name", "D-Flow Doc Dump Files"),
new XAttribute("extensions", "*.dflowdoc")
)
),
new XElement("DocumentBinding",
new XAttribute("id", "FlowCapture"),
new XAttribute("name", "FlowCapture"),
new XAttribute("icon", "Icons_16x16_FlowChart"),
new XAttribute("class", "DFlowDoc.Sources.Documents.FlowCaptureDocumentBinding"),
new XElement("FileFilter",
new XAttribute("name", "D-Flow Doc Capture Files"),
new XAttribute("extensions", "*.flowcap")
)
)
),
// Pads
new XElement("Extension",
new XAttribute("path", "Application/Pads"),
new XElement("Pad",
new XAttribute("id", "ManagerView"),
new XAttribute("category", "Main"),
new XAttribute("title", "Modules Manager View"),
new XAttribute("shortcut", "Ctrl+W,M"),
new XAttribute("icon", "Icons_16x16_Manager"),
new XAttribute("guid", "6D441EF6-DEB8-4EF9-8A23-C633F7B26E93"),
new XAttribute("type", $"{typeof(DFlowDoc.Sources.View.ManagerView.ManagerViewPad).FullName}")
),
new XElement("Pad",
new XAttribute("id", "ActiveNodesView"),
new XAttribute("category", "Main"),
new XAttribute("title", "Active Flow Nodes"),
new XAttribute("shortcut", "Ctrl+W,N"),
new XAttribute("icon", "Icons_16x16_Activity"),
new XAttribute("guid", "6188C3AE-DEBC-4B6A-A1AA-D6FD79191F75"),
new XAttribute("type", $"{typeof(DFlowDoc.Sources.View.ActiveNodesView.ActiveNodesViewPad).FullName}")
),
new XElement("Pad",
new XAttribute("id", "SelectedModuleGraphView"),
new XAttribute("category", "Main"),
new XAttribute("title", "Selected Module Graph"),
new XAttribute("shortcut", "Ctrl+W,G"),
new XAttribute("icon", "Icons_16x16_FlowChart"),
new XAttribute("guid", "6DF28A34-951E-4FB7-BCB5-2F7043EBC042"),
new XAttribute("type", $"{typeof(DFlowDoc.Sources.View.ModuleGraphView.ModuleGraphViewPad).FullName}")
),
new XElement("Pad",
new XAttribute("id", "SelectedGameScreenView"),
new XAttribute("category", "Main"),
new XAttribute("title", "Selected GameScreen Status"),
new XAttribute("shortcut", "Ctrl+W,S"),
new XAttribute("icon", "Icons_16x16_Monitor"),
new XAttribute("guid", "624F703A-FBF8-42D4-8F9C-50DE1C6B385C"),
new XAttribute("type", $"{typeof(DFlowDoc.Sources.View.GameScreenView.GameScreenViewPad).FullName}")
),
new XElement("Pad",
new XAttribute("id", "BreakpointsView"),
new XAttribute("category", "Main"),
new XAttribute("title", "Breakpoints"),
new XAttribute("shortcut", "Ctrl+W,B"),
new XAttribute("icon", "Icons_16x16_Breakpoints"),
new XAttribute("guid", "65DAC09E-48B4-49C7-8392-F448AF5A29B4"),
new XAttribute("type", $"{typeof(DFlowDoc.Sources.View.BreakpointsView.BreakpointsViewPad).FullName}")
),
new XElement("Pad",
new XAttribute("id", "ScenebatchesView"),
new XAttribute("category", "Main"),
new XAttribute("title", "Scenes Batches"),
new XAttribute("shortcut", "Ctrl+W,L"),
new XAttribute("icon", "Icons_16x16_Drive"),
new XAttribute("guid", "6C14FFAB-7E18-41FE-8009-F3DE7728352C"),
new XAttribute("type", $"{typeof(DFlowDoc.Sources.View.ScenebatchesView.ScenebatchesViewPad).FullName}")
),
new XElement("Pad",
new XAttribute("id", "MenuAssetsView"),
new XAttribute("category", "Main"),
new XAttribute("title", "Menu Assets"),
new XAttribute("shortcut", "Ctrl+W,A"),
new XAttribute("icon", "Icons_16x16_Picture"),
new XAttribute("guid", "66EF2FDE-9C6F-48A6-BB58-B22A2D9D6E02"),
new XAttribute("type", $"{typeof(DFlowDoc.Sources.View.MenuAssetsView.MenuAssetsViewPad).FullName}")
),
new XElement("Pad",
new XAttribute("id", "DataProvidersView"),
new XAttribute("category", "Main"),
new XAttribute("title", "Data Providers"),
new XAttribute("shortcut", "Ctrl+W,D"),
new XAttribute("icon", "Icons_16x16_Database"),
new XAttribute("guid", "64D9224C-986A-4A1A-A042-76CA03F97F74"),
new XAttribute("type", $"{typeof(DFlowDoc.Sources.View.DataProvidersView.DataProvidersViewPad).FullName}")
),
new XElement("Pad",
new XAttribute("id", "OnlineChecklistView"),
new XAttribute("category", "Main"),
new XAttribute("title", "Online Checklist"),
new XAttribute("shortcut", "Ctrl+W,O"),
new XAttribute("icon", "Icons_16x16_Online"),
new XAttribute("guid", "6F83134E-1383-41CD-8C37-FEDD152F0B2B"),
new XAttribute("type", $"{typeof(DFlowDoc.Sources.View.OnlineChecklistView.OnlineChecklistViewPad).FullName}")
)
)
)
)
;
}