summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/ToggleZoomMode.java
blob: 0ebabd5ff67088c0af0b6fde6784c643e30efbed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*    */ package NET.worlds.scape;
/*    */ 
/*    */ import NET.worlds.console.Window;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ToggleZoomMode
/*    */   extends Action
/*    */ {
/*    */   public Persister trigger(Event e, Persister seqID)
/*    */   {
/* 31 */     if ((!(e.receiver instanceof Pilot)) || (!((Pilot)e.receiver).isActive())) {
/* 32 */       return null;
/*    */     }
/* 34 */     Window w = Window.getMainWindow();
/* 35 */     if (w == null) {
/* 36 */       return null;
/*    */     }
/* 38 */     w.setDeltaMode(!w.getDeltaMode());
/*    */     
/* 40 */     return null;
/*    */   }
/*    */ }


/* Location:              C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\ToggleZoomMode.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */