| Package | org.wak.gui.modern |
| Class | public class ModernInventoryDisplay |
| Inheritance | ModernInventoryDisplay flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| arrowLeft : WakSimpleButton
[write-only]
Button to scroll left the inventory.
| ModernInventoryDisplay | ||
| arrowRight : WakSimpleButton
[write-only]
Button to scroll right the inventory.
| ModernInventoryDisplay | ||
| background : DisplayObject [write-only]
| ModernInventoryDisplay | ||
| itemSeparatorSpace : Number [write-only]
| ModernInventoryDisplay | ||
| itemsY : Number [write-only]
| ModernInventoryDisplay | ||
| Property | Defined by | ||
|---|---|---|---|
| mArrowLeft : WakSimpleButton = null | ModernInventoryDisplay | ||
| mArrowRight : WakSimpleButton = null | ModernInventoryDisplay | ||
| mBackground : DisplayObject = null | ModernInventoryDisplay | ||
| mCols : int = 0 | ModernInventoryDisplay | ||
| mColsSeparator : int = 1 | ModernInventoryDisplay | ||
| mInventory : Inventory = null | ModernInventoryDisplay | ||
| mInventoryMask : Sprite = null | ModernInventoryDisplay | ||
| mItemHeight : int = 0 | ModernInventoryDisplay | ||
| mItemsArray : Array = null | ModernInventoryDisplay | ||
| mItemsX : Number = 0 | ModernInventoryDisplay | ||
| mItemsY : Number = 0 | ModernInventoryDisplay | ||
| mItemWidth : int = 0 | ModernInventoryDisplay | ||
| mRows : int = 0 | ModernInventoryDisplay | ||
| mScrollingLayer : Sprite = null | ModernInventoryDisplay | ||
| mScrollingLayerDest : Number = 0 | ModernInventoryDisplay | ||
| mScrollingLayerIsMoving : Boolean = false | ModernInventoryDisplay | ||
| mSelectedItem : Sprite = null | ModernInventoryDisplay | ||
| mSpriteToItem : Array = null | ModernInventoryDisplay | ||
| mTotalRows : int = 0 | ModernInventoryDisplay | ||
| Method | Defined by | ||
|---|---|---|---|
|
ModernInventoryDisplay(pInventory:Inventory, pCols:int = 4, pItemWidth:int = 70, pItemHeight:int = 44)
Constructor
| ModernInventoryDisplay | ||
| Method | Defined by | ||
|---|---|---|---|
| ModernInventoryDisplay | |||
| ModernInventoryDisplay | |||
|
DrawLeftArrow(pBgColor:uint, pArrowColor:uint):Sprite
| ModernInventoryDisplay | ||
|
FillInventory(pItItems:IIterator):void
| ModernInventoryDisplay | ||
|
GetItemDisplayInCol(pCol:int):DisplayObject
| ModernInventoryDisplay | ||
|
OnAddedToStage(event:Event):void
| ModernInventoryDisplay | ||
|
OnItemAdded(event:InventoryEvent):void
| ModernInventoryDisplay | ||
|
OnItemMouseClick(event:MouseEvent):void
| ModernInventoryDisplay | ||
|
OnItemMouseOut(event:MouseEvent):void
| ModernInventoryDisplay | ||
|
OnItemMouseOver(event:MouseEvent):void
| ModernInventoryDisplay | ||
|
OnItemRemoved(event:InventoryEvent):void
| ModernInventoryDisplay | ||
|
OnRemovedToStage(event:Event):void
| ModernInventoryDisplay | ||
|
OnScrollCompleted():void
| ModernInventoryDisplay | ||
|
OnScrollLeft(event:Event):void
| ModernInventoryDisplay | ||
|
OnScrollRight(event:Event):void
| ModernInventoryDisplay | ||
|
RefreshItemsPositions(pItemsArray:Array):void
| ModernInventoryDisplay | ||
|
ScrollLeft():void
| ModernInventoryDisplay | ||
|
ScrollRight():void
| ModernInventoryDisplay | ||
|
ScrollRightCols(pNum:int):void
| ModernInventoryDisplay | ||
|
UpdateScrollButtons(pDirection:Number):void
| ModernInventoryDisplay | ||
| arrowLeft | property |
arrowLeft:WakSimpleButton [write-only]Button to scroll left the inventory.
Implementation public function set arrowLeft(value:WakSimpleButton):void
| arrowRight | property |
arrowRight:WakSimpleButton [write-only]Button to scroll right the inventory.
Implementation public function set arrowRight(value:WakSimpleButton):void
| background | property |
background:DisplayObject [write-only]Implementation
public function set background(value:DisplayObject):void
| itemSeparatorSpace | property |
itemSeparatorSpace:Number [write-only]Implementation
public function set itemSeparatorSpace(value:Number):void
| itemsY | property |
itemsY:Number [write-only]Implementation
public function set itemsY(value:Number):void
| mArrowLeft | property |
protected var mArrowLeft:WakSimpleButton = null
| mArrowRight | property |
protected var mArrowRight:WakSimpleButton = null
| mBackground | property |
protected var mBackground:DisplayObject = null
| mCols | property |
protected var mCols:int = 0
| mColsSeparator | property |
protected var mColsSeparator:int = 1
| mInventory | property |
protected var mInventory:Inventory = null
| mInventoryMask | property |
protected var mInventoryMask:Sprite = null
| mItemHeight | property |
protected var mItemHeight:int = 0
| mItemsArray | property |
protected var mItemsArray:Array = null
| mItemsX | property |
protected var mItemsX:Number = 0
| mItemsY | property |
protected var mItemsY:Number = 0
| mItemWidth | property |
protected var mItemWidth:int = 0
| mRows | property |
protected var mRows:int = 0
| mScrollingLayer | property |
protected var mScrollingLayer:Sprite = null
| mScrollingLayerDest | property |
protected var mScrollingLayerDest:Number = 0
| mScrollingLayerIsMoving | property |
protected var mScrollingLayerIsMoving:Boolean = false
| mSelectedItem | property |
protected var mSelectedItem:Sprite = null
| mSpriteToItem | property |
protected var mSpriteToItem:Array = null
| mTotalRows | property |
protected var mTotalRows:int = 0
| ModernInventoryDisplay | () | constructor |
public function ModernInventoryDisplay(pInventory:Inventory, pCols:int = 4, pItemWidth:int = 70, pItemHeight:int = 44)Constructor
ParameterspInventory:Inventory — the inventory of the player's character
|
|
pCols:int (default = 4) — visible columns that the inventory will have on screen.
|
|
pItemWidth:int (default = 70) — max width in pixels of an item on the inventory
|
|
pItemHeight:int (default = 44) — max height in pixels of an item on the inventory
|
| CreateDownArrow | () | method |
| CreateRightArrow | () | method |
| DrawLeftArrow | () | method |
protected function DrawLeftArrow(pBgColor:uint, pArrowColor:uint):SpriteParameters
pBgColor:uint |
|
pArrowColor:uint |
Sprite |
| FillInventory | () | method |
| GetItemDisplayInCol | () | method |
protected function GetItemDisplayInCol(pCol:int):DisplayObjectParameters
pCol:int |
DisplayObject |
| OnAddedToStage | () | method |
protected function OnAddedToStage(event:Event):voidParameters
event:Event |
| OnItemAdded | () | method |
| OnItemMouseClick | () | method |
protected function OnItemMouseClick(event:MouseEvent):voidParameters
event:MouseEvent |
| OnItemMouseOut | () | method |
protected function OnItemMouseOut(event:MouseEvent):voidParameters
event:MouseEvent |
| OnItemMouseOver | () | method |
protected function OnItemMouseOver(event:MouseEvent):voidParameters
event:MouseEvent |
| OnItemRemoved | () | method |
| OnRemovedToStage | () | method |
protected function OnRemovedToStage(event:Event):voidParameters
event:Event |
| OnScrollCompleted | () | method |
protected function OnScrollCompleted():void
| OnScrollLeft | () | method |
protected function OnScrollLeft(event:Event):voidParameters
event:Event |
| OnScrollRight | () | method |
protected function OnScrollRight(event:Event):voidParameters
event:Event |
| RefreshItemsPositions | () | method |
protected function RefreshItemsPositions(pItemsArray:Array):voidParameters
pItemsArray:Array |
| ScrollLeft | () | method |
protected function ScrollLeft():void
| ScrollRight | () | method |
protected function ScrollRight():void
| ScrollRightCols | () | method |
protected function ScrollRightCols(pNum:int):voidParameters
pNum:int |
| UpdateScrollButtons | () | method |
protected function UpdateScrollButtons(pDirection:Number):voidParameters
pDirection:Number |