Weeeeeeeeee, from the right!
authorKent Sutherland <ksuther@ithinksw.com>
Thu, 13 Nov 2003 12:43:13 +0000 (12:43 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Thu, 13 Nov 2003 12:43:13 +0000 (12:43 +0000)
ITSlideHorizontallyWindowEffect.m
Showcase/English.lproj/MainMenu.nib/info.nib
Showcase/English.lproj/MainMenu.nib/keyedobjects.nib

index e3a683c..084211b 100755 (executable)
 
 - (void)setSlide:(float)distance
 {
-    CGAffineTransform transform = CGAffineTransformMakeTranslation((distance - (32.0 + [[_window screen] visibleFrame].origin.x)),
-                                                                   -( [[_window screen] frame].size.height - ( [_window frame].size.height + 32.0 + [[_window screen] visibleFrame].origin.y) ) );
+    CGAffineTransform transform;
+    if ( [(ITTransientStatusWindow *)_window horizontalPosition] == ITWindowPositionLeft ) {
+        NSLog(@"%f", (distance - (32.0 + [[_window screen] visibleFrame].origin.x)));
+        transform = CGAffineTransformMakeTranslation((distance - (32.0 + [[_window screen] visibleFrame].origin.x)),
+                                                    -( [[_window screen] frame].size.height - ( [_window frame].size.height + 32.0 + [[_window screen] visibleFrame].origin.y) ) );
+    } else if ( [(ITTransientStatusWindow *)_window horizontalPosition] == ITWindowPositionRight ) {
+        NSLog(@"%f", [[_window screen] visibleFrame].size.width - ([_window frame].size.width - distance));
+        transform = CGAffineTransformMakeTranslation((32.0 - (([[_window screen] visibleFrame].size.width / 2) + distance)),
+                                                    -( [[_window screen] frame].size.height - ( [_window frame].size.height + 32.0 + [[_window screen] visibleFrame].origin.y) ) );
+    }
 
     CGSSetWindowTransform([NSApp contextID],
                           (CGSWindowID)[_window windowNumber],
index 876a73d..192273f 100755 (executable)
                <string>1 271 349 44 0 0 1056 770 </string>
        </dict>
        <key>IBFramework Version</key>
-       <string>291.0</string>
+       <string>349.0</string>
        <key>IBOpenObjects</key>
        <array>
                <integer>21</integer>
        </array>
        <key>IBSystem Version</key>
-       <string>6L60</string>
+       <string>7C107</string>
 </dict>
 </plist>
index f767f1b..0dcb82d 100755 (executable)
Binary files a/Showcase/English.lproj/MainMenu.nib/keyedobjects.nib and b/Showcase/English.lproj/MainMenu.nib/keyedobjects.nib differ