基金显示模型

This commit is contained in:
chenxi 2023-05-30 17:22:42 +08:00
parent ee13ca7ae9
commit 4b7a41f638
20 changed files with 1231 additions and 137 deletions

File diff suppressed because it is too large Load Diff

View File

@ -118,8 +118,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
10000, 30000,
10000 30000
} }
}, },
[2]={ [2]={
@ -415,8 +415,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
50000, 30000,
50000 30000
} }
}, },
[4]={ [4]={
@ -612,8 +612,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
100000, 30000,
100000 30000
} }
}, },
[5]={ [5]={
@ -815,8 +815,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
150000, 30000,
150000 30000
} }
}, },
[6]={ [6]={
@ -1018,8 +1018,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
200000, 30000,
200000 30000
} }
}, },
[7]={ [7]={
@ -1237,8 +1237,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
250000, 30000,
250000 30000
} }
}, },
[8]={ [8]={
@ -1456,8 +1456,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
300000, 30000,
300000 30000
} }
}, },
[9]={ [9]={
@ -1675,8 +1675,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
400000, 30000,
400000 30000
} }
}, },
[10]={ [10]={
@ -1894,8 +1894,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
500000, 30000,
500000 30000
} }
}, },
[11]={ [11]={
@ -2113,8 +2113,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
600000, 30000,
700000 30000
} }
}, },
[12]={ [12]={
@ -2332,8 +2332,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
700000, 30000,
900000 30000
} }
}, },
[13]={ [13]={
@ -2551,8 +2551,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
870000, 30000,
1080000 30000
} }
}, },
[14]={ [14]={
@ -2770,8 +2770,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
1050000, 30000,
1300000 30000
} }
}, },
[15]={ [15]={
@ -2989,8 +2989,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
1240000, 30000,
1550000 30000
} }
}, },
[16]={ [16]={
@ -3208,8 +3208,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
1440000, 30000,
1810000 30000
} }
}, },
[17]={ [17]={
@ -3427,8 +3427,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
1660000, 30000,
2100000 30000
} }
}, },
[18]={ [18]={
@ -3646,8 +3646,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
1850000, 30000,
2350000 30000
} }
}, },
[19]={ [19]={
@ -3865,8 +3865,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
2040000, 30000,
2600000 30000
} }
}, },
[20]={ [20]={
@ -4084,8 +4084,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
2230000, 30000,
2860000 30000
} }
}, },
[21]={ [21]={
@ -4303,8 +4303,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
2430000, 30000,
3110000 30000
} }
}, },
[22]={ [22]={
@ -4522,8 +4522,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
2590000, 30000,
3330000 30000
} }
}, },
[23]={ [23]={
@ -4741,8 +4741,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
2760000, 30000,
3560000 30000
} }
}, },
[24]={ [24]={
@ -4960,8 +4960,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
2910000, 30000,
3770000 30000
} }
}, },
[25]={ [25]={
@ -5179,8 +5179,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
3080000, 30000,
3990000 30000
} }
}, },
[26]={ [26]={
@ -5398,8 +5398,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
3200000, 30000,
4150000 30000
} }
}, },
[27]={ [27]={
@ -5617,8 +5617,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
3320000, 30000,
4310000 30000
} }
}, },
[28]={ [28]={
@ -5836,8 +5836,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
3430000, 30000,
4470000 30000
} }
}, },
[29]={ [29]={
@ -6055,8 +6055,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
3570000, 30000,
4660000 30000
} }
}, },
[30]={ [30]={
@ -6273,8 +6273,8 @@ local chapter = {
} }
}, },
["daily_challenge_difficulty"]={ ["daily_challenge_difficulty"]={
3710000, 30000,
4850000 30000
} }
} }
} }

View File

@ -191,9 +191,15 @@ local const = {
}, },
["model_daily_challenge"]={ ["model_daily_challenge"]={
["value"]=8000 ["value"]=8000
},
["level_fund_hero_1"]={
["value"]=14001
},
["level_fund_hero_2"]={
["value"]=54001
} }
} }
local config = { local config = {
data=const,count=41 data=const,count=43
} }
return config return config

View File

@ -44,7 +44,7 @@ local func_open = {
["icon"]="main_daily_challenge" ["icon"]="main_daily_challenge"
}, },
["act_gift_show_open"]={ ["act_gift_show_open"]={
["stage"]=2, ["stage"]=3,
["pop_ups"]=1 ["pop_ups"]=1
}, },
["first_charge"]={ ["first_charge"]={

View File

@ -529,6 +529,11 @@ local monster_base = {
["body"]=2, ["body"]=2,
["model_ui"]=1.0 ["model_ui"]=1.0
}, },
[30019]={
["model_id"]="p0019",
["body"]=2,
["model_ui"]=1.0
},
[30020]={ [30020]={
["model_id"]="p0020", ["model_id"]="p0020",
["body"]=2, ["body"]=2,
@ -541,6 +546,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -1148,20 +1148,20 @@ local monster_chapter = {
["monster_exp"]=17000 ["monster_exp"]=17000
}, },
[9001]={ [9001]={
["monster_base"]=30022, ["monster_base"]=30019,
["is_boss"]=2, ["is_boss"]=2,
["hp"]=108900000, ["hp"]=108900000,
["atk"]=1070000, ["atk"]=1070000,
["atk_times"]=4, ["atk_times"]=4,
["hurt_skill"]={ ["hurt_skill"]={
40001, 40029,
40002, 40030,
40003, 40031,
40004 40032
}, },
["skill"]={ ["skill"]={
10021, 10067,
10022 10068
}, },
["monster_exp"]=22000 ["monster_exp"]=22000
}, },
@ -4283,22 +4283,19 @@ local monster_chapter = {
["monster_exp"]=17000 ["monster_exp"]=17000
}, },
[33001]={ [33001]={
["monster_base"]=30006, ["monster_base"]=30020,
["is_boss"]=2, ["is_boss"]=2,
["hp"]=264700000, ["hp"]=264700000,
["atk"]=2850000, ["atk"]=2850000,
["atk_times"]=4, ["atk_times"]=4,
["hurt_skill"]={ ["hurt_skill"]={
40017, 40033,
40018, 40034,
40019, 40035,
40020 40036
}, },
["skill"]={ ["skill"]={
10038 10069
},
["passive_skill"]={
10037
}, },
["monster_exp"]=22000 ["monster_exp"]=22000
}, },

View File

@ -6311,6 +6311,121 @@ local skill = {
["cd"]=3, ["cd"]=3,
["cd_start"]=0 ["cd_start"]=0
}, },
[10067]={
["effect_type"]=1,
["trigger"]=1,
["effect"]={
{
["type"]="hurt",
["num"]=10000,
["ratio"]=10000,
["round"]=0
},
{
["type"]="hurt",
["num"]=10000,
["ratio"]=10000,
["round"]=0
},
{
["type"]="hurt",
["num"]=30000,
["ratio"]=10000,
["round"]=0
}
},
["obj"]=2,
["effect_block"]={
1,
2,
3
},
["skill_position"]=2,
["cd"]=3,
["cd_start"]=0,
["shake_time"]=200,
["shake_type"]=6,
["sound_hit"]=4200120,
["name_act"]="skill01"
},
[10068]={
["effect_type"]=1,
["trigger"]=1,
["effect"]={
{
["type"]="counterattack",
["num"]=5000,
["ratio"]=10000,
["round"]=2
}
},
["obj"]=1,
["cd"]=3,
["cd_start"]=0
},
[10069]={
["effect_type"]=1,
["trigger"]=1,
["effect"]={
{
["type"]="hurt_green",
["num"]=8000,
["ratio"]=10000,
["round"]=0
},
{
["type"]="hurt_green",
["num"]=8000,
["ratio"]=10000,
["round"]=0
},
{
["type"]="hurt_green",
["num"]=8000,
["ratio"]=10000,
["round"]=0
},
{
["type"]="hurt_green",
["num"]=9400,
["ratio"]=10000,
["round"]=0
},
{
["type"]="vulnerable",
["num"]=2500,
["ratio"]=10000,
["round"]=2
},
{
["type"]="poison",
["num"]=5000,
["ratio"]=10000,
["round"]=2
}
},
["obj"]=2,
["eliminate_obj"]=1,
["effect_block"]={
1,
2,
3,
6
},
["skill_position"]=1,
["shake_time"]=200,
["shake_type"]=5,
["sound_hit"]=2200120,
["name_act"]="skill01",
["fx_self"]=300008,
["fx_target"]=4,
["fx_target_delay"]=1100,
["bullet_time"]={
1100,
3000,
400
}
},
[20001]={ [20001]={
["effect_type"]=1, ["effect_type"]=1,
["trigger"]=1, ["trigger"]=1,
@ -11735,6 +11850,158 @@ local skill = {
["name_act"]="attack04", ["name_act"]="attack04",
["fx_target"]=300015 ["fx_target"]=300015
}, },
[40029]={
["effect_type"]=1,
["trigger"]=1,
["effect"]={
{
["type"]="hurt",
["num"]=10000,
["ratio"]=10000,
["round"]=0
}
},
["obj"]=2,
["skill_position"]=1,
["shake_time"]=100,
["shake_type"]=1,
["sound_hit"]=5200111,
["name_act"]="attack01",
["fx_target"]=300013
},
[40030]={
["effect_type"]=1,
["trigger"]=1,
["effect"]={
{
["type"]="hurt",
["num"]=10000,
["ratio"]=10000,
["round"]=0
}
},
["obj"]=2,
["skill_position"]=1,
["shake_time"]=100,
["shake_type"]=1,
["sound_hit"]=5200112,
["name_act"]="attack02",
["fx_target"]=300013
},
[40031]={
["effect_type"]=1,
["trigger"]=1,
["effect"]={
{
["type"]="hurt",
["num"]=10000,
["ratio"]=10000,
["round"]=0
}
},
["obj"]=2,
["skill_position"]=1,
["shake_time"]=100,
["shake_type"]=1,
["sound_hit"]=5200113,
["name_act"]="attack03",
["fx_target"]=300014
},
[40032]={
["effect_type"]=1,
["trigger"]=1,
["effect"]={
{
["type"]="hurt",
["num"]=10000,
["ratio"]=10000,
["round"]=0
}
},
["obj"]=2,
["skill_position"]=1,
["shake_time"]=100,
["shake_type"]=1,
["sound_hit"]=5200114,
["name_act"]="attack04",
["fx_target"]=300015
},
[40033]={
["effect_type"]=1,
["trigger"]=1,
["effect"]={
{
["type"]="hurt",
["num"]=10000,
["ratio"]=10000,
["round"]=0
}
},
["obj"]=2,
["skill_position"]=1,
["shake_time"]=100,
["shake_type"]=1,
["sound_hit"]=5200111,
["name_act"]="attack01",
["fx_target"]=300013
},
[40034]={
["effect_type"]=1,
["trigger"]=1,
["effect"]={
{
["type"]="hurt",
["num"]=10000,
["ratio"]=10000,
["round"]=0
}
},
["obj"]=2,
["skill_position"]=1,
["shake_time"]=100,
["shake_type"]=1,
["sound_hit"]=5200112,
["name_act"]="attack02",
["fx_target"]=300013
},
[40035]={
["effect_type"]=1,
["trigger"]=1,
["effect"]={
{
["type"]="hurt",
["num"]=10000,
["ratio"]=10000,
["round"]=0
}
},
["obj"]=2,
["skill_position"]=1,
["shake_time"]=100,
["shake_type"]=1,
["sound_hit"]=5200113,
["name_act"]="attack03",
["fx_target"]=300014
},
[40036]={
["effect_type"]=1,
["trigger"]=1,
["effect"]={
{
["type"]="hurt",
["num"]=10000,
["ratio"]=10000,
["round"]=0
}
},
["obj"]=2,
["skill_position"]=1,
["shake_time"]=100,
["shake_type"]=1,
["sound_hit"]=5200114,
["name_act"]="attack04",
["fx_target"]=300015
},
[110001]={ [110001]={
["skill_type"]=5, ["skill_type"]=5,
["skill_position"]=2, ["skill_position"]=2,
@ -11813,6 +12080,6 @@ local skill = {
} }
} }
local config = { local config = {
data=skill,count=557 data=skill,count=568
} }
return config return config

View File

@ -317,6 +317,9 @@ local monster_base = {
[30017]={ [30017]={
["name"]="雷神" ["name"]="雷神"
}, },
[30019]={
["name"]="灵魂猎手"
},
[30020]={ [30020]={
["name"]="森林狼" ["name"]="森林狼"
}, },
@ -325,6 +328,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -316,6 +316,9 @@ local monster_base = {
}, },
[30017]={ [30017]={
},
[30019]={
}, },
[30020]={ [30020]={
@ -325,6 +328,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -316,6 +316,9 @@ local monster_base = {
}, },
[30017]={ [30017]={
},
[30019]={
}, },
[30020]={ [30020]={
@ -325,6 +328,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -316,6 +316,9 @@ local monster_base = {
}, },
[30017]={ [30017]={
},
[30019]={
}, },
[30020]={ [30020]={
@ -325,6 +328,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -316,6 +316,9 @@ local monster_base = {
}, },
[30017]={ [30017]={
},
[30019]={
}, },
[30020]={ [30020]={
@ -325,6 +328,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -316,6 +316,9 @@ local monster_base = {
}, },
[30017]={ [30017]={
},
[30019]={
}, },
[30020]={ [30020]={
@ -325,6 +328,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -316,6 +316,9 @@ local monster_base = {
}, },
[30017]={ [30017]={
},
[30019]={
}, },
[30020]={ [30020]={
@ -325,6 +328,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -316,6 +316,9 @@ local monster_base = {
}, },
[30017]={ [30017]={
},
[30019]={
}, },
[30020]={ [30020]={
@ -325,6 +328,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -316,6 +316,9 @@ local monster_base = {
}, },
[30017]={ [30017]={
},
[30019]={
}, },
[30020]={ [30020]={
@ -325,6 +328,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -316,6 +316,9 @@ local monster_base = {
}, },
[30017]={ [30017]={
},
[30019]={
}, },
[30020]={ [30020]={
@ -325,6 +328,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -316,6 +316,9 @@ local monster_base = {
}, },
[30017]={ [30017]={
},
[30019]={
}, },
[30020]={ [30020]={
@ -325,6 +328,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -316,6 +316,9 @@ local monster_base = {
}, },
[30017]={ [30017]={
},
[30019]={
}, },
[30020]={ [30020]={
@ -325,6 +328,6 @@ local monster_base = {
} }
} }
local config = { local config = {
data=monster_base,count=108 data=monster_base,count=109
} }
return config return config

View File

@ -49,6 +49,9 @@ function GrowthFundUI:onClose()
if self.originTitleBgHeight then if self.originTitleBgHeight then
self.uiMap["growth_fund_ui.title_img.bg"]:setSizeDeltaY(self.originTitleBgHeight) self.uiMap["growth_fund_ui.title_img.bg"]:setSizeDeltaY(self.originTitleBgHeight)
end end
if self.heroNode then
self.heroNode:removeAllChildren()
end
end end
function GrowthFundUI:onLoadRootComplete() function GrowthFundUI:onLoadRootComplete()
@ -68,6 +71,7 @@ function GrowthFundUI:initTitle()
self.titleTx = self.uiMap["growth_fund_ui.title_img.title_tx"] self.titleTx = self.uiMap["growth_fund_ui.title_img.title_tx"]
self.titleDialogBg = self.uiMap["growth_fund_ui.title_img.bg"] self.titleDialogBg = self.uiMap["growth_fund_ui.title_img.bg"]
self.originTitleBgHeight = self.titleDialogBg:fastGetSizeDeltaY() self.originTitleBgHeight = self.titleDialogBg:fastGetSizeDeltaY()
self.heroNode = self.uiMap["growth_fund_ui.title_img.hero_node"]
end end
function GrowthFundUI:initPayBtns() function GrowthFundUI:initPayBtns()
@ -131,8 +135,12 @@ function GrowthFundUI:refreshTitle()
local fundGrade = DataManager.GrowthFundData:getFundGrade() local fundGrade = DataManager.GrowthFundData:getFundGrade()
if fundGrade == 1 then if fundGrade == 1 then
self.uiMap["growth_fund_ui.title_img"]:setTexture("assets/arts/textures/background/fund/fund_bg_1.png") self.uiMap["growth_fund_ui.title_img"]:setTexture("assets/arts/textures/background/fund/fund_bg_1.png")
self.titleDialogBg:setSprite(GConst.ATLAS_PATH.FUND, "fund_bg_9")
self:showHeroSpine(1)
elseif fundGrade == 2 then elseif fundGrade == 2 then
self.uiMap["growth_fund_ui.title_img"]:setTexture("assets/arts/textures/background/fund/fund_bg_2.png") self.uiMap["growth_fund_ui.title_img"]:setTexture("assets/arts/textures/background/fund/fund_bg_2.png")
self.titleDialogBg:setSprite(GConst.ATLAS_PATH.FUND, "fund_bg_1")
self:showHeroSpine(2)
end end
self.titleTx:setText(I18N:getGlobalText(I18N.GlobalConst.LEVEL_FUND_DESC_1, fundGrade)) self.titleTx:setText(I18N:getGlobalText(I18N.GlobalConst.LEVEL_FUND_DESC_1, fundGrade))
local height = self.titleTx:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).preferredHeight + 58 local height = self.titleTx:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_TEXT_MESH_PRO).preferredHeight + 58
@ -200,4 +208,35 @@ function GrowthFundUI:refreshRewards()
self.horizontalLine:setAnchoredPositionY(-topRecoveryOffset - (self.inactiveIndex - 1)*cellWidth) self.horizontalLine:setAnchoredPositionY(-topRecoveryOffset - (self.inactiveIndex - 1)*cellWidth)
end end
function GrowthFundUI:showHeroSpine(index)
if self.heroSpineIndex == index then
return
end
self.heroSpineIndex = index
local heroId = 0
if index == 1 then
heroId = GFunc.getConstValue("level_fund_hero_1")
elseif index == 2 then
heroId = GFunc.getConstValue("level_fund_hero_2")
end
if heroId <= 0 then
return
end
local hero = DataManager.HeroData:getHeroById(heroId)
if not hero then
return
end
SpineManager:loadHeroAsync(hero:getModelId(), self.heroNode, function(spineObject)
if self:isClosed() then
spineObject:destroy()
return
end
if self.heroSpine then
self.heroSpine:destroy()
end
spineObject:playAnimation("idle", true)
self.heroSpine = spineObject
end)
end
return GrowthFundUI return GrowthFundUI