Use an Integer here so that we play nicely with Java managers.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@289 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -27,6 +27,7 @@ import mx.controls.ComboBox;
|
|||||||
import mx.controls.HSlider;
|
import mx.controls.HSlider;
|
||||||
import mx.controls.Label;
|
import mx.controls.Label;
|
||||||
|
|
||||||
|
import com.threerings.util.Integer;
|
||||||
import com.threerings.util.StreamableHashMap;
|
import com.threerings.util.StreamableHashMap;
|
||||||
import com.threerings.util.StringUtil;
|
import com.threerings.util.StringUtil;
|
||||||
|
|
||||||
@@ -102,7 +103,7 @@ public class EZGameConfigurator extends FlexGameConfigurator
|
|||||||
var ident :String = String(_customConfigs[ii]);
|
var ident :String = String(_customConfigs[ii]);
|
||||||
var control :UIComponent = (_customConfigs[ii + 1] as UIComponent);
|
var control :UIComponent = (_customConfigs[ii + 1] as UIComponent);
|
||||||
if (control is LabeledSlider) {
|
if (control is LabeledSlider) {
|
||||||
params.put(ident, (control as LabeledSlider).slider.value);
|
params.put(ident, new Integer((control as LabeledSlider).slider.value));
|
||||||
|
|
||||||
} else if (control is CheckBox) {
|
} else if (control is CheckBox) {
|
||||||
params.put(ident, (control as CheckBox).selected);
|
params.put(ident, (control as CheckBox).selected);
|
||||||
|
|||||||
Reference in New Issue
Block a user