Add temporary warning, that the generation can fail.

This commit is contained in:
Relintai 2022-04-24 17:51:38 +02:00
parent a98a54aa36
commit c3a2a5316a
2 changed files with 8 additions and 1 deletions

View File

@ -56,6 +56,13 @@ margin_bottom = 318.0
rect_min_size = Vector2( 300, 300 )
expand = true
[node name="Label2" type="Label" parent="VBoxContainer2/VBoxContainer/HBoxContainer2"]
margin_top = 322.0
margin_right = 300.0
margin_bottom = 387.0
text = "Note: If an image does not appear here, that means the generation has failed. At this stage it's likely a bug. Try clicking randomize a few times."
autowrap = true
[node name="HBoxContainer3" type="VBoxContainer" parent="VBoxContainer2/VBoxContainer"]
margin_left = 608.0
margin_right = 1010.0

View File

@ -344,7 +344,7 @@ func generate_image_tiled():
if (res.size() == 0):
print("(res.size() == 0)")
return
var data : PoolByteArray = indexer.indices_to_argb8_data(res)
var res_img : Image = Image.new()