You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Add an explicit way to remove a theme type
This commit is contained in:
@@ -188,7 +188,11 @@ class ThemeItemEditorDialog : public AcceptDialog {
|
||||
|
||||
TabContainer *tc;
|
||||
|
||||
ItemList *edit_type_list;
|
||||
enum TypesTreeAction {
|
||||
TYPES_TREE_REMOVE_ITEM,
|
||||
};
|
||||
|
||||
Tree *edit_type_list;
|
||||
LineEdit *edit_add_type_value;
|
||||
String edited_item_type;
|
||||
|
||||
@@ -240,13 +244,15 @@ class ThemeItemEditorDialog : public AcceptDialog {
|
||||
|
||||
void _dialog_about_to_show();
|
||||
void _update_edit_types();
|
||||
void _edited_type_selected(int p_item_idx);
|
||||
void _edited_type_selected();
|
||||
void _edited_type_button_pressed(Object *p_item, int p_column, int p_id);
|
||||
|
||||
void _update_edit_item_tree(String p_item_type);
|
||||
void _item_tree_button_pressed(Object *p_item, int p_column, int p_id);
|
||||
|
||||
void _add_theme_type(const String &p_new_text);
|
||||
void _add_theme_item(Theme::DataType p_data_type, String p_item_name, String p_item_type);
|
||||
void _remove_theme_type(const String &p_theme_type);
|
||||
void _remove_data_type_items(Theme::DataType p_data_type, String p_item_type);
|
||||
void _remove_class_items();
|
||||
void _remove_custom_items();
|
||||
|
||||
Reference in New Issue
Block a user