project_files/HedgewarsMobile/Classes/MapPreviewButtonView.m
changeset 5207 4c9ae0f484da
parent 4976 088d40d8aba2
child 6078 8c0cc07731e5
equal deleted inserted replaced
5206:db775bddf771 5207:4c9ae0f484da
   195     // remove the current preview and title
   195     // remove the current preview and title
   196     [self setImage:nil forState:UIControlStateNormal];
   196     [self setImage:nil forState:UIControlStateNormal];
   197     [self setTitle:nil forState:UIControlStateNormal];
   197     [self setTitle:nil forState:UIControlStateNormal];
   198     
   198     
   199     // don't display preview on slower device, too slow and memory hog
   199     // don't display preview on slower device, too slow and memory hog
   200     if (IS_NOT_POWERFUL()) {
   200     if (IS_NOT_POWERFUL(getModelType())) {
   201         [self setTitle:NSLocalizedString(@"Preview not available",@"") forState:UIControlStateNormal];
   201         [self setTitle:NSLocalizedString(@"Preview not available",@"") forState:UIControlStateNormal];
   202         [self turnOnWidgets];
   202         [self turnOnWidgets];
   203     } else {        
   203     } else {        
   204         // add a very nice spinning wheel
   204         // add a very nice spinning wheel
   205         UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc]
   205         UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc]