This commit is contained in:
puxuan 2025-10-11 16:45:49 +08:00
parent b07df4a141
commit a018bbf748
2 changed files with 11 additions and 17 deletions

View File

@ -36,13 +36,6 @@ ActSprintConst.REFRESH_TYPE = {
ONCE = 3,
}
ActSprintConst.MAIN_PAGE_TYPE = {
STANDARD = 1,
GIFT = 2,
TASK = 3,
LOGIN = 4,
}
ActSprintConst.MAIN_PAGE_BTN_ICON_1 = {
[ActSprintConst.ACT_ID.SUMMON_ALL] = {
[1] = "act_common_btn_27_1",
@ -61,18 +54,18 @@ ActSprintConst.MAIN_PAGE_BTN_ICON_2 = {
},
}
ActSprintConst.MAIN_PAGE_BTN_DESC = {
[ActSprintConst.MAIN_PAGE_TYPE.STANDARD] = "ACT_GOGOGO_DESC_1",
[ActSprintConst.MAIN_PAGE_TYPE.GIFT] = "ACT_GOGOGO_DESC_10",
[ActSprintConst.MAIN_PAGE_TYPE.TASK] = "ACT_GOGOGO_DESC_11",
[ActSprintConst.MAIN_PAGE_TYPE.LOGIN] = "ACT_GOGOGO_DESC_20",
ActSprintConst.BOTTOM_PAGE = {
SCORE_TASK = 1,
BOUNTY = 2,
GIFT = 3,
TASK = 4,
}
ActSprintConst.BOTTOM_PAGE = {
SCORE_TASK = 4,
BOUNTY = 3,
GIFT = 2,
TASK = 1,
ActSprintConst.MAIN_PAGE_BTN_DESC = {
[ActSprintConst.BOTTOM_PAGE.SCORE_TASK] = "ACT_GOGOGO_DESC_1",
[ActSprintConst.BOTTOM_PAGE.GIFT] = "ACT_GOGOGO_DESC_10",
[ActSprintConst.BOTTOM_PAGE.TASK] = "ACT_GOGOGO_DESC_11",
[ActSprintConst.BOTTOM_PAGE.BOUNTY] = "ACT_GOGOGO_DESC_20",
}
ActSprintConst.COMP = {

View File

@ -36,6 +36,7 @@ function PageBtnsComp:refresh(list, index)
if index then
self.scrollRect:moveToIndex(index)
end
self.baseObject:setSizeDeltaX(#self.list * 116)
end
return PageBtnsComp