mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2025-02-07 10:45:22 +01:00
[GM room] Fix error when creating the node without connecting to a gamemaker project.
This commit is contained in:
parent
f1ff1d68fe
commit
ea505889d9
2 changed files with 7 additions and 1 deletions
Binary file not shown.
|
@ -32,6 +32,13 @@ function Node_GMRoom(_x, _y, _group = noone) : Node(_x, _y, _group) constructor
|
|||
#endregion
|
||||
|
||||
room_renderer = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) {
|
||||
if(gmRoom == noone) {
|
||||
draw_sprite_stretched_ext(THEME.ui_panel_bg, 1, _x, _y, _w, ui(28), COLORS.node_composite_bg_blend, 1);
|
||||
draw_set_text(f_p3, fa_center, fa_center, COLORS._main_text_sub);
|
||||
draw_text_add(_x + _w / 2, _y + ui(14), "No data");
|
||||
return ui(28);
|
||||
}
|
||||
|
||||
var hh = ui(40);
|
||||
var _yy = _y + ui(8);
|
||||
draw_sprite_stretched_ext(THEME.ui_panel_bg, 1, _x, _y, _w, hh, COLORS.node_composite_bg_blend, 1);
|
||||
|
@ -100,7 +107,6 @@ function Node_GMRoom(_x, _y, _group = noone) : Node(_x, _y, _group) constructor
|
|||
layers_renderer = new Inspector_Custom_Renderer(function(_x, _y, _w, _m, _hover, _focus) {
|
||||
if(gmRoom == noone) {
|
||||
draw_sprite_stretched_ext(THEME.ui_panel_bg, 1, _x, _y, _w, ui(28), COLORS.node_composite_bg_blend, 1);
|
||||
|
||||
draw_set_text(f_p3, fa_center, fa_center, COLORS._main_text_sub);
|
||||
draw_text_add(_x + _w / 2, _y + ui(14), "No data");
|
||||
return ui(28);
|
||||
|
|
Loading…
Reference in a new issue