【本地化】

dev_chengFeng
ZhangBiao 2021-03-04 10:16:31 +08:00
parent a7e578eea8
commit 7d678094a3
4 changed files with 80 additions and 144 deletions

View File

@ -108,7 +108,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -26, y: 36.9}
m_AnchoredPosition: {x: 0, y: 36.9}
m_SizeDelta: {x: 568.23, y: 2.78}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2769401940550185320
@ -659,7 +659,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 590}
m_AnchoredPosition: {x: 64, y: 590}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &4215638206842307769
@ -859,7 +859,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 294, y: 593}
m_AnchoredPosition: {x: 203, y: 593}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &4628305833288301820
@ -1106,7 +1106,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 126, y: -133.8}
m_AnchoredPosition: {x: 82, y: -133.8}
m_SizeDelta: {x: 50, y: 58}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &292353098418717606
@ -1260,7 +1260,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -59, y: -387}
m_AnchoredPosition: {x: 14.699982, y: -387}
m_SizeDelta: {x: 197.07, y: 47.75}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4661546074662699206
@ -1298,7 +1298,7 @@ MonoBehaviour:
m_BestFit: 0
m_MinSize: 0
m_MaxSize: 70
m_Alignment: 4
m_Alignment: 5
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 1
@ -1340,7 +1340,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 127, y: -377.6}
m_AnchoredPosition: {x: 83, y: -377.6}
m_SizeDelta: {x: 50, y: 58}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &559628078360310452
@ -1414,7 +1414,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 127, y: -298.8}
m_AnchoredPosition: {x: 83, y: -298.8}
m_SizeDelta: {x: 50, y: 58}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &599154745447938448
@ -1488,7 +1488,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 126.1, y: -215.1}
m_AnchoredPosition: {x: 82.1, y: -215.1}
m_SizeDelta: {x: 50, y: 58}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &416257105069952145
@ -1751,7 +1751,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 169.7, y: -596.4}
m_AnchoredPosition: {x: 209.39998, y: -596.4}
m_SizeDelta: {x: 197.07, y: 47.75}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6374787610107455916
@ -1789,7 +1789,7 @@ MonoBehaviour:
m_BestFit: 0
m_MinSize: 2
m_MaxSize: 70
m_Alignment: 3
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 1
@ -1982,7 +1982,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -56.7, y: -306.6}
m_AnchoredPosition: {x: 17, y: -306.6}
m_SizeDelta: {x: 197.07, y: 47.75}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6330115522170114621
@ -2020,7 +2020,7 @@ MonoBehaviour:
m_BestFit: 0
m_MinSize: 2
m_MaxSize: 70
m_Alignment: 4
m_Alignment: 5
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 1
@ -2062,7 +2062,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -57.4, y: -472.8}
m_AnchoredPosition: {x: 16.29998, y: -472.8}
m_SizeDelta: {x: 197.07, y: 47.75}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2662474870811340882
@ -2100,7 +2100,7 @@ MonoBehaviour:
m_BestFit: 0
m_MinSize: 2
m_MaxSize: 70
m_Alignment: 4
m_Alignment: 5
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 1
@ -2460,7 +2460,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -58.6, y: -224.6}
m_AnchoredPosition: {x: 15.099983, y: -224.6}
m_SizeDelta: {x: 197.07, y: 47.75}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3217594873554573483
@ -2498,7 +2498,7 @@ MonoBehaviour:
m_BestFit: 0
m_MinSize: 2
m_MaxSize: 70
m_Alignment: 4
m_Alignment: 5
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 1
@ -2620,7 +2620,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 126, y: -50.1}
m_AnchoredPosition: {x: 82, y: -50.1}
m_SizeDelta: {x: 50, y: 58}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8854462857226213966
@ -2842,7 +2842,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -58.2, y: -139.2}
m_AnchoredPosition: {x: 15.499981, y: -139.2}
m_SizeDelta: {x: 197.07, y: 47.75}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &364036160513782008
@ -2880,7 +2880,7 @@ MonoBehaviour:
m_BestFit: 0
m_MinSize: 2
m_MaxSize: 70
m_Alignment: 4
m_Alignment: 5
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 1

View File

@ -2197,7 +2197,7 @@
[12196] = GetLanguageStrById("\t\t\t\t\t\t<color=green>%d级</color>(%s)"),
[12197] = GetLanguageStrById("\t\t\t\t\t\t<color=red>无</color>"),
[12198] = GetLanguageStrById("\t\t\t\t\t\t%s%d星(%s)"),
[12199] = GetLanguageStrById("需要6名鸿蒙使者才可激活共鸣效果!"),
[12199] = GetLanguageStrById("鸿蒙使者不足6位无法产生共鸣"),
[12200] = GetLanguageStrById("鸿蒙碑等级已达上限!"),
[12201] = GetLanguageStrById("鸿蒙塔等级:"),
[12202] = GetLanguageStrById("成长护符不足!"),
@ -2206,8 +2206,8 @@
[12205] = GetLanguageStrById("清除数据"),
[12206] = GetLanguageStrById("请先解锁前一个共鸣位置!"),
[12207] = GetLanguageStrById("共鸣格子已经全部解锁"),
[12208] = GetLanguageStrById("是否花费%d玄黄之气解锁共鸣位置"),
[12209] = GetLanguageStrById("玄黄之气不足%d是否直接花费%d妖晶解锁共鸣位置?"),
[12208] = GetLanguageStrById("是否花费%s玄黄之气解锁共鸣位置"),
[12209] = GetLanguageStrById("玄黄之气不足%s是否直接花费%s妖晶解锁共鸣位置?"),
[12210] = GetLanguageStrById("鸿蒙等级"),
[12211] = GetLanguageStrById("确认花费<color=#FF0000>%s</color>%s将%s涅槃为初始状态,并<color=#55C78AFF>100%s返还</color>养成消耗"),
[12212] = GetLanguageStrById("确认花费<color=#55C78AFF>%s</color>%s将%s涅槃为初始状态,并<color=#55C78AFF>100%s返还</color>养成消耗"),

View File

@ -68,115 +68,74 @@ function HongMengEnvoyPanel:InitEnvoyItemList(ItemPfb, parent)
end
--绑定事件(用于子类重写)
function HongMengEnvoyPanel:BindEvent()
Util.AddClick(
self.btnBack,
function()
self:ClosePanel()
end
)
Util.AddClick(
self.helpBtn,
function()
UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.HongMengZhen, self.helpPosition.x, self.helpPosition.y+500)
end
)
Util.AddClick(self.btnBack,function()
self:ClosePanel()
end)
Util.AddClick(self.helpBtn,function()
UIManager.OpenPanel(UIName.HelpPopup, HELP_TYPE.HongMengZhen, self.helpPosition.x, self.helpPosition.y+1100)
end)
Util.AddClick(
self.AddBtn,
function()
--二级弹窗界面
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OpenBoxTips)
end
)
Util.AddClick(self.AddBtn,function()
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.OpenBoxTips)
end)
--共鸣按钮
Util.AddClick(
self.GongMingBtn,
function()
--二级共鸣弹窗
local count = HarmonyManager:IsEnvoyCount()
LogGreen(count)
if count > 6 then
-- body
UIManager.OpenPanel(UIName.GongMingResultTips)
else
PopupTipPanel.ShowTip(Language[12199])
end
--print("共鸣提示")
end
)
Util.AddClick(self.GongMingBtn,function()
local count = HarmonyManager:IsEnvoyCount()
LogGreen(count)
if count > 6 then
UIManager.OpenPanel(UIName.GongMingResultTips)
else
PopupTipPanel.ShowTip(Language[12199])
end
end)
Util.AddClick(
self.UpBtn,
function()
--二级共鸣弹窗
if HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value >= HarmonyManager:HongMengTowerUpLimit() then
-- body
PopupTipPanel.ShowTip(Language[12200])
else
local data = HarmonyManager:GetHongMengUpData()
--print(data.LevelUp[1][2].." "..data.LevelUp[2][2])
if data == nil then
-- body
return
end
Gold = BagManager.GetTotalItemNum(UpViewRechargeType.Gold)
GrowthAmulet = BagManager.GetTotalItemNum(UpViewRechargeType.GrowthAmulet)
if Gold >= data.LevelUp[1][2] then
-- body
if GrowthAmulet >= data.LevelUp[2][2] then
--print("升级成功")
-- body
HarmonyManager.SetOldPowerNum()
NetManager.UpHongMengGrade(
function()
-- body
local sum = HarmonyManager:HongMengTowerUpLimit()
HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value = HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value + 1
if HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value >= sum then
-- body
Util.SetGray(self.UpBtn, true)
self.imageGame:SetActive(false)
self.TextGame:SetActive(false)
self.UnShowText:SetActive(true)
self.UpBtnRedPoint:SetActive(false)
end
self.GradeText.text = Language[12201]..string.format("%d/%d", HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value, sum)
--检测红点 UpdateGongMingLv
for i = 1, #self.EnvoyItemList do
self.EnvoyItemList[i]:UpdateFun()
end
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.UpdateGongMingLv)
CheckRedPointStatus(RedPointType.HongMeng_UpTower)
Util.AddClick(self.UpBtn,function()
if HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value >= HarmonyManager:HongMengTowerUpLimit() then
PopupTipPanel.ShowTip(Language[12200])
else
local data = HarmonyManager:GetHongMengUpData()
--print(data.LevelUp[1][2].." "..data.LevelUp[2][2])
if data == nil then
return
end
Gold = BagManager.GetTotalItemNum(UpViewRechargeType.Gold)
GrowthAmulet = BagManager.GetTotalItemNum(UpViewRechargeType.GrowthAmulet)
if Gold >= data.LevelUp[1][2] then
if GrowthAmulet >= data.LevelUp[2][2] then
HarmonyManager.SetOldPowerNum()
NetManager.UpHongMengGrade(function()
local sum = HarmonyManager:HongMengTowerUpLimit()
HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value = HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value + 1
if HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value >= sum then
Util.SetGray(self.UpBtn, true)
self.imageGame:SetActive(false)
self.TextGame:SetActive(false)
self.UnShowText:SetActive(true)
self.UpBtnRedPoint:SetActive(false)
end
self.GradeText.text = Language[12201]..string.format("%d/%d", HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value, sum)
for i = 1, #self.EnvoyItemList do
self.EnvoyItemList[i]:UpdateFun()
end
Game.GlobalEvent:DispatchEvent(GameEvent.HongMeng.UpdateGongMingLv)
CheckRedPointStatus(RedPointType.HongMeng_UpTower)
HarmonyManager.WarPowerChangeNotify()
end
)
else
PopupTipPanel.ShowTip(Language[12202])
end
HarmonyManager.WarPowerChangeNotify()
end)
else
PopupTipPanel.ShowTip(Language[11771])
PopupTipPanel.ShowTip(Language[12202])
end
else
PopupTipPanel.ShowTip(Language[11771])
end
end
)
end)
BindRedPointObject(RedPointType.HongMeng_UpTower,self.UpBtnRedPoint)
end
function HongMengEnvoyPanel:RunTimerFun()
local refreshFunc = function()
for key, value in pairs(self.EnvoyItemList) do
if HarmonyManager.hongmengGuards[key].time - GetTimeStamp() > 0 then
--print(#self.EnvoyItemList)
if value.Empty.activeSelf == false then
-- body
value.Empty:SetActive(true)
@ -184,10 +143,7 @@ function HongMengEnvoyPanel:RunTimerFun()
local time_content = TimeToFelaxible(HarmonyManager.hongmengGuards[key].time - GetTimeStamp())
value.timer_text.text = string.format(Language[12203], time_content)
else
-- body
if not value.AddImage.activeSelf then
-- body
value.AddImage:SetActive(true)
value.timer_text.text = ""
end
@ -195,7 +151,6 @@ function HongMengEnvoyPanel:RunTimerFun()
end
end
if self.timerEffect == nil then
-- body
self.timerEffect = Timer.New(refreshFunc, 1, -1, true)
end
self.timerEffect:Start()
@ -204,7 +159,6 @@ end
function HongMengEnvoyPanel:IsUpBtnGray()
local sum = HarmonyManager:HongMengTowerUpLimit()
if HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value >= sum then
-- body
Util.SetGray(self.UpBtn, true)
self.imageGame:SetActive(false)
self.TextGame:SetActive(false)
@ -226,7 +180,6 @@ end
function HongMengEnvoyPanel:UpdateShow(list)
for i = 1, #list do
-- bodys
--LogBlue("执行刷新"..list[i].heroId)
self.EnvoyItemList[i]:SetItemData(list[i])
self.EnvoyItemList[i]:SetItem(self.EnvoyItemList[i].gameObject, list[i])
@ -235,16 +188,12 @@ function HongMengEnvoyPanel:UpdateShow(list)
local Box = #HarmonyManager.hongmengGuards + #HarmonyManager.hongmengHeroInfos
local HeroCount = 0
for i = 1, #HarmonyManager.hongmengGuards do
-- body
if HarmonyManager.hongmengGuards[i].heroId ~= "" then
-- body
HeroCount = HeroCount + 1
end
end
for i = 1, #HarmonyManager.hongmengHeroInfos do
-- body
if HarmonyManager.hongmengHeroInfos[i].heroId ~= "" then
-- body
HeroCount = HeroCount + 1
end
end
@ -261,9 +210,6 @@ end
function HongMengEnvoyPanel:ReFeshTextFun(data)
local HeroCount = data[1]
local Box = data[2]
-- body
self.NumText.text = string.format("%d/%d", HeroCount, Box)
end
function HongMengEnvoyPanel:UpdateTextColor()
@ -314,7 +260,6 @@ function HongMengEnvoyPanel:OnOpen(equipSId)
--NetManager.PlayerInfoRequest(LoadingPanel.OnStep)
for i = 1, #self.EnvoyItemList do
-- body
self.EnvoyItemList[i]:OnOpen()
end
@ -343,19 +288,14 @@ function HongMengEnvoyPanel:CheckEvoyEquip()
local list= {}
HarmonyManager.equipCount = 0
for i = 1, #HarmonyManager.hongmengGuards do
-- body
if HarmonyManager.hongmengGuards[i].heroId ~= "" then
-- body
local singleHero = HeroManager.GetSingleHeroData(HarmonyManager.hongmengGuards[i].heroId)
table.insert(list,singleHero)
end
end
for i = 1, #list do
-- body
if list[i].equipIdList then
-- body
for i = 1, #list[i].equipIdList do
-- body
HarmonyManager.equipCount = HarmonyManager.equipCount + 1
end
end
@ -367,17 +307,14 @@ function HongMengEnvoyPanel:InitTextMum()
local HeroCount = 0
local Box = #HarmonyManager.hongmengHeroInfos + #HarmonyManager.hongmengGuards
for i = 1, #HarmonyManager.hongmengHeroInfos do
-- body
if HarmonyManager.hongmengHeroInfos[i].heroId ~= "" then
HeroCount = HeroCount + 1
end
end
for i = 1, #HarmonyManager.hongmengGuards do
-- body
if HarmonyManager.hongmengGuards[i].heroId ~= "" then
HeroCount = HeroCount + 1
-- body
end
end
@ -394,9 +331,8 @@ function HongMengEnvoyPanel:OnClose()
self.contents[i].view:OnClose()
end
if self.timerEffect then
-- body
self.timerEffect:Stop()
--print("关闭倒计时")
self.timerEffect = nil
end
end
@ -404,9 +340,8 @@ end
function HongMengEnvoyPanel:OnDestroy()
SubUIManager.Close(self.UpView)
if self.timerEffect then
-- body
self.timerEffect:Stop()
-- print("关闭倒计时")
self.timerEffect = nil
end
ClearRedPointObject(RedPointType.HongMeng_UpTower,self.UpBtnRedPoint)
end

View File

@ -17,6 +17,7 @@ function LoadingPanel:OnOpen()
local index = 0
math.randomseed(os.time())
index = math.random(1, #sprites)
LogGreen("index:"..index.." 名字:"..tostring(sprites[index]))
this.bg.sprite = Util.LoadSprite(sprites[index])
math.randomseed(os.time())
index = math.random(1, 20)