From ea96a36996c5b255670f80ab2f53de707f08e63e Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 20 Jan 2022 18:56:22 +0100 Subject: [PATCH] A bit better colors. --- .../mesh_data_resource_editor/uv_editor/RectViewNode.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/addons/mesh_data_resource_editor/uv_editor/RectViewNode.gd b/game/addons/mesh_data_resource_editor/uv_editor/RectViewNode.gd index 4949487b..dde28387 100644 --- a/game/addons/mesh_data_resource_editor/uv_editor/RectViewNode.gd +++ b/game/addons/mesh_data_resource_editor/uv_editor/RectViewNode.gd @@ -19,9 +19,9 @@ var _uv_max : Vector2 = Vector2() var edited_resource_parent_size : Vector2 = Vector2() -var _edited_resource_rect_border_color : Color = Color(1, 1, 1, 1) +var _edited_resource_rect_border_color : Color = Color(0.8, 0.8, 0.8, 0.5) var _edited_resource_rect_color : Color = Color(0.5, 0.5, 0.5, 0.2) -var _edited_resource_uv_mesh_color : Color = Color(0.8, 0.8, 0.8, 1) +var _edited_resource_uv_mesh_color : Color = Color(1, 1, 1, 1) var _editor_rect_border_size : int = 2 var _edited_resource_font_color : Color = Color(0, 0, 0, 1) var _editor_additional_text : String = "" @@ -37,7 +37,7 @@ func _draw(): draw_rect(Rect2(Vector2(), get_size()), _edited_resource_rect_border_color, false, _editor_rect_border_size) if _mdr && _uvs.size() > 0: - var c : Color = Color(1, 1, 1, 1) + var c : Color = _edited_resource_uv_mesh_color for i in range(0, len(_indices), 3): draw_line(_uvs[_indices[i]] * get_size(), _uvs[_indices[i + 1]] * get_size(), c, 1, false)