Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ContentConfigTest Class Reference
Inheritance diagram for ContentConfigTest:
ContentConfig EContent UIContent UINote

Public Member Functions

override void OnInstantiate ()
 
- Public Member Functions inherited from ContentConfig
void SetSlider (Slider slider, float value, Func< float, string > action)
 
- Public Member Functions inherited from UIContent
virtual void OnSwitchContent (int idTab)
 
virtual void OnInstantiate ()
 
- Public Member Functions inherited from UINote
void Clear ()
 
void Build ()
 
void Space (int sizeY=0, int sizeX=1)
 
UINote AddNote (string id)
 
UIItem AddHeader (string text, Sprite sprite=null)
 
UIItem AddHeaderCard (string text, Sprite sprite=null)
 
UIItem AddHeaderTopic (string text, Sprite sprite=null)
 
UIItem AddHeader (string id, string text, Sprite sprite=null)
 
UIItem AddText (string text, FontColor color=FontColor.DontChange)
 
UIItem AddText (string id, string text, FontColor color=FontColor.DontChange)
 
UIItem AddText (string id, string text, Color color)
 
UIItem AddItem (string id)
 
UIItem AddTopic (string id, string text, string value=null)
 
UIItem AddTopic (string text, string value=null)
 
void AddImage (Sprite sprite)
 
void AddImage (string idFile)
 
UIButton AddButton (string text, Action onClick)
 
UIButton AddButtonLink (string text, string url)
 
UIDropdown AddDropdown (string id="DropdownDefault")
 
UIButton AddToggle (string idLang="", bool isOn=false, Action< bool > action=null)
 
Transform AddPrefab (string path)
 
AddExtra< T > (string path)
 

Public Attributes

UIDropdown ddSkin
 
UIButtonLR buttonAnimeFrame
 
UIButtonLR buttonAnimeFramePCC
 
UIButton toggleAlwaysRun
 
UIButton toggleShowNumber
 
UIButton toggleAAPortrait
 
UIButton toggleExTurn
 
UIButton toggleBloom2
 
UIButton toggleExtraRace
 
UIButton toggleSeal
 
UIButton toggleExtraCancelMove
 
UIButton toggleBlockOnItem
 
UIButton toggleAlwaysFixCamera
 
UIButton toggleIgnoreBackerFlag
 
UIButton toggleRefIcon
 
UIButton toggleToolNoPick
 
Slider sliderBrightness
 
- Public Attributes inherited from UINote
RectTransform target
 
UINoteProfile prof
 
SkinType skinType
 
string idDefaultText
 
LayoutGroup layout
 
RectTransform cur
 
bool extraRebuild
 

Additional Inherited Members

- Properties inherited from ContentConfig
CoreConfig config [get]
 

Detailed Description

Definition at line 4 of file ContentConfigTest.cs.

Member Function Documentation

◆ OnInstantiate()

override void ContentConfigTest.OnInstantiate ( )
inlinevirtual

Reimplemented from UIContent.

Definition at line 40 of file ContentConfigTest.cs.

41 {
42 List<SkinRootStatic> mainSkins = EClass.ui.skins.mainSkins;
43 ddSkin.SetList(base.config.test.idSkin, mainSkins, (SkinRootStatic a, int b) => a.Name, delegate(int a, SkinRootStatic b)
44 {
45 base.config.test.idSkin = a;
46 base.config.ApplySkin();
47 });
48 List<string> langs = new List<string> { "ani0", "ani1", "ani2", "ani3", "ani4" };
49 toggleRefIcon.SetToggle(base.config.test.showRefIcon, delegate(bool on)
50 {
51 base.config.test.showRefIcon = on;
53 {
54 LayerInventory.SetDirtyAll();
55 }
56 });
57 buttonAnimeFrame.SetOptions(base.config.test.animeFrame, langs, delegate(int i)
58 {
59 base.config.test.animeFrame = i;
60 base.config.Apply();
61 }, invoke: false, "animeFrame");
62 buttonAnimeFramePCC.SetOptions(base.config.test.animeFramePCC, langs, delegate(int i)
63 {
64 base.config.test.animeFramePCC = i;
65 base.config.Apply();
66 }, invoke: false, "animeFramePCC");
67 toggleShowNumber.SetToggle(base.config.test.showNumbers, delegate(bool on)
68 {
69 base.config.test.showNumbers = on;
70 });
71 toggleToolNoPick.SetToggle(base.config.test.toolNoPick, delegate(bool on)
72 {
73 base.config.test.toolNoPick = on;
74 });
75 toggleAlwaysRun.SetToggle(base.config.test.alwaysRun, delegate(bool on)
76 {
77 base.config.test.alwaysRun = on;
78 });
79 toggleExTurn.SetToggle(base.config.test.extraTurnaround, delegate(bool on)
80 {
81 base.config.test.extraTurnaround = on;
82 });
83 toggleExtraRace.SetToggle(base.config.test.extraRace, delegate(bool on)
84 {
85 base.config.test.extraRace = on;
86 });
87 toggleExtraCancelMove.SetToggle(base.config.test.extraMoveCancel, delegate(bool on)
88 {
89 base.config.test.extraMoveCancel = on;
90 });
91 toggleAAPortrait.SetToggle(base.config.test.aaPortrait, delegate(bool on)
92 {
93 base.config.test.aaPortrait = on;
94 });
95 toggleBloom2.SetToggle(base.config.test.bloom2, delegate(bool on)
96 {
97 base.config.test.bloom2 = on;
98 base.config.Apply();
99 });
100 toggleBlockOnItem.SetToggle(base.config.test.allowBlockOnItem, delegate(bool on)
101 {
102 base.config.test.allowBlockOnItem = on;
103 base.config.Apply();
104 });
105 toggleAlwaysFixCamera.SetToggle(base.config.test.alwaysFixCamera, delegate(bool on)
106 {
107 base.config.test.alwaysFixCamera = on;
108 });
109 toggleIgnoreBackerFlag.SetToggle(base.config.test.ignoreBackerDestoryFlag, delegate(bool on)
110 {
111 base.config.test.ignoreBackerDestoryFlag = on;
112 });
113 toggleSeal.SetToggle(base.config.test.unsealWidgets, delegate(bool on)
114 {
115 base.config.test.unsealWidgets = on;
116 base.config.Apply();
118 });
119 SetSlider(sliderBrightness, base.config.test.brightnessNight, delegate(float a)
120 {
121 base.config.test.brightnessNight = a;
122 base.config.ApplyGrading();
124 {
125 EClass.screen.RefreshGrading();
126 }
127 return Lang.Get("brightnessNight") + "(" + (int)(a + 100f) + "%)";
128 });
129 }
string Name
Definition: BaseSkinRoot.cs:5
UIButtonLR buttonAnimeFrame
UIButton toggleExtraCancelMove
UIButton toggleIgnoreBackerFlag
UIButtonLR buttonAnimeFramePCC
UIButton toggleAlwaysFixCamera
void SetSlider(Slider slider, float value, Func< float, string > action)
Definition: ContentConfig.cs:8
bool IsGameStarted
Definition: Core.cs:84
Definition: EClass.cs:5
static Core core
Definition: EClass.cs:6
static UI ui
Definition: EClass.cs:16
Definition: Lang.cs:6
static string Get(string id)
Definition: Lang.cs:91
void SetOptions(int _index, List< string > langs, Action< int > onSelect, bool invoke=true, string langTopic=null)
Definition: UIButtonLR.cs:20
void SetToggle(bool isOn, Action< bool > onToggle=null)
Definition: UIButton.cs:341
static void RebuildPages()

References SkinRootStatic.ApplySkin(), buttonAnimeFrame, buttonAnimeFramePCC, EClass.core, ddSkin, Lang.Get(), Core.IsGameStarted, BaseSkinRoot.Name, WidgetHotbar.RebuildPages(), UIButtonLR.SetOptions(), ContentConfig.SetSlider(), UIButton.SetToggle(), sliderBrightness, toggleAAPortrait, toggleAlwaysFixCamera, toggleAlwaysRun, toggleBlockOnItem, toggleBloom2, toggleExtraCancelMove, toggleExtraRace, toggleExTurn, toggleIgnoreBackerFlag, toggleRefIcon, toggleSeal, toggleShowNumber, toggleToolNoPick, and EClass.ui.

Member Data Documentation

◆ buttonAnimeFrame

UIButtonLR ContentConfigTest.buttonAnimeFrame

Definition at line 8 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ buttonAnimeFramePCC

UIButtonLR ContentConfigTest.buttonAnimeFramePCC

Definition at line 10 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ ddSkin

UIDropdown ContentConfigTest.ddSkin

Definition at line 6 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ sliderBrightness

Slider ContentConfigTest.sliderBrightness

Definition at line 38 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleAAPortrait

UIButton ContentConfigTest.toggleAAPortrait

Definition at line 16 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleAlwaysFixCamera

UIButton ContentConfigTest.toggleAlwaysFixCamera

Definition at line 30 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleAlwaysRun

UIButton ContentConfigTest.toggleAlwaysRun

Definition at line 12 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleBlockOnItem

UIButton ContentConfigTest.toggleBlockOnItem

Definition at line 28 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleBloom2

UIButton ContentConfigTest.toggleBloom2

Definition at line 20 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleExtraCancelMove

UIButton ContentConfigTest.toggleExtraCancelMove

Definition at line 26 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleExtraRace

UIButton ContentConfigTest.toggleExtraRace

Definition at line 22 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleExTurn

UIButton ContentConfigTest.toggleExTurn

Definition at line 18 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleIgnoreBackerFlag

UIButton ContentConfigTest.toggleIgnoreBackerFlag

Definition at line 32 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleRefIcon

UIButton ContentConfigTest.toggleRefIcon

Definition at line 34 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleSeal

UIButton ContentConfigTest.toggleSeal

Definition at line 24 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleShowNumber

UIButton ContentConfigTest.toggleShowNumber

Definition at line 14 of file ContentConfigTest.cs.

Referenced by OnInstantiate().

◆ toggleToolNoPick

UIButton ContentConfigTest.toggleToolNoPick

Definition at line 36 of file ContentConfigTest.cs.

Referenced by OnInstantiate().


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