From f4aa051f70a6cfacebd987c6ad3f54d769e6d1ed Mon Sep 17 00:00:00 2001 From: Fleeym <61891787+Fleeym@users.noreply.github.com> Date: Mon, 29 Jan 2024 02:11:10 +0200 Subject: [PATCH] add some keybinds for different move increments --- src/EditorUI.cpp | 80 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/src/EditorUI.cpp b/src/EditorUI.cpp index 0f6faca..8426076 100644 --- a/src/EditorUI.cpp +++ b/src/EditorUI.cpp @@ -192,6 +192,30 @@ struct $modify(EditorUI) { this->defineKeybind("robtop.geometry-dash/move-obj-down", [=] { this->moveObjectCall(EditCommand::Down); }); + this->defineKeybind("robtop.geometry-dash/move-obj-half-left", [=] { + this->moveObjectCall(EditCommand::HalfLeft); + }); + this->defineKeybind("robtop.geometry-dash/move-obj-half-right", [=] { + this->moveObjectCall(EditCommand::HalfRight); + }); + this->defineKeybind("robtop.geometry-dash/move-obj-half-up", [=] { + this->moveObjectCall(EditCommand::HalfUp); + }); + this->defineKeybind("robtop.geometry-dash/move-obj-half-down", [=] { + this->moveObjectCall(EditCommand::HalfDown); + }); + this->defineKeybind("robtop.geometry-dash/move-obj-big-left", [=] { + this->moveObjectCall(EditCommand::BigLeft); + }); + this->defineKeybind("robtop.geometry-dash/move-obj-big-right", [=] { + this->moveObjectCall(EditCommand::BigRight); + }); + this->defineKeybind("robtop.geometry-dash/move-obj-big-up", [=] { + this->moveObjectCall(EditCommand::BigUp); + }); + this->defineKeybind("robtop.geometry-dash/move-obj-big-down", [=] { + this->moveObjectCall(EditCommand::BigDown); + }); this->defineKeybind("robtop.geometry-dash/move-obj-left-small", [=] { this->moveObjectCall(EditCommand::SmallLeft); }); @@ -573,4 +597,60 @@ struct $modify(EditorUI) { { Keybind::create(KEY_S, Modifier::Shift) }, Category::EDITOR_MOVE, true }); + BindManager::get()->registerBindable({ + "robtop.geometry-dash/move-obj-half-left", + "Move Object Half Left", + "Move Selected Object(s) half of a Block left (15 Units)", + {Keybind::create(KEY_A, Modifier::Control | Modifier::Alt)}, + Category::EDITOR_MOVE, true + }); + BindManager::get()->registerBindable({ + "robtop.geometry-dash/move-obj-half-right", + "Move Object Half Right", + "Move Selected Object(s) half of a Block right (15 Units)", + {Keybind::create(KEY_D, Modifier::Control | Modifier::Alt)}, + Category::EDITOR_MOVE, true + }); + BindManager::get()->registerBindable({ + "robtop.geometry-dash/move-obj-half-up", + "Move Object Half Up", + "Move Selected Object(s) half of a Block up (15 Units)", + {Keybind::create(KEY_W, Modifier::Control | Modifier::Alt)}, + Category::EDITOR_MOVE, true + }); + BindManager::get()->registerBindable({ + "robtop.geometry-dash/move-obj-half-down", + "Move Object Half Down", + "Move Selected Object(s) half of a Block down (15 Units)", + {Keybind::create(KEY_S, Modifier::Control | Modifier::Alt)}, + Category::EDITOR_MOVE, true + }); + BindManager::get()->registerBindable({ + "robtop.geometry-dash/move-obj-big-left", + "Move Object Big Left", + "Move Selected Object(s) 5 Blocks left (150 Units)", + {}, + Category::EDITOR_MOVE, true + }); + BindManager::get()->registerBindable({ + "robtop.geometry-dash/move-obj-big-right", + "Move Object Big Right", + "Move Selected Object(s) 5 Blocks right (150 Units)", + {}, + Category::EDITOR_MOVE, true + }); + BindManager::get()->registerBindable({ + "robtop.geometry-dash/move-obj-big-up", + "Move Object Big Up", + "Move Selected Object(s) 5 Blocks up (150 Units)", + {}, + Category::EDITOR_MOVE, true + }); + BindManager::get()->registerBindable({ + "robtop.geometry-dash/move-obj-big-down", + "Move Object Big Down", + "Move Selected Object(s) 5 Blocks down (150 Units)", + {}, + Category::EDITOR_MOVE, true + }); }