You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Popups are now windows also (broken!)
This commit is contained in:
@@ -70,28 +70,28 @@ void Polygon2DEditor::_notification(int p_what) {
|
||||
case NOTIFICATION_ENTER_TREE:
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
|
||||
uv_edit_draw->add_style_override("panel", get_stylebox("bg", "Tree"));
|
||||
bone_scroll->add_style_override("bg", get_stylebox("bg", "Tree"));
|
||||
uv_edit_draw->add_theme_style_override("panel", get_theme_stylebox("bg", "Tree"));
|
||||
bone_scroll->add_theme_style_override("bg", get_theme_stylebox("bg", "Tree"));
|
||||
} break;
|
||||
case NOTIFICATION_READY: {
|
||||
|
||||
button_uv->set_icon(get_icon("Uv", "EditorIcons"));
|
||||
button_uv->set_icon(get_theme_icon("Uv", "EditorIcons"));
|
||||
|
||||
uv_button[UV_MODE_CREATE]->set_icon(get_icon("Edit", "EditorIcons"));
|
||||
uv_button[UV_MODE_CREATE_INTERNAL]->set_icon(get_icon("EditInternal", "EditorIcons"));
|
||||
uv_button[UV_MODE_REMOVE_INTERNAL]->set_icon(get_icon("RemoveInternal", "EditorIcons"));
|
||||
uv_button[UV_MODE_EDIT_POINT]->set_icon(get_icon("ToolSelect", "EditorIcons"));
|
||||
uv_button[UV_MODE_MOVE]->set_icon(get_icon("ToolMove", "EditorIcons"));
|
||||
uv_button[UV_MODE_ROTATE]->set_icon(get_icon("ToolRotate", "EditorIcons"));
|
||||
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_CREATE]->set_icon(get_theme_icon("Edit", "EditorIcons"));
|
||||
uv_button[UV_MODE_CREATE_INTERNAL]->set_icon(get_theme_icon("EditInternal", "EditorIcons"));
|
||||
uv_button[UV_MODE_REMOVE_INTERNAL]->set_icon(get_theme_icon("RemoveInternal", "EditorIcons"));
|
||||
uv_button[UV_MODE_EDIT_POINT]->set_icon(get_theme_icon("ToolSelect", "EditorIcons"));
|
||||
uv_button[UV_MODE_MOVE]->set_icon(get_theme_icon("ToolMove", "EditorIcons"));
|
||||
uv_button[UV_MODE_ROTATE]->set_icon(get_theme_icon("ToolRotate", "EditorIcons"));
|
||||
uv_button[UV_MODE_SCALE]->set_icon(get_theme_icon("ToolScale", "EditorIcons"));
|
||||
uv_button[UV_MODE_ADD_POLYGON]->set_icon(get_theme_icon("Edit", "EditorIcons"));
|
||||
uv_button[UV_MODE_REMOVE_POLYGON]->set_icon(get_theme_icon("Close", "EditorIcons"));
|
||||
uv_button[UV_MODE_PAINT_WEIGHT]->set_icon(get_theme_icon("PaintVertex", "EditorIcons"));
|
||||
uv_button[UV_MODE_CLEAR_WEIGHT]->set_icon(get_theme_icon("UnpaintVertex", "EditorIcons"));
|
||||
|
||||
b_snap_grid->set_icon(get_icon("Grid", "EditorIcons"));
|
||||
b_snap_enable->set_icon(get_icon("SnapGrid", "EditorIcons"));
|
||||
uv_icon_zoom->set_texture(get_icon("Zoom", "EditorIcons"));
|
||||
b_snap_grid->set_icon(get_theme_icon("Grid", "EditorIcons"));
|
||||
b_snap_enable->set_icon(get_theme_icon("SnapGrid", "EditorIcons"));
|
||||
uv_icon_zoom->set_texture(get_theme_icon("Zoom", "EditorIcons"));
|
||||
|
||||
uv_vscroll->set_anchors_and_margins_preset(PRESET_RIGHT_WIDE);
|
||||
uv_hscroll->set_anchors_and_margins_preset(PRESET_BOTTOM_WIDE);
|
||||
@@ -1050,7 +1050,7 @@ void Polygon2DEditor::_uv_draw() {
|
||||
}
|
||||
|
||||
// All UV points are sharp, so use the sharp handle icon
|
||||
Ref<Texture2D> handle = get_icon("EditorPathSharpHandle", "EditorIcons");
|
||||
Ref<Texture2D> handle = get_theme_icon("EditorPathSharpHandle", "EditorIcons");
|
||||
|
||||
Color poly_line_color = Color(0.9, 0.5, 0.5);
|
||||
if (polygons.size() || polygon_create.size()) {
|
||||
|
||||
Reference in New Issue
Block a user