C# Класс Descent.GUI.SubElements.EquipmentPanel

A panel of EquipmentElements that expands and hides by user clicks. The panel links to a range of slots in an inventory and updates itself whenever the equipment at the slots change.
Наследование: GUIElement
Показать файл Открыть проект

Открытые методы

Метод Описание
EquipmentPanel ( Microsoft.Xna.Framework.Game game, string title, int x, int y, Inventory inv, int slots ) : System

Creates an EquipmentPanel that can be expanded and hidden by being clicked on by the user.

Update ( GameTime gameTime ) : void

Защищенные методы

Метод Описание
ActOnDirectClick ( int x, int y ) : void

Приватные методы

Метод Описание
GetSlotType ( int index ) : string
UpdateInventory ( ) : void

Описание методов

ActOnDirectClick() защищенный Метод

protected ActOnDirectClick ( int x, int y ) : void
x int
y int
Результат void

EquipmentPanel() публичный Метод

Creates an EquipmentPanel that can be expanded and hidden by being clicked on by the user.
public EquipmentPanel ( Microsoft.Xna.Framework.Game game, string title, int x, int y, Inventory inv, int slots ) : System
game Microsoft.Xna.Framework.Game The current Game object.
title string The title to display at the top.
x int The top-left x-coordinate of the EquipmentPanel when hidden.
y int The top-left y-coordinate of the EquipmentPanel when hidden.
inv Descent.Model.Player.Figure.HeroStuff.Inventory The inventory to show equipment from.
slots int The indexes (slots) of the inventory to visualize.
Результат System

Update() публичный Метод

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void