Minor improvements to the Polygon 2D UV editor
(cherry picked from commit c26b49fc17
)
This commit is contained in:
parent
bf62f3ca2b
commit
5c129c7a05
3 changed files with 9 additions and 6 deletions
|
@ -1 +0,0 @@
|
|||
<svg height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><ellipse cx="8.372881" cy="8.169492" fill="#fff" rx="6.677966" ry="6.067797"/></svg>
|
Before Width: | Height: | Size: 168 B |
|
@ -1 +0,0 @@
|
|||
<svg height="16" viewBox="0 0 16 16" width="16" xmlns="http://www.w3.org/2000/svg"><ellipse cx="8.372881" cy="8.169492" rx="6.677966" ry="6.067797"/></svg>
|
Before Width: | Height: | Size: 156 B |
|
@ -86,8 +86,8 @@ void Polygon2DEditor::_notification(int p_what) {
|
|||
uv_button[UV_MODE_SCALE]->set_icon(get_icon("ToolScale", "EditorIcons"));
|
||||
uv_button[UV_MODE_ADD_POLYGON]->set_icon(get_icon("Edit", "EditorIcons"));
|
||||
uv_button[UV_MODE_REMOVE_POLYGON]->set_icon(get_icon("Close", "EditorIcons"));
|
||||
uv_button[UV_MODE_PAINT_WEIGHT]->set_icon(get_icon("PaintVertex", "EditorIcons"));
|
||||
uv_button[UV_MODE_CLEAR_WEIGHT]->set_icon(get_icon("UnpaintVertex", "EditorIcons"));
|
||||
uv_button[UV_MODE_PAINT_WEIGHT]->set_icon(get_icon("Bucket", "EditorIcons"));
|
||||
uv_button[UV_MODE_CLEAR_WEIGHT]->set_icon(get_icon("Clear", "EditorIcons"));
|
||||
|
||||
b_snap_grid->set_icon(get_icon("Grid", "EditorIcons"));
|
||||
b_snap_enable->set_icon(get_icon("SnapGrid", "EditorIcons"));
|
||||
|
@ -1384,11 +1384,16 @@ Polygon2DEditor::Polygon2DEditor(EditorNode *p_editor) :
|
|||
uv_main_hsc->add_child(uv_edit_draw);
|
||||
uv_edit_draw->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
uv_edit_draw->set_custom_minimum_size(Size2(200, 200) * EDSCALE);
|
||||
|
||||
Control *space = memnew(Control);
|
||||
uv_mode_hb->add_child(space);
|
||||
space->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
|
||||
uv_menu = memnew(MenuButton);
|
||||
uv_mode_hb->add_child(uv_menu);
|
||||
uv_menu->set_text(TTR("Edit"));
|
||||
uv_menu->get_popup()->add_item(TTR("Polygon->UV"), UVEDIT_POLYGON_TO_UV);
|
||||
uv_menu->get_popup()->add_item(TTR("UV->Polygon"), UVEDIT_UV_TO_POLYGON);
|
||||
uv_menu->get_popup()->add_item(TTR("Copy Polygon to UV"), UVEDIT_POLYGON_TO_UV);
|
||||
uv_menu->get_popup()->add_item(TTR("Copy UV to Polygon"), UVEDIT_UV_TO_POLYGON);
|
||||
uv_menu->get_popup()->add_separator();
|
||||
uv_menu->get_popup()->add_item(TTR("Clear UV"), UVEDIT_UV_CLEAR);
|
||||
uv_menu->get_popup()->add_separator();
|
||||
|
|
Loading…
Reference in a new issue