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:
@@ -36,6 +36,7 @@ var _deck_btn_group : ButtonGroup = null
|
||||
# ── Lifecycle ─────────────────────────────────────────────────────────────────
|
||||
|
||||
func _ready() -> void:
|
||||
ContentCache.apply_scene_background(self)
|
||||
Chat.set_bubble_visible(true)
|
||||
_setup_ui()
|
||||
_load_decks() # load decks first; lobbies load after decks arrive
|
||||
|
||||
@@ -49,6 +49,7 @@ var _current_rules : Dictionary = {}
|
||||
# ── Lifecycle ─────────────────────────────────────────────────────────────────
|
||||
|
||||
func _ready() -> void:
|
||||
ContentCache.apply_scene_background(self)
|
||||
_setup_ui()
|
||||
_connect_signals()
|
||||
_refresh_display()
|
||||
@@ -139,7 +140,7 @@ func _refresh_display() -> void:
|
||||
lobby_title_label.text = "LOBBY: %s" % lobby_name
|
||||
|
||||
# Host slot
|
||||
host_name_label.text = "Host: %s" % str(lobby.get("hostDisplayName", Auth.user_id))
|
||||
host_name_label.text = "Host: %s" % str(lobby.get("hostDisplayName", Auth.display_name))
|
||||
host_deck_label.text = "Deck: (selected)"
|
||||
|
||||
# Guest slot
|
||||
|
||||
Reference in New Issue
Block a user