Ejemplo n.º 1
0
    //called when clicking on a slot
    public void OnClickOnSlot(TattooBodySlot slot)
    {
        _selectedPart = slot.part;

        if (slot.IsLocked)
        {
            UIMessageBoxManager.Instance.ShowMessageBox(string.Format(Localization.instance.Get("IDS_TATTOO_WILL_UNLOCK_AT_LEVEL"),
                                                                      Localization.instance.Get(Utils.k_tattoo_part_names[(int)slot.part]), slot.UnlockLevel), null, MB_TYPE.MB_OK, null);
        }
        else if (slot.item == null)         //empty slot
        {
            _uiTattoo.OpenTattooSelectionWindow(slot);
        }
        else         //occupied
        {
            _uiTattoo.ShowTattooDetailWindow(slot, null);
        }
    }
Ejemplo n.º 2
0
    //button message, called by name
    private void OnClickRepalceButton()
    {
        gameObject.SetActive(false);

        _uiTattooMain.OpenTattooSelectionWindow(_slot);
    }