Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
SkinConfig Class Reference

Public Member Functions

 SkinConfig ()
 
 SkinConfig (SkinSet __skin)
 
void SetID (int _id)
 
void SetID ()
 

Public Attributes

List< SkinDecodecos = new List<SkinDeco>()
 
int[] ints = new int[10]
 
int id
 
SkinSet _Skin
 

Properties

int bg [get, set]
 
int bgSize [get, set]
 
int grid [get, set]
 
int button [get, set]
 
Color bgColor [get, set]
 
Color gridColor [get, set]
 
SkinSet Skin [get]
 
SkinAsset_BG BG [get]
 
SpriteAsset Grid [get]
 
SkinAsset_Button Button [get]
 

Detailed Description

Definition at line 6 of file SkinConfig.cs.

Constructor & Destructor Documentation

◆ SkinConfig() [1/2]

SkinConfig.SkinConfig ( )
inline

Definition at line 121 of file SkinConfig.cs.

122 {
123 }

◆ SkinConfig() [2/2]

SkinConfig.SkinConfig ( SkinSet  __skin)
inline

Definition at line 125 of file SkinConfig.cs.

126 {
127 _Skin = __skin;
128 bg = (grid = (button = 0));
129 bgColor = BG.color;
131 }
int button
Definition: SkinConfig.cs:55
SpriteAsset Grid
Definition: SkinConfig.cs:106
SkinAsset_BG BG
Definition: SkinConfig.cs:93
Color bgColor
Definition: SkinConfig.cs:67
SkinSet _Skin
Definition: SkinConfig.cs:16
Color gridColor
Definition: SkinConfig.cs:79
Color color
Definition: SpriteAsset.cs:7

References _Skin, bg, BG, bgColor, button, SkinAsset_Sprite.color, SpriteAsset.color, grid, Grid, and gridColor.

Member Function Documentation

◆ SetID() [1/2]

void SkinConfig.SetID ( )
inline

Definition at line 144 of file SkinConfig.cs.

145 {
146 bgColor = BG.color;
148 }

References BG, bgColor, SkinAsset_Sprite.color, SpriteAsset.color, Grid, and gridColor.

◆ SetID() [2/2]

void SkinConfig.SetID ( int  _id)
inline

Definition at line 133 of file SkinConfig.cs.

134 {
135 id = _id;
136 int num2 = (button = 0);
137 int num4 = (grid = num2);
138 bg = num4;
139 _Skin = null;
140 bgColor = BG.color;
142 }

References _Skin, bg, BG, bgColor, button, SkinAsset_Sprite.color, SpriteAsset.color, grid, Grid, and gridColor.

Referenced by WidgetManager.OnGameInstantiated(), Widget.SetSkin(), and Widget.TestSkin().

Member Data Documentation

◆ _Skin

SkinSet SkinConfig._Skin

Definition at line 16 of file SkinConfig.cs.

Referenced by SetID(), and SkinConfig().

◆ decos

List<SkinDeco> SkinConfig.decos = new List<SkinDeco>()

Definition at line 9 of file SkinConfig.cs.

Referenced by Widget.Activate(), Widget.AddDeco(), and Widget.RemoveDeco().

◆ id

int SkinConfig.id

◆ ints

int [] SkinConfig.ints = new int[10]

Definition at line 12 of file SkinConfig.cs.

Property Documentation

◆ bg

int SkinConfig.bg
getset

Definition at line 18 of file SkinConfig.cs.

19 {
20 get
21 {
22 return ints[1];
23 }
24 set
25 {
26 ints[1] = value;
27 }
28 }
int[] ints
Definition: SkinConfig.cs:12

Referenced by SkinRoot.ApplySkin(), WidgetMainText.OnSetContextMenu(), Widget.SetBaseContextMenu(), SetID(), and SkinConfig().

◆ BG

SkinAsset_BG SkinConfig.BG
get

Definition at line 92 of file SkinConfig.cs.

93 {
94 get
95 {
96 SkinAsset_BG skinAsset_BG = Skin.bgs[bg];
97 return skinAsset_BG.redirect switch
98 {
99 SkinAssetRedirect.BG1 => SkinManager.CurrentSkin.assets.BG1,
100 SkinAssetRedirect.BG2 => SkinManager.CurrentSkin.assets.BG2,
101 _ => skinAsset_BG,
102 };
103 }
104 }
SkinSet Skin
Definition: SkinConfig.cs:90
static SkinRootStatic CurrentSkin
Definition: SkinManager.cs:82
List< SkinAsset_BG > bgs
Definition: SkinSet.cs:8

Referenced by SkinRoot.ApplySkin(), SkinRoot.GetColors(), SetID(), Widget.SetSkin(), and SkinConfig().

◆ bgColor

Color SkinConfig.bgColor
getset

Definition at line 66 of file SkinConfig.cs.

67 {
68 get
69 {
70 return IntColor.FromInt(ints[5]);
71 }
72 set
73 {
74 ints[5] = IntColor.ToInt(ref value);
75 }
76 }
static int ToInt(ref Color c)
Definition: IntColor.cs:24
static Color32 FromInt(int i)
Definition: IntColor.cs:15

Referenced by SkinRoot.ApplySkin(), WidgetMainText.OnSetContextMenu(), Widget.SetBaseContextMenu(), SetID(), SkinConfig(), and WidgetHotbar.ToggleVisible().

◆ bgSize

int SkinConfig.bgSize
getset

Definition at line 30 of file SkinConfig.cs.

31 {
32 get
33 {
34 return ints[2];
35 }
36 set
37 {
38 ints[2] = value;
39 }
40 }

Referenced by SkinRoot.ApplySkin(), and Widget.SetBaseContextMenu().

◆ button

int SkinConfig.button
getset

Definition at line 54 of file SkinConfig.cs.

55 {
56 get
57 {
58 return ints[4];
59 }
60 set
61 {
62 ints[4] = value;
63 }
64 }

Referenced by SetID(), and SkinConfig().

◆ Button

SkinAsset_Button SkinConfig.Button
get

Definition at line 108 of file SkinConfig.cs.

109 {
110 get
111 {
112 SkinAsset_Button skinAsset_Button = Skin.buttons[button];
113 if (skinAsset_Button.redirect == SkinAssetRedirect.Button1)
114 {
116 }
117 return skinAsset_Button;
118 }
119 }
SkinAssetRedirect
SkinAssetRedirect redirect
Definition: SkinAsset.cs:5
SkinAsset_Button Button1
List< SkinAsset_Button > buttons
Definition: SkinSet.cs:10

Referenced by SkinRoot.GetButton().

◆ grid

int SkinConfig.grid
getset

Definition at line 42 of file SkinConfig.cs.

43 {
44 get
45 {
46 return ints[3];
47 }
48 set
49 {
50 ints[3] = value;
51 }
52 }

Referenced by Widget.SetGridContextMenu(), SetID(), and SkinConfig().

◆ Grid

SpriteAsset SkinConfig.Grid
get

Definition at line 106 of file SkinConfig.cs.

Referenced by SkinRoot.ApplySkin(), Widget.SetGridContextMenu(), SetID(), and SkinConfig().

◆ gridColor

Color SkinConfig.gridColor
getset

Definition at line 78 of file SkinConfig.cs.

79 {
80 get
81 {
82 return IntColor.FromInt(ints[6]);
83 }
84 set
85 {
86 ints[6] = IntColor.ToInt(ref value);
87 }
88 }

Referenced by SkinRoot.ApplySkin(), WidgetCurrentTool.RebuildSlots(), Widget.SetGridContextMenu(), SetID(), SkinConfig(), and WidgetHotbar.ToggleVisible().

◆ Skin

SkinSet SkinConfig.Skin
get

Definition at line 90 of file SkinConfig.cs.


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