A little UI love for the # of players slider.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@164 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -21,10 +21,16 @@
|
||||
|
||||
package com.threerings.parlor.client {
|
||||
|
||||
import mx.binding.utils.BindingUtils;
|
||||
|
||||
import mx.containers.Grid;
|
||||
|
||||
import mx.controls.CheckBox;
|
||||
import mx.controls.HSlider;
|
||||
import mx.controls.Label;
|
||||
|
||||
import com.threerings.flex.GridUtil;
|
||||
|
||||
import com.threerings.parlor.data.TableConfig;
|
||||
import com.threerings.parlor.util.ParlorContext;
|
||||
|
||||
@@ -60,7 +66,9 @@ public class DefaultFlexTableConfigurator extends TableConfigurator
|
||||
_playerSlider.value = desiredPlayers;
|
||||
_playerSlider.minimum = minPlayers;
|
||||
_playerSlider.maximum = maxPlayers;
|
||||
_playerSlider.liveDragging = true;
|
||||
_playerSlider.snapInterval = 1;
|
||||
_playerSlider.showDataTip = false;
|
||||
|
||||
} else {
|
||||
_config.desiredPlayerCount = desiredPlayers;
|
||||
@@ -84,7 +92,15 @@ public class DefaultFlexTableConfigurator extends TableConfigurator
|
||||
// TODO: proper translation
|
||||
var playerLabel :Label = new Label();
|
||||
playerLabel.text = "Players:";
|
||||
gconf.addControl(playerLabel, _playerSlider);
|
||||
|
||||
var countLabel :Label = new Label();
|
||||
BindingUtils.bindProperty(countLabel, "text",
|
||||
_playerSlider, "value");
|
||||
|
||||
var grid :Grid = new Grid();
|
||||
GridUtil.addRow(grid, countLabel, _playerSlider);
|
||||
|
||||
gconf.addControl(playerLabel, grid);
|
||||
}
|
||||
|
||||
if (_privateCheck != null) {
|
||||
|
||||
Reference in New Issue
Block a user