【灵兽系统】 主城挪位置 合成最大限制

zhangqiang 2020-10-27 10:26:31 +08:00
parent 13f37fa31a
commit f2151b12fb
3 changed files with 18542 additions and 18542 deletions

File diff suppressed because it is too large Load Diff

View File

@ -248,7 +248,7 @@ function this:InitComponent()
this.btnElementDrawCard = Util.GetGameObject(this.gameObject, "scene/layer4/btnElementDrawCard")
this.btnSecretBox = Util.GetGameObject(this.gameObject, "scene/layer4/btnSecretBox")
this.btnYiYao = Util.GetGameObject(this.gameObject, "scene/layer4/btnYiYao")
this.btnPokemon = Util.GetGameObject(this.gameObject, "scene/layer3/btnPokemon")
this.btnPokemon = Util.GetGameObject(this.gameObject, "scene/layer6/btnPokemon")
-- this.btnTianFu = Util.GetGameObject(this.gameObject, "scene/layer6/btnTianFu")
this.btnWaiDi = Util.GetGameObject(this.gameObject, "scene/layer4/btnWaiDi")
this.btnColorfulWorld = Util.GetGameObject(this.gameObject, "scene/layer6/btnColorfulWorld")
@ -475,8 +475,8 @@ function this:BindEvent()
local setPosFunc = function(v2)
local av2 = self.bgTran.anchoredPosition
local dv2 = Vector2.New(math.clamp(v2.x + av2.x, -1000, 50), av2.y)
if v2.x + av2.x < -1000 or v2.x + av2.x > 50 then
local dv2 = Vector2.New(math.clamp(v2.x + av2.x, -1500, 50), av2.y)
if v2.x + av2.x < -1500 or v2.x + av2.x > 50 then
self.moveTween:Rebound(1, 0.1)
end
this:SetPosFunc(dv2)

View File

@ -4,7 +4,7 @@ local this = {}
local sortingOrder
local parent
local compoundNum
local compoundMaxNum
local compoundMaxNum = 20
local itemData
local itemViewPre
@ -80,7 +80,7 @@ end
--刷新面板
function this.RefreshPanel()
compoundNum = 1
compoundMaxNum = math.floor(itemData.num / itemData.itemConfig.UsePerCount)
compoundMaxNum = (math.floor(itemData.num / itemData.itemConfig.UsePerCount)) > 20 and 20 or (math.floor(itemData.num / itemData.itemConfig.UsePerCount))
if not itemViewPre then
itemViewPre = SubUIManager.Open(SubUIConfig.ItemView, this.itemParent.transform)
end