-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
196 changed files
with
673,158 additions
and
172,115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...gamedata/zh_CN/gamedata/[uc]lua/feature/activity/collection/CollectionTaskListAdapter.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
local CollectionTaskListAdapter = Class("CollectionTaskListAdapter", UIRecycleAdapterBase); | ||
local CollectionTimedTaskItem = require("Feature/Activity/Collection/CollectionTimedTaskItem"); | ||
|
||
function CollectionTaskListAdapter:ViewConstructor(objPool) | ||
local missionItem = self:CreateWidgetByPrefab(CollectionTimedTaskItem, self._itemPrefab, self._container); | ||
self:AddObj(missionItem, missionItem:RootGameObject()); | ||
return missionItem:RootGameObject(); | ||
end | ||
|
||
function CollectionTaskListAdapter:OnRender(transform, index) | ||
if #self.missionList <= 0 then | ||
return; | ||
end | ||
|
||
local luaIndex = index + 1; | ||
local missionData = self.missionList[luaIndex]; | ||
local item = self:GetWidget(transform.gameObject); | ||
item:Refresh(missionData, self.actCfg); | ||
end | ||
|
||
|
||
function CollectionTaskListAdapter:GetTotalCount() | ||
if self.missionList == nil then | ||
return 0; | ||
end | ||
return #self.missionList; | ||
end | ||
|
||
return CollectionTaskListAdapter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
GlobalConfig = | ||
{ | ||
CUR_FUNC_VER = "V053", | ||
CUR_FUNC_VER = "V054", | ||
} | ||
|
||
|
||
|
27 changes: 27 additions & 0 deletions
27
json/gamedata/zh_CN/gamedata/[uc]lua/hotfixes/CameraControllerHotfixer.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
local CameraControllerHotfixer = Class("CameraControllerHotfixer", HotfixBase) | ||
|
||
local function ReplaceCameraHotfix(self, newCamera) | ||
if newCamera == nil or self._camera == nil then | ||
return | ||
end | ||
|
||
newCamera.transform.localPosition = self._camera.transform.localPosition | ||
newCamera.transform.localRotation = self._camera.transform.localRotation | ||
self:ReplaceCamera(newCamera) | ||
end | ||
|
||
function CameraControllerHotfixer:OnInit() | ||
xlua.private_accessible(CS.Torappu.Battle.CameraController) | ||
|
||
self:Fix_ex(CS.Torappu.Battle.CameraController, "ReplaceCamera", function(self, newCamera) | ||
local ok, errorInfo = xpcall(ReplaceCameraHotfix, debug.traceback, self, newCamera) | ||
if not ok then | ||
LogError("[CameraControllerHotfixer] fix" .. errorInfo) | ||
end | ||
end) | ||
end | ||
|
||
function CameraControllerHotfixer:OnDispose() | ||
end | ||
|
||
return CameraControllerHotfixer |
42 changes: 42 additions & 0 deletions
42
json/gamedata/zh_CN/gamedata/[uc]lua/hotfixes/SandboxBattleDataControllerHotfixer.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
local SandboxBattleDataControllerHotfixer = Class("SandboxBattleDataControllerHotfixer", HotfixBase) | ||
|
||
local function RecordUsingConstructItemFix(self, character) | ||
local gameMode = self.m_gameMode | ||
if character ~= nil and character.data ~= nil and gameMode ~= nil and gameMode.configData ~= nil and not gameMode.isInBuildType then | ||
local itemId = CS.Torappu.Battle.Sandbox.SandboxBattleUtil.GetTrapItemId(character, gameMode.configData) | ||
local output = self.m_output | ||
if itemId ~= nil and output ~= nil then | ||
local constructItems = output.constructItems | ||
if constructItems ~= nil then | ||
local itemCnt = constructItems:get_Item(itemId) | ||
if itemCnt ~= nil then | ||
local sourceCard = CS.Torappu.Battle.BattleController.instance:GetDeck(CS.Torappu.PlayerSide.DEFAULT):FindCard(character.data.uniqueId) | ||
if sourceCard ~= nil and sourceCard.remainingCnt == itemCnt then | ||
return | ||
end | ||
end | ||
end | ||
end | ||
end | ||
|
||
self:RecordUsingConstructItem(character) | ||
end | ||
|
||
function SandboxBattleDataControllerHotfixer:OnInit() | ||
xlua.private_accessible(CS.Torappu.Battle.Sandbox.SandboxBattleDataController) | ||
xlua.private_accessible(CS.Torappu.Battle.GameMode.GameModeFactory.SandboxGameMode) | ||
xlua.private_accessible(CS.Torappu.SandboxV2Data) | ||
xlua.private_accessible(CS.Torappu.Battle.Character) | ||
|
||
self:Fix_ex(CS.Torappu.Battle.Sandbox.SandboxBattleDataController, "RecordUsingConstructItem", function(self, character) | ||
local ok, errorInfo = xpcall(RecordUsingConstructItemFix, debug.traceback, self, character) | ||
if not ok then | ||
LogError("[SandboxBattleDataControllerHotfixer] fix" .. errorInfo) | ||
end | ||
end) | ||
end | ||
|
||
function SandboxBattleDataControllerHotfixer:OnDispose() | ||
end | ||
|
||
return SandboxBattleDataControllerHotfixer |
Oops, something went wrong.