Cleanup
This commit is contained in:
@@ -56,16 +56,16 @@ function tab_scene_draw_list(ui: ui_t, list_handle: ui_handle_t, current_object:
|
||||
|
||||
// Highlight every other line
|
||||
if (tab_scene_line_counter % 2 == 0) {
|
||||
g2_set_color(ui.ops.theme.SEPARATOR_COL);
|
||||
draw_set_color(ui.ops.theme.SEPARATOR_COL);
|
||||
g2_fill_rect(0, ui._y, ui._window_w, ui_ELEMENT_H(ui));
|
||||
g2_set_color(0xffffffff);
|
||||
draw_set_color(0xffffffff);
|
||||
}
|
||||
|
||||
// Highlight selected line
|
||||
if (current_object == context_raw.selected_object) {
|
||||
g2_set_color(0xff205d9c);
|
||||
draw_set_color(0xff205d9c);
|
||||
g2_fill_rect(0, ui._y, ui._window_w, ui_ELEMENT_H(ui));
|
||||
g2_set_color(0xffffffff);
|
||||
draw_set_color(0xffffffff);
|
||||
}
|
||||
|
||||
if (current_object.children.length > 0) {
|
||||
@@ -82,9 +82,9 @@ function tab_scene_draw_list(ui: ui_t, list_handle: ui_handle_t, current_object:
|
||||
ui._x += 18; // Sign offset
|
||||
|
||||
// Draw line that shows parent relations
|
||||
g2_set_color(ui.ops.theme.BUTTON_COL);
|
||||
draw_set_color(ui.ops.theme.BUTTON_COL);
|
||||
g2_draw_line(ui._x - 10, ui._y + ui_ELEMENT_H(ui) / 2, ui._x, ui._y + ui_ELEMENT_H(ui) / 2);
|
||||
g2_set_color(0xffffffff);
|
||||
draw_set_color(0xffffffff);
|
||||
|
||||
ui_text(current_object.name);
|
||||
ui._x -= 18;
|
||||
@@ -121,9 +121,9 @@ function tab_scene_draw_list(ui: ui_t, list_handle: ui_handle_t, current_object:
|
||||
}
|
||||
|
||||
// Draw line that shows parent relations
|
||||
g2_set_color(ui.ops.theme.BUTTON_COL);
|
||||
draw_set_color(ui.ops.theme.BUTTON_COL);
|
||||
g2_draw_line(ui._x + 14, current_y, ui._x + 14, ui._y - ui_ELEMENT_H(ui) / 2);
|
||||
g2_set_color(0xffffffff);
|
||||
draw_set_color(0xffffffff);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user