Elin Decompiled Documentation EA 23.153 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
 
UIButton toggleHighlightEnemy
 
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 80 of file ContentConfigGame.cs.

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

234 {
235 group.Init(value, action);
236 }
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 54 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ groupBorder

UISelectableGroup ContentConfigGame.groupBorder

Definition at line 56 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ groupRide

UISelectableGroup ContentConfigGame.groupRide

Definition at line 58 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ sliderBackupInterval

Slider ContentConfigGame.sliderBackupInterval

Definition at line 64 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ sliderBackupNum

Slider ContentConfigGame.sliderBackupNum

Definition at line 62 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ sliderWait

Slider ContentConfigGame.sliderWait

Definition at line 60 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleAdvanceMenu

UIButton ContentConfigGame.toggleAdvanceMenu

Definition at line 74 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 76 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleHaltOnSpotTrap

UIButton ContentConfigGame.toggleHaltOnSpotTrap

Definition at line 78 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleHideWeapon

UIButton ContentConfigGame.toggleHideWeapon

Definition at line 30 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleHighlightEnemy

UIButton ContentConfigGame.toggleHighlightEnemy

Definition at line 52 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 72 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 66 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleWaitOnMelee

UIButton ContentConfigGame.toggleWaitOnMelee

Definition at line 70 of file ContentConfigGame.cs.

Referenced by OnInstantiate().

◆ toggleWaitOnRange

UIButton ContentConfigGame.toggleWaitOnRange

Definition at line 68 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: