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, ONCE = 3,
} }
ActSprintConst.MAIN_PAGE_TYPE = {
STANDARD = 1,
GIFT = 2,
TASK = 3,
LOGIN = 4,
}
ActSprintConst.MAIN_PAGE_BTN_ICON_1 = { ActSprintConst.MAIN_PAGE_BTN_ICON_1 = {
[ActSprintConst.ACT_ID.SUMMON_ALL] = { [ActSprintConst.ACT_ID.SUMMON_ALL] = {
[1] = "act_common_btn_27_1", [1] = "act_common_btn_27_1",
@ -61,18 +54,18 @@ ActSprintConst.MAIN_PAGE_BTN_ICON_2 = {
}, },
} }
ActSprintConst.MAIN_PAGE_BTN_DESC = { ActSprintConst.BOTTOM_PAGE = {
[ActSprintConst.MAIN_PAGE_TYPE.STANDARD] = "ACT_GOGOGO_DESC_1", SCORE_TASK = 1,
[ActSprintConst.MAIN_PAGE_TYPE.GIFT] = "ACT_GOGOGO_DESC_10", BOUNTY = 2,
[ActSprintConst.MAIN_PAGE_TYPE.TASK] = "ACT_GOGOGO_DESC_11", GIFT = 3,
[ActSprintConst.MAIN_PAGE_TYPE.LOGIN] = "ACT_GOGOGO_DESC_20", TASK = 4,
} }
ActSprintConst.BOTTOM_PAGE = { ActSprintConst.MAIN_PAGE_BTN_DESC = {
SCORE_TASK = 4, [ActSprintConst.BOTTOM_PAGE.SCORE_TASK] = "ACT_GOGOGO_DESC_1",
BOUNTY = 3, [ActSprintConst.BOTTOM_PAGE.GIFT] = "ACT_GOGOGO_DESC_10",
GIFT = 2, [ActSprintConst.BOTTOM_PAGE.TASK] = "ACT_GOGOGO_DESC_11",
TASK = 1, [ActSprintConst.BOTTOM_PAGE.BOUNTY] = "ACT_GOGOGO_DESC_20",
} }
ActSprintConst.COMP = { ActSprintConst.COMP = {

View File

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