Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
ContentConfig.cs
Go to the documentation of this file.
1
using
System;
2
using
UnityEngine.UI;
3
4
public
class
ContentConfig
:
EContent
5
{
6
public
CoreConfig
config
=>
Core
.
Instance
.
config
;
7
8
public
void
SetSlider
(Slider slider,
float
value, Func<float, string> action)
9
{
10
slider.onValueChanged.RemoveAllListeners();
11
slider.onValueChanged.AddListener(delegate(
float
a)
12
{
13
slider.GetComponentInChildren<
UIText
>(includeInactive:
true
).text = action(a);
14
});
15
slider.value = value;
16
slider.GetComponentInChildren<
UIText
>(includeInactive:
true
).text = action(value);
17
}
18
}
ContentConfig
Definition:
ContentConfig.cs:5
ContentConfig.config
CoreConfig config
Definition:
ContentConfig.cs:6
ContentConfig.SetSlider
void SetSlider(Slider slider, float value, Func< float, string > action)
Definition:
ContentConfig.cs:8
CoreConfig
Definition:
CoreConfig.cs:12
Core
Definition:
Core.cs:14
Core.Instance
static new Core Instance
Definition:
Core.cs:15
Core.config
CoreConfig config
Definition:
Core.cs:70
EContent
Definition:
EContent.cs:2
UIText
Definition:
UIText.cs:6
Elin
ContentConfig.cs
Generated by
1.9.6