-
... Nil, {[4, 18, 20, 1, 0, 0.4]}, {setting[2]}); win = GUI.window.new("- worms -", Rect(point.x, point.y, 960, 720), resizable:false); wview = win.view; a = XixiPainter.new(win, Rect(10, 5, 940, win.bounds.height-110)); // 640 * 480 resolution ...
-
... ) ]; } unmap { |value| var index; index = list.indexOf( value ); // first try direct (faster) if( index.notNil ) { ^index; } { if( value.isNumber.not ) { value = value.asSymbol; }; ^indexMap[ sortedList.indexIn( value ) ] ? defaultIndex; }; ...
-
... Methods *new (parent, bounds) parent - the parent view. bounds - an instance of Rect , or a Point indicating width@height. Subclassing and Internal Methods The following methods are usually not used directly or are called by a primitive. Pr ...
-
XixiPainter { var drawer; var win, rect; var keyDownAction, keyUpAction; var backgrDrawFunc; var background, fillcolor; var running; var drawList; var playerTask, frameFunc, <>frameRate; *new { arg w, bounds; ^super.new.initXixiPainter(w, b ...
-
... rk_(network).init(parent); } init{ |parent| w = Window.new( "SWDataNetworkLog", Rect( 0, 0, 200, 92 )); w.view.decorator = FlowLayout.new( Rect(0,0,200,92), 2@2, 2@2); fn = TextField.new(w, Rect( 0, 0, 148, 20 )); open = Button.new(w, Rect( ...
-
... geMode = \lo; // \lo, \hi, \center init { arg parent, bounds; bounds = bounds.asRect; if( bounds.width > bounds.height ) { orientation = \h }; //super.init( parent, bounds ); mode = \jump; // \jump or \move value = [0.0,0.0]; // background, ...
-
... .5, tabSize = 25| var onClose, window = Window.new(name.asString + "Node Tree", Rect(128, 64, 400, 400), scroll:true ).front; window.view.hasHorizontalScroller_(false).background_(Color.grey(0.9)); onClose = this.plotTreeView2(interval, win ...
-
... Array .new; // the pitch value boxes as an array w = Window ( "-303" , Rect (128, 64, 510, 320)); w.view.background = Color .white; w.front; ~layoutLeft = CompositeView (w, Rect (0, 0, 400, 320)); // make the left pane of ...
-
... enter); StaticText(zone, 57@20).string_("show:") .align_(\center); Button(zone, Rect(0,0, 57, 20)) .states_([["history"],["history", Color.black, skin.onColor]]) .action_({ |b| try { object.shareHistory } }) .value_(1); Button(zone, Rect(0, ...
-
... + numOuts + 2) * (meterWidth + gapWidth); win = Window.new(" - level meter - ", Rect(point.x, point.y, viewWidth + 20, 230)); //window.view.background = Color.grey(0.4); view = CompositeView(win, Rect(10,25, viewWidth, 180) ); view.addFlowL ...