Beispiel #1
0
    public void DisplayClothe(ref byte offset, ref byte clotheIndex)
    {
        AClothe <TModuleType> clothe = this.inventory.Clothes[clotheIndex];

        if (GUI.Button(MultiResolutions.Rectangle(0, offset * 0.05f, 0.17f, 0.05f), StuffGUI <TModuleType> .GetEquippedStuffName(clothe)))
        {
            this.SelectAndMaybeEquipItem(clothe, clotheIndex);
        }

        if (inventory.Clothes[clotheIndex].Selected)
        {
            this.SelectThisItem(clotheIndex, ItemExtension.FiltreClothe);
        }

        ++clotheIndex;
        ++offset;
    }
Beispiel #2
0
    public void DisplayWeapon(ref byte offset, ref byte weaponIndex)
    {
        AWeapon <TModuleType> weapon = this.inventory.Weapons[weaponIndex];

        if (GUI.Button(MultiResolutions.Rectangle(0, offset * 0.05f, 0.17f, 0.05f), StuffGUI <TModuleType> .GetEquippedStuffName(weapon)))
        {
            this.SelectAndMaybeEquipItem(weapon, weaponIndex);
        }

        if (inventory.Weapons[weaponIndex].Selected)
        {
            this.SelectThisItem(weaponIndex, ItemExtension.FiltreWeapon);
        }

        ++weaponIndex;
        ++offset;
    }