54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
[gd_resource type="Resource" load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://production/blueprints/mannequin/capsule_mesh.mesh" type="ArrayMesh" id=1]
|
|
|
|
[sub_resource type="GDScript" id=1]
|
|
script/source = "tool
|
|
extends SummerDayBlueprint
|
|
|
|
|
|
#export(Mesh) var model
|
|
|
|
|
|
#func _create_model():
|
|
# var caps := CapsuleMesh.new()
|
|
# caps.radius = 0.9
|
|
# caps.mid_height = 2
|
|
# caps.radial_segments = 16
|
|
# caps.rings = 2
|
|
#
|
|
# var arr_mesh := ArrayMesh.new()
|
|
# arr_mesh.add_surface_from_arrays(
|
|
# Mesh.PRIMITIVE_TRIANGLES, caps.get_mesh_arrays()
|
|
# )
|
|
#
|
|
# var m = MeshInstance.new()
|
|
# m.material_override = custom_material
|
|
# m.add_to_group(\"SummerDaySpatialTransform\", true)
|
|
# m.mesh = arr_mesh
|
|
#
|
|
# table = Image.new()
|
|
# table.create(8, 1, false, Image.FORMAT_RGBAF)
|
|
# #
|
|
# var texture = ImageTexture.new()
|
|
# #
|
|
# texture.create_from_image(table, 0)
|
|
# m.material_override.set_shader_param(\"table\", texture)
|
|
# m.name = \"TestCapsule\"
|
|
#
|
|
# model = PackedScene.new()
|
|
# var result = model.pack(m)
|
|
# return model
|
|
|
|
|
|
func _create_cell(table: SummerDayTable):
|
|
var cell = SummerDayCell.new()
|
|
var cylinder = SummerDayEditableTube.new()
|
|
cell.editable_list.append(cylinder)
|
|
return cell
|
|
"
|
|
|
|
[resource]
|
|
script = SubResource( 1 )
|
|
model = ExtResource( 1 )
|