界面调整
This commit is contained in:
parent
a8ac9b1789
commit
98d46965f9
18
lua/app/module/battle/helper/board_helper.lua
Normal file
18
lua/app/module/battle/helper/board_helper.lua
Normal file
@ -0,0 +1,18 @@
|
||||
local BoardHelper = {}
|
||||
|
||||
function BoardHelper:findPvpLinkOptimalSolution(battleController, minRow, maxRow)
|
||||
local battleData = battleController.battleData
|
||||
local gridEntities = {}
|
||||
for row = minRow, maxRow do -- 遍历所有的可使用格子
|
||||
for column = 1, GConst.BattleConst.COLUMN_COUNT do
|
||||
local posId = ModuleManager.BattleManager:getPosId(row, column)
|
||||
local gridEntity = battleData:getGridEnties()[posId]
|
||||
if gridEntity and gridEntity:canLink() then
|
||||
table.insert(gridEntities, gridEntity)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return BoardHelper
|
||||
10
lua/app/module/battle/helper/board_helper.lua.meta
Normal file
10
lua/app/module/battle/helper/board_helper.lua.meta
Normal file
@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bbee47300a895dd49a69730e9ca51053
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||
@ -5,8 +5,8 @@ local SELECT_SKILL_CELL = "app/ui/battle/cell/select_skill_cell"
|
||||
local BATTLE_SELECT_SKILL_COMP = "app/ui/battle/battle_skill_select_comp"
|
||||
|
||||
local DEFAULT_X = 10000
|
||||
local BOARD_POS_UP = BF.Vector2(0, 0)
|
||||
local BOARD_POS_DOWN = BF.Vector2(0, 0)
|
||||
local BOARD_POS_UP = BF.Vector2(0, 47)
|
||||
local BOARD_POS_DOWN = BF.Vector2(0, -740)
|
||||
local CacheVector2 = CS.UnityEngine.Vector2(0, 0)
|
||||
---------------------------------必须重写的方法----------------------------------
|
||||
function BattleUI:initBaseInfo()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user