From 5ee8e02727da166e0c1be1886849a84e0a40a617 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 14 Mar 2007 18:30:30 +0000 Subject: [PATCH] Scratch last night's change. Having the 'value' of the element be the tooltip is too strange for me. Discussed with mdb, decided to make everything attributes, including a new 'name' attribute which will be shown to users in place of the 'ident', if 'name' is present. To sum up, the XML syntax for a parameter is now (for range params): name and tip are both optional, so this is still compatible with the historical Gardens xml. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@247 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/as/com/threerings/ezgame/client/EZGameConfigurator.as | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/as/com/threerings/ezgame/client/EZGameConfigurator.as b/src/as/com/threerings/ezgame/client/EZGameConfigurator.as index 10618a8b..2de23f86 100644 --- a/src/as/com/threerings/ezgame/client/EZGameConfigurator.as +++ b/src/as/com/threerings/ezgame/client/EZGameConfigurator.as @@ -82,10 +82,14 @@ public class EZGameConfigurator extends FlexGameConfigurator protected function addXMLControl (spec :XML, control :UIComponent) :void { var ident :String = String(spec.@ident); - var tip :String = StringUtil.trim(String(spec.text())); + var name :String = String(spec.@name); + var tip :String = String(spec.@tip); + if (StringUtil.isBlank(name)) { + name = ident; + } var lbl :Label = new Label(); - lbl.text = ident + ":"; + lbl.text = name + ":"; lbl.toolTip = tip; control.toolTip = tip;