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:
@@ -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...
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user