You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Redesign InputEvent editor plugin
- Use vertical layout and add text wrapping - Fix Window.popup_centered() rect calculation
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user