From b3eb7c19ed2fffeebcc8b5a117f52c7e1201ce7c Mon Sep 17 00:00:00 2001 From: TJH Date: Tue, 14 Oct 2025 10:20:13 +0800 Subject: [PATCH] rb7 --- assets/Loading/game.scene | 4 ++-- assets/Loading/scripts/comm.ts | 13 +++++++++++-- assets/Loading/scripts/loading.ts | 4 ++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/assets/Loading/game.scene b/assets/Loading/game.scene index a25cb9e..a3f9666 100644 --- a/assets/Loading/game.scene +++ b/assets/Loading/game.scene @@ -1894,7 +1894,7 @@ "__id__": 9 }, "_children": [], - "_active": false, + "_active": true, "_components": [ { "__id__": 50 @@ -1907,7 +1907,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": 0, - "y": -803, + "y": -850, "z": 0 }, "_lrot": { diff --git a/assets/Loading/scripts/comm.ts b/assets/Loading/scripts/comm.ts index 442fa46..52b41ba 100644 --- a/assets/Loading/scripts/comm.ts +++ b/assets/Loading/scripts/comm.ts @@ -13,6 +13,7 @@ let currency = "THB" let supportUrl = "" let oddsUrl = "" let historyUrl = "" +let isRB7 = false; export function getOddsUrl() { return oddsUrl; @@ -30,7 +31,10 @@ export function getLanguage() { // return 'zh'; return language; } - +export function getIsRB7() { + // return true; + return isRB7; +} export function initReqAddr() { let partHost = ".rpfafafahkdev.com"; if (!PREVIEW) { @@ -46,7 +50,12 @@ export function initReqAddr() { if (c) { currency = c } - + // brand=rb7 + const rb7 = qs.get("brand"); + if (rb7) { + isRB7 = rb7 == "rb7"; + } + const dotidx = location.host.indexOf('.') partHost = location.host.slice(dotidx) } diff --git a/assets/Loading/scripts/loading.ts b/assets/Loading/scripts/loading.ts index 8b0649d..0522cd3 100644 --- a/assets/Loading/scripts/loading.ts +++ b/assets/Loading/scripts/loading.ts @@ -1,5 +1,5 @@ import { _decorator, Component, Node, ProgressBar, Label, Button, view, VideoPlayer, UITransform, AssetManager, tween, ResolutionPolicy, game, director, Director, sys, macro, JsonAsset } from 'cc'; -import { callGameApi, getLanguage, initReqAddr } from './comm'; +import { callGameApi, getIsRB7, getLanguage, initReqAddr } from './comm'; import { GameDataManager } from './manager/GameDataManager'; import { ResManager } from './manager/ResManager'; import { AudioManager } from './manager/AudioManager'; @@ -59,6 +59,7 @@ export class LoadingUI extends Component { async start() { try { initReqAddr(); + this.LoadingUINode.getChildByName('Logo_RB7').active = getIsRB7(); await I18nManager.instance.init(getLanguage(), this.languageJson); I18nManager.instance.updateSceneRenderers(); @@ -92,7 +93,6 @@ export class LoadingUI extends Component { try { // 更新进度条到 0.6 this.updateProgress(0.6); - this.tipLabel.string = `${I18nManager.instance.t('Loading')}...`; let gameInfo = await callGameApi("gameinfo", {}); if (!gameInfo) throw new Error('Get game info failed');