3450fd015f
# Conflicts: # Assets/PerfectWorld/Config.meta # Assets/PerfectWorld/Editor.meta # Assets/PerfectWorld/Scripts/Inventory/EC_IvtrType.cs # Assets/PerfectWorld/Scripts/MainFiles/EC_Game.cs # Assets/PerfectWorld/Scripts/Managers/EC_ManPlayer.cs # Assets/PerfectWorld/Scripts/Move/CECPlayer.cs # Assets/PerfectWorld/Scripts/NPC/CECNPC.cs # Assets/PerfectWorld/Scripts/Network/CSNetwork/CSNetwork.csproj.meta # Assets/PerfectWorld/Scripts/Network/CSNetwork/GameSession.cs # Assets/Scenes/NPCRender.unity # Assets/Scenes/a61.unity # Assets/Scripts/CECGameRun.cs # Assets/Scripts/CECHostPlayer.Task.cs # Assets/Scripts/CECHostPlayer.cs # Assets/Scripts/CECPlayer_Inventory.cs # Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset
80 lines
2.1 KiB
C#
80 lines
2.1 KiB
C#
using BrewMonster.Common;
|
|
using BrewMonster.Managers;
|
|
using BrewMonster.Network;
|
|
using ModelRenderer.Scripts.Common;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using UnityEngine;
|
|
|
|
namespace BrewMonster.UI
|
|
{
|
|
public class CECGameUIMan : AUIManager
|
|
{
|
|
DlgNPC m_pDlgNPC;
|
|
public NPC_ESSENCE? m_pCurNPCEssence;
|
|
public int m_idCurFinishTask = -1;
|
|
|
|
public static bool TALKPROC_IS_TERMINAL(uint id)
|
|
{
|
|
return ((id & 0x80000000u) != 0) && ((id & 0x40000000u) != 0);
|
|
}
|
|
|
|
public static bool TALKPROC_IS_FUNCTION(uint id)
|
|
{
|
|
return ((id) & 0x80000000) != 0;
|
|
}
|
|
|
|
public static uint TALKPROC_GET_FUNCTION_ID(uint id)
|
|
{
|
|
return ((id) & 0x7FFFFFFF);
|
|
}
|
|
|
|
public void PopupNPCDialog(NPC_ESSENCE pEssence)
|
|
{
|
|
if(m_pDlgNPC == null)
|
|
{
|
|
GameObject ob = m_dialogResouce.GetPrefabDialog("DialogNPC");
|
|
m_pDlgNPC = GameObject.Instantiate(ob, m_canvas.transform).GetComponent<DlgNPC>();
|
|
m_pDlgNPC.SetAUIManager(this);
|
|
}
|
|
m_pDlgNPC.PopupDialog(pEssence);
|
|
}
|
|
|
|
public void PopupNPCDialog(talk_proc pTalk)
|
|
{
|
|
if(m_pDlgNPC == null)
|
|
{
|
|
GameObject ob = m_dialogResouce.GetPrefabDialog("DialogNPC");
|
|
m_pDlgNPC = GameObject.Instantiate(ob, m_canvas.transform).GetComponent<DlgNPC>();
|
|
m_pDlgNPC.SetAUIManager(this);
|
|
}
|
|
m_pDlgNPC.PopupNPCDialog(pTalk);
|
|
}
|
|
|
|
public void EndNPCService()
|
|
{
|
|
m_pCurNPCEssence = null;
|
|
//EC_Game.GetGameRun().GetHostPlayer().EndNPCService();
|
|
EC_ManMessageMono.Instance.EC_ManPlayer.GetHostPlayer().EndNPCService();
|
|
}
|
|
}
|
|
public enum EC_GAMEUI_ICONS
|
|
|
|
{
|
|
ICONS_ACTION = 0,
|
|
ICONS_SKILL,
|
|
ICONS_INVENTORY,
|
|
ICONS_STATE,
|
|
ICONS_SKILLGRP,
|
|
ICONS_GUILD,
|
|
ICONS_PET,
|
|
ICONS_ELF,
|
|
ICONS_SUITE,
|
|
ICONS_CALENDAR,
|
|
ICONS_PQ,
|
|
ICONS_MAX
|
|
};
|
|
}
|