update isidot race
This commit is contained in:
parent
07b364f11d
commit
80c67686b9
9 changed files with 813 additions and 223 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -3,6 +3,3 @@
|
||||||
[ext_resource path="res://assets/creatures/isidor/isidor.gltf" type="PackedScene" id=1]
|
[ext_resource path="res://assets/creatures/isidor/isidor.gltf" type="PackedScene" id=1]
|
||||||
|
|
||||||
[node name="isidor" instance=ExtResource( 1 )]
|
[node name="isidor" instance=ExtResource( 1 )]
|
||||||
|
|
||||||
[node name="BoneHalo" parent="Isidor/BoneBase" index="1"]
|
|
||||||
transform = Transform( 0.547755, 0, 0.836639, 0, 1, 0, -0.836639, 0, 0.547755, 0, 1.32818, 0 )
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ MusicManager="*res://scenes/interfaces/music_manager/music_manager.tscn"
|
||||||
Connection="*res://scenes/connection/connection.tscn"
|
Connection="*res://scenes/connection/connection.tscn"
|
||||||
Globals="*res://ressources/scripts/global.gd"
|
Globals="*res://ressources/scripts/global.gd"
|
||||||
Datas="*res://ressources/scripts/datas/data.gd"
|
Datas="*res://ressources/scripts/datas/data.gd"
|
||||||
GeneratorMap="res://scenes/game/generate_map.gd"
|
GeneratorMap="*res://scenes/game/generate_map.gd"
|
||||||
|
|
||||||
[debug]
|
[debug]
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ func list_blend_shapes( obj, father = "" ) -> Array:
|
||||||
list_blend_shapes( i, root)
|
list_blend_shapes( i, root)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
||||||
func update_blend_shapes_step( obj, father = "" ):
|
func update_blend_shapes_step( obj, father = "" ):
|
||||||
for i in obj.get_children():
|
for i in obj.get_children():
|
||||||
var root = father + str(i.name) + "."
|
var root = father + str(i.name) + "."
|
||||||
|
@ -94,13 +95,11 @@ func change_creature( new_model_path ):
|
||||||
new_model = new_model.instance()
|
new_model = new_model.instance()
|
||||||
new_model.name = "creature"
|
new_model.name = "creature"
|
||||||
self.add_child( new_model )
|
self.add_child( new_model )
|
||||||
#new_model.connect( "animation_finished", self, "_on_creature_animation_finished" )
|
|
||||||
#new_model.duplicate_meshes()
|
|
||||||
|
|
||||||
|
|
||||||
func _on_select_race( race ):
|
func _on_select_race( race_sex_selected ):
|
||||||
Config.msg_debug(race)
|
Config.msg_debug(race_sex_selected)
|
||||||
match race:
|
match race_sex_selected:
|
||||||
"arche":
|
"arche":
|
||||||
self.change_creature( "res://scenes/creature_creation/arche.tscn" )
|
self.change_creature( "res://scenes/creature_creation/arche.tscn" )
|
||||||
"isidor":
|
"isidor":
|
||||||
|
@ -109,14 +108,6 @@ func _on_select_race( race ):
|
||||||
self.change_creature( "res://scenes/creature_creation/arche.tscn" )
|
self.change_creature( "res://scenes/creature_creation/arche.tscn" )
|
||||||
search_animation(self)
|
search_animation(self)
|
||||||
update_blend_shapes($creature)
|
update_blend_shapes($creature)
|
||||||
# for child in $creature.get_children():
|
|
||||||
# Config.msg_debug("Child / name:" + child.name)
|
|
||||||
# list_child($creature)
|
|
||||||
# var skeleton = child.get_node( "skeleton" )
|
|
||||||
# for node in skeleton.get_children():
|
|
||||||
# if node is MeshInstance:
|
|
||||||
# Config.msg_debug("Node / name:" + node.name)
|
|
||||||
# #node.set( "blend_shapes/"+p_blend_shape_name, p_value )
|
|
||||||
|
|
||||||
|
|
||||||
func _on_update_property(name_property, value):
|
func _on_update_property(name_property, value):
|
||||||
|
|
|
@ -76,6 +76,7 @@ func _on_property_previous_pressed():
|
||||||
func _on_property_next_pressed():
|
func _on_property_next_pressed():
|
||||||
Config.msg_debug("First name: " + $create/diplay/panel_left/margin/name/v_box_container/FirstName/line_edit.text)
|
Config.msg_debug("First name: " + $create/diplay/panel_left/margin/name/v_box_container/FirstName/line_edit.text)
|
||||||
Config.msg_debug("Last name: " + $create/diplay/panel_left/margin/name/v_box_container/LastName/line_edit.text)
|
Config.msg_debug("Last name: " + $create/diplay/panel_left/margin/name/v_box_container/LastName/line_edit.text)
|
||||||
|
Config.msg_debug("Race: " + current_race)
|
||||||
for key in $create/diplay/panel_left/margin/property/panel/blend_shape/list.get_children():
|
for key in $create/diplay/panel_left/margin/property/panel/blend_shape/list.get_children():
|
||||||
for pop in key.get_children():
|
for pop in key.get_children():
|
||||||
if pop is HBoxContainer:
|
if pop is HBoxContainer:
|
||||||
|
@ -110,6 +111,7 @@ func generate_name():
|
||||||
$create/diplay/panel_left/margin/name/v_box_container/FirstName/line_edit.text = first_name
|
$create/diplay/panel_left/margin/name/v_box_container/FirstName/line_edit.text = first_name
|
||||||
$create/diplay/panel_left/margin/name/v_box_container/LastName/line_edit.text = last_name
|
$create/diplay/panel_left/margin/name/v_box_container/LastName/line_edit.text = last_name
|
||||||
|
|
||||||
|
|
||||||
func update_property( blend_shapes ):
|
func update_property( blend_shapes ):
|
||||||
#Config.msg_debug("")
|
#Config.msg_debug("")
|
||||||
for child in $create/diplay/panel_left/margin/property/panel/blend_shape/list.get_children():
|
for child in $create/diplay/panel_left/margin/property/panel/blend_shape/list.get_children():
|
||||||
|
|
|
@ -15,7 +15,7 @@ func _ready():
|
||||||
Connection.connect( "connection_ok", self, "_on_connexion_ok" )
|
Connection.connect( "connection_ok", self, "_on_connexion_ok" )
|
||||||
Connection.connect( "connection_error", self, "_on_connection_error" )
|
Connection.connect( "connection_error", self, "_on_connection_error" )
|
||||||
#GeneratorMap.GenerateSphere()
|
#GeneratorMap.GenerateSphere()
|
||||||
#GeneratorMap.GenerateMap("res://ground-0-2-high.png", 0 , 0)
|
GeneratorMap.GenerateMap("res://ground-0-2-high.png", 0 , 1)
|
||||||
#GeneratorMap.GenerateMap("res://ground-0-4-high.png", 0 , 0)
|
#GeneratorMap.GenerateMap("res://ground-0-4-high.png", 0 , 0)
|
||||||
Globals.ressource_queue.start()
|
Globals.ressource_queue.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue