FCV Engine 0.1
A tool and framework for tutorials in game development
Loading...
Searching...
No Matches
WeaponSlotUI Class Reference

Handles the individual weapon slot UI, including displaying weapon sprites, slot indices, and managing the border state. More...

Inheritance diagram for WeaponSlotUI:

Public Member Functions

void SetImage (Sprite weaponSprite)
 Sets the image for the weapon slot.
 
void SetSlotIndex (int key)
 Sets the text for the weapon slot, indicating the key to press for equipping the weapon.
 
void SetBorderActiveState (bool active)
 Sets the active state of the slot border.
 

Detailed Description

Handles the individual weapon slot UI, including displaying weapon sprites, slot indices, and managing the border state.

Definition at line 11 of file WeaponSlotUI.cs.

Member Function Documentation

◆ SetBorderActiveState()

void SetBorderActiveState ( bool active)

Sets the active state of the slot border.

Parameters
activeTrue to activate the border, false to deactivate it.

Definition at line 39 of file WeaponSlotUI.cs.

◆ SetImage()

void SetImage ( Sprite weaponSprite)

Sets the image for the weapon slot.

Parameters
weaponSpriteThe sprite representing the weapon to display in the slot.

Definition at line 21 of file WeaponSlotUI.cs.

◆ SetSlotIndex()

void SetSlotIndex ( int key)

Sets the text for the weapon slot, indicating the key to press for equipping the weapon.

Parameters
keyThe key index (typically incremented from the weapon controller) associated with the weapon.

Definition at line 30 of file WeaponSlotUI.cs.


The documentation for this class was generated from the following file: