project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 6832 fae8fd118da9
parent 6830 d2df090453aa
child 6869 a187c280dd3d
equal deleted inserted replaced
6831:f848120b3fcc 6832:fae8fd118da9
    12  * GNU General Public License for more details.
    12  * GNU General Public License for more details.
    13  *
    13  *
    14  * You should have received a copy of the GNU General Public License
    14  * You should have received a copy of the GNU General Public License
    15  * along with this program; if not, write to the Free Software
    15  * along with this program; if not, write to the Free Software
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    17  *
       
    18  * File created on 16/03/2010.
       
    19  */
    17  */
    20 
    18 
    21 
    19 
    22 #import "OverlayViewController.h"
    20 #import "OverlayViewController.h"
    23 #import "InGameMenuViewController.h"
    21 #import "InGameMenuViewController.h"
    28 #define HIDING_TIME_DEFAULT [NSDate dateWithTimeIntervalSinceNow:2.7]
    26 #define HIDING_TIME_DEFAULT [NSDate dateWithTimeIntervalSinceNow:2.7]
    29 #define HIDING_TIME_NEVER   [NSDate dateWithTimeIntervalSinceNow:10000]
    27 #define HIDING_TIME_NEVER   [NSDate dateWithTimeIntervalSinceNow:10000]
    30 #define doDim()             [dimTimer setFireDate:HIDING_TIME_DEFAULT]
    28 #define doDim()             [dimTimer setFireDate:HIDING_TIME_DEFAULT]
    31 #define doNotDim()          [dimTimer setFireDate:HIDING_TIME_NEVER]
    29 #define doNotDim()          [dimTimer setFireDate:HIDING_TIME_NEVER]
    32 
    30 
    33 
       
    34 @implementation OverlayViewController
    31 @implementation OverlayViewController
    35 @synthesize popoverController, popupMenu, helpPage, loadingIndicator, confirmButton, grenadeTimeSegment;
    32 @synthesize popoverController, popupMenu, helpPage, loadingIndicator, confirmButton, grenadeTimeSegment;
    36 
    33 
    37 #pragma mark -
    34 #pragma mark -
    38 #pragma mark rotation
    35 #pragma mark rotation
    39 
       
    40 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
    36 -(BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation {
    41     return rotationManager(interfaceOrientation);
    37     return rotationManager(interfaceOrientation);
    42 }
    38 }
    43 
    39 
    44 #pragma mark -
    40 #pragma mark -