Elin Decompiled Documentation EA 23.102 Nightly
|
Public Types | |
enum | Mode { Default , Grid , Ingredient , Recipe , RecipeGrid , Search } |
Public Member Functions | |
override string | ToString () |
T | Attach< T > (string id, bool rightAttach=true) |
Transform | Attach (string id, bool rightAttach=true) |
void | Dettach (string id) |
void | Reset () |
void | SetBodySlot (BodySlot b, InvOwner owner, bool showIndex=false) |
void | Redraw () |
void | SetCardGrid (Card c, InvOwner owner=null) |
void | SetCard (Card c, Mode mode=Mode.Default, Action< UINote > onWriteNote=null) |
void | SetArea (Area a) |
void | SetItem (GridItem i) |
void | SetObject (object o) |
void | SetDummy () |
virtual void | SetDragParent (IDragParent p) |
void | SetIngredient (Recipe r, Recipe.Ingredient _ing) |
void | SetIngredient (Recipe r, Thing t) |
void | SetRecipeVariation (UIRecipeInfo.RecipeVariation a) |
void | SetRecipe () |
void | SetRecipe (Area a) |
void | SetRecipe (Recipe r) |
void | RefreshCraftable () |
void | SetCraftRecipe (Recipe r, Mode mode, bool tooltip=false) |
void | WriteReqMat (UINote n, Recipe r) |
bool | ShowMouseHintLeft () |
string | GetTextMouseHintLeft () |
bool | ShowMouseHintRight () |
string | GetTextMouseHintRight () |
RenderRow | GetRenderRow () |
void | OnRefreshPref () |
override bool | CanMiddleClick () |
override void | OnMiddleClick (bool forceClick) |
![]() | |
virtual bool | CanMiddleClick () |
virtual void | OnMiddleClick (bool forceClick) |
void | SetItem (Item i) |
virtual void | RefreshItem () |
virtual void | OnHover () |
void | Toggle () |
void | ToggleCheck () |
void | SetCheck (bool check) |
void | SetToggle (bool isOn, Action< bool > onToggle=null) |
void | SetToggleWithScore (bool isOn, Action< bool > onToggle, int? score) |
void | SetTooltip (Action< UITooltip > onShowTooltip=null, bool enable=true) |
void | SetTooltip (string id, Action< UITooltip > onShowTooltip=null, bool enable=true) |
void | SetTooltipLang (string lang=null) |
virtual void | ShowTooltip () |
void | ShowTooltipForced (bool ignoreWhenRightClick=true) |
override void | OnPointerDown (PointerEventData eventData) |
override void | OnPointerClick (PointerEventData eventData) |
override void | OnPointerUp (PointerEventData eventData) |
void | OnPointerUpOnDrag (PointerEventData eventData) |
void | _OnPress () |
void | OnPress () |
void | AddHighlight (Func< bool > killCondition) |
void | DoHighlightTransition (bool instant=false) |
void | DoNormalTransition (bool instant=true) |
override Selectable | FindSelectableOnDown () |
override Selectable | FindSelectableOnUp () |
override Selectable | FindSelectableOnLeft () |
override Selectable | FindSelectableOnRight () |
void | SetNavigation (UIButton up, UIButton down=null, UIButton left=null, UIButton right=null) |
override bool | IsActive () |
void | SetInteractableWithAlpha (bool enable) |
virtual void | ApplySkin () |
void | ApplySkin () |
bool | ShowMouseHintLeft () |
string | GetTextMouseHintLeft () |
bool | ShowMouseHintRight () |
string | GetTextMouseHintRight () |
RenderRow | GetRenderRow () |
void | OnRefreshPref () |
Public Attributes | |
Area | area |
Recipe | recipe |
Recipe.Ingredient | ing |
Card | card |
int | index |
InvOwner | invOwner |
bool | keepBg |
List< Transform > | listAttach = new List<Transform>() |
![]() | |
UIText | mainText |
UIText | subText |
UIText | subText2 |
UIText | keyText |
Image | icon |
Image | imageCheck |
Graphic[] | targetGraphics |
float | scaleIcon = 1f |
float | slideX |
float | navigationFix |
bool | isChecked |
bool | instantClick = true |
UISelectableGroup | group |
TooltipData | tooltip |
SoundData | soundClick |
SoundData | soundHighlight |
Transform | animeTarget |
Anime | animeClick |
Anime | animeHold |
ButtonType | buttonType |
BaseSkinRoot | skinRoot |
Action | onDoubleClick |
Action | onRightClick |
Action< int > | onInputWheel |
object | refObj |
int | refInt |
string | refStr |
bool | animating |
bool | selected |
Vector3 | originalIconScale = Vector3.one |
UIButton | highlightTarget |
Item | item |
Protected Member Functions | |
override void | OnDestroy () |
![]() | |
override void | Awake () |
override void | OnEnable () |
override void | DoStateTransition (SelectionState state, bool instant) |
Properties | |
ColorProfile | Colors [get] |
Card | Card [get] |
virtual float | extFixY [get] |
![]() | |
List< Graphic > | Graphics [get] |
virtual bool | CanDragLeftButton [get] |
Private Attributes | |
int | rightAttachCount |
Additional Inherited Members | |
![]() | |
static void | UpdateButtons () |
static void | TryHihlight () |
static void | TryShowTip (Transform root=null, bool highlight=true, bool ignoreWhenRightClick=true) |
static void | TryShowTip< T > (Transform root=null, bool highlight=true, bool ignoreWhenRightClick=true) |
![]() | |
static bool | DoSlide |
static bool | locked |
static UIButton | lastButton |
static UIButton | lastHovered |
static UIButton | currentHighlight |
static UIButton | currentPressedButton |
static float | lastClicked |
static float | doubleClickTime = 0.4f |
static Vector2 | buttonPos |
static Action | onPressed |
static List< UIButton > | buttons = new List<UIButton>() |
static Action | actionTooltip |
Definition at line 6 of file ButtonGrid.cs.
enum ButtonGrid.Mode |
Enumerator | |
---|---|
Default | |
Grid | |
Ingredient | |
Recipe | |
RecipeGrid | |
Search |
Definition at line 8 of file ButtonGrid.cs.
|
inline |
Definition at line 63 of file ButtonGrid.cs.
References listAttach, rightAttachCount, and PoolManager.Spawn().
Referenced by Attach< T >(), TraitCanvas.OnSetCardGrid(), TraitContainer.OnSetCardGrid(), TraitEquipItem.OnSetCardGrid(), TraitFigure.OnSetCardGrid(), DragItemCard.OnStartDrag(), LayerCraft.RefreshCategory(), and LayerCraftFloat.RefreshCraft().
|
inline |
T | : | Component |
Definition at line 58 of file ButtonGrid.cs.
References Attach().
|
inlinevirtual |
Reimplemented from UIButton.
Definition at line 741 of file ButtonGrid.cs.
|
inline |
Definition at line 78 of file ButtonGrid.cs.
References PoolManager.Despawn(), and listAttach.
Referenced by DragItemCard.OnEndDrag(), and LayerCraft.RefreshCategory().
|
inline |
Implements IPrefImage.
Definition at line 708 of file ButtonGrid.cs.
References card.
|
inline |
Implements IMouseHint.
Definition at line 677 of file ButtonGrid.cs.
|
inline |
|
inlineprotected |
Definition at line 112 of file ButtonGrid.cs.
References Reset.
|
inlinevirtual |
Reimplemented from UIButton.
Definition at line 750 of file ButtonGrid.cs.
References InvOwner.AllowContext, card, ButtonState.clicked, Core.config, EInput.Consume(), EClass.core, CoreConfig.game, CoreConfig.GameConfig.holdMiddleButtonToHold, Trait.IsTool, EInput.middleMouse, InvOwner.ShowContextMenu(), Card.trait, InvOwner.TryHold(), and EClass.ui.
|
inline |
Implements IPrefImage.
Definition at line 725 of file ButtonGrid.cs.
References card.
|
inline |
Definition at line 140 of file ButtonGrid.cs.
References card.
Referenced by LayerDragGrid.Redraw().
|
inline |
Definition at line 576 of file ButtonGrid.cs.
References ThingStack.count, ThingContainer.GetThingStack(), EClass.pc, and Card.things.
|
inline |
Definition at line 94 of file ButtonGrid.cs.
References Color, PoolManager.Despawn(), and item.
|
inline |
Definition at line 390 of file ButtonGrid.cs.
References SpriteSheet.Get(), and Reset.
Definition at line 121 of file ButtonGrid.cs.
References Chara.body, Card.Chara, BodySlot.element, SpriteSheet.Get(), InvOwner.owner, CharaBody.SetBodyIndexText(), and BodySlot.thing.
Referenced by LayerEquip.RefreshEquipment(), and WidgetEquip.RefreshEquipment().
|
inline |
Definition at line 184 of file ButtonGrid.cs.
References Lang._weight(), UINote.AddText(), CoreRef.ButtonAssets.bgArtifact, CoreRef.ButtonAssets.bgDefault, CoreRef.ButtonAssets.bgLegendary, CoreRef.ButtonAssets.bgNew, CoreRef.ButtonAssets.bgSuperior, Card.blessedState, CoreRef.buttonAssets, Card.c_equippedSlot, Card.c_indexContainerIcon, Card.c_isImportant, TraitCatalyst.CanUse(), card, Card.ChildrenAndSelfWeight, Color, Core.config, EClass.core, Trait.GetRefElement(), Trait.GetRefSprite(), Card.GetRootCard(), SourceElement.Row.GetSprite(), Chara.held, CoreRef.icons, if(), Core.Instance, Card.invY, Card.IsContainer, Card.IsDecayed, Card.isDestroyed, Card.IsEquipmentOrRangedOrAmmo, Card.isGifted, Card.IsIdentified, Card.isNew, Card.isNPCProperty, Card.IsRotting, Card.Name, UITooltip.note, Trait.OnSetCardGrid(), EClass.pc, CoreRef.Icons.quality, Card.qualityTier, Card.rarity, Core.refs, Reset, SourceElement.Row.SetImage(), Card.SetImage(), Trait.SetMainText(), CoreConfig.Test.showRefIcon, UINote.Space(), CoreRef.spriteNoIng, CoreRef.spritesContainerIcon, CoreConfig.test, Card.trait, CoreRef.Icons.trans, and Card.WriteNote().
Referenced by InvOwnerDraglet.OnClick(), UIDragGridIngredients.Refresh(), LayerGacha.RefreshCoin(), LayerCraftFloat.RefreshDisassemble(), UIInventory.RefreshList(), WidgetSearch.RefreshList(), LayerCraft.RefreshProduct(), and LayerResource.ShowThings().
Definition at line 145 of file ButtonGrid.cs.
References EInput.Consume(), Card.isDestroyed, UIButton.TryShowTip(), and EClass.ui.
Referenced by InvOwner.Transaction.Process(), WidgetCurrentTool.RebuildSlots(), UIInventory.RefreshGrid(), LayerDragGrid.SetInv(), and LayerDragGrid.Validate().
Definition at line 585 of file ButtonGrid.cs.
References RecipeCard._mold, UINote.AddHeaderCard(), UINote.AddText(), UINote.Build(), UINote.Clear(), Recipe.GetDetail(), Recipe.GetName(), RecipeManager.hoveredRecipes, Recipe.id, Recipe.ingredients, RecipeCard.Mold, UITooltip.note, EClass.player, Player.recipes, Reset, Recipe.SetImage(), UINote.Space(), and Card.WriteNote().
Referenced by LayerCraft.RefreshCategory(), LayerCraftFloat.RefreshCraft(), and WidgetCodex.RefreshList().
|
inlinevirtual |
|
inline |
Definition at line 417 of file ButtonGrid.cs.
Referenced by GridItem.SetButton().
|
inline |
Definition at line 435 of file ButtonGrid.cs.
References UINote.AddText(), UINote.Build(), SourceManager.cards, UINote.Clear(), Color, RecipeSource.colorIng, HitSummary.countValid, Card.GetRootCard(), Recipe.ingredients, Core.Instance, LayerCraft.Instance, SourceCard.map, UITooltip.note, Card.Num, LayerCraft.OnChangeIngredient(), Recipe.OnChangeIngredient(), EClass.pc, Recipe.SaveLastIngredients(), Core.screen, Recipe.source, EClass.sources, UINote.Space(), BaseTileSelector.summary, and BaseGameScreen.tileSelector.
Referenced by DropdownGrid.Activate(), and DropdownGrid.BuildIngredients().
Definition at line 505 of file ButtonGrid.cs.
References Card.GetRootCard(), Card.Num, and EClass.pc.
|
inline |
Definition at line 398 of file ButtonGrid.cs.
References Reset, and GridItem.SetButton().
Referenced by Dialog.OnAfterInit(), WidgetHotbar.RebuildPage(), and WidgetHotbar.SetItem().
|
inline |
Definition at line 405 of file ButtonGrid.cs.
Referenced by LayerInteraction.Show().
|
inline |
Definition at line 533 of file ButtonGrid.cs.
Referenced by AM_Build.OnFinishProcessTiles(), BuildMenu.RefreshCategory(), and BuildMenu.RefreshCategoryArea().
|
inline |
Definition at line 538 of file ButtonGrid.cs.
References Core.Instance, Core.refs, Reset, and CoreRef.spriteArea.
|
inline |
Definition at line 547 of file ButtonGrid.cs.
References SkinColorProfile.buttonGrid, SkinManager.CurrentColors, Recipe.GetDefaultColor(), Recipe.idSkin, Trait.IdSkin, Recipe.ingredients, Card.Num, EClass.pc, Recipe.renderRow, Reset, Card.SetImage(), RenderRow.SetImage(), Card.trait, Recipe.UseStock, and Recipe.VirtualBlock.
|
inline |
Definition at line 518 of file ButtonGrid.cs.
References RenderRow.GetColorInt(), Recipe.GetColorMaterial(), Recipe.idSkin, Recipe.ingredients, Recipe.renderRow, Reset, RenderRow.SetImage(), Recipe.UseStock, and Recipe.VirtualBlock.
Referenced by UIRecipeInfo.Refresh().
|
inline |
Implements IMouseHint.
Definition at line 664 of file ButtonGrid.cs.
References card.
|
inline |
Implements IMouseHint.
Definition at line 694 of file ButtonGrid.cs.
References card.
|
inline |
Definition at line 646 of file ButtonGrid.cs.
References EClass._map, UINote.AddHeaderTopic(), UINote.AddText(), Color, ThingStack.count, SkinManager.CurrentColors, Recipe.ingredients, Props.ListThingStack(), UIText.SetSize(), Map.Stocked, UIItem.text1, SkinColorProfile.textBad, SkinColorProfile.textGood, Recipe.WriteReqFactory(), and Recipe.WriteReqSkill().
Area ButtonGrid.area |
Definition at line 18 of file ButtonGrid.cs.
Referenced by BuildMenu.Refresh().
Card ButtonGrid.card |
Definition at line 24 of file ButtonGrid.cs.
Referenced by InvOwner.AutoUse(), InvOwner.CanAltClick(), InvOwner.CanCtrlClick(), InvOwner.CanShiftClick(), DragItemCard.DragInfo.DragInfo(), InvOwner.GetAutoUseLang(), InvOwnerAlly.GetAutoUseLang(), InvOwner.GetShitDestOwner(), InvOwner.ListInteractions(), InvOwner.OnAltClick(), InvOwner.OnClick(), InvOwnerDraglet.OnClick(), WidgetCurrentTool.OnClickButtonHotItem(), InvOwner.OnCtrlClick(), InvOwner.OnRightClick(), InvOwner.OnRightPressed(), InvOwner.OnShiftClick(), InvOwner.OnWriteNote(), InvOwnerEquip.OnWriteNote(), InvOwnerAlly.Process(), ButtonHotItem.Refresh(), Player.RefreshCurrentHotItem(), WidgetCurrentTool.RefreshHighlight(), Card.RemoveThing(), WidgetCurrentTool.Select(), LayerAbility.SetDirty(), Thing.ShowSplitMenu(), Thing.ShowSplitMenu2(), ToString(), UIDragGridIngredients.Update(), ActionMode.UpdateInput(), and LayerDragGrid.Validate().
int ButtonGrid.index |
Definition at line 26 of file ButtonGrid.cs.
Referenced by DragItemCard.DragInfo.DragInfo(), InvOwner.Transaction.IsValid(), InvOwnerDraglet.OnClick(), LayerAbility.SetDirty(), and ActionMode.UpdateInput().
Recipe.Ingredient ButtonGrid.ing |
Definition at line 22 of file ButtonGrid.cs.
Referenced by DropdownGrid.TrySelect().
InvOwner ButtonGrid.invOwner |
Definition at line 28 of file ButtonGrid.cs.
Referenced by InvOwner.CanShiftClick(), DragItemCard.DragInfo.DragInfo(), InvOwner.GetShitDestOwner(), InvOwner.OnClick(), DragItemCard.OnDrag(), ELayer.OnRightClick(), InvOwner.Transaction.Process(), Thing.ShowSplitMenu(), InvOwner.Transaction.Transaction(), and ActionMode.UpdateInput().
bool ButtonGrid.keepBg |
Definition at line 30 of file ButtonGrid.cs.
List<Transform> ButtonGrid.listAttach = new List<Transform>() |
Definition at line 33 of file ButtonGrid.cs.
Recipe ButtonGrid.recipe |
Definition at line 20 of file ButtonGrid.cs.
Referenced by BuildMenu.Refresh(), BuildMenu.Select(), and LayerCraftFloat.Update().
|
private |
Definition at line 35 of file ButtonGrid.cs.
Referenced by Attach().
|
get |
Definition at line 39 of file ButtonGrid.cs.
|
get |
Definition at line 37 of file ButtonGrid.cs.
|
get |
Definition at line 51 of file ButtonGrid.cs.