Change some UI, UX relate to Assign Skill

This commit is contained in:
Chomper9981
2026-03-19 13:52:26 +07:00
parent 34bd53b3a3
commit 9dd504d92e
4 changed files with 6140 additions and 190 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a9a55e98bffb718cd643fe0452bbcde34caaa4927b873b5677a68b51b1daf485
size 331323
oid sha256:ebf0f534d5dd4216e684348677df8c7195b2a5ef28c62f43038ce1dc5a24990e
size 319833
@@ -24,8 +24,6 @@ namespace BrewMonster
public int m_nCurPanel2 = 1;
int currentListIndex = 0;
int currentOffsetIndex = 0;
int currentSelectedSlotIndex = -1;
CECSkill assignedSkill = null;
/// <summary>
/// Apply for a license remove later
@@ -44,9 +42,12 @@ namespace BrewMonster
public void SwitchShowSkillShortcut()
{
currentListIndex += 1;
if(currentListIndex == DlgAssignSlots.MAX_SKILL_GROUP)
{
currentListIndex = 0;
}
UpdateShortcuts();
}
public bool UpdateShortcuts()
{
CECShortcut pSC;
@@ -70,15 +71,6 @@ namespace BrewMonster
{
currentListIndex = 0;
}
currentOffsetIndex = 0;
for (int i = 0; i < a_pSCS.Count; i++)
{
if(i == currentListIndex)
{
break;
}
currentOffsetIndex += a_pSCS[i].GetShortcutNum();
}
// currentOffsetIndex = 0;
// for(int i = 0; i < currentListIndex; i++)
// {
@@ -92,7 +84,7 @@ namespace BrewMonster
for (int j = 0; j < nSlots; j++)
{
pCell = AUIImagePictureList[j];
pCell.SetSlotIndex(currentOffsetIndex + j);
pCell.SetSlotIndex(j);
if (pCell == null || !pCell.gameObject.activeInHierarchy) continue;
pSC = a_pSCS[currentListIndex].GetShortcut(j);
pClock = pCell.GetClockIcon();
@@ -23,6 +23,7 @@ namespace BrewMonster
actionButton.onClick.AddListener(OnActionButtonClicked);
itemSkillButton.onClick.AddListener(OnItemButtonClicked);
buttonClose.onClick.AddListener(OnCloseButtonClicked);
actionButton.interactable = false;
itemSkillButton.interactable = false;
}
void OnEnable()
File diff suppressed because it is too large Load Diff