Elin Decompiled Documentation EA 23.102 Nightly
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
GridItemCardSource Class Reference
Inheritance diagram for GridItemCardSource:
GridItem EClass

Public Member Functions

override void SetButton (ButtonGrid b)
 
- Public Member Functions inherited from GridItem
virtual void SetButton (ButtonGrid b)
 
virtual void OnClick (ButtonGrid b)
 
virtual void AutoAdd ()
 

Public Attributes

CardRow source
 
Thing thing
 

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)
 
- Static Public Attributes inherited from EClass
static Core core
 
- 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]
 

Detailed Description

Definition at line 1 of file GridItemCardSource.cs.

Member Function Documentation

◆ SetButton()

override void GridItemCardSource.SetButton ( ButtonGrid  b)
inlinevirtual

Reimplemented from GridItem.

Definition at line 7 of file GridItemCardSource.cs.

8 {
9 b.mainText.SetActive(enable: false);
10 if (thing != null)
11 {
13 b.SetTooltip("note", delegate(UITooltip t)
14 {
16 });
17 }
18 else
19 {
21 }
22 }
void SetImage(Image image, int dir, int idSkin=0)
Definition: Card.cs:5355
void SetImage(Image image, Sprite sprite=null, int matCol=0, bool setNativeSize=true, int dir=0, int idSkin=0)
Definition: RenderRow.cs:346
override void WriteNote(UINote n, Action< UINote > onWriteNote=null, IInspect.NoteMode mode=IInspect.NoteMode.Default, Recipe recipe=null)
Definition: Thing.cs:837
Image icon
Definition: UIButton.cs:110
UIText mainText
Definition: UIButton.cs:102
void SetTooltip(Action< UITooltip > onShowTooltip=null, bool enable=true)
Definition: UIButton.cs:361
UINote note
Definition: UITooltip.cs:21

References UIButton.icon, UIButton.mainText, UITooltip.note, Card.SetImage(), RenderRow.SetImage(), UIButton.SetTooltip(), source, thing, and Thing.WriteNote().

Member Data Documentation

◆ source

CardRow GridItemCardSource.source

Definition at line 3 of file GridItemCardSource.cs.

Referenced by SetButton().

◆ thing

Thing GridItemCardSource.thing

Definition at line 5 of file GridItemCardSource.cs.

Referenced by SetButton().


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