mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Add color pickers to script editor
This commit is contained in:
parent
80a3d205f1
commit
b9f59ae6ca
8 changed files with 458 additions and 5 deletions
|
|
@ -185,6 +185,7 @@ private:
|
|||
String custom_word_separators;
|
||||
bool use_default_word_separators = true;
|
||||
bool use_custom_word_separators = false;
|
||||
Callable inline_object_parser;
|
||||
|
||||
mutable bool max_line_width_dirty = true;
|
||||
mutable bool max_line_height_dirty = true;
|
||||
|
|
@ -207,6 +208,7 @@ private:
|
|||
void set_font_size(int p_font_size);
|
||||
void set_direction_and_language(TextServer::Direction p_direction, const String &p_language);
|
||||
void set_draw_control_chars(bool p_enabled);
|
||||
void set_inline_object_parser(const Callable &p_parser);
|
||||
|
||||
int get_line_height() const;
|
||||
int get_line_width(int p_line, int p_wrap_index = -1) const;
|
||||
|
|
@ -354,6 +356,9 @@ private:
|
|||
PopupMenu *menu_dir = nullptr;
|
||||
PopupMenu *menu_ctl = nullptr;
|
||||
|
||||
Callable inline_object_drawer;
|
||||
Callable inline_object_click_handler;
|
||||
|
||||
Key _get_menu_action_accelerator(const String &p_action);
|
||||
void _generate_context_menu();
|
||||
void _update_context_menu();
|
||||
|
|
@ -863,6 +868,8 @@ public:
|
|||
int get_next_visible_line_offset_from(int p_line_from, int p_visible_amount) const;
|
||||
Point2i get_next_visible_line_index_offset_from(int p_line_from, int p_wrap_index_from, int p_visible_amount) const;
|
||||
|
||||
void set_inline_object_handlers(const Callable &p_parser, const Callable &p_drawer, const Callable &p_click_handler);
|
||||
|
||||
// Overridable actions
|
||||
void handle_unicode_input(const uint32_t p_unicode, int p_caret = -1);
|
||||
void backspace(int p_caret = -1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue