主界面图标
This commit is contained in:
parent
d55ed9669a
commit
0e3dd0c30b
@ -12,7 +12,7 @@ function SideBarActSprintCell:getHasPurchase()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SideBarActSprintCell:getSpineName()
|
function SideBarActSprintCell:getSpineName()
|
||||||
return "ui_main_btn_shop"
|
return "ui_main_btn_act_gogogo"
|
||||||
end
|
end
|
||||||
|
|
||||||
function SideBarActSprintCell:onClick()
|
function SideBarActSprintCell:onClick()
|
||||||
|
|||||||
@ -1,32 +1,31 @@
|
|||||||
local SideBarFirstRechargeCell = class("SideBarFirstRechargeCell", SideBarBaseCell)
|
local SideBarFirstRechargeCell = class("SideBarFirstRechargeCell", SideBarBaseCell)
|
||||||
|
|
||||||
function SideBarFirstRechargeCell:getModuleKey()
|
function SideBarFirstRechargeCell:getModuleKey()
|
||||||
return ModuleManager.MODULE_KEY.FIRST_CHARGE
|
return ModuleManager.MODULE_KEY.FIRST_CHARGE
|
||||||
end
|
end
|
||||||
|
|
||||||
function SideBarFirstRechargeCell:getIsOpen()
|
function SideBarFirstRechargeCell:getIsOpen()
|
||||||
return DataManager.ShopData:isFirstRechargeOpen()
|
return DataManager.ShopData:isFirstRechargeOpen()
|
||||||
end
|
end
|
||||||
|
|
||||||
function SideBarFirstRechargeCell:getSpineName()
|
function SideBarFirstRechargeCell:getSpineName()
|
||||||
-- if DataManager.ShopData:isNewFirstRechargeGift(GConst.ShopConst.FIRST_RECHARGE_GEARS.GEAR_1) then
|
-- if DataManager.ShopData:isNewFirstRechargeGift(GConst.ShopConst.FIRST_RECHARGE_GEARS.GEAR_1) then
|
||||||
-- return "ui_mainbtn_first"
|
return "ui_main_btn_act_first_recharge_1"
|
||||||
-- else
|
-- else
|
||||||
-- return "ui_mainbtn_first"
|
-- return "ui_main_btn_act_first_recharge_2"
|
||||||
-- end
|
-- end
|
||||||
return "ui_main_btn_shop"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function SideBarFirstRechargeCell:onClick()
|
function SideBarFirstRechargeCell:onClick()
|
||||||
ModuleManager.ShopManager:showFirstRechargeUI()
|
ModuleManager.ShopManager:showFirstRechargeUI()
|
||||||
end
|
end
|
||||||
|
|
||||||
function SideBarFirstRechargeCell:getIsShowRedPoint()
|
function SideBarFirstRechargeCell:getIsShowRedPoint()
|
||||||
return DataManager.ShopData:hasFirstRechargeRedPoint()
|
return DataManager.ShopData:hasFirstRechargeRedPoint()
|
||||||
end
|
end
|
||||||
|
|
||||||
function SideBarFirstRechargeCell:getCellName()
|
function SideBarFirstRechargeCell:getCellName()
|
||||||
return I18N:getGlobalText(I18N.GlobalConst.FIRST_CHARGE_4)
|
return I18N:getGlobalText(I18N.GlobalConst.FIRST_CHARGE_4)
|
||||||
end
|
end
|
||||||
|
|
||||||
return SideBarFirstRechargeCell
|
return SideBarFirstRechargeCell
|
||||||
@ -9,7 +9,7 @@ function SideBarPrivilegeCell:getIsOpen()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SideBarPrivilegeCell:getSpineName()
|
function SideBarPrivilegeCell:getSpineName()
|
||||||
return "ui_main_btn_shop"
|
return "ui_main_btn_act_vip"
|
||||||
end
|
end
|
||||||
|
|
||||||
function SideBarPrivilegeCell:onClick()
|
function SideBarPrivilegeCell:onClick()
|
||||||
|
|||||||
@ -9,8 +9,7 @@ function SideBarSignCell:getIsOpen()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SideBarSignCell:getSpineName()
|
function SideBarSignCell:getSpineName()
|
||||||
-- return "ui_mainbtn_signin"
|
return "ui_main_btn_act_bounty_signin"
|
||||||
return "ui_main_btn_shop"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function SideBarSignCell:onClick()
|
function SideBarSignCell:onClick()
|
||||||
|
|||||||
@ -255,13 +255,13 @@ function MainComp:refreshRedPoint()
|
|||||||
local time = Time:getServerTime() - DataManager.IdleData:getLastDropTime()
|
local time = Time:getServerTime() - DataManager.IdleData:getLastDropTime()
|
||||||
local idleMaxTime = DataManager.IdleData:getIdleMaxTime()
|
local idleMaxTime = DataManager.IdleData:getIdleMaxTime()
|
||||||
if time >= idleMaxTime or DataManager.IdleData:getQuickIdleRemainTimes() > 0 then
|
if time >= idleMaxTime or DataManager.IdleData:getQuickIdleRemainTimes() > 0 then
|
||||||
self.leftBtn:addRedPoint(70, 20, 1)
|
self.leftBtn:addRedPoint(70, -36, 1)
|
||||||
else
|
else
|
||||||
self.leftBtn:removeRedPoint()
|
self.leftBtn:removeRedPoint()
|
||||||
end
|
end
|
||||||
|
|
||||||
if DataManager.SummonData:hasSummonCostRedPoint() then
|
if DataManager.SummonData:hasSummonCostRedPoint() then
|
||||||
self.rightBtn:addRedPoint(-70, 20, 1)
|
self.rightBtn:addRedPoint(-70, -36, 1)
|
||||||
else
|
else
|
||||||
self.rightBtn:removeRedPoint()
|
self.rightBtn:removeRedPoint()
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user