Свойство | Type | Description | |
---|---|---|---|
Component | ActionsComponent |
Méthode | Description | |
---|---|---|
ActionsUI ( ActionsSystem system, ActionsComponent component ) : Content.Client.DragDrop | ||
HandleChangeHotbarKeybind ( byte hotbar, PointerInputCmdHandler.PointerInputCmdArgs args ) : void |
Handle hotbar change.
|
|
HandleHotbarKeybind ( byte slot, PointerInputCmdHandler.PointerInputCmdArgs args ) : void |
Handle keydown / keyup for one of the slots via a keybinding, simulates mousedown/mouseup on it.
|
|
StopTargeting ( bool updating = false ) : void |
Switch out of targeting mode if currently selecting target for an action
|
|
ToggleActionsMenu ( ) : void | ||
ToggleTargeting ( Content.Client.Actions.UI.ActionSlot slot ) : void |
If currently targeting with this slot, stops targeting. If currently targeting with no slot or a different slot, switches to targeting with the specified slot.
|
|
UpdateUI ( ) : void |
Refresh the display of all the slots in the currently displayed hotbar, to reflect the current component state and assignments of actions component.
|
Méthode | Description | |
---|---|---|
EnteredTree ( ) : void | ||
ExitedTree ( ) : void | ||
FrameUpdate ( FrameEventArgs args ) : void | ||
Resized ( ) : void | ||
UIScaleChanged ( ) : void |
Méthode | Description | |
---|---|---|
CalcMaxHeight ( ) : float | ||
ChangeHotbar ( byte hotbar ) : void | ||
OnBeginActionDrag ( ) : bool | ||
OnContinueActionDrag ( float frameTime ) : bool | ||
OnEndActionDrag ( ) : void | ||
OnHotbarPaginate ( GUIBoundKeyEventArgs args ) : void | ||
OnLockPressed ( BaseButton.ButtonEventArgs obj ) : void | ||
OnToggleActionsMenu ( BaseButton.ButtonEventArgs args ) : void | ||
OnToggleActionsMenuTopButton ( bool open ) : void | ||
StartTargeting ( Content.Client.Actions.UI.ActionSlot actionSlot ) : void |
Puts us in targeting mode, where we need to pick either a target point or entity
|
|
UpdateActionSlot ( ActionType action, Content.Client.Actions.UI.ActionSlot actionSlot ) : void |
public ActionsUI ( ActionsSystem system, ActionsComponent component ) : Content.Client.DragDrop | ||
system | ActionsSystem | |
component | ActionsComponent | |
Résultat | Content.Client.DragDrop |
protected FrameUpdate ( FrameEventArgs args ) : void | ||
args | FrameEventArgs | |
Résultat | void |
public HandleChangeHotbarKeybind ( byte hotbar, PointerInputCmdHandler.PointerInputCmdArgs args ) : void | ||
hotbar | byte | hotbar index to switch to |
args | PointerInputCmdHandler.PointerInputCmdArgs | |
Résultat | void |
public HandleHotbarKeybind ( byte slot, PointerInputCmdHandler.PointerInputCmdArgs args ) : void | ||
slot | byte | slot index to to receive the press (0 corresponds to the one labeled 1, 9 corresponds to the one labeled 0) |
args | PointerInputCmdHandler.PointerInputCmdArgs | |
Résultat | void |
public StopTargeting ( bool updating = false ) : void | ||
updating | bool | |
Résultat | void |
public ToggleTargeting ( Content.Client.Actions.UI.ActionSlot slot ) : void | ||
slot | Content.Client.Actions.UI.ActionSlot | |
Résultat | void |