diff --git a/Addon/Debug_UI/DebugUI.as b/Addon/Debug_UI/DebugUI.as index 0413f63..5036200 100644 --- a/Addon/Debug_UI/DebugUI.as +++ b/Addon/Debug_UI/DebugUI.as @@ -147,13 +147,25 @@ void onReload(CRules@ this) false ); + Label pathfindingText = Label( + Vec2f(10, 75), + Vec2f(200, 25), + "- Pathfinding stuff", + Options_NoHoveredColor, + false + ); + goBack.addClickListener(GoBack_onClick); reloadText.addHoverStateListener(LabelColor_onHover); reloadText.addClickListener(ReloadBlobConfigs_onClick); + + pathfindingText.addHoverStateListener(LabelColor_onHover); + pathfindingText.addClickListener(TogglePathfinding_onClick); Settings.addChild(goBack); Settings.addChild(reloadText); + Settings.addChild(pathfindingText); } } @@ -247,4 +259,9 @@ void ServerSettings_onClick(int x, int y, int button, IGUIItem@ source) void ReloadBlobConfigs_onClick(int x, int y, int button, IGUIItem@ source) { getRules().SendCommand(getRules().getCommandID("DebugReloadConfigs"), CBitStream()); +} + +void TogglePathfinding_onClick(int x, int y, int button, IGUIItem@ source) +{ + getRules().SendCommand(getRules().getCommandID("TogglePathfinding"), CBitStream()); } \ No newline at end of file diff --git a/CoreScripts/Pathfinding/BloblPathAddon.as b/CoreScripts/Pathfinding/BloblPathAddon.as new file mode 100644 index 0000000..c1b3098 --- /dev/null +++ b/CoreScripts/Pathfinding/BloblPathAddon.as @@ -0,0 +1 @@ +// Hooks for CBlob to Pathfinding \ No newline at end of file diff --git a/CoreScripts/Pathfinding/Pathfinding.as b/CoreScripts/Pathfinding/Pathfinding.as new file mode 100644 index 0000000..149ee4c --- /dev/null +++ b/CoreScripts/Pathfinding/Pathfinding.as @@ -0,0 +1,6 @@ +// + +class Pathfinding +{ + +} diff --git a/CoreScripts/Rules/Character_Rules.as b/CoreScripts/Rules/Character_Rules.as index dec6efa..c62a9e0 100644 --- a/CoreScripts/Rules/Character_Rules.as +++ b/CoreScripts/Rules/Character_Rules.as @@ -20,8 +20,13 @@ void onInit(CRules@ this) // This will be called when a blob dies // This is required unless you want the game to crash this.addCommandID("character_unbound"); + + ///// TEMP + // Reloads all blob configs this.addCommandID("DebugReloadConfigs"); + // Toggles Pathfinding + this.addCommandID("TogglePathfinding"); onRestart(this);