summaryrefslogtreecommitdiff
path: root/editor/plugins/input_event_editor_plugin.h
diff options
context:
space:
mode:
authorFireForge <67974470+fire-forge@users.noreply.github.com>2022-04-07 17:46:49 -0500
committerFireForge <67974470+fire-forge@users.noreply.github.com>2022-04-12 08:30:24 -0500
commit0b0a74e135846b15485eea6e92975e2182edccdc (patch)
tree5c875263a066127b30739c7480a433c1cb428f5f /editor/plugins/input_event_editor_plugin.h
parent43f94c95aa88d5fc0180bb4ee5c8ce44d27dbc0f (diff)
Redesign InputEvent editor plugin
- Use vertical layout and add text wrapping - Fix Window.popup_centered() rect calculation
Diffstat (limited to 'editor/plugins/input_event_editor_plugin.h')
-rw-r--r--editor/plugins/input_event_editor_plugin.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/plugins/input_event_editor_plugin.h b/editor/plugins/input_event_editor_plugin.h
index 3c658a86e9..344f176e78 100644
--- a/editor/plugins/input_event_editor_plugin.h
+++ b/editor/plugins/input_event_editor_plugin.h
@@ -35,8 +35,8 @@
#include "editor/editor_inspector.h"
#include "editor/editor_plugin.h"
-class InputEventConfigContainer : public HBoxContainer {
- GDCLASS(InputEventConfigContainer, HBoxContainer);
+class InputEventConfigContainer : public VBoxContainer {
+ GDCLASS(InputEventConfigContainer, VBoxContainer);
Label *input_event_text = nullptr;
Button *open_config_button = nullptr;
@@ -50,10 +50,10 @@ class InputEventConfigContainer : public HBoxContainer {
void _event_changed();
protected:
+ void _notification(int p_what);
static void _bind_methods();
public:
- virtual Size2 get_minimum_size() const override;
void set_event(const Ref<InputEvent> &p_event);
InputEventConfigContainer();