C# Class ManicDigger.Hud.HudInventory

Mostra file Open project: henon/manic_digger Class Usage Examples

Public Properties

Property Type Description
ActiveMaterial IActiveMaterial
ActiveMaterialCellSize int
CellDrawSize int
controller IInventoryController
dataItems IGameDataItems
getfile IGetFileStream
inventory Inventory
inventoryUtil InventoryUtil
mouse_current IMouseCurrent
the3d The3d
viewport3d IViewport3dSelectedBlock
viewport_size IViewportSize

Private Properties

Property Type Description
DrawItem void
Offset Point
SelectedCell Point?
SelectedMaterialSelectorSlot int?
SelectedWearPlace WearPlace?

Public Methods

Method Description
Draw ( ) : void
DrawItemInfo ( Point screenpos, System.Item item ) : void
DrawMaterialSelector ( ) : void
Mouse_ButtonDown ( object sender, MouseButtonEventArgs e ) : void
OnKeyPress ( KeyPressEventArgs e ) : void
OnRenderFrame ( FrameEventArgs e ) : void

Private Methods

Method Description
DrawItem ( Point screenpos, System.Item item, Point drawsize ) : void
Offset ( Point a, Point b ) : Point
SelectedCell ( Point scaledMouse ) : Point?
SelectedMaterialSelectorSlot ( Point scaledMouse ) : int?
SelectedWearPlace ( Point scaledMouse ) : WearPlace?

Method Details

Draw() public method

public Draw ( ) : void
return void

DrawItemInfo() public method

public DrawItemInfo ( Point screenpos, System.Item item ) : void
screenpos Point
item System.Item
return void

DrawMaterialSelector() public method

public DrawMaterialSelector ( ) : void
return void

Mouse_ButtonDown() public method

public Mouse_ButtonDown ( object sender, MouseButtonEventArgs e ) : void
sender object
e OpenTK.Input.MouseButtonEventArgs
return void

OnKeyPress() public method

public OnKeyPress ( KeyPressEventArgs e ) : void
e OpenTK.KeyPressEventArgs
return void

OnRenderFrame() public method

public OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs
return void

Property Details

ActiveMaterial public_oe property

public IActiveMaterial ActiveMaterial
return IActiveMaterial

ActiveMaterialCellSize public_oe property

public int ActiveMaterialCellSize
return int

CellDrawSize public_oe property

public int CellDrawSize
return int

controller public_oe property

public IInventoryController controller
return IInventoryController

dataItems public_oe property

public IGameDataItems dataItems
return IGameDataItems

getfile public_oe property

public IGetFileStream getfile
return IGetFileStream

inventory public_oe property

public Inventory inventory
return Inventory

inventoryUtil public_oe property

public InventoryUtil inventoryUtil
return InventoryUtil

mouse_current public_oe property

public IMouseCurrent mouse_current
return IMouseCurrent

the3d public_oe property

public The3d the3d
return The3d

viewport3d public_oe property

public IViewport3dSelectedBlock viewport3d
return IViewport3dSelectedBlock

viewport_size public_oe property

public IViewportSize viewport_size
return IViewportSize