This commit is contained in:
puxuan 2025-08-28 17:41:28 +08:00
parent 6f7fd539eb
commit 2044015a21

View File

@ -303,7 +303,7 @@ function BattleBaseUI:_initComboNode()
self.comboAnimator = self.comboNode:getComponent(GConst.TYPEOF_UNITY_CLASS.ANIMATOR) self.comboAnimator = self.comboNode:getComponent(GConst.TYPEOF_UNITY_CLASS.ANIMATOR)
self.comboNodeVisible = false self.comboNodeVisible = false
self.comboNode:setVisible(false) self.comboNode:setVisible(false)
self.comboBg1:setVisible(false) -- self.comboBg1:setVisible(false)
self.comboTxComp1 = self.comboTx1:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT) self.comboTxComp1 = self.comboTx1:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT)
self.comboTxComp2 = self.comboTx2:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT) self.comboTxComp2 = self.comboTx2:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT)
self.comboFx1:setActive(false) self.comboFx1:setActive(false)
@ -961,7 +961,7 @@ function BattleBaseUI:showCombo(count, side)
self.comboFxVisible3 = false self.comboFxVisible3 = false
self.comboFx3:setActive(false) self.comboFx3:setActive(false)
end end
self.comboBg1:setVisible(false) -- self.comboBg1:setVisible(false)
self.comboTx1:setText(GConst.INT_TO_STRING[count], self.comboTxComp1) self.comboTx1:setText(GConst.INT_TO_STRING[count], self.comboTxComp1)
self.comboTx1:setAnchoredPositionX(0) self.comboTx1:setAnchoredPositionX(0)
self.comboTx2:setText(GConst.EMPTY_STRING, self.comboTxComp2) self.comboTx2:setText(GConst.EMPTY_STRING, self.comboTxComp2)
@ -983,7 +983,7 @@ function BattleBaseUI:showCombo(count, side)
self.comboFxVisible3 = false self.comboFxVisible3 = false
self.comboFx3:setActive(false) self.comboFx3:setActive(false)
end end
self.comboBg1:setVisible(true) -- self.comboBg1:setVisible(true)
self.comboTx1:setText(GConst.INT_TO_STRING[count], self.comboTxComp1) self.comboTx1:setText(GConst.INT_TO_STRING[count], self.comboTxComp1)
if count == 10 then if count == 10 then
self.comboTx1:setAnchoredPositionX(-26) self.comboTx1:setAnchoredPositionX(-26)
@ -1009,7 +1009,7 @@ function BattleBaseUI:showCombo(count, side)
self.comboFxVisible3 = true self.comboFxVisible3 = true
self.comboFx3:setActive(true) self.comboFx3:setActive(true)
end end
self.comboBg1:setVisible(true) -- self.comboBg1:setVisible(true)
self.comboTx1:setText(GConst.EMPTY_STRING, self.comboTxComp1) self.comboTx1:setText(GConst.EMPTY_STRING, self.comboTxComp1)
self.comboTx2:setText(GConst.INT_TO_STRING[count], self.comboTxComp2) self.comboTx2:setText(GConst.INT_TO_STRING[count], self.comboTxComp2)
if side == SIDE_ATK then if side == SIDE_ATK then