From 52bdc56af4fa07c19fcab855ca55f8cddd3693c4 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Fri, 11 Mar 2022 16:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=94=BB=E5=99=A8=E9=98=81=E3=80=91?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=AD=82=E5=8D=B0=E5=92=8C=E5=AE=9D=E7=89=A9?= =?UTF-8?q?=E7=9A=84=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Compound/CompoundPanel.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Compound/CompoundPanel.lua b/Assets/ManagedResources/~Lua/Modules/Compound/CompoundPanel.lua index f786015e3c..0da4153695 100644 --- a/Assets/ManagedResources/~Lua/Modules/Compound/CompoundPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Compound/CompoundPanel.lua @@ -4,8 +4,8 @@ local this = CompoundPanel local TabBox = require("Modules/Common/TabBox") local _TabData={ [1] = { default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002",select = "r_hero_xuanze_001", name = Language[10385] , funcType = FUNCTION_OPEN_TYPE.COMPOUND}, --[2] = { default = "r_hero_xuanze_002", select = "r_hero_xuanze_001", name = "宝器锻造" }, - [2] = { default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002",select = "r_hero_xuanze_001", name = Language[10386], funcType = FUNCTION_OPEN_TYPE.Treasure }, - [3] = { default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002",select = "r_hero_xuanze_001", name = Language[10387] , funcType = FUNCTION_OPEN_TYPE.hunyin}, + [2] = { default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002",select = "r_hero_xuanze_001", name = Language[10387] , funcType = FUNCTION_OPEN_TYPE.hunyin}, + [3] = { default = "r_hero_xuanze_002", lock = "r_hero_xuanze_002",select = "r_hero_xuanze_001", name = Language[10386], funcType = FUNCTION_OPEN_TYPE.Treasure }, } local _TabFontColor = { default = Color.New(130 / 255, 128 / 255, 120 / 255, 1), select = Color.New(243 / 255, 235 / 255, 202 / 255, 1), @@ -16,8 +16,8 @@ local curIndex = 1 this.contents = { [1] = {view = require("Modules/Compound/view/CompoundPanel_Equip"), panelName = "CompoundPanel_Equip"}, --[2] = {view = require("Modules/Compound/view/CompoundPanel_Talisman"), panelName = "CompoundPanel_Talisman"}, - [2] = {view = require("Modules/Compound/view/CompoundPanel_Treasure"), panelName = "CompoundPanel_Treasure"}, - [3] = {view = require("Modules/Compound/view/CompoundPanel_SoulPrint"), panelName = "CompoundPanel_SoulPrint"}, + [2] = {view = require("Modules/Compound/view/CompoundPanel_SoulPrint"), panelName = "CompoundPanel_SoulPrint"}, + [3] = {view = require("Modules/Compound/view/CompoundPanel_Treasure"), panelName = "CompoundPanel_Treasure"}, } --初始化组件(用于子类重写) function CompoundPanel:InitComponent() @@ -132,14 +132,14 @@ function this.SetBottomBarIsActive(tab, index) local ConfigData = ConfigManager.GetConfig(ConfigName.SpecialConfig) if index == 2 then + local string = ConfigData[89].Value + tab:SetActive(PlayerManager.level >= tonumber(string)) + end + if index == 3 then local string = ConfigData[40].Value local num = string.split(string.split(string,"|")[1],"#")[2] tab:SetActive(PlayerManager.level >= tonumber(num)) end - if index == 3 then - local string = ConfigData[89].Value - tab:SetActive(PlayerManager.level >= tonumber(string)) - end end --切换视图