From 91d30ec0df0da528227509588b6387ec5d2c0b36 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:05:03 +0200 Subject: [PATCH] fix build helper keybind and add create loop keybind --- changelog.md | 43 ++++++++++++++++++++++++++------------- mod.json | 12 +++++++++-- src/features/Keybinds.cpp | 11 ++++++++++ 3 files changed, 50 insertions(+), 16 deletions(-) diff --git a/changelog.md b/changelog.md index 7041212..2c225d7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,13 +1,22 @@ # BetterEdit 6 +## v6.10.0-alpha.3 + * Add Create Loop keybind + * Fix Build Helper keybind actually creating a loop + * Fix 32-bit Android crashing upon entering the editor + ## v6.10.0-alpha.2 - * Trigger Indicators are now the same color as the targeting triggers & now show Center Groups * Some minor visual fixes (thank you to Alphalaneous!) +#### Supporter Features + * Trigger Indicators are now the same color as the targeting triggers & now show Center Groups + ## v6.10.0-alpha.1 - * Add Trigger Indicators (toggleable in View Tab) * Make Alpha's mods only Suggested instead of Recommended (so they aren't auto-installed) +#### Supporter Features + * Add Trigger Indicators (toggleable in View Tab) + ## v6.9.2 * Remove limits from Z Order * Add back Android support :) @@ -36,50 +45,56 @@ * Add Alpha's Editor Mods as Recommendations :3 * Make the build tabs responsive to screen size (huge thank you to Alphalaneous!) * Fix View Tab LDM being applied outside the editor + +#### Supporter Features * Supporters can now link their account to be listed in-game -### v6.8.0-beta.4 +## v6.8.0-beta.4 * Add option for Hide Trigger Popup BG when Modifying Slider to all triggers (huge thank you to TheSillyDoggo!) * Add option for changing the snap size on the Scale and Rotate Controls * Make the build tabs responsive to screen size (huge thank you to Alphalaneous!) * Fix View Tab LDM being applied outside the editor -### v6.8.0-beta.3 +## v6.8.0-beta.3 * Add Toggle Scale X/Y Control and Toggle Warp Control keybinds * Mixed values now show the range of the values rather than just "Mixed" * Fix Z order values being falsely set to 0 even though that's not possible * Fix Toggle Scale Control keybind crashing -### v6.8.0-beta.2 +## v6.8.0-beta.2 * Fix being able to place objects through the Z layer input -### v6.8.0-beta.1 +## v6.8.0-beta.1 * Release candidate; minor internal fixes & UI tweaks -### v6.8.0-alpha.7 +## v6.8.0-alpha.7 * Add Scale Snapping * Add Rotation Snapping and Lock Object Position During Rotation * Add Input Rotation Degrees * Add Copy/Paste to/from System Clipboard * Add Alpha's Editor Mods as Recommendations :3 -### v6.8.0-alpha.6 +## v6.8.0-alpha.6 * Add inputs for Scale, Scale X, and Scale Y -### v6.8.0-alpha.5 +## v6.8.0-alpha.5 * Fix color trigger popup crashing (& also make HSV Preview more responsive) -### v6.8.0-alpha.4 +## v6.8.0-alpha.4 * Fix a bug with servers causing supporter popups to not work -### v6.8.0-alpha.3 +## v6.8.0-alpha.3 * Add HSV Preview - * Better Warp Selection that allows grid-snapping and more (WIP + Supporter-only) + +#### Supporter Features + * Better Warp Selection that allows grid-snapping and more (WIP) -### v6.8.0-alpha.2 +## v6.8.0-alpha.2 * Allow modifying Mixed values in the Group ID Popup (Editor Layers, Z Order, Channel) relatively -### v6.8.0-alpha.1 +## v6.8.0-alpha.1 + +#### Supporter Features * Supporters can now link their account to be listed in-game & gain access to exclusive features (in the future, features not yet done) ## v6.7.0 diff --git a/mod.json b/mod.json index 690b6f6..0167423 100644 --- a/mod.json +++ b/mod.json @@ -1,6 +1,6 @@ { - "geode": "4.0.1", - "version": "6.10.0-alpha.2", + "geode": "4.1.0", + "version": "6.10.0-alpha.3", "gd": { "win": "2.2074", "mac": "2.2074", @@ -225,6 +225,14 @@ "name": "WIP Features", "description": "These settings are for features that are currently Work-In-Progress. This means that these features may be unstable and unusable, and are only included for testing purposes. Developer Mode is required to enable them." }, + "run-script-button": { + "type": "bool", + "default": false, + "name": "Run Script Button (WIP)", + "description": "THIS FEATURE IS HEAVILY WIP", + "enable-if": "dev-mode", + "enable-if-description": "This Feature is Heavily WIP!" + }, "better-select": { "type": "bool", "default": false, diff --git a/src/features/Keybinds.cpp b/src/features/Keybinds.cpp index ae8ea8f..e6957de 100644 --- a/src/features/Keybinds.cpp +++ b/src/features/Keybinds.cpp @@ -101,6 +101,9 @@ struct $modify(EditorUI) { this->defineKeybind("build-helper"_spr, [this]() { fakeEditorPauseLayer(m_editorLayer)->onBuildHelper(nullptr); }); + this->defineKeybind("create-loop"_spr, [this]() { + fakeEditorPauseLayer(m_editorLayer)->onCreateLoop(nullptr); + }); this->defineKeybind("align-x"_spr, [this]() { fakeEditorPauseLayer(m_editorLayer)->onAlignX(nullptr); }); @@ -236,6 +239,14 @@ struct $modify(EditorUI) { Category::EDITOR_MODIFY, false )); + BindManager::get()->registerBindable(BindableAction( + "create-loop"_spr, + "Create loop", + "Executes the Create Loop feature, aka makes a Spawn Trigger loop", + {}, + Category::EDITOR_MODIFY, + false + )); BindManager::get()->registerBindable(BindableAction( "align-x"_spr, "Align X",