add set icon
This commit is contained in:
@@ -227,6 +227,12 @@ namespace BrewMonster.Assets.PerfectWorld.Scripts.UI.GamePlay
|
||||
}
|
||||
}
|
||||
|
||||
_skillGroupIndex = resolvedGroup;
|
||||
if (TrySetDefaultSkillGroupIcon())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Clear();
|
||||
return false;
|
||||
}
|
||||
@@ -256,9 +262,22 @@ namespace BrewMonster.Assets.PerfectWorld.Scripts.UI.GamePlay
|
||||
}
|
||||
if (icon == null)
|
||||
{
|
||||
iconName = DefaultComboIcon;
|
||||
icon = uiMan.GetIcon(iconName, EC_GAMEUI_ICONS.ICONS_SKILLGRP);
|
||||
return false;
|
||||
}
|
||||
|
||||
SetImage(icon);
|
||||
return true;
|
||||
}
|
||||
|
||||
private bool TrySetDefaultSkillGroupIcon()
|
||||
{
|
||||
var uiMan = EC_Game.GetGameRun()?.GetUIManager()?.GetInGameUIMan();
|
||||
if (uiMan == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var icon = uiMan.GetIcon(DefaultComboIcon, EC_GAMEUI_ICONS.ICONS_SKILLGRP);
|
||||
if (icon == null)
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user