Skip to content

Commit

Permalink
Code sign fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dsrw committed Nov 18, 2023
1 parent d5d40b9 commit 8d3271e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/components/SignNode.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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 )
4 changes: 2 additions & 2 deletions src/controllers/script_controllers/worker.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/models/players.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8d3271e

Please sign in to comment.