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

Classes

class  Assets
 
class  BG
 
class  Positions
 
class  SkinColors
 

Public Member Functions

SkinRootStatic GetSkin (SkinType type)
 
override SkinColorProfile GetColors (SkinType type)
 
override void ApplySkin (UIImage t)
 
- Public Member Functions inherited from BaseSkinRoot
virtual SkinColorProfile GetColors (SkinType type)
 
virtual void ApplySkin (UIImage t)
 
virtual void ApplySkin (UIRawImage t)
 
virtual void ApplySkin (UIText t, FontSource f)
 
virtual SkinAsset_Button GetButton ()
 

Public Attributes

SkinColors colors
 
SkinColorProfileEx colorsEx
 
bool darkSkin
 
bool textShadow
 
bool generateWideSprite
 
bool useDeco
 
bool useFrame
 
bool captionOutline
 
bool captionBG
 
bool alwaysShadow
 
bool noShadow
 
Color textShadowColor
 
Color shadowColor
 
Texture2D skinTexture
 
float bgAlpha
 
float bgAlpha2
 
float transparency
 
Assets assets
 
Positions positions
 

Properties

override SkinColorProfile Colors [get]
 
override SkinColorProfileEx ColorsEx [get]
 
- Properties inherited from BaseSkinRoot
string Name [get]
 
virtual SkinColorProfile Colors [get]
 
virtual SkinColorProfileEx ColorsEx [get]
 

Private Attributes

Sprite spriteWide
 

Detailed Description

Definition at line 4 of file SkinRootStatic.cs.

Member Function Documentation

◆ ApplySkin()

override void SkinRootStatic.ApplySkin ( UIImage  t)
inlinevirtual

Reimplemented from BaseSkinRoot.

Definition at line 131 of file SkinRootStatic.cs.

132 {
133 switch (t.imageType)
134 {
135 case ImageType.BG_Window:
136 t.sprite = assets.bgWindow.sprite;
137 t.color = assets.bgWindow.color;
138 if (t.useSkinSize)
139 {
140 t.Rect().sizeDelta = assets.bgWindow.size;
141 }
142 break;
143 case ImageType.BG_Window_Slim:
144 t.sprite = assets.bgWindowSlim.sprite;
145 t.color = assets.bgWindowSlim.color;
146 if (t.useSkinSize)
147 {
148 t.Rect().sizeDelta = assets.bgWindowSlim.size;
149 }
150 break;
151 case ImageType.BG_Window_Board:
152 t.sprite = assets.bgWindowBoard.sprite;
153 t.color = assets.bgWindowBoard.color;
154 if (t.useSkinSize)
155 {
156 t.Rect().sizeDelta = assets.bgWindowBoard.size;
157 }
158 break;
159 case ImageType.BG_Inner:
160 t.sprite = assets.bgInner.sprite;
161 t.color = assets.bgInner.color;
162 if (t.useSkinSize)
163 {
164 t.Rect().sizeDelta = assets.bgInner.size;
165 }
166 break;
167 case ImageType.BG_Dialog:
168 t.sprite = assets.bgDialog.sprite;
169 t.color = assets.bgDialog.color;
170 if (t.useSkinSize)
171 {
172 t.Rect().sizeDelta = assets.bgDialog.size;
173 }
174 break;
175 case ImageType.BG_Tooltip:
176 t.sprite = assets.bgTooltip.sprite;
177 t.color = assets.bgTooltip.color;
178 if (t.useSkinSize)
179 {
180 t.Rect().sizeDelta = assets.bgTooltip.size;
181 }
182 break;
183 case ImageType.BG_TooltipAlt:
184 t.sprite = assets.bgTooltipAlt.sprite;
185 t.color = assets.bgTooltipAlt.color;
186 if (t.useSkinSize)
187 {
188 t.Rect().sizeDelta = assets.bgTooltipAlt.size;
189 }
190 break;
191 case ImageType.BG_Context:
192 t.sprite = assets.bgContext.sprite;
193 t.color = assets.bgContext.color;
194 if (t.useSkinSize)
195 {
196 t.Rect().sizeDelta = assets.bgContext.size;
197 }
198 break;
199 }
200 if (!t.sprite)
201 {
202 t.sprite = assets.bgWindow.sprite;
203 }
204 }
ImageType
Definition: ImageType.cs:2
bool useSkinSize
Definition: UIImage.cs:6
ImageType imageType
Definition: UIImage.cs:8

References assets, SkinRootStatic.Assets.bgContext, SkinRootStatic.Assets.bgDialog, SkinRootStatic.Assets.bgInner, SkinRootStatic.Assets.bgTooltip, SkinRootStatic.Assets.bgTooltipAlt, SkinRootStatic.Assets.bgWindow, SkinRootStatic.Assets.bgWindowBoard, SkinRootStatic.Assets.bgWindowSlim, SkinRootStatic.BG.color, UIImage.imageType, SkinRootStatic.BG.size, SkinRootStatic.BG.sprite, and UIImage.useSkinSize.

Referenced by ContentConfigTest.OnInstantiate().

◆ GetColors()

override SkinColorProfile SkinRootStatic.GetColors ( SkinType  type)
inlinevirtual

Reimplemented from BaseSkinRoot.

Definition at line 126 of file SkinRootStatic.cs.

127 {
128 return GetSkin(type).colors._default;
129 }
SkinColorProfile _default
SkinRootStatic GetSkin(SkinType type)
SkinColors colors

References SkinRootStatic.SkinColors._default, colors, and GetSkin().

◆ GetSkin()

SkinRootStatic SkinRootStatic.GetSkin ( SkinType  type)
inline

Definition at line 114 of file SkinRootStatic.cs.

115 {
116 return type switch
117 {
118 SkinType.Tooltip => colors.skinTooltip,
119 SkinType.Light => SkinManager.Instance.skinLight,
120 SkinType.Dark => SkinManager.Instance.skinDark,
121 SkinType.Title => SkinManager.Instance.skinTitle,
122 _ => this,
123 };
124 }
SkinRootStatic skinTitle
Definition: SkinManager.cs:61
SkinRootStatic skinDark
Definition: SkinManager.cs:59
static SkinManager Instance
Definition: SkinManager.cs:78
SkinRootStatic skinLight
Definition: SkinManager.cs:57
SkinRootStatic skinTooltip

References colors, SkinManager.Instance, SkinManager.skinDark, SkinManager.skinLight, SkinManager.skinTitle, and SkinRootStatic.SkinColors.skinTooltip.

Referenced by UINote.Clear(), GetColors(), and UIList.Refresh().

Member Data Documentation

◆ alwaysShadow

bool SkinRootStatic.alwaysShadow

Definition at line 88 of file SkinRootStatic.cs.

Referenced by Window.ApplySkin().

◆ assets

Assets SkinRootStatic.assets

Definition at line 104 of file SkinRootStatic.cs.

Referenced by UIImage.ApplySkin(), and ApplySkin().

◆ bgAlpha

float SkinRootStatic.bgAlpha

Definition at line 98 of file SkinRootStatic.cs.

◆ bgAlpha2

float SkinRootStatic.bgAlpha2

Definition at line 100 of file SkinRootStatic.cs.

◆ captionBG

bool SkinRootStatic.captionBG

Definition at line 86 of file SkinRootStatic.cs.

Referenced by Window.ApplySkin().

◆ captionOutline

bool SkinRootStatic.captionOutline

Definition at line 84 of file SkinRootStatic.cs.

Referenced by Window.ApplySkin().

◆ colors

◆ colorsEx

SkinColorProfileEx SkinRootStatic.colorsEx

Definition at line 72 of file SkinRootStatic.cs.

Referenced by Window.ApplySkin().

◆ darkSkin

bool SkinRootStatic.darkSkin

Definition at line 74 of file SkinRootStatic.cs.

◆ generateWideSprite

bool SkinRootStatic.generateWideSprite

Definition at line 78 of file SkinRootStatic.cs.

◆ noShadow

bool SkinRootStatic.noShadow

Definition at line 90 of file SkinRootStatic.cs.

Referenced by Window.ApplySkin(), and Window.EnableShadow().

◆ positions

Positions SkinRootStatic.positions

Definition at line 106 of file SkinRootStatic.cs.

Referenced by Window.ApplySkin(), WindowInner.ApplySkin(), and WindowMenu.Init().

◆ shadowColor

Color SkinRootStatic.shadowColor

Definition at line 94 of file SkinRootStatic.cs.

Referenced by Window.EnableShadow().

◆ skinTexture

Texture2D SkinRootStatic.skinTexture

Definition at line 96 of file SkinRootStatic.cs.

Referenced by SkinManager.SetMainSkin().

◆ spriteWide

Sprite SkinRootStatic.spriteWide
private

Definition at line 108 of file SkinRootStatic.cs.

◆ textShadow

bool SkinRootStatic.textShadow

Definition at line 76 of file SkinRootStatic.cs.

◆ textShadowColor

Color SkinRootStatic.textShadowColor

Definition at line 92 of file SkinRootStatic.cs.

◆ transparency

float SkinRootStatic.transparency

Definition at line 102 of file SkinRootStatic.cs.

Referenced by Window.ApplySkin().

◆ useDeco

bool SkinRootStatic.useDeco

Definition at line 80 of file SkinRootStatic.cs.

Referenced by Window.ApplySkin().

◆ useFrame

bool SkinRootStatic.useFrame

Definition at line 82 of file SkinRootStatic.cs.

Referenced by UIImage.ApplySkin(), and Window.ApplySkin().

Property Documentation

◆ Colors

override SkinColorProfile SkinRootStatic.Colors
get

Definition at line 110 of file SkinRootStatic.cs.

Referenced by WidgetPopText._Say().

◆ ColorsEx

override SkinColorProfileEx SkinRootStatic.ColorsEx
get

Definition at line 112 of file SkinRootStatic.cs.

Referenced by UISelectableGroup.SetColors().


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