28 lines
876 B
C#
28 lines
876 B
C#
using BrewMonster.Network;
|
|
using BrewMonster.UI;
|
|
using UnityEngine;
|
|
|
|
namespace BrewMonster
|
|
{
|
|
public class CDlgDragDrop : MonoBehaviour
|
|
{
|
|
#if UNITY_EDITOR
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.S))
|
|
OnSkillDragDrop();
|
|
}
|
|
#endif
|
|
public void OnSkillDragDrop()
|
|
{
|
|
var iSlot = 2;
|
|
var nCombo = 2;
|
|
CECShortcutSet pSCS = CECUIManager.Instance.GetInGameUIMan().GetSCSByDlg(1);
|
|
if (pSCS.GetShortcut(iSlot - 1) == null || !EC_Game.GetConfigs().GetGameSettings().bLockQuickBar)
|
|
pSCS.CreateSkillGroupShortcut(iSlot - 1, nCombo - 1);
|
|
}
|
|
}
|
|
}
|
|
|
|
/*AString s = WC2AS(*pstr); // convert wide -> ansi/utf8 tùy macro bạn định nghĩa
|
|
a_LogOutput(0, "HoangDev: 1 n=%d, pstr=%s", n, static_cast <const char*>(s));*/ |