mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Popups are now windows also (broken!)
This commit is contained in:
parent
543fb1c4da
commit
441f1a5fe9
159 changed files with 3311 additions and 3285 deletions
|
@ -44,15 +44,15 @@ void MaterialEditor::_notification(int p_what) {
|
|||
if (first_enter) {
|
||||
//it's in propertyeditor so.. could be moved around
|
||||
|
||||
light_1_switch->set_normal_texture(get_icon("MaterialPreviewLight1", "EditorIcons"));
|
||||
light_1_switch->set_pressed_texture(get_icon("MaterialPreviewLight1Off", "EditorIcons"));
|
||||
light_2_switch->set_normal_texture(get_icon("MaterialPreviewLight2", "EditorIcons"));
|
||||
light_2_switch->set_pressed_texture(get_icon("MaterialPreviewLight2Off", "EditorIcons"));
|
||||
light_1_switch->set_normal_texture(get_theme_icon("MaterialPreviewLight1", "EditorIcons"));
|
||||
light_1_switch->set_pressed_texture(get_theme_icon("MaterialPreviewLight1Off", "EditorIcons"));
|
||||
light_2_switch->set_normal_texture(get_theme_icon("MaterialPreviewLight2", "EditorIcons"));
|
||||
light_2_switch->set_pressed_texture(get_theme_icon("MaterialPreviewLight2Off", "EditorIcons"));
|
||||
|
||||
sphere_switch->set_normal_texture(get_icon("MaterialPreviewSphereOff", "EditorIcons"));
|
||||
sphere_switch->set_pressed_texture(get_icon("MaterialPreviewSphere", "EditorIcons"));
|
||||
box_switch->set_normal_texture(get_icon("MaterialPreviewCubeOff", "EditorIcons"));
|
||||
box_switch->set_pressed_texture(get_icon("MaterialPreviewCube", "EditorIcons"));
|
||||
sphere_switch->set_normal_texture(get_theme_icon("MaterialPreviewSphereOff", "EditorIcons"));
|
||||
sphere_switch->set_pressed_texture(get_theme_icon("MaterialPreviewSphere", "EditorIcons"));
|
||||
box_switch->set_normal_texture(get_theme_icon("MaterialPreviewCubeOff", "EditorIcons"));
|
||||
box_switch->set_pressed_texture(get_theme_icon("MaterialPreviewCube", "EditorIcons"));
|
||||
|
||||
first_enter = false;
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ void MaterialEditor::_notification(int p_what) {
|
|||
|
||||
if (p_what == NOTIFICATION_DRAW) {
|
||||
|
||||
Ref<Texture2D> checkerboard = get_icon("Checkerboard", "EditorIcons");
|
||||
Ref<Texture2D> checkerboard = get_theme_icon("Checkerboard", "EditorIcons");
|
||||
Size2 size = get_size();
|
||||
|
||||
draw_texture_rect(checkerboard, Rect2(Point2(), size), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue