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

Public Member Functions

override void OnInstantiate ()
 
void SetGroup (UISelectableGroup group, int value, UnityAction< int > action)
 
- 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

UIButton toggleFogBounds
 
UIButton toggleOffhand
 
UIButton toggleAntiSpider
 
UIButton toggleShowInvBG
 
UIButton toggleConfirmGive
 
UIButton toggleWarnCrime
 
UIButton toggleWarnMana
 
UIButton toggleWarnDisassemble
 
UIButton toggleHoldMiddle
 
UIButton toggleHoldDoubleClick
 
UIButton toggleConfirmExit
 
UIButton toggleUseAbilityOnHotkey
 
UIButton toggleHideWeapon
 
UIButton toggleNetSend
 
UIButton toggleNet
 
UIButton toggleDisableAutoStairs
 
UIButton toggleSmoothPick
 
UIButton toggleMarkStack
 
UIButton toggleRefIcon
 
UIButton toggleShippingResult
 
UIButton toggleShiftToUseNegativeAbility
 
UIButton toggleAutoBackup
 
UIButton toggleSortEach
 
UISelectableGroup groupBackerFilter
 
UISelectableGroup groupBorder
 
UISelectableGroup groupRide
 
Slider sliderWait
 
Slider sliderBackupNum
 
Slider sliderBackupInterval
 
UIButton toggleWaitOnDebuff
 
UIButton toggleWaitOnRange
 
UIButton toggleWaitOnMelee
 
UIButton toggleTutorial
 
UIButton toggleAdvanceMenu
 
UIButton toggleHaltOnSpotEnemy
 
UIButton toggleHaltOnSpotTrap
 
- 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 ContentConfigGame.cs.

Member Function Documentation

◆ OnInstantiate()

override void ContentConfigGame.OnInstantiate ( )
inlinevirtual

Reimplemented from UIContent.

Reimplemented in ContentConfigInput.

Definition at line 78 of file ContentConfigGame.cs.

79 {
80 toggleDisableAutoStairs.SetToggle(base.config.game.disableAutoStairs, delegate(bool on)
81 {
82 base.config.game.disableAutoStairs = on;
83 });
84 toggleConfirmGive.SetToggle(base.config.game.confirmGive, delegate(bool on)
85 {
86 base.config.game.confirmGive = on;
87 });
88 toggleWarnCrime.SetToggle(base.config.game.warnCrime, delegate(bool on)
89 {
90 base.config.game.warnCrime = on;
91 });
92 toggleWarnMana.SetToggle(base.config.game.warnMana, delegate(bool on)
93 {
94 base.config.game.warnMana = on;
95 });
96 toggleWarnDisassemble.SetToggle(base.config.game.warnDisassemble, delegate(bool on)
97 {
98 base.config.game.warnDisassemble = on;
99 });
100 toggleFogBounds.SetToggle(base.config.game.dontRenderOutsideMap, delegate(bool on)
101 {
102 base.config.game.dontRenderOutsideMap = on;
103 });
104 toggleShowInvBG.SetToggle(base.config.game.showInvBG, delegate(bool on)
105 {
106 base.config.game.showInvBG = on;
107 });
108 toggleHaltOnSpotEnemy.SetToggle(base.config.game.haltOnSpotEnemy, delegate(bool on)
109 {
110 base.config.game.haltOnSpotEnemy = on;
111 });
112 toggleHaltOnSpotTrap.SetToggle(base.config.game.haltOnSpotTrap, delegate(bool on)
113 {
114 base.config.game.haltOnSpotTrap = on;
115 });
116 toggleHideWeapon.SetToggle(base.config.game.hideWeapons, delegate(bool on)
117 {
118 base.config.game.hideWeapons = on;
119 });
120 toggleSmoothPick.SetToggle(base.config.game.smoothPick, delegate(bool on)
121 {
122 base.config.game.smoothPick = on;
123 });
124 toggleMarkStack.SetToggle(base.config.game.markStack, delegate(bool on)
125 {
126 base.config.game.markStack = on;
127 });
128 toggleWaitOnDebuff.SetToggle(base.config.game.waitOnDebuff, delegate(bool on)
129 {
130 base.config.game.waitOnDebuff = on;
131 });
132 toggleWaitOnRange.SetToggle(base.config.game.waitOnRange, delegate(bool on)
133 {
134 base.config.game.waitOnRange = on;
135 });
136 toggleWaitOnMelee.SetToggle(base.config.game.waitOnMelee, delegate(bool on)
137 {
138 base.config.game.waitOnMelee = on;
139 });
140 toggleTutorial.SetToggle(base.config.game.tutorial, delegate(bool on)
141 {
142 base.config.game.tutorial = on;
143 });
144 toggleShippingResult.SetToggle(base.config.game.showShippingResult, delegate(bool on)
145 {
146 base.config.game.showShippingResult = on;
147 });
148 toggleAdvanceMenu.SetToggle(base.config.game.advancedMenu, delegate(bool on)
149 {
150 base.config.game.advancedMenu = on;
151 });
152 toggleSortEach.SetToggle(base.config.game.sortEach, delegate(bool on)
153 {
154 base.config.game.sortEach = on;
155 });
156 toggleAntiSpider.SetToggle(base.config.game.antiSpider, delegate(bool on)
157 {
158 base.config.game.antiSpider = on;
159 });
160 toggleOffhand.SetToggle(base.config.game.showOffhand, delegate(bool on)
161 {
162 base.config.game.showOffhand = on;
164 });
165 toggleHoldMiddle.SetToggle(base.config.game.holdMiddleButtonToHold, delegate(bool on)
166 {
167 base.config.game.holdMiddleButtonToHold = on;
168 });
169 toggleShiftToUseNegativeAbility.SetToggle(base.config.game.shiftToUseNegativeAbilityOnSelf, delegate(bool on)
170 {
171 base.config.game.shiftToUseNegativeAbilityOnSelf = on;
172 });
173 toggleHoldDoubleClick.SetToggle(base.config.game.doubleClickToHold, delegate(bool on)
174 {
175 base.config.game.doubleClickToHold = on;
176 });
177 toggleConfirmExit.SetToggle(base.config.game.confirmMapExit, delegate(bool on)
178 {
179 base.config.game.confirmMapExit = on;
180 });
181 toggleUseAbilityOnHotkey.SetToggle(base.config.game.useAbilityOnHotkey, delegate(bool on)
182 {
183 base.config.game.useAbilityOnHotkey = on;
184 });
185 toggleNetSend.SetToggle(base.config.net.sendEvent, delegate(bool on)
186 {
187 base.config.net.sendEvent = on;
188 });
189 SetSlider(sliderWait, base.config.game.waiter, delegate(float a)
190 {
191 base.config.game.waiter = (int)a;
192 return Lang.Get("gameWait_duration") + "(" + 25f * a + "%)";
193 });
194 SetSlider(sliderBackupNum, base.config.game.numBackup, delegate(float a)
195 {
196 base.config.game.numBackup = (int)a;
197 return "backupNum".lang(a.ToString() ?? "");
198 });
199 SetSlider(sliderBackupInterval, base.config.game.backupInterval, delegate(float a)
200 {
201 base.config.game.backupInterval = (int)a;
202 return "backupInterval".lang((a * 30f).ToString() ?? "");
203 });
204 toggleAutoBackup.SetToggle(base.config.game.autoBackup, delegate(bool on)
205 {
206 base.config.game.autoBackup = on;
207 sliderBackupInterval.SetActive(on);
208 });
209 sliderBackupInterval.SetActive(base.config.game.autoBackup);
210 SetGroup(groupRide, base.config.game.showRide, delegate(int a)
211 {
212 base.config.game.showRide = a;
213 base.config.Apply();
214 });
215 SetGroup(groupBackerFilter, base.config.backer.filter, delegate(int a)
216 {
217 base.config.backer.filter = a;
218 base.config.Apply();
219 });
220 SetGroup(groupBorder, base.config.game.showBorder, delegate(int a)
221 {
222 base.config.game.showBorder = a;
223 base.config.Apply();
224 });
225 }
void SetTempHand(int right=0, int left=0)
Definition: Chara.cs:6057
UISelectableGroup groupBackerFilter
UIButton toggleHoldDoubleClick
UIButton toggleWarnDisassemble
UIButton toggleHaltOnSpotTrap
UIButton toggleHaltOnSpotEnemy
UISelectableGroup groupRide
UIButton toggleDisableAutoStairs
UIButton toggleUseAbilityOnHotkey
UIButton toggleShippingResult
UISelectableGroup groupBorder
void SetGroup(UISelectableGroup group, int value, UnityAction< int > action)
UIButton toggleShiftToUseNegativeAbility
void SetSlider(Slider slider, float value, Func< float, string > action)
Definition: ContentConfig.cs:8
Definition: EClass.cs:5
static Chara pc
Definition: EClass.cs:14
Definition: Lang.cs:6
static string Get(string id)
Definition: Lang.cs:91
void SetToggle(bool isOn, Action< bool > onToggle=null)
Definition: UIButton.cs:341

References Lang.Get(), groupBackerFilter, groupBorder, groupRide, EClass.pc, SetGroup(), ContentConfig.SetSlider(), Chara.SetTempHand(), UIButton.SetToggle(), sliderBackupInterval, sliderBackupNum, sliderWait, toggleAdvanceMenu, toggleAntiSpider, toggleAutoBackup, toggleConfirmExit, toggleConfirmGive, toggleDisableAutoStairs, toggleFogBounds, toggleHaltOnSpotEnemy, toggleHaltOnSpotTrap, toggleHideWeapon, toggleHoldDoubleClick, toggleHoldMiddle, toggleMarkStack, toggleNetSend, toggleOffhand, toggleShiftToUseNegativeAbility, toggleShippingResult, toggleShowInvBG, toggleSmoothPick, toggleSortEach, toggleTutorial, toggleUseAbilityOnHotkey, toggleWaitOnDebuff, toggleWaitOnMelee, toggleWaitOnRange, toggleWarnCrime, toggleWarnDisassemble, and toggleWarnMana.

◆ SetGroup()

void ContentConfigGame.SetGroup ( UISelectableGroup  group,
int  value,
UnityAction< int >  action 
)
inline

Definition at line 227 of file ContentConfigGame.cs.

228 {
229 group.Init(value, action);
230 }
virtual void Init(int index=0, UnityAction< int > action=null, bool directChildren=false)

References UISelectableGroup.Init().

Referenced by OnInstantiate().

Member Data Documentation

◆ groupBackerFilter

UISelectableGroup ContentConfigGame.groupBackerFilter

Definition at line 52 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ groupBorder

UISelectableGroup ContentConfigGame.groupBorder

Definition at line 54 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ groupRide

UISelectableGroup ContentConfigGame.groupRide

Definition at line 56 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ sliderBackupInterval

Slider ContentConfigGame.sliderBackupInterval

Definition at line 62 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ sliderBackupNum

Slider ContentConfigGame.sliderBackupNum

Definition at line 60 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ sliderWait

Slider ContentConfigGame.sliderWait

Definition at line 58 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleAdvanceMenu

UIButton ContentConfigGame.toggleAdvanceMenu

Definition at line 72 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleAntiSpider

UIButton ContentConfigGame.toggleAntiSpider

Definition at line 10 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleAutoBackup

UIButton ContentConfigGame.toggleAutoBackup

Definition at line 48 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleConfirmExit

UIButton ContentConfigGame.toggleConfirmExit

Definition at line 26 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleConfirmGive

UIButton ContentConfigGame.toggleConfirmGive

Definition at line 14 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleDisableAutoStairs

UIButton ContentConfigGame.toggleDisableAutoStairs

Definition at line 36 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleFogBounds

UIButton ContentConfigGame.toggleFogBounds

Definition at line 6 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleHaltOnSpotEnemy

UIButton ContentConfigGame.toggleHaltOnSpotEnemy

Definition at line 74 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleHaltOnSpotTrap

UIButton ContentConfigGame.toggleHaltOnSpotTrap

Definition at line 76 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleHideWeapon

UIButton ContentConfigGame.toggleHideWeapon

Definition at line 30 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleHoldDoubleClick

UIButton ContentConfigGame.toggleHoldDoubleClick

Definition at line 24 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleHoldMiddle

UIButton ContentConfigGame.toggleHoldMiddle

Definition at line 22 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleMarkStack

UIButton ContentConfigGame.toggleMarkStack

Definition at line 40 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleNet

UIButton ContentConfigGame.toggleNet

Definition at line 34 of file ContentConfigGame.cs.

◆ toggleNetSend

UIButton ContentConfigGame.toggleNetSend

Definition at line 32 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleOffhand

UIButton ContentConfigGame.toggleOffhand

Definition at line 8 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleRefIcon

UIButton ContentConfigGame.toggleRefIcon

Definition at line 42 of file ContentConfigGame.cs.

◆ toggleShiftToUseNegativeAbility

UIButton ContentConfigGame.toggleShiftToUseNegativeAbility

Definition at line 46 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleShippingResult

UIButton ContentConfigGame.toggleShippingResult

Definition at line 44 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleShowInvBG

UIButton ContentConfigGame.toggleShowInvBG

Definition at line 12 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleSmoothPick

UIButton ContentConfigGame.toggleSmoothPick

Definition at line 38 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleSortEach

UIButton ContentConfigGame.toggleSortEach

Definition at line 50 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleTutorial

UIButton ContentConfigGame.toggleTutorial

Definition at line 70 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleUseAbilityOnHotkey

UIButton ContentConfigGame.toggleUseAbilityOnHotkey

Definition at line 28 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleWaitOnDebuff

UIButton ContentConfigGame.toggleWaitOnDebuff

Definition at line 64 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleWaitOnMelee

UIButton ContentConfigGame.toggleWaitOnMelee

Definition at line 68 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleWaitOnRange

UIButton ContentConfigGame.toggleWaitOnRange

Definition at line 66 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleWarnCrime

UIButton ContentConfigGame.toggleWarnCrime

Definition at line 16 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleWarnDisassemble

UIButton ContentConfigGame.toggleWarnDisassemble

Definition at line 20 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleWarnMana

UIButton ContentConfigGame.toggleWarnMana

Definition at line 18 of file ContentConfigGame.cs.

Referenced by OnInstantiate().


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