mirror of
https://github.com/Relintai/wfc_module_samples.git
synced 2024-11-13 12:47:17 +01:00
Smaller improvements.
This commit is contained in:
parent
7af9db6c8c
commit
f7e06768f4
@ -46,8 +46,6 @@ func _init():
|
|||||||
load_data()
|
load_data()
|
||||||
|
|
||||||
func load_data():
|
func load_data():
|
||||||
var a = ResourceLoader.load("res://samples/samples.xml")
|
|
||||||
|
|
||||||
data.clear()
|
data.clear()
|
||||||
|
|
||||||
var xmlp : XMLParser = XMLParser.new()
|
var xmlp : XMLParser = XMLParser.new()
|
||||||
@ -108,7 +106,7 @@ func generate_image_overlapping():
|
|||||||
|
|
||||||
var sd : SampleData = data[_current_data_index]
|
var sd : SampleData = data[_current_data_index]
|
||||||
|
|
||||||
get_node(settings_label_path).text = sd.to_string()
|
get_node(settings_label_path).text = str(_current_data_index) + "\n" + sd.to_string()
|
||||||
|
|
||||||
var indexer : ImageIndexer = ImageIndexer.new()
|
var indexer : ImageIndexer = ImageIndexer.new()
|
||||||
|
|
||||||
@ -161,6 +159,11 @@ func generate_image_overlapping():
|
|||||||
get_node(result_image_rect_path).texture = res_tex
|
get_node(result_image_rect_path).texture = res_tex
|
||||||
|
|
||||||
func generate_image_tiled():
|
func generate_image_tiled():
|
||||||
|
#load data xml
|
||||||
|
#process
|
||||||
|
#index all images -> need new api to the indexer
|
||||||
|
#add_neighbour set binding names -> {left_tile, left_orientation, right_tile, right_orientation}
|
||||||
|
#left_orientation -> might need constants
|
||||||
pass
|
pass
|
||||||
|
|
||||||
func _on_prev_pressed():
|
func _on_prev_pressed():
|
||||||
|
Loading…
Reference in New Issue
Block a user