CSUI:地图UI好了

This commit is contained in:
fatiao 2025-04-06 19:34:42 +08:00
parent 18341ca34f
commit 7c07e5bbaf
2 changed files with 5 additions and 4 deletions

View File

@ -122,7 +122,7 @@ function _G_RegisterEvent(eventId, senderId)
if _G_Event_Sender_Table[key] == nil then
_G_Event_Sender_Table[key] = {eventId = eventId, senderId = senderId}
_G_Event_Sender_Table[key].OnEvent = function(self, ...)
local param = _varargToTable(...)
local param = _varargToTable(...) or {}
CSUI.ManagerContainer.LuaEventMgr:HandleEvent(self.eventId, self.senderId, param)
end
end
@ -196,7 +196,7 @@ function _G_LuaBattleMgr_rewardItemList_JSON()
return JSON:encode(rewardList)
end
function _G_UIStoryMgr_MapStartStoryByStoryId(storyId)
ManagerContainer.UIStoryMgr.MapStartStoryByStoryId(storyId)
ManagerContainer.UIStoryMgr:MapStartStoryByStoryId(storyId)
end
function _G_StoryMgr_StartStorySection(storySection, pos)
return ManagerContainer.StoryMgr:StartStorySection(storySection, pos)

View File

@ -1,4 +1,5 @@
using UnityEngine;
using System;
using UnityEngine;
using UnityEngine.UI;
namespace CSUI
@ -58,7 +59,7 @@ namespace CSUI
public void OnUIPageInEndNtf(object[] paramList)
{
var id = (int)paramList[0];
var id = Convert.ToInt32(paramList[0]);
if (isWaitBattleOpen == false) return;
if (id != UIPageName.UIBattle) return;
_Window.localPosition = Vector3.zero;