Elin Decompiled Documentation EA 23.102 Nightly
|
Classes | |
class | Extra |
Static Public Member Functions | |
static void | RefreshCurrentHotItem () |
![]() | |
static int | rnd (int a) |
Public Attributes | |
ButtonHotItem | buttonHotItem |
UIButton | buttonSwitchPage |
Image | iconHeld |
Image | imageHighlight |
UIList | list |
int | maxSlots = 9 |
List< Thing > | grid = new List<Thing>(new Thing[20]) |
UIPlaceHelper | placer |
GridLayoutGroup | layout |
Transform | transHighlightSwitch |
int | selected = -1 |
int | selectedPage |
![]() | |
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 Core | core |
Properties | |
Extra | extra [get] |
int | page [get, set] |
ButtonGrid | selectedButton [get] |
![]() | |
string | ID [get] |
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] |
![]() | |
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] |
Private Member Functions | |
void | Update () |
Additional Inherited Members | |
![]() | |
enum | WidgetType { Default , ZoomMenu } |
enum | State { Active , Inactive } |
![]() | |
void | ClampToScreenEnsured (Component c, Vector2 anchoredPos) |
void | ClampToScreen (RectTransform rect, float margin=10f) |
![]() | |
bool | flip |
Definition at line 5 of file WidgetCurrentTool.cs.
|
inline |
Definition at line 189 of file WidgetCurrentTool.cs.
References buttonHotItem, Player.currentHotItem, Player.hotItemNoItem, UIButton.icon, iconHeld, EMono.player, ButtonHotItem.Refresh(), RefreshHighlight(), and HotItem.SetImage().
Referenced by CheckDirty(), OnActivate(), RefreshCurrentHotItem(), and SwitchPage().
|
inlinevirtual |
Reimplemented from Widget.
Definition at line 308 of file WidgetCurrentTool.cs.
References buttonHotItem.
|
inline |
Definition at line 161 of file WidgetCurrentTool.cs.
References _RefreshCurrentHotItem(), dirty, list, and UIList.Redraw().
Referenced by LayerInventory.SetDirtyAll(), SwitchPage(), and Update().
|
inlinevirtual |
Reimplemented from Widget.
Definition at line 64 of file WidgetCurrentTool.cs.
|
inline |
Definition at line 225 of file WidgetCurrentTool.cs.
References maxSlots, and selected.
Referenced by ModSelected().
|
inline |
Definition at line 235 of file WidgetCurrentTool.cs.
References maxSlots, and selected.
Referenced by ModSelected().
|
inline |
Definition at line 218 of file WidgetCurrentTool.cs.
References GetNextSelectableIndex(), GetPrevSelectableIndex(), and Select().
Referenced by AM_Adv._OnUpdateInput().
|
inlinevirtual |
Reimplemented from Widget.
Definition at line 69 of file WidgetCurrentTool.cs.
References _RefreshCurrentHotItem(), Widget.ApplySkin(), buttonHotItem, buttonSwitchPage, dirty, Player.flags, Instance, OnClickButtonHotItem(), page, placer, EMono.player, RebuildSlots(), UIPlaceHelper.Refresh(), SwitchPage(), Player.Flags.toggleHotbarHighlightDisabled, and transHighlightSwitch.
|
inline |
Definition at line 205 of file WidgetCurrentTool.cs.
References ButtonGrid.card, Player.currentHotItem, EMono.player, Select(), selected, selectedButton, and HotItem.Thing.
Referenced by OnActivate().
|
inlinevirtual |
Reimplemented from Widget.
Definition at line 318 of file WidgetCurrentTool.cs.
References UIContextMenu.AddChild(), UIContextMenu.AddSlider(), extra, WidgetCurrentTool.Extra.iconSize, RebuildSlots(), Widget.SetBaseContextMenu(), Widget.SetGridContextMenu(), and WidgetCurrentTool.Extra.showShortcut.
|
inline |
Definition at line 90 of file WidgetCurrentTool.cs.
References UIList.Add(), UIList.buttons, Widget.ClampToScreen(), UIList.Clear(), Debug, dirty, extra, grid, SkinConfig.gridColor, WidgetCurrentTool.Extra.iconSize, GameSetting.UISetting.iconSizes, imageHighlight, Card.invX, Card.invY, list, maxSlots, Card.Name, page, EMono.pc, UIList.Redraw(), UIList.Refresh(), RefreshHighlight(), ButtonGrid.SetCardGrid(), UIText.SetText(), EMono.setting, WidgetCurrentTool.Extra.showShortcut, UIButton.subText2, Card.things, LayerInventory.TryShowGuide(), and GameSetting.ui.
Referenced by OnActivate(), and OnSetContextMenu().
|
inlinestatic |
Definition at line 171 of file WidgetCurrentTool.cs.
References _RefreshCurrentHotItem(), and Instance.
Referenced by Card.OnChildNumChange(), ConReload.OnRemoved(), Player.RefreshCurrentHotItem(), and LayerAbility.SetDirty().
|
inline |
Definition at line 294 of file WidgetCurrentTool.cs.
References ButtonGrid.card, Player.currentHotItem, imageHighlight, EMono.player, selected, selectedButton, and HotItem.Thing.
Referenced by _RefreshCurrentHotItem(), RebuildSlots(), and Select().
|
inline |
Definition at line 245 of file WidgetCurrentTool.cs.
References Select(), and selected.
Referenced by InvOwnerHotbar.OnProcess().
|
inline |
Definition at line 250 of file WidgetCurrentTool.cs.
References ActionMode.Adv, UIList.buttons, Player.CanAcceptInput(), TraitCatalyst.CanUse(), ButtonGrid.card, Core.config, EMono.core, Player.EndTurn(), CoreConfig.game, Trait.GetHotItem(), ActionMode.IsActive, list, maxSlots, TraitCatalyst.OnUse(), page, EMono.pc, EMono.player, RefreshHighlight(), Player.ResetCurrentHotItem(), selected, selectedButton, selectedPage, Player.SetCurrentHotItem(), Card.trait, AM_Adv.UpdatePlans(), and CoreConfig.GameConfig.useAbilityOnHotkey.
Referenced by AM_Adv._OnUpdateInput(), ModSelected(), InvOwnerHotbar.OnClick(), OnClickButtonHotItem(), InvOwnerHotbar.OnRightClick(), Reselect(), and ActionMode.UpdateInput().
|
inline |
Definition at line 179 of file WidgetCurrentTool.cs.
References _RefreshCurrentHotItem(), CheckDirty(), dirty, page, placer, and UIPlaceHelper.Refresh().
Referenced by ActionMode.DoFunc(), OnActivate(), and ActionMode.UpdateInput().
|
inlineprivate |
Definition at line 156 of file WidgetCurrentTool.cs.
References CheckDirty().
ButtonHotItem WidgetCurrentTool.buttonHotItem |
Definition at line 22 of file WidgetCurrentTool.cs.
Referenced by _RefreshCurrentHotItem(), CanShowContextMenu(), OnActivate(), and Player.RefreshCurrentHotItem().
UIButton WidgetCurrentTool.buttonSwitchPage |
Definition at line 24 of file WidgetCurrentTool.cs.
Referenced by OnActivate().
|
static |
Definition at line 32 of file WidgetCurrentTool.cs.
Referenced by CheckDirty(), OnActivate(), RebuildSlots(), and SwitchPage().
Definition at line 36 of file WidgetCurrentTool.cs.
Referenced by RebuildSlots().
Image WidgetCurrentTool.iconHeld |
Definition at line 26 of file WidgetCurrentTool.cs.
Referenced by _RefreshCurrentHotItem().
Image WidgetCurrentTool.imageHighlight |
Definition at line 28 of file WidgetCurrentTool.cs.
Referenced by RebuildSlots(), and RefreshHighlight().
|
static |
Definition at line 20 of file WidgetCurrentTool.cs.
Referenced by AM_Adv._OnUpdateInput(), ActPlan._Update(), ActionMode.DoFunc(), OnActivate(), LayerMiniGame.OnAfterInit(), InvOwnerHotbar.OnClick(), LayerMiniGame.OnKill(), InvOwnerHotbar.OnProcess(), InvOwnerHotbar.OnRightClick(), Player.RefreshCurrentHotItem(), RefreshCurrentHotItem(), Card.RemoveThing(), LayerAbility.SetDirty(), LayerInventory.SetDirtyAll(), and ActionMode.UpdateInput().
GridLayoutGroup WidgetCurrentTool.layout |
Definition at line 40 of file WidgetCurrentTool.cs.
UIList WidgetCurrentTool.list |
Definition at line 30 of file WidgetCurrentTool.cs.
Referenced by AM_Adv._OnUpdateInput(), CheckDirty(), RebuildSlots(), Select(), and LayerAbility.SetDirty().
|
static |
Definition at line 18 of file WidgetCurrentTool.cs.
int WidgetCurrentTool.maxSlots = 9 |
Definition at line 34 of file WidgetCurrentTool.cs.
Referenced by GetNextSelectableIndex(), GetPrevSelectableIndex(), RebuildSlots(), and Select().
UIPlaceHelper WidgetCurrentTool.placer |
Definition at line 38 of file WidgetCurrentTool.cs.
Referenced by AM_Adv._OnUpdateInput(), ActPlan._Update(), OnActivate(), and SwitchPage().
int WidgetCurrentTool.selected = -1 |
Definition at line 44 of file WidgetCurrentTool.cs.
Referenced by GetNextSelectableIndex(), GetPrevSelectableIndex(), OnClickButtonHotItem(), InvOwnerHotbar.OnProcess(), Player.RefreshCurrentHotItem(), RefreshHighlight(), Card.RemoveThing(), Reselect(), and Select().
int WidgetCurrentTool.selectedPage |
Definition at line 46 of file WidgetCurrentTool.cs.
Referenced by Select().
|
static |
Definition at line 16 of file WidgetCurrentTool.cs.
Transform WidgetCurrentTool.transHighlightSwitch |
Definition at line 42 of file WidgetCurrentTool.cs.
Referenced by OnActivate(), and InvOwnerHotbar.OnProcess().
|
get |
Definition at line 48 of file WidgetCurrentTool.cs.
Referenced by OnSetContextMenu(), and RebuildSlots().
|
getset |
Definition at line 50 of file WidgetCurrentTool.cs.
Referenced by OnActivate(), RebuildSlots(), Select(), and SwitchPage().
|
get |
Definition at line 62 of file WidgetCurrentTool.cs.
Referenced by OnClickButtonHotItem(), Player.RefreshCurrentHotItem(), RefreshHighlight(), Card.RemoveThing(), and Select().