suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
49 stars 11 forks source link

[Bug]Equipped Item UI #2309

Closed ghost closed 11 months ago

ghost commented 11 months ago

Whenever i use skill or potion or buff that has duration the equipped item UI stop working untill the skill or potion duration ends that happens only to the equipped items unequipped items ui works normally

insthync commented 11 months ago

I don't get how is it?

ghost commented 11 months ago

I don't get how is it?

try to use any potion or buff skill that has duration time and u will not be able to select any equipped item in inventory it will keep auto close the itemdialog Ui untill the potion duration finish

insthync commented 11 months ago

You can fix it by changes codes in UISelectionEntry.cs -> OnClickSelect function

    public void OnClickSelect()
    {
        if (selectionManager != null)
        {
            UISelectionMode selectionMode = selectionManager.selectionMode;
            if (selectionMode == UISelectionMode.Toggle && IsSelected)
                selectionManager.Deselect(this);
            else if (!IsSelected)
                selectionManager.Select(this);
        }
    }
LordPhrozen commented 11 months ago

@insthync This seems to also be occurring with shop item info panels, and equipment compare panels too.

insthync commented 11 months ago

It has been fixed, but not like I posted here.

by add this function in UISelectionEntry.cs


    public void SelectByManager()
    {
        if (selectionManager != null)
            selectionManager.Select(this);
    }

and use it instead of OnClickSelect()