From ed59466b460556ddf2f2c9c94f8b7c40ad2966be Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Mon, 11 Jan 2021 17:46:34 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=BD=A6=E8=BF=9F=E6=96=97=E6=B3=95?= =?UTF-8?q?=E3=80=91boss=E8=BD=AE=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua index 3427364491..0dae7f0597 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayMainPanel.lua @@ -16,6 +16,7 @@ local _TabFontColor = { default = Color.New(130 / 255, 128 / 255, 120 / 255, 1), this.timer = Timer.New() local challengeNum = 0 local lootNum = 0 +local bossNum = 0 --初始化组件(用于子类重写) function GuildCarDelayMainPanel:InitComponent() this.live2dRoot = Util.GetGameObject(self.gameObject, "live2dRoot") @@ -53,6 +54,12 @@ function GuildCarDelayMainPanel:InitComponent() this.RankListPre, nil, Vector2.New(-v2.x*2, -v2.y*2), 1, 1, Vector2.New(50,8)) this.ScrollView.moveTween.MomentumAmount = 1 this.ScrollView.moveTween.Strength = 1 + + for i, v in ConfigPairs(ConfigManager.GetConfig(ConfigName.WorldBossConfig)) do + if v.Id > 0 then + bossNum = bossNum + 1 + end + end end --绑定事件(用于子类重写) @@ -237,7 +244,7 @@ end function this.GetLastBoss(curBossId) local lastIndex = 0 if curBossId == 1 then - lastIndex = #ConfigManager.GetConfig(ConfigName.WorldBossConfig) + lastIndex = bossNum else lastIndex = curBossId - 1 end