Set web client to 72fba92 baseline for confirmation
This commit is contained in:
@@ -159,7 +159,7 @@ func join(lid: String, deck_id: String, password: String,
|
||||
lobby["hasGuest"] = true
|
||||
lobby["additionalPlayers"] = d.get("additionalPlayers", [])
|
||||
# Apply team assignments from join response if present.
|
||||
var raw_st := d.get("seatTeams", null)
|
||||
var raw_st : Variant = d.get("seatTeams", null)
|
||||
if raw_st != null:
|
||||
seat_teams.clear()
|
||||
for k in (raw_st as Dictionary):
|
||||
|
||||
@@ -46,6 +46,10 @@ signal player_eliminated(session_id: String, eliminated_account_id: String, seat
|
||||
## event_type: "started" | "ended"
|
||||
signal game_activity(event_type: String, session_id: String)
|
||||
|
||||
## Emitted when a Triggered ability needs the local player to pick a target.
|
||||
## Payload keys: requestId, sourceInstanceId, abilityName, actionJson, rangeJson
|
||||
signal triggered_target_request(request_data: Dictionary)
|
||||
|
||||
# ── State ─────────────────────────────────────────────────────────────────────
|
||||
|
||||
var session_id : String = ""
|
||||
@@ -333,6 +337,13 @@ func send_activate_ability(source_id: String, ability_index: int,
|
||||
payload["targets"] = targets
|
||||
_game_request("game.activate_ability", payload)
|
||||
|
||||
|
||||
func send_triggered_target_response(request_id: String, targets: Array) -> void:
|
||||
var payload : Dictionary = { "requestId": request_id }
|
||||
if not targets.is_empty():
|
||||
payload["targets"] = targets
|
||||
_game_request("game.triggered_target", payload)
|
||||
|
||||
# ── Private ───────────────────────────────────────────────────────────────────
|
||||
|
||||
func _game_request(msg_type: String, extra: Dictionary) -> void:
|
||||
@@ -648,3 +659,6 @@ func _on_server_push(type: String, payload: Variant) -> void:
|
||||
var ev_type : String = str(d.get("eventType", ""))
|
||||
var ev_sid : String = str(d.get("sessionId", ""))
|
||||
game_activity.emit(ev_type, ev_sid)
|
||||
|
||||
"game.ability.triggered_target_request":
|
||||
triggered_target_request.emit(payload as Dictionary)
|
||||
|
||||
@@ -14,6 +14,7 @@ const SECTION := "audio"
|
||||
const SECTION_GAMEPLAY := "gameplay"
|
||||
const SECTION_VISUAL := "visual"
|
||||
const SECTION_HIGHLIGHTS := "highlights"
|
||||
const SECTION_CAMERA := "camera"
|
||||
|
||||
## Audio bus names as configured in the Godot project.
|
||||
const BUS_MUSIC := "Music"
|
||||
@@ -56,6 +57,13 @@ var camera_follow_unit : bool = true :
|
||||
_save()
|
||||
settings_changed.emit()
|
||||
|
||||
## When true, clicking any tile smoothly pans the camera to center on it.
|
||||
var click_to_focus_camera : bool = false :
|
||||
set(v):
|
||||
click_to_focus_camera = v
|
||||
_save()
|
||||
settings_changed.emit()
|
||||
|
||||
## Skybox display mode in gameplay scenes.
|
||||
## "live" — near-black sky with emissive stars; each star = an active game session.
|
||||
## "cdn" — server-configured panoramic or animated skybox image.
|
||||
@@ -66,6 +74,15 @@ var skybox_mode : String = "live" :
|
||||
_save()
|
||||
settings_changed.emit()
|
||||
|
||||
## How touch camera control is activated.
|
||||
## "gesture" — hold finger(s) still for 3 s to activate (1 = orbit, 2 = zoom, 3 = pan).
|
||||
## "buttons" — tap the on-screen Orbit / Pan / Zoom toggle buttons.
|
||||
var touch_camera_mode : String = "gesture" :
|
||||
set(v):
|
||||
touch_camera_mode = v
|
||||
_save()
|
||||
settings_changed.emit()
|
||||
|
||||
## Per-type highlight texture URL overrides entered by the player.
|
||||
## Keys: "movement", "attack", "ability", "terramorpha", "selector"
|
||||
## Value: URL string, or "" to use the server default.
|
||||
@@ -138,7 +155,9 @@ func _load() -> void:
|
||||
music_muted = bool(cfg.get_value(SECTION, "music_muted", false))
|
||||
sfx_volume = float(cfg.get_value(SECTION, "sfx_volume", 1.0))
|
||||
sfx_muted = bool(cfg.get_value(SECTION, "sfx_muted", false))
|
||||
camera_follow_unit = bool(cfg.get_value(SECTION_GAMEPLAY, "camera_follow_unit", true))
|
||||
camera_follow_unit = bool(cfg.get_value(SECTION_GAMEPLAY, "camera_follow_unit", true))
|
||||
click_to_focus_camera = bool(cfg.get_value(SECTION_GAMEPLAY, "click_to_focus_camera", false))
|
||||
touch_camera_mode = str(cfg.get_value(SECTION_CAMERA, "touch_camera_mode", "gesture"))
|
||||
skybox_mode = str(cfg.get_value(SECTION_VISUAL, "skybox_mode", "live"))
|
||||
var raw_overrides = cfg.get_value(SECTION_HIGHLIGHTS, "highlight_overrides", {})
|
||||
if raw_overrides is Dictionary:
|
||||
@@ -151,7 +170,9 @@ func _save() -> void:
|
||||
cfg.set_value(SECTION, "music_muted", music_muted)
|
||||
cfg.set_value(SECTION, "sfx_volume", sfx_volume)
|
||||
cfg.set_value(SECTION, "sfx_muted", sfx_muted)
|
||||
cfg.set_value(SECTION_GAMEPLAY, "camera_follow_unit", camera_follow_unit)
|
||||
cfg.set_value(SECTION_GAMEPLAY, "camera_follow_unit", camera_follow_unit)
|
||||
cfg.set_value(SECTION_GAMEPLAY, "click_to_focus_camera", click_to_focus_camera)
|
||||
cfg.set_value(SECTION_CAMERA, "touch_camera_mode", touch_camera_mode)
|
||||
cfg.set_value(SECTION_VISUAL, "skybox_mode", skybox_mode)
|
||||
cfg.set_value(SECTION_HIGHLIGHTS, "highlight_overrides", highlight_overrides)
|
||||
cfg.save(SAVE_PATH)
|
||||
|
||||
Reference in New Issue
Block a user