1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-05 17:15:09 +00:00

Replace TextEdit with EditorSpinSlider for the Action Set's priority

This commit is contained in:
Logan Detrick
2025-03-21 15:45:04 -07:00
parent 09ea7bc6a3
commit c67736e6a7
2 changed files with 24 additions and 14 deletions

View File

@@ -34,11 +34,12 @@
#include "../action_map/openxr_action_set.h"
#include "openxr_action_editor.h"
#include "scene/gui/box_container.h"
#include "scene/gui/button.h"
#include "scene/gui/line_edit.h"
#include "scene/gui/panel_container.h"
#include "scene/gui/text_edit.h"
class EditorSpinSlider;
class BoxContainer;
class Button;
class LineEdit;
class PanelContainer;
class TextEdit;
class OpenXRActionSetEditor : public HBoxContainer {
GDCLASS(OpenXRActionSetEditor, HBoxContainer);
@@ -56,7 +57,7 @@ private:
HBoxContainer *action_set_hb = nullptr;
LineEdit *action_set_name = nullptr;
LineEdit *action_set_localized_name = nullptr;
TextEdit *action_set_priority = nullptr;
EditorSpinSlider *action_set_priority = nullptr;
Button *add_action = nullptr;
Button *rem_action_set = nullptr;
VBoxContainer *actions_vb = nullptr;
@@ -68,7 +69,7 @@ private:
void _on_toggle_expand();
void _on_action_set_name_changed(const String p_new_text);
void _on_action_set_localized_name_changed(const String p_new_text);
void _on_action_set_priority_changed(const String p_new_text);
void _on_action_set_priority_changed(const double p_new_value);
void _on_add_action();
void _on_remove_action_set();