Ignore:
Timestamp:
08/04/08 12:42:11 (16 years ago)
Author:
ra33
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Simple.java

    r181 r185  
    325325        }
    326326
    327         private static void RunFrame(Text current, boolean acceptKeyboardInput,
     327        private static void RunFrame(Frame frame, Text current, boolean acceptKeyboardInput,
    328328                        boolean step, int pause, Color color) {
    329329                try {
     
    336336                        _step = step;
    337337                        _consumeKeyboardInput = acceptKeyboardInput;
    338                         FrameIO.SaveFrame(DisplayIO.getCurrentFrame(), true);
     338                        FrameIO.SaveFrame(frame, true);
    339339
    340340                        // an item without a link signals to run the current frame
     
    342342                                // Make a copy but hide it
    343343                                current = current.copy();
    344                                 current.setLink(DisplayIO.getCurrentFrame().getName());
     344                                current.setLink(frame.getName());
    345345                        }
    346346
     
    354354        }
    355355
    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);
    362362        }
    363363
     
    368368         * @param pause
    369369         */
    370         public static void DebugFrame(Text current, float pause, Color color) {
     370        public static void DebugFrame(Frame frame, Text current, float pause, Color color) {
    371371                if (isProgramRunning()) {
    372372                        stop();
    373373                }
    374                 RunFrame(current, false, true, Math.round(pause * 1000), color);
     374                RunFrame(frame, current, false, true, Math.round(pause * 1000), color);
    375375        }
    376376
     
    382382         *            the time to pause between
    383383         */
    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);
    390390        }
    391391
Note: See TracChangeset for help on using the changeset viewer.