equal
deleted
inserted
replaced
80 |
80 |
81 return self; |
81 return self; |
82 } |
82 } |
83 |
83 |
84 #pragma mark - |
84 #pragma mark - |
85 #pragma mark Show and Hide overlaid buttons |
85 #pragma mark Exported functions for FreePascal |
86 |
86 |
87 // standard C function to be called from pascal |
87 const char* IPH_getDocumentsPath() { |
88 void showControls(void) { |
88 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); |
|
89 NSString *documentsDirectory = [paths objectAtIndex: 0]; |
|
90 return [documentsDirectory UTF8String]; |
|
91 } |
|
92 |
|
93 void IPH_showControls (void) { |
89 NSLog(@"Showing controls"); |
94 NSLog(@"Showing controls"); |
90 [UIView beginAnimations:nil context:NULL]; |
95 [UIView beginAnimations:nil context:NULL]; |
91 [UIView setAnimationDuration:0.5]; |
96 [UIView setAnimationDuration:0.5]; |
92 attackButton.frame = CGRectMake(30, 430, 260, 50); |
97 attackButton.frame = CGRectMake(30, 430, 260, 50); |
93 menuButton.frame = CGRectMake(0, 430, 30, 50); |
98 menuButton.frame = CGRectMake(0, 430, 30, 50); |