Implement cubemap skybox, multi-active skyboxes, and 2D scene backgrounds

- Server: Add SkyboxType + 6 CubeUrl fields to SkyboxDefinition entity
- Server: EF migration AddSkyboxCubemapType
- Server: GetSkyboxConfigResponse now returns array of all active skyboxes
- Admin: SkyboxManagerPage supports Panoramic/AnimatedPanorama/Cubemap types,
  6 face URL fields for cubemap, and independent per-skybox active toggle
- Client: ContentCache fetches + caches skyboxes; adds get_random_skybox,
  get_skybox_bg_url, load_texture_async, apply_scene_background helpers
- Client: game_screen replaces _fetch_skybox with ContentCache-based approach;
  adds _load_cubemap_skybox / _apply_cubemap_images / _apply_cubemap_material
- Client: 12 2D scene scripts call ContentCache.apply_scene_background(self)
  in _ready() to replace solid-color backgrounds with CDN skybox images

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
dingo
2026-03-25 16:11:02 -04:00
co-authored by Claude Happy
parent 453f008620
commit 843660dfce
22 changed files with 1184 additions and 124 deletions
@@ -14,6 +14,7 @@ const NOTIF_ROW = preload("res://scenes/account/components/NotificationRow.tscn"
# ── Lifecycle ─────────────────────────────────────────────────────────────────
func _ready() -> void:
ContentCache.apply_scene_background(self)
back_btn.pressed.connect(_on_back)
_load_profile()
_load_notifications()
@@ -207,7 +208,7 @@ func _show_notification_dialog(notification: Dictionary, focus_reply: bool) -> v
func _extract_bug_report_payload(notification: Dictionary) -> Dictionary:
var payload_raw := notification.get("payloadJson", null)
var payload_raw : String = notification.get("payloadJson", null)
if payload_raw == null:
return {}
@@ -215,7 +216,7 @@ func _extract_bug_report_payload(notification: Dictionary) -> Dictionary:
if payload_text.is_empty():
return {}
var parsed := JSON.parse_string(payload_text)
var parsed : Variant = JSON.parse_string(payload_text)
if typeof(parsed) == TYPE_DICTIONARY:
return parsed as Dictionary
return {}