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
파일 보기 프로젝트 열기: nezbo/Descent

공개 메소드들

메소드 설명
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