Elin Modding Docs Doc
Loading...
Searching...
No Matches
ItemGeneral Class Reference
Inheritance diagram for ItemGeneral:
IPrefImage

Public Member Functions

void SetChara (Chara c)
 
RenderRow GetRenderRow ()
 
void OnRefreshPref ()
 
void Clear ()
 
UIButton AddSubButton (Sprite sprite, Action action, string lang=null, Action< UITooltip > onTooltip=null)
 
void SetMainText (string lang, Sprite sprite=null, bool disableMask=true)
 
UIButton SetSubText (string lang, int x, FontColor c=FontColor.Default, TextAnchor align=TextAnchor.MiddleLeft)
 
UIButton SetSubText2 (string lang, FontColor c=FontColor.Default, TextAnchor align=TextAnchor.MiddleRight)
 
AddPrefab< T > (string id)
 
void SetSound (SoundData data=null)
 
void DisableIcon ()
 
void DisableMask ()
 
void Build ()
 
- Public Member Functions inherited from IPrefImage

Public Attributes

LayoutGroup layout
 
int paddingSubText = 50
 
Card card
 

Detailed Description

Definition at line 6 of file ItemGeneral.cs.

Member Function Documentation

◆ AddPrefab< T >()

T ItemGeneral.AddPrefab< T > ( string id)
Type Constraints
T :Component 

Definition at line 128 of file ItemGeneral.cs.

◆ AddSubButton()

UIButton ItemGeneral.AddSubButton ( Sprite sprite,
Action action,
string lang = null,
Action< UITooltip > onTooltip = null )

Definition at line 62 of file ItemGeneral.cs.

◆ Build()

void ItemGeneral.Build ( )

Definition at line 157 of file ItemGeneral.cs.

◆ Clear()

void ItemGeneral.Clear ( )

Definition at line 46 of file ItemGeneral.cs.

◆ DisableIcon()

void ItemGeneral.DisableIcon ( )

Definition at line 140 of file ItemGeneral.cs.

◆ DisableMask()

void ItemGeneral.DisableMask ( )

Definition at line 151 of file ItemGeneral.cs.

◆ GetRenderRow()

RenderRow ItemGeneral.GetRenderRow ( )

Implements IPrefImage.

Definition at line 26 of file ItemGeneral.cs.

◆ OnRefreshPref()

void ItemGeneral.OnRefreshPref ( )

Implements IPrefImage.

Definition at line 37 of file ItemGeneral.cs.

◆ SetChara()

void ItemGeneral.SetChara ( Chara c)

Definition at line 9 of file ItemGeneral.cs.

◆ SetMainText()

void ItemGeneral.SetMainText ( string lang,
Sprite sprite = null,
bool disableMask = true )

Definition at line 88 of file ItemGeneral.cs.

◆ SetSound()

void ItemGeneral.SetSound ( SoundData data = null)

Definition at line 134 of file ItemGeneral.cs.

◆ SetSubText()

UIButton ItemGeneral.SetSubText ( string lang,
int x,
FontColor c = FontColor::Default,
TextAnchor align = TextAnchor::MiddleLeft )

Definition at line 108 of file ItemGeneral.cs.

◆ SetSubText2()

UIButton ItemGeneral.SetSubText2 ( string lang,
FontColor c = FontColor::Default,
TextAnchor align = TextAnchor::MiddleRight )

Definition at line 119 of file ItemGeneral.cs.

Member Data Documentation

◆ card

Card ItemGeneral.card

Definition at line 182 of file ItemGeneral.cs.

◆ layout

LayoutGroup ItemGeneral.layout

Definition at line 176 of file ItemGeneral.cs.

◆ paddingSubText

int ItemGeneral.paddingSubText = 50

Definition at line 179 of file ItemGeneral.cs.


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