aboutsummaryrefslogtreecommitdiff
path: root/client/player/controllable_player.gd
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2024-08-29 14:41:55 +0200
committertpart <tpart120@proton.me>2024-08-29 14:41:55 +0200
commit6c74fe5c8a74031a4bfcbfc73a7fcd008af7554c (patch)
treeba11c0b46bd5aea17db5fda611ed1a13a2a9124f /client/player/controllable_player.gd
parent1561cd04a1cbba079a9f4cc4e6545b510d76e3ea (diff)
downloadhurrycurry-6c74fe5c8a74031a4bfcbfc73a7fcd008af7554c.tar
hurrycurry-6c74fe5c8a74031a4bfcbfc73a7fcd008af7554c.tar.bz2
hurrycurry-6c74fe5c8a74031a4bfcbfc73a7fcd008af7554c.tar.zst
Add new chat system
Diffstat (limited to 'client/player/controllable_player.gd')
-rw-r--r--client/player/controllable_player.gd15
1 files changed, 0 insertions, 15 deletions
diff --git a/client/player/controllable_player.gd b/client/player/controllable_player.gd
index ab43b70b..c5180264 100644
--- a/client/player/controllable_player.gd
+++ b/client/player/controllable_player.gd
@@ -47,18 +47,6 @@ func _ready():
)
add_child(onscreen_controls)
super()
- chat_bubble.submit_message.connect(submit_message)
-
-func _input(_event):
- if Input.is_action_just_pressed("chat"):
- if chat_open and not game.menu.covered:
- chat_bubble.stop_edit()
- chat_open = false
- enable_input = true
- elif is_input_enabled():
- chat_bubble.edit()
- chat_open = true
- enable_input = false
const MAX_DT = 1. / 50.
func _process(delta):
@@ -148,9 +136,6 @@ func aabb_point_distance(mi: Vector2, ma: Vector2, p: Vector2) -> float:
func update_position(_new_position: Vector2, _new_rotation: float, _new_boosting: bool):
pass
-func submit_message(text: String):
- game.mp.send_chat(game.player_id, text)
-
func progress(p: float, warn: bool):
super(p, warn)
Input.start_joy_vibration(0, 0.5, 0.1, 0.15)