Changeset 185 for trunk/src/org/expeditee/actions/Simple.java
- Timestamp:
- 08/04/08 12:42:11 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/Simple.java
r181 r185 325 325 } 326 326 327 private static void RunFrame( Text current, boolean acceptKeyboardInput,327 private static void RunFrame(Frame frame, Text current, boolean acceptKeyboardInput, 328 328 boolean step, int pause, Color color) { 329 329 try { … … 336 336 _step = step; 337 337 _consumeKeyboardInput = acceptKeyboardInput; 338 FrameIO.SaveFrame( DisplayIO.getCurrentFrame(), true);338 FrameIO.SaveFrame(frame, true); 339 339 340 340 // an item without a link signals to run the current frame … … 342 342 // Make a copy but hide it 343 343 current = current.copy(); 344 current.setLink( DisplayIO.getCurrentFrame().getName());344 current.setLink(frame.getName()); 345 345 } 346 346 … … 354 354 } 355 355 356 public static void RunFrame( Text current, boolean acceptKeyboardInput) {357 RunFrame( current, acceptKeyboardInput, false, 0, null);358 } 359 360 public static void RunFrame( Text current) {361 RunFrame( current, false);356 public static void RunFrame(Frame frame, Text current, boolean acceptKeyboardInput) { 357 RunFrame(frame, current, acceptKeyboardInput, false, 0, null); 358 } 359 360 public static void RunFrame(Frame frame, Text current) { 361 RunFrame(frame, current, false); 362 362 } 363 363 … … 368 368 * @param pause 369 369 */ 370 public static void DebugFrame( Text current, float pause, Color color) {370 public static void DebugFrame(Frame frame, Text current, float pause, Color color) { 371 371 if (isProgramRunning()) { 372 372 stop(); 373 373 } 374 RunFrame( current, false, true, Math.round(pause * 1000), color);374 RunFrame(frame, current, false, true, Math.round(pause * 1000), color); 375 375 } 376 376 … … 382 382 * the time to pause between 383 383 */ 384 public static void DebugFrame( Text current, float pause) {385 DebugFrame( current, pause, null);386 } 387 388 public static void DebugFrame( Text current) {389 DebugFrame( current, -1.0F, null);384 public static void DebugFrame(Frame frame, Text current, float pause) { 385 DebugFrame(frame, current, pause, null); 386 } 387 388 public static void DebugFrame(Frame frame, Text current) { 389 DebugFrame(frame, current, -1.0F, null); 390 390 } 391 391
Note:
See TracChangeset
for help on using the changeset viewer.