summaryrefslogtreecommitdiff
path: root/editor/property_editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/property_editor.h')
-rw-r--r--editor/property_editor.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/editor/property_editor.h b/editor/property_editor.h
index 73306e0bc2..3230834d00 100644
--- a/editor/property_editor.h
+++ b/editor/property_editor.h
@@ -58,8 +58,8 @@ protected:
static void _bind_methods();
GDVIRTUAL0RC(String, _converts_to)
- GDVIRTUAL1RC(bool, _handles, RES)
- GDVIRTUAL1RC(RES, _convert, RES)
+ GDVIRTUAL1RC(bool, _handles, Ref<Resource>)
+ GDVIRTUAL1RC(Ref<Resource>, _convert, Ref<Resource>)
public:
virtual String converts_to() const;
@@ -95,46 +95,46 @@ class CustomPropertyEditor : public PopupPanel {
EASING_OUT_IN
};
- PopupMenu *menu;
- SceneTreeDialog *scene_tree;
- EditorFileDialog *file;
- EditorLocaleDialog *locale;
- ConfirmationDialog *error;
+ PopupMenu *menu = nullptr;
+ SceneTreeDialog *scene_tree = nullptr;
+ EditorFileDialog *file = nullptr;
+ EditorLocaleDialog *locale = nullptr;
+ ConfirmationDialog *error = nullptr;
String name;
Variant::Type type;
Variant v;
List<String> field_names;
- int hint;
+ int hint = 0;
String hint_text;
HBoxContainer *value_hboxes[MAX_VALUE_EDITORS / 4];
- VBoxContainer *value_vbox;
+ VBoxContainer *value_vbox = nullptr;
LineEdit *value_editor[MAX_VALUE_EDITORS];
int focused_value_editor;
Label *value_label[MAX_VALUE_EDITORS];
HScrollBar *scroll[4];
- HBoxContainer *action_hboxes;
+ HBoxContainer *action_hboxes = nullptr;
Button *action_buttons[MAX_ACTION_BUTTONS];
- MenuButton *type_button;
+ MenuButton *type_button = nullptr;
Vector<String> inheritors_array;
- TextureRect *texture_preview;
- ColorPicker *color_picker;
- TextEdit *text_edit;
+ TextureRect *texture_preview = nullptr;
+ ColorPicker *color_picker = nullptr;
+ TextEdit *text_edit = nullptr;
bool read_only = false;
- bool picking_viewport;
- GridContainer *checks20gc;
+ bool picking_viewport = false;
+ GridContainer *checks20gc = nullptr;
CheckBox *checks20[20];
- SpinBox *spinbox;
- HSlider *slider;
+ SpinBox *spinbox = nullptr;
+ HSlider *slider = nullptr;
- Control *easing_draw;
- CreateDialog *create_dialog;
- PropertySelector *property_select;
+ Control *easing_draw = nullptr;
+ CreateDialog *create_dialog = nullptr;
+ PropertySelector *property_select = nullptr;
- Object *owner;
+ Object *owner = nullptr;
bool updating = false;
- PropertyValueEvaluator *evaluator;
+ PropertyValueEvaluator *evaluator = nullptr;
void _text_edit_changed();
void _file_selected(String p_file);