Actually, the list creator can assign a style name to the specific instance. Internally we need

to assign a style name to the List instance.  Also made the default renderer always use a 
transparent background.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@486 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Nathan Curtis
2008-05-06 22:13:30 +00:00
parent f09dd1f869
commit 812ab955b4
+2 -2
View File
@@ -43,8 +43,6 @@ public class PlayerList extends VBox
*/
public function PlayerList (labelCreator :NameLabelCreator = null) :void
{
styleName = "playerList";
_labelCreator = labelCreator;
if (_labelCreator == null) {
_labelCreator = new DefaultNameLabelCreator();
@@ -60,6 +58,7 @@ public class PlayerList extends VBox
_list.percentHeight = 100;
_list.itemRenderer = new ClassFactory(getRenderingClass());
_list.dataProvider = _players;
_list.styleName = "playerList";
addChild(_list);
@@ -187,6 +186,7 @@ class PlayerRenderer extends HBox
verticalScrollPolicy = ScrollPolicy.OFF;
horizontalScrollPolicy = ScrollPolicy.OFF;
setStyle("backgroundAlpha", 0);
// the horizontalGap should be 8...
}