Player changes + projectile fixes2
This commit is contained in:
@@ -32,9 +32,11 @@ func _connect_gamestate():
|
||||
|
||||
func _on_chat_message(sender: String, message: String, type: String):
|
||||
print("[ChatUI] _on_chat_message received - Sender: '%s', Message: '%s', Type: '%s'" % [sender, message, type])
|
||||
|
||||
|
||||
_add_message(sender, message, type)
|
||||
chat_messages_container.visible = true;
|
||||
|
||||
# Show chat panel when a message is received
|
||||
visible = true
|
||||
|
||||
func _add_message(sender: String, message: String, type: String = "normal"):
|
||||
print("[ChatUI] Adding message to chat log")
|
||||
|
||||
@@ -252,7 +252,10 @@ func _toggle_settings_panel():
|
||||
|
||||
func _get_mobile_controls_enabled() -> bool:
|
||||
# Check if mobile controls are enabled (stored in config or default to true on mobile)
|
||||
if OS.has_feature("mobile"):
|
||||
# Detect touch-capable devices (mobile native or web on tablets/phones)
|
||||
var is_touch_device = OS.has_feature("mobile") or DisplayServer.is_touchscreen_available()
|
||||
|
||||
if is_touch_device:
|
||||
return ProjectSettings.get_setting("application/config/mobile_controls_enabled", true)
|
||||
return ProjectSettings.get_setting("application/config/mobile_controls_enabled", false)
|
||||
|
||||
|
||||
+4
-1
@@ -425,7 +425,10 @@ func add_log_entry(text: String, color: Color):
|
||||
child.queue_free()
|
||||
|
||||
func _get_mobile_controls_enabled() -> bool:
|
||||
if OS.has_feature("mobile"):
|
||||
# Check if we're on a touch-capable device (mobile native or web on tablets/phones)
|
||||
var is_touch_device = OS.has_feature("mobile") or DisplayServer.is_touchscreen_available()
|
||||
|
||||
if is_touch_device:
|
||||
return ProjectSettings.get_setting("application/config/mobile_controls_enabled", true)
|
||||
return ProjectSettings.get_setting("application/config/mobile_controls_enabled", false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user