diff --git a/app/components/SignNode.tscn b/app/components/SignNode.tscn index 674b7c24..cd291385 100644 --- a/app/components/SignNode.tscn +++ b/app/components/SignNode.tscn @@ -5,7 +5,7 @@ [ext_resource path="res://components/SignNode.gdns" type="Script" id=7] [sub_resource type="DynamicFont" id=19] -size = 110 +size = 72 font_data = ExtResource( 1 ) [sub_resource type="StyleBoxFlat" id=20] @@ -87,6 +87,8 @@ mesh = SubResource( 18 ) material/0 = SubResource( 17 ) [node name="SignBody" type="StaticBody" parent="MeshInstance"] +collision_layer = 16 +collision_mask = 0 [node name="CollisionShape" type="CollisionShape" parent="MeshInstance/SignBody"] shape = SubResource( 15 ) diff --git a/src/controllers/script_controllers/worker.nim b/src/controllers/script_controllers/worker.nim index de757f71..6ee8e825 100644 --- a/src/controllers/script_controllers/worker.nim +++ b/src/controllers/script_controllers/worker.nim @@ -241,9 +241,9 @@ proc worker_thread(params: (ZenContext, GameState)) {.gcsafe.} = player.script_ctx.interpreter = worker.interpreter worker.load_script_and_dependents(player) - var sign = Sign.init("", "", width = 3, height = 2.05, owner = state.player, + var sign = Sign.init("", "", width = 4, height = 3.05, owner = state.player, size = 244, billboard = true, text_only = true, - transform = Transform.init(origin = vec3(0, 3, 0))) + transform = Transform.init(origin = vec3(0, 4, 0))) state.player.units += sign sign.global_flags -= Visible diff --git a/src/models/players.nim b/src/models/players.nim index f912583b..2e93bb38 100644 --- a/src/models/players.nim +++ b/src/models/players.nim @@ -38,6 +38,7 @@ proc `open_code=`*(self: Player, code: string) = unit.global_flags -= Visible else: unit.message = code + unit.more = code unit.global_flags += Visible return