Skip to content

Commit

Permalink
Highlight scripts used by current scene
Browse files Browse the repository at this point in the history
  • Loading branch information
aXu-AP committed Sep 15, 2024
1 parent 6681f25 commit a7719ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions editor/plugins/script_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2137,8 +2137,6 @@ void ScriptEditor::_update_script_colors() {
continue;
}

script_list->set_item_custom_bg_color(i, Color(0, 0, 0, 0));

if (script_temperature_enabled) {
int pass = n->get_meta("__editor_pass", -1);
if (pass < 0) {
Expand Down Expand Up @@ -2334,7 +2332,7 @@ void ScriptEditor::_update_script_names() {
script_list->set_item_tooltip(index, sedata_filtered[i].tooltip);
script_list->set_item_metadata(index, sedata_filtered[i].index); /* Saving as metadata the script's index in the tab container and not the filtered one */
if (sedata_filtered[i].used) {
script_list->set_item_custom_bg_color(index, Color(88 / 255.0, 88 / 255.0, 60 / 255.0));
script_list->set_item_custom_bg_color(index, Color("#FFFFFF", .05));
}
if (tab_container->get_current_tab() == sedata_filtered[i].index) {
script_list->select(index);
Expand Down

0 comments on commit a7719ea

Please sign in to comment.