Candide.CandideUI.Components.Holder.CandideHotBarSlot
Type JSONpublic class in Candide.CandideUI.Components.Holder
Type metadata
- Assembly
Romestead - Namespace
Candide.CandideUI.Components.Holder - Base type
Candide.CandideUI.Components.Holder.CandideHolderBase - Hash
57C34442874B6936DEB1A03A4491FDC765FE3629B6FE2F0F659F39096BB7876C
Relationships
Fields
| Name | Visibility | Signature |
|---|---|---|
ActiveAnimationSpriteSheet# | private | private CandideCreator.Shared.Graphics.SpriteSheet ActiveAnimationSpriteSheet |
OnMouseRightClickFunc# | public | public System.Func<Candide.CandideUI.Components.Holder.CandideHotBarSlot, System.Boolean> OnMouseRightClickFunc |
OnMouseSpecialClickFunc# | public | public System.Func<Candide.CandideUI.Components.Holder.CandideHotBarSlot, System.Boolean> OnMouseSpecialClickFunc |
Panel# | protected | protected Candide.CandideUI.Containers.CandidePanel Panel |
SlotIndex# | public | public System.Int32 SlotIndex |
_activeAnimation# | private | private CandideCreator.Shared.Graphics.FrameAnimation _activeAnimation |
_hotBarSlots# | private | private Candide.Entities.PlayerState.HotBarSlot[] _hotBarSlots |
_icon# | private | private Candide.CandideUI.Components.CandideIcon _icon |
_isActive# | private | private System.Boolean _isActive |
_isHighlighted# | private | private System.Boolean _isHighlighted |
_keyBinding# | private | private Candide.CandideUI.CandideUiElement _keyBinding |
_label# | private | private Candide.CandideUI.Components.CandideTextLabel _label |
_softLockKey# | private | private System.Boolean _softLockKey |
Properties
| Name | Visibility | Signature |
|---|---|---|
IsHighlighted# | public | public System.Boolean IsHighlighted |
Slot# | private | private Candide.Entities.PlayerState.HotBarSlot Slot |
Type# | public | public Candide.CandideUI.Components.Holder.CandideHolderType Type |
Methods
GetKeyBindForSlotIndex
#
private Candide.Input.SuperKeybind GetKeyBindForSlotIndex()
Method metadata
- Visibilityprivate
- Return type
Candide.Input.SuperKeybind - StaticFalse
- VirtualFalse
- Hash
B1E5E06DB818DCF194211988EEFC9A07021D28E0A3C9CF0468C8545C230DF758 - Body hash
A0EFBDB81218284B433CC7A1C27548C6E1D262A7AD2EA50C3630E2319A8A9C7A - IL size71
Referenced calls
System.ArgumentOutOfRangeException::.ctor()
GetKeyPress
#
private System.Boolean GetKeyPress()
Method metadata
- Visibilityprivate
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
18B6AC433710F34455D80748B5AC006218281A472CD9D44D296143FED21987C9 - Body hash
AC4D130A4EF7309DD1854178BC5DE6D5083723B571EEE3516DEDAC94CEB3FEEB - IL size115
Referenced calls
Candide.CandideUI.CandideUiSystem::get_InputFocusableElement()Candide.Input.PlayerControllerKeyBind::Down()
GetPickupContent
#
public Candide.CandideUI.Components.Holder.ICandideDraggableHolderContent GetPickupContent()
Method metadata
- Visibilitypublic
- Return type
Candide.CandideUI.Components.Holder.ICandideDraggableHolderContent - StaticFalse
- VirtualTrue
- Hash
62E736C2CEEF063A7A5A742FBE0C677866083A27F9EE63E23F0CE4873C5DA2F6 - Body hash
21D6F65CDD2E5AEF5CB26B58BC5BAF2AEFA7FFBB076AF836CFCC081BFE9F998E - IL size39
Referenced calls
Candide.CandideUI.CandideUiElement::get_Enabled()Candide.CandideUI.Components.Holder.CandideHotBarSlot::get_Slot()Candide.CandideUI.Components.Holder.HotBarCandideDraggableHolderContent::.ctor(Candide.CandideUI.Components.Holder.CandideHolderBase, Candide.Entities.PlayerState.HotBarSlot[], System.Int32)
InternalDraw
#
protected System.Void InternalDraw(Candide.CandideUI.UiRenderContext context)
Method metadata
- Visibilityprotected
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
F7512E43CE5EA9B058BF4E1AED5EF4D4FDF92F27BCD86A75A6F14BA732904A2C - Body hash
7088FB2BBD55A06744DF25BBF0C9BEF9110107A26A0D5941606FFA3A24DFE333 - IL size187
Referenced calls
Candide.CandideUI.Components.Holder.CandideHolderBase::InternalDraw(Candide.CandideUI.UiRenderContext)Candide.CandideUI.CandideUiElement::get_BorderBounds()Microsoft.Xna.Framework.Rectangle::get_Location()Microsoft.Xna.Framework.Point::ToVector2()CandideCreator.Shared.Graphics.FrameAnimation::get_CurrentFrame()Microsoft.Xna.Framework.Vector2::get_One()Candide.CandideUI.UiRenderContext::DrawSprite(CandideCreator.Shared.Graphics.SpriteSheet, System.Int32, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, System.Single, System.Boolean)Candide.CandideUI.CandideUiSystem::get_Scale()Microsoft.Xna.Framework.Vector2::.ctor(System.Single)Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Candide.CandideUI.UiRenderContext::DrawSpriteBoxOfManySprites(System.Single, System.Single, System.Int32, System.Int32, CandideCreator.Shared.Graphics.SpriteSheet, Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)
InventoriesHasChanged
#
public System.Void InventoriesHasChanged()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
2D7760BF90C359AF34140773ABA3A8435D045C3D1AC2E2FBD484DD7C297B101F - Body hash
C075E755A88D30E2540FB07567FEB13DAB94333EB9C51CBD075D99F154E2D2D4 - IL size161
Referenced calls
Candide.GameModels.GameState::TryGetLocalPlayerInventory(Candide.GameModels.Models.Items.SimpleInventory&)Candide.CandideUI.CandideUiElement::set_Enabled(System.Boolean)Candide.CandideUI.Components.CandideTextLabel::set_Text(System.String)Shared.Models.Items.SharedInventoryModel::GetItemCount(System.String)Candide.CandideUI.Components.Holder.CandideInventorySlot::GetItemCountText(System.Int32)Candide.CandideUI.CandideUiElement::set_Opacity(System.Single)
OnMouseSecondaryDown
#
public System.Void OnMouseSecondaryDown()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
B5E6A41B91139637D0064D603CB2790B5A8EC9CADBC2BE2433A3DA1D6BC1AA98 - Body hash
09201707D5F8F45B1FFFD2A15D483BEA6E3DBC110C5B5195FF2202A2A12CA9D1 - IL size14
OnSpecialAction
#
protected System.Boolean OnSpecialAction()
Method metadata
- Visibilityprotected
- Return type
System.Boolean - StaticFalse
- VirtualTrue
- Hash
C35F02427474CB963DE25283732D462AD7571C450FB9E58623B0E512CEFE2700 - Body hash
B01E056433CBBB5B3955F6793A268F68193101EF4528DB49D941229B40A610F9 - IL size25
Referenced calls
System.Func<Candide.CandideUI.Components.Holder.CandideHotBarSlot, System.Boolean>::Invoke(!0)
SlotHasChanged
#
public System.Void SlotHasChanged()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
57E20EA6C6EB5A63B8ADD3132BB5D6F06D5D67124F9CB1318A3445710009339B - Body hash
05F7B78DF490981004F709B31A3550342EC5346EA7C399652409A7CF525981AB - IL size146
Referenced calls
Candide.CandideUI.Components.CandideIcon::set_Icon(System.String)Candide.CandideUI.Components.Holder.CandideHolderBase::set_GetTooltipContent(System.Func<System.Collections.Generic.IEnumerable<Candide.CandideUI.CandideUiElement>>)Candide.CandideUI.Components.Holder.CandideHotBarSlot::InventoriesHasChanged()CandideHotBarSlot.<>c__DisplayClass27_0::.ctor()Shared.Data.ItemDataBase::GetItemDataOrMissing(System.String)CandideHotBarSlot.<>c__DisplayClass27_0::<SlotHasChanged>b__0()System.Func<System.Collections.Generic.IEnumerable<Candide.CandideUI.CandideUiElement>>::.ctor(System.Object, System.IntPtr)System.NotImplementedException::.ctor(System.String)
Called by
String literals
No implementation for other hotbar types yet
Update
#
public System.Void Update(Microsoft.Xna.Framework.GameTime gameTime)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
BC4C4E3FC421BB07E77024C6F8F046B1DD85F076322D76BF4396F9287B717FAF - Body hash
6375FEBC1F2DF9D90EA012A1A49B7675376460AD9583778FD28E375DAFA2CEF3 - IL size204
Referenced calls
Candide.CandideUI.CandideUiContainerSingleItem::Update(Microsoft.Xna.Framework.GameTime)Candide.CandideUI.CandideUiSystem::get_ControllerEnabled()Candide.CandideUI.CandideUiElement::set_Visible(System.Boolean)Candide.CandideUI.Components.Holder.CandideHotBarSlot::get_Slot()Candide.CandideUI.CandideExtendedInteractionsHandler::get_DraggedContent()Candide.CandideUI.Components.Holder.ItemCandideDraggableHolderContent::get_ItemInstance()Candide.CandideUI.CandideUiElement::get_Enabled()System.Collections.Generic.HashSet<Candide.CandideUI.CandideUiElement>::Contains(!0)Candide.CandideUI.Components.Holder.CandideHotBarSlot::GetKeyPress()Candide.CandideUI.CandideUiElement::set_IsHovered(System.Boolean)Candide.CandideUI.Components.Holder.CandideHotBarSlot::Use()
Use
#
private System.Boolean Use()
Method metadata
- Visibilityprivate
- Return type
System.Boolean - StaticFalse
- VirtualFalse
- Hash
FE664C56E875297999564097F8B95273CBB21C724057CC95D33FCC5473A1D40A - Body hash
FA4BE3FAA7FAAD298E6D61CFD3F044EC3657DA4A7E736D7F671B70C8D66FFC62 - IL size115
Referenced calls
Candide.GameModels.GameState::TryGetLocalPlayerInventory(Candide.GameModels.Models.Items.SimpleInventory&)Shared.Models.Items.SharedInventoryModel::FindFirstSlotIndexWithBaseId(System.String, System.Boolean)Candide.GameModels.Managers.ItemInstanceManager::TryUseItem(Shared.Models.Items.ItemInstanceModel)CandideServer.EventBus.EventBusManager::SendEvent(System.String, System.Object, System.Boolean)
Called by
String literals
ui-inventory-item-quick-use