mirror of
https://github.com/Relintai/wfc_module_samples.git
synced 2025-05-17 03:02:08 +02:00
Add temporary warning, that the generation can fail.
This commit is contained in:
parent
a98a54aa36
commit
c3a2a5316a
@ -56,6 +56,13 @@ margin_bottom = 318.0
|
|||||||
rect_min_size = Vector2( 300, 300 )
|
rect_min_size = Vector2( 300, 300 )
|
||||||
expand = true
|
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"]
|
[node name="HBoxContainer3" type="VBoxContainer" parent="VBoxContainer2/VBoxContainer"]
|
||||||
margin_left = 608.0
|
margin_left = 608.0
|
||||||
margin_right = 1010.0
|
margin_right = 1010.0
|
||||||
|
@ -344,7 +344,7 @@ func generate_image_tiled():
|
|||||||
if (res.size() == 0):
|
if (res.size() == 0):
|
||||||
print("(res.size() == 0)")
|
print("(res.size() == 0)")
|
||||||
return
|
return
|
||||||
|
|
||||||
var data : PoolByteArray = indexer.indices_to_argb8_data(res)
|
var data : PoolByteArray = indexer.indices_to_argb8_data(res)
|
||||||
|
|
||||||
var res_img : Image = Image.new()
|
var res_img : Image = Image.new()
|
||||||
|
Loading…
Reference in New Issue
Block a user