Elin Modding Docs Doc
Loading...
Searching...
No Matches
Hotbar Class Reference
Inheritance diagram for Hotbar:
EClass

Classes

class  Page
 

Public Types

enum  Type { Default , Main , ZoomMenu }
 

Public Member Functions

void SetSlotNum (int a)
 
void AddPage ()
 
void ValidatePage (Hotbar.Page page, int num=-1)
 
void SetPage (int pageIndex)
 
void Remove (HotItem item)
 
HotItem GetItem (int index, int pageIndex=-1)
 
HotItem SetItem (HotItem item, int index=-1, int pageIndex=-1, bool refreshActor=false)
 
void Select (HotItem item)
 
void ToggleDisable (HotItem item)
 
void Unselect (int pageIndex=-1)
 
HotItem GetSelectedItem ()
 
int GetNextSelectableIndex (int pageIndex=-1)
 
int GetPrevSelectableIndex (int pageIndex=-1)
 

Public Attributes

int currentPage
 
int itemsPerPage = 6
 
int id
 
List< Hotbar.Pagepages = new List<Hotbar.Page>()
 
bool dirty
 
WidgetHotbar actor
 

Static Public Attributes

const int IDMainMenu = 2
 
const int IDBuild = 3
 
const int IDUser2 = 5
 
const int IDUser3 = 6
 
const int IDSpeed = 7
 
- Static Public Attributes inherited from EClass
static Core core
 

Properties

HotbarManager manager [get]
 
HotItem SelectedItem [get]
 
HotItem DefaultItem [get]
 
bool IsLocked [get]
 
bool IsUserHotbar [get]
 
bool ShowFunctionKey [get]
 
Hotbar.Page CurrentPage [get]
 
- Properties inherited from EClass
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 Faction Wilds [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 SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 

Detailed Description

Definition at line 6 of file Hotbar.cs.

Member Enumeration Documentation

◆ Type

enum Hotbar.Type

Definition at line 288 of file Hotbar.cs.

Member Function Documentation

◆ AddPage()

void Hotbar.AddPage ( )

Definition at line 89 of file Hotbar.cs.

◆ GetItem()

HotItem Hotbar.GetItem ( int index,
int pageIndex = -1 )

Definition at line 135 of file Hotbar.cs.

◆ GetNextSelectableIndex()

int Hotbar.GetNextSelectableIndex ( int pageIndex = -1)

Definition at line 217 of file Hotbar.cs.

◆ GetPrevSelectableIndex()

int Hotbar.GetPrevSelectableIndex ( int pageIndex = -1)

Definition at line 234 of file Hotbar.cs.

◆ GetSelectedItem()

HotItem Hotbar.GetSelectedItem ( )

Definition at line 206 of file Hotbar.cs.

◆ Remove()

void Hotbar.Remove ( HotItem item)

Definition at line 120 of file Hotbar.cs.

◆ Select()

void Hotbar.Select ( HotItem item)

Definition at line 171 of file Hotbar.cs.

◆ SetItem()

HotItem Hotbar.SetItem ( HotItem item,
int index = -1,
int pageIndex = -1,
bool refreshActor = false )

Definition at line 141 of file Hotbar.cs.

◆ SetPage()

void Hotbar.SetPage ( int pageIndex)

Definition at line 114 of file Hotbar.cs.

◆ SetSlotNum()

void Hotbar.SetSlotNum ( int a)

Definition at line 79 of file Hotbar.cs.

◆ ToggleDisable()

void Hotbar.ToggleDisable ( HotItem item)

Definition at line 178 of file Hotbar.cs.

◆ Unselect()

void Hotbar.Unselect ( int pageIndex = -1)

Definition at line 190 of file Hotbar.cs.

◆ ValidatePage()

void Hotbar.ValidatePage ( Hotbar.Page page,
int num = -1 )

Definition at line 97 of file Hotbar.cs.

Member Data Documentation

◆ actor

WidgetHotbar Hotbar.actor

Definition at line 285 of file Hotbar.cs.

◆ currentPage

int Hotbar.currentPage

Definition at line 267 of file Hotbar.cs.

◆ dirty

bool Hotbar.dirty

Definition at line 282 of file Hotbar.cs.

◆ id

int Hotbar.id

Definition at line 275 of file Hotbar.cs.

◆ IDBuild

const int Hotbar.IDBuild = 3
static

Definition at line 254 of file Hotbar.cs.

◆ IDMainMenu

const int Hotbar.IDMainMenu = 2
static

Definition at line 251 of file Hotbar.cs.

◆ IDSpeed

const int Hotbar.IDSpeed = 7
static

Definition at line 263 of file Hotbar.cs.

◆ IDUser2

const int Hotbar.IDUser2 = 5
static

Definition at line 257 of file Hotbar.cs.

◆ IDUser3

const int Hotbar.IDUser3 = 6
static

Definition at line 260 of file Hotbar.cs.

◆ itemsPerPage

int Hotbar.itemsPerPage = 6

Definition at line 271 of file Hotbar.cs.

◆ pages

List<Hotbar.Page> Hotbar.pages = new List<Hotbar.Page>()

Definition at line 279 of file Hotbar.cs.

Property Documentation

◆ CurrentPage

Hotbar.Page Hotbar.CurrentPage
get

Definition at line 70 of file Hotbar.cs.

◆ DefaultItem

HotItem Hotbar.DefaultItem
get

Definition at line 30 of file Hotbar.cs.

◆ IsLocked

bool Hotbar.IsLocked
get

Definition at line 40 of file Hotbar.cs.

◆ IsUserHotbar

bool Hotbar.IsUserHotbar
get

Definition at line 50 of file Hotbar.cs.

◆ manager

HotbarManager Hotbar.manager
get

Definition at line 10 of file Hotbar.cs.

◆ SelectedItem

HotItem Hotbar.SelectedItem
get

Definition at line 20 of file Hotbar.cs.

◆ ShowFunctionKey

bool Hotbar.ShowFunctionKey
get

Definition at line 60 of file Hotbar.cs.


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