C# Class ManicDigger.Hud.HudInventory

Show 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 property

public IActiveMaterial ActiveMaterial
return IActiveMaterial

ActiveMaterialCellSize public property

public int ActiveMaterialCellSize
return int

CellDrawSize public property

public int CellDrawSize
return int

controller public property

public IInventoryController controller
return IInventoryController

dataItems public property

public IGameDataItems dataItems
return IGameDataItems

getfile public property

public IGetFileStream getfile
return IGetFileStream

inventory public property

public Inventory inventory
return Inventory

inventoryUtil public property

public InventoryUtil inventoryUtil
return InventoryUtil

mouse_current public property

public IMouseCurrent mouse_current
return IMouseCurrent

the3d public property

public The3d the3d
return The3d

viewport3d public property

public IViewport3dSelectedBlock viewport3d
return IViewport3dSelectedBlock

viewport_size public property

public IViewportSize viewport_size
return IViewportSize