Adjusting rollout behaviour in level builder
by Michael Goins · in Torque Game Builder · 08/16/2006 (9:17 pm) · 5 replies
Is there a way to setup the LB to NOT auto-rollout the top two selections? I want everything to be collapsed every time I hit the Edit tab, without having to collapse or scroll to get to the menu I need for that particular item.
#2
08/17/2006 (7:15 am)
Hum. Any chance of pointing me at that exactly, or more generally? I'm fairly handy with the T2D Torque script at this point but "real" coding of that sort is not something I'm super-familiar with. I've the Pro SDK and certainly looks like I've the source code directories, just not sure which of those files it's gonna be in. And if there's a "compiling your own copy of Level Builder" in the wiki somewhere that'd be a great link as well.
#3
games/tools/levelEditor/scripts/forms/quickEditClasses/quickEditFields/rollout.ed.cs:
53 $LB::QuickEditGroup.add( %stack.spatialProperties );
54 $LB::QuickEditGroup.add( %stack.statusCheck );
55 $LB::QuickEditGroup.add( %stack.properties );
56
57 //EFM - FIX ROLLOUT EXPAND BEGIN
58 //if (%expanded)
59 // %base.instantExpand();
60 //else
61 // %base.instantCollapse();
62 %base.instantCollapse(); // EFM - new
63 //EFM - FIX ROLLOUT EXPAND END
64
65 %this.addStatusCheck(%stack);
66 %this.addProperty(%stack, true);
67 %this.add(%base);
68 return %stack;
69 }
08/17/2006 (7:24 am)
Ed Maurina and I were complaining about this a few days ago. He came up with this:games/tools/levelEditor/scripts/forms/quickEditClasses/quickEditFields/rollout.ed.cs:
53 $LB::QuickEditGroup.add( %stack.spatialProperties );
54 $LB::QuickEditGroup.add( %stack.statusCheck );
55 $LB::QuickEditGroup.add( %stack.properties );
56
57 //EFM - FIX ROLLOUT EXPAND BEGIN
58 //if (%expanded)
59 // %base.instantExpand();
60 //else
61 // %base.instantCollapse();
62 %base.instantCollapse(); // EFM - new
63 //EFM - FIX ROLLOUT EXPAND END
64
65 %this.addStatusCheck(%stack);
66 %this.addProperty(%stack, true);
67 %this.add(%base);
68 return %stack;
69 }
#4
08/17/2006 (8:29 am)
Or you can just go to the top of the file and do this:3 // if (%expanded $= "")
#5
08/17/2006 (8:38 am)
Cheers. I'll slot that in, been driving me mad!
Torque Owner Ben R Vesco