Elin Modding Docs Doc
Loading...
Searching...
No Matches
WidgetCurrentTool Class Reference
Inheritance diagram for WidgetCurrentTool:
Widget EMono

Classes

class  Extra
 

Public Member Functions

override object CreateExtra ()
 
override void OnActivate ()
 
void RebuildSlots ()
 
void CheckDirty ()
 
void SwitchPage ()
 
void _RefreshCurrentHotItem ()
 
void OnClickButtonHotItem ()
 
void ModSelected (int a)
 
int GetNextSelectableIndex ()
 
int GetPrevSelectableIndex ()
 
void Reselect ()
 
void Select (int index, bool fromHotkey=false)
 
void RefreshHighlight ()
 
override bool CanShowContextMenu ()
 
override void OnSetContextMenu (UIContextMenu m)
 
- 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 OnChangeActionMode ()
 
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 RefreshCurrentHotItem ()
 
- Static Public Member Functions inherited from EMono
static int rnd (int a)
 

Public Attributes

ButtonHotItem buttonHotItem
 
UIButton buttonSwitchPage
 
Image iconHeld
 
Image imageHighlight
 
UIList list
 
int maxSlots = 9
 
List< Thinggrid = new List<Thing>(new Thing[20])
 
UIPlaceHelper placer
 
GridLayoutGroup layout
 
int selected = -1
 
int selectedPage
 
- Public Attributes inherited from Widget
Image imageBG
 
SoundData soundActivate
 
UIDragPanel dragPanel
 
RectTransform tipPivotLeft
 
RectTransform tipPivotRight
 

Static Public Attributes

const int SlotsPerPage = 10
 
const int MaxPage = 2
 
static WidgetCurrentTool Instance
 
static bool dirty
 
- Static Public Attributes inherited from EMono
static Core core
 

Properties

WidgetCurrentTool.Extra extra [get]
 
int page [get, set]
 
ButtonGrid selectedButton [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 8 of file WidgetCurrentTool.cs.

Member Function Documentation

◆ _RefreshCurrentHotItem()

void WidgetCurrentTool._RefreshCurrentHotItem ( )

Definition at line 162 of file WidgetCurrentTool.cs.

◆ CanShowContextMenu()

override bool WidgetCurrentTool.CanShowContextMenu ( )
virtual

Reimplemented from Widget.

Definition at line 299 of file WidgetCurrentTool.cs.

◆ CheckDirty()

void WidgetCurrentTool.CheckDirty ( )

Definition at line 131 of file WidgetCurrentTool.cs.

◆ CreateExtra()

override object WidgetCurrentTool.CreateExtra ( )
virtual

Reimplemented from Widget.

Definition at line 11 of file WidgetCurrentTool.cs.

◆ GetNextSelectableIndex()

int WidgetCurrentTool.GetNextSelectableIndex ( )

Definition at line 211 of file WidgetCurrentTool.cs.

◆ GetPrevSelectableIndex()

int WidgetCurrentTool.GetPrevSelectableIndex ( )

Definition at line 222 of file WidgetCurrentTool.cs.

◆ ModSelected()

void WidgetCurrentTool.ModSelected ( int a)

Definition at line 203 of file WidgetCurrentTool.cs.

◆ OnActivate()

override void WidgetCurrentTool.OnActivate ( )
virtual

Reimplemented from Widget.

Definition at line 42 of file WidgetCurrentTool.cs.

◆ OnClickButtonHotItem()

void WidgetCurrentTool.OnClickButtonHotItem ( )

Definition at line 179 of file WidgetCurrentTool.cs.

◆ OnSetContextMenu()

override void WidgetCurrentTool.OnSetContextMenu ( UIContextMenu m)
virtual

Reimplemented from Widget.

Definition at line 306 of file WidgetCurrentTool.cs.

◆ RebuildSlots()

void WidgetCurrentTool.RebuildSlots ( )

Definition at line 58 of file WidgetCurrentTool.cs.

◆ RefreshCurrentHotItem()

static void WidgetCurrentTool.RefreshCurrentHotItem ( )
static

Definition at line 142 of file WidgetCurrentTool.cs.

◆ RefreshHighlight()

void WidgetCurrentTool.RefreshHighlight ( )

Definition at line 284 of file WidgetCurrentTool.cs.

◆ Reselect()

void WidgetCurrentTool.Reselect ( )

Definition at line 233 of file WidgetCurrentTool.cs.

◆ Select()

void WidgetCurrentTool.Select ( int index,
bool fromHotkey = false )

Definition at line 239 of file WidgetCurrentTool.cs.

◆ SwitchPage()

void WidgetCurrentTool.SwitchPage ( )

Definition at line 151 of file WidgetCurrentTool.cs.

Member Data Documentation

◆ buttonHotItem

ButtonHotItem WidgetCurrentTool.buttonHotItem

Definition at line 335 of file WidgetCurrentTool.cs.

◆ buttonSwitchPage

UIButton WidgetCurrentTool.buttonSwitchPage

Definition at line 338 of file WidgetCurrentTool.cs.

◆ dirty

bool WidgetCurrentTool.dirty
static

Definition at line 350 of file WidgetCurrentTool.cs.

◆ grid

List<Thing> WidgetCurrentTool.grid = new List<Thing>(new Thing[20])

Definition at line 356 of file WidgetCurrentTool.cs.

◆ iconHeld

Image WidgetCurrentTool.iconHeld

Definition at line 341 of file WidgetCurrentTool.cs.

◆ imageHighlight

Image WidgetCurrentTool.imageHighlight

Definition at line 344 of file WidgetCurrentTool.cs.

◆ Instance

WidgetCurrentTool WidgetCurrentTool.Instance
static

Definition at line 332 of file WidgetCurrentTool.cs.

◆ layout

GridLayoutGroup WidgetCurrentTool.layout

Definition at line 362 of file WidgetCurrentTool.cs.

◆ list

UIList WidgetCurrentTool.list

Definition at line 347 of file WidgetCurrentTool.cs.

◆ MaxPage

const int WidgetCurrentTool.MaxPage = 2
static

Definition at line 329 of file WidgetCurrentTool.cs.

◆ maxSlots

int WidgetCurrentTool.maxSlots = 9

Definition at line 353 of file WidgetCurrentTool.cs.

◆ placer

UIPlaceHelper WidgetCurrentTool.placer

Definition at line 359 of file WidgetCurrentTool.cs.

◆ selected

int WidgetCurrentTool.selected = -1

Definition at line 365 of file WidgetCurrentTool.cs.

◆ selectedPage

int WidgetCurrentTool.selectedPage

Definition at line 368 of file WidgetCurrentTool.cs.

◆ SlotsPerPage

const int WidgetCurrentTool.SlotsPerPage = 10
static

Definition at line 326 of file WidgetCurrentTool.cs.

Property Documentation

◆ extra

WidgetCurrentTool.Extra WidgetCurrentTool.extra
get

Definition at line 18 of file WidgetCurrentTool.cs.

◆ page

int WidgetCurrentTool.page
getset

Definition at line 29 of file WidgetCurrentTool.cs.

◆ selectedButton

ButtonGrid WidgetCurrentTool.selectedButton
get

Definition at line 194 of file WidgetCurrentTool.cs.


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