Elin Modding Docs Doc
All Classes Namespaces
WidgetHotbar Class Reference
Inheritance diagram for WidgetHotbar:
Widget EMono

Classes

class  Extra
 

Public Member Functions

override object CreateExtra ()
 
override bool CanShowContextMenu ()
 
override void OnActivate ()
 
override void OnChangeActionMode ()
 
void Rebuild ()
 
void RebuildPage (int page=-1)
 
void SwitchPage ()
 
HotItem GetItem (int index)
 
void TryUse (int index)
 
void OnClickEmptyItem (ButtonHotItem b)
 
override void OnSetContextMenu (UIContextMenu m)
 
void SetShortcutMenu (ButtonHotItem b, UIContextMenu m)
 
void SetItem (ButtonHotItem b, HotItem item)
 
bool RefreshHighlight ()
 
void _OnDirtyInventory ()
 
void SetVisible ()
 
void ToggleVisible ()
 
void CheckAutoHide ()
 
void OnStartDrag (UIButton b)
 
void OnDrag (UIButton b)
 
ButtonHotItem GetSwapButton (UIButton b)
 
void OnEndDrag (UIButton b, bool cancel=false)
 
- Public Member Functions inherited from Widget
void Test ()
 
bool IsInRightMode ()
 
void Activate ()
 
void Deactivate ()
 
virtual void OnDeactivate ()
 
void Close ()
 
void Reactivate ()
 
virtual void OnManagerActivate ()
 
virtual void OnManagerDeactivate ()
 
void SetAnchor (RectPosition p)
 
void SetPivot (RectPosition p)
 
virtual void OnChangePivot ()
 
void UpdateConfig ()
 
virtual void OnUpdateConfig ()
 
void ClampToScreen ()
 
virtual void OnChangeResolution ()
 
void OnChangePosition ()
 
virtual void OnFlip ()
 
bool IsAlignTop ()
 
Layer AddLayer (Layer l, Transform trans)
 
void RefreshTipPivotPosition ()
 
SkinSet GetSkin ()
 
SkinConfig GetSkinConfig ()
 
void SetSkin (int id, int v=0)
 
void TestSkin ()
 
virtual void ApplySkin ()
 
virtual void OnApplySkin ()
 
void InstantiateDeco (SkinDeco deco)
 
void AddDeco (SkinDeco deco)
 
void RemoveDeco (SkinDeco deco)
 
void ShowContextMenu ()
 
void SetBaseContextMenu (UIContextMenu m)
 
void SetGridContextMenu (UIContextMenu m)
 
void SoundActivate ()
 

Static Public Member Functions

static void RebuildPages ()
 
static void RefreshHighlights ()
 
static void RefreshButtons ()
 
- Static Public Member Functions inherited from EMono
static int rnd (int a)
 

Public Attributes

int idHotbar
 
GridLayoutGroup layout
 
ButtonHotItem mold
 
RawImage imageGrid
 
Image imageSelect
 
Hotbar.Type type
 
bool useMask
 
List< ButtonHotItembuttons = new List<ButtonHotItem>()
 
- Public Attributes inherited from Widget
Image imageBG
 
SoundData soundActivate
 
UIDragPanel dragPanel
 
RectTransform tipPivotLeft
 
RectTransform tipPivotRight
 

Static Public Attributes

static bool registering
 
static bool dirtyCurrentItem
 
static HotItem registeringItem
 
static WidgetHotbar HotbarBuild
 
static WidgetHotbar HotBarMainMenu
 
static WidgetHotbar HotbarExtra
 
- Static Public Attributes inherited from EMono
static Core core
 

Properties

WidgetHotbar.Extra extra [get]
 
Hotbar hotbar [get]
 
bool Visible [get, set]
 
override bool ShowInBuildMode [get]
 
bool IsHotbarSpeed [get]
 
bool CanRegisterItem [get]
 
- Properties inherited from Widget
string ID [get]
 
Widget.Config config [get]
 
SkinRoot skinRoot [get]
 
bool IsSealed [get]
 
virtual bool ShowStyleMenu [get]
 
virtual bool AlwaysTop [get]
 
virtual bool IsStaticPosition [get]
 
virtual bool AlwaysBottom [get]
 
virtual Type SetSiblingAfter [get]
 
virtual bool ShowInBuildMode [get]
 
virtual bool RightClickToClose [get]
 
virtual bool AllowRightClickToClose [get]
 
- Properties inherited from EMono
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Public Types inherited from Widget
enum  WidgetType { Default , ZoomMenu }
 
enum  State { Active , Inactive }
 
- Protected Member Functions inherited from Widget
void ClampToScreenEnsured (Component c, Vector2 anchoredPos)
 
void ClampToScreen (RectTransform rect, float margin=10f)
 
- Protected Attributes inherited from Widget
bool flip
 

Detailed Description

Definition at line 10 of file WidgetHotbar.cs.

Member Function Documentation

◆ _OnDirtyInventory()

void WidgetHotbar._OnDirtyInventory ( )

Definition at line 532 of file WidgetHotbar.cs.

◆ CanShowContextMenu()

override bool WidgetHotbar.CanShowContextMenu ( )
virtual

Reimplemented from Widget.

Definition at line 84 of file WidgetHotbar.cs.

◆ CheckAutoHide()

void WidgetHotbar.CheckAutoHide ( )

Definition at line 612 of file WidgetHotbar.cs.

◆ CreateExtra()

override object WidgetHotbar.CreateExtra ( )
virtual

Reimplemented from Widget.

Definition at line 13 of file WidgetHotbar.cs.

◆ GetItem()

HotItem WidgetHotbar.GetItem ( int index)

Definition at line 208 of file WidgetHotbar.cs.

◆ GetSwapButton()

ButtonHotItem WidgetHotbar.GetSwapButton ( UIButton b)

Definition at line 665 of file WidgetHotbar.cs.

◆ OnActivate()

override void WidgetHotbar.OnActivate ( )
virtual

Reimplemented from Widget.

Definition at line 98 of file WidgetHotbar.cs.

◆ OnChangeActionMode()

override void WidgetHotbar.OnChangeActionMode ( )
virtual

Reimplemented from Widget.

Definition at line 122 of file WidgetHotbar.cs.

◆ OnClickEmptyItem()

void WidgetHotbar.OnClickEmptyItem ( ButtonHotItem b)

Definition at line 226 of file WidgetHotbar.cs.

◆ OnDrag()

void WidgetHotbar.OnDrag ( UIButton b)

Definition at line 650 of file WidgetHotbar.cs.

◆ OnEndDrag()

void WidgetHotbar.OnEndDrag ( UIButton b,
bool cancel = false )

Definition at line 685 of file WidgetHotbar.cs.

◆ OnSetContextMenu()

override void WidgetHotbar.OnSetContextMenu ( UIContextMenu m)
virtual

Reimplemented from Widget.

Definition at line 234 of file WidgetHotbar.cs.

◆ OnStartDrag()

void WidgetHotbar.OnStartDrag ( UIButton b)

Definition at line 644 of file WidgetHotbar.cs.

◆ Rebuild()

void WidgetHotbar.Rebuild ( )

Definition at line 134 of file WidgetHotbar.cs.

◆ RebuildPage()

void WidgetHotbar.RebuildPage ( int page = -1)

Definition at line 175 of file WidgetHotbar.cs.

◆ RebuildPages()

static void WidgetHotbar.RebuildPages ( )
static

Definition at line 188 of file WidgetHotbar.cs.

◆ RefreshButtons()

static void WidgetHotbar.RefreshButtons ( )
static

Definition at line 478 of file WidgetHotbar.cs.

◆ RefreshHighlight()

bool WidgetHotbar.RefreshHighlight ( )

Definition at line 494 of file WidgetHotbar.cs.

◆ RefreshHighlights()

static void WidgetHotbar.RefreshHighlights ( )
static

Definition at line 465 of file WidgetHotbar.cs.

◆ SetItem()

void WidgetHotbar.SetItem ( ButtonHotItem b,
HotItem item )

Definition at line 456 of file WidgetHotbar.cs.

◆ SetShortcutMenu()

void WidgetHotbar.SetShortcutMenu ( ButtonHotItem b,
UIContextMenu m )

Definition at line 337 of file WidgetHotbar.cs.

◆ SetVisible()

void WidgetHotbar.SetVisible ( )

Definition at line 544 of file WidgetHotbar.cs.

◆ SwitchPage()

void WidgetHotbar.SwitchPage ( )

Definition at line 201 of file WidgetHotbar.cs.

◆ ToggleVisible()

void WidgetHotbar.ToggleVisible ( )

Definition at line 585 of file WidgetHotbar.cs.

◆ TryUse()

void WidgetHotbar.TryUse ( int index)

Definition at line 214 of file WidgetHotbar.cs.

Member Data Documentation

◆ buttons

List<ButtonHotItem> WidgetHotbar.buttons = new List<ButtonHotItem>()

Definition at line 763 of file WidgetHotbar.cs.

◆ dirtyCurrentItem

bool WidgetHotbar.dirtyCurrentItem
static

Definition at line 726 of file WidgetHotbar.cs.

◆ HotbarBuild

WidgetHotbar WidgetHotbar.HotbarBuild
static

Definition at line 732 of file WidgetHotbar.cs.

◆ HotbarExtra

WidgetHotbar WidgetHotbar.HotbarExtra
static

Definition at line 738 of file WidgetHotbar.cs.

◆ HotBarMainMenu

WidgetHotbar WidgetHotbar.HotBarMainMenu
static

Definition at line 735 of file WidgetHotbar.cs.

◆ idHotbar

int WidgetHotbar.idHotbar

Definition at line 741 of file WidgetHotbar.cs.

◆ imageGrid

RawImage WidgetHotbar.imageGrid

Definition at line 750 of file WidgetHotbar.cs.

◆ imageSelect

Image WidgetHotbar.imageSelect

Definition at line 753 of file WidgetHotbar.cs.

◆ layout

GridLayoutGroup WidgetHotbar.layout

Definition at line 744 of file WidgetHotbar.cs.

◆ mold

ButtonHotItem WidgetHotbar.mold

Definition at line 747 of file WidgetHotbar.cs.

◆ registering

bool WidgetHotbar.registering
static

Definition at line 723 of file WidgetHotbar.cs.

◆ registeringItem

HotItem WidgetHotbar.registeringItem
static

Definition at line 729 of file WidgetHotbar.cs.

◆ type

Hotbar.Type WidgetHotbar.type

Definition at line 756 of file WidgetHotbar.cs.

◆ useMask

bool WidgetHotbar.useMask

Definition at line 759 of file WidgetHotbar.cs.

Property Documentation

◆ CanRegisterItem

bool WidgetHotbar.CanRegisterItem
get

Definition at line 75 of file WidgetHotbar.cs.

◆ extra

WidgetHotbar.Extra WidgetHotbar.extra
get

Definition at line 20 of file WidgetHotbar.cs.

◆ hotbar

Hotbar WidgetHotbar.hotbar
get

Definition at line 30 of file WidgetHotbar.cs.

◆ IsHotbarSpeed

bool WidgetHotbar.IsHotbarSpeed
get

Definition at line 65 of file WidgetHotbar.cs.

◆ ShowInBuildMode

override bool WidgetHotbar.ShowInBuildMode
get

Definition at line 55 of file WidgetHotbar.cs.

◆ Visible

bool WidgetHotbar.Visible
getset

Definition at line 41 of file WidgetHotbar.cs.


The documentation for this class was generated from the following file: