Skip to content

Commit dba76d5

Browse files
committed
Fix problems of sliders cunstructor.
1 parent c26f1cc commit dba76d5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Assets/PrefsUGUI/Scripts/Prefs/PrefsFloatSlider.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ public class PrefsFloatSlider : Prefs.PrefsExtends<float, PrefsGuiNumericSliderD
1616
: base(key, defaultValue, hierarchy, guiLabel, onCreatedGui) { }
1717

1818
public PrefsFloatSlider(string key, float minValue, float maxValue,
19-
float defaultValue = default(float), GuiHierarchy hierarchy = null, string guiLabel = null)
20-
: this(key, defaultValue, hierarchy, guiLabel)
19+
float defaultValue = default(float), GuiHierarchy hierarchy = null, string guiLabel = null,
20+
Action<Prefs.PrefsGuiBaseConnector<float, PrefsGuiNumericSliderDecimal>> onCreatedGui = null)
21+
: this(key, defaultValue, hierarchy, guiLabel, onCreatedGui)
2122
{
2223
this.min = minValue;
2324
this.max = maxValue;

Assets/PrefsUGUI/Scripts/Prefs/PrefsIntSlider.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ public class PrefsIntSlider : Prefs.PrefsExtends<int, PrefsGuiNumericSliderInteg
1616
: base(key, defaultValue, hierarchy, guiLabel, onCreatedGui) { }
1717

1818
public PrefsIntSlider(string key, int minValue, int maxValue,
19-
int defaultValue = default(int), GuiHierarchy hierarchy = null, string guiLabel = null)
20-
: this(key, defaultValue, hierarchy, guiLabel)
19+
int defaultValue = default(int), GuiHierarchy hierarchy = null, string guiLabel = null,
20+
Action<Prefs.PrefsGuiBaseConnector<int, PrefsGuiNumericSliderInteger>> onCreatedGui = null)
21+
: this(key, defaultValue, hierarchy, guiLabel, onCreatedGui)
2122
{
2223
this.min = minValue;
2324
this.max = maxValue;

0 commit comments

Comments
 (0)