Use the new LabeledSlider instead of rolling our own.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@241 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -21,8 +21,6 @@
|
|||||||
|
|
||||||
package com.threerings.parlor.client {
|
package com.threerings.parlor.client {
|
||||||
|
|
||||||
import mx.binding.utils.BindingUtils;
|
|
||||||
|
|
||||||
import mx.containers.Grid;
|
import mx.containers.Grid;
|
||||||
|
|
||||||
import mx.controls.CheckBox;
|
import mx.controls.CheckBox;
|
||||||
@@ -30,6 +28,7 @@ import mx.controls.HSlider;
|
|||||||
import mx.controls.Label;
|
import mx.controls.Label;
|
||||||
|
|
||||||
import com.threerings.flex.GridUtil;
|
import com.threerings.flex.GridUtil;
|
||||||
|
import com.threerings.flex.LabeledSlider;
|
||||||
|
|
||||||
import com.threerings.parlor.data.TableConfig;
|
import com.threerings.parlor.data.TableConfig;
|
||||||
import com.threerings.parlor.util.ParlorContext;
|
import com.threerings.parlor.util.ParlorContext;
|
||||||
@@ -68,7 +67,6 @@ public class DefaultFlexTableConfigurator extends TableConfigurator
|
|||||||
_playerSlider.maximum = maxPlayers;
|
_playerSlider.maximum = maxPlayers;
|
||||||
_playerSlider.liveDragging = true;
|
_playerSlider.liveDragging = true;
|
||||||
_playerSlider.snapInterval = 1;
|
_playerSlider.snapInterval = 1;
|
||||||
_playerSlider.showDataTip = false;
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
_config.desiredPlayerCount = desiredPlayers;
|
_config.desiredPlayerCount = desiredPlayers;
|
||||||
@@ -93,14 +91,7 @@ public class DefaultFlexTableConfigurator extends TableConfigurator
|
|||||||
var playerLabel :Label = new Label();
|
var playerLabel :Label = new Label();
|
||||||
playerLabel.text = "Players:";
|
playerLabel.text = "Players:";
|
||||||
|
|
||||||
var countLabel :Label = new Label();
|
gconf.addControl(playerLabel, new LabeledSlider(_playerSlider));
|
||||||
BindingUtils.bindProperty(countLabel, "text",
|
|
||||||
_playerSlider, "value");
|
|
||||||
|
|
||||||
var grid :Grid = new Grid();
|
|
||||||
GridUtil.addRow(grid, countLabel, _playerSlider);
|
|
||||||
|
|
||||||
gconf.addControl(playerLabel, grid);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_privateCheck != null) {
|
if (_privateCheck != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user