






#import "TabTopGainWasController.h"
#import "OurCharViewController.h"

@interface TabTopGainWasController ()

@end

@implementation TabTopGainWasController


- (BOOL)shouldAutorotate {
    return self.topViewController.shouldAutorotate;
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
    return self.topViewController.supportedInterfaceOrientations;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.interactivePopGestureRecognizer.enabled = NO;
    [self setNavigationBarHidden:YES];
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:.3];
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    
    CGPoint point = [[touches anyObject] locationInView:self.view];
    
    UIView *ageView = self.topViewController.view;
    
    point = [ageView.layer convertPoint:point fromLayer:self.view.layer];
    
    OurCharViewController *job = (OurCharViewController *)self.topViewController;
    if (![ageView.layer containsPoint:point]) {
        [job specifiedPerformedNauticalShortPop:touches withEvent:event];
    }else{  
        [super touchesBegan:touches withEvent:event];
    }
}

- (void)pushViewController:(OurCharViewController *)viewController animated:(BOOL)animated
{
    if (self.childViewControllers.count > 0) {
        viewController.bleedWarpButton.hidden = NO;
    }else {
        viewController.bleedWarpButton.hidden = YES;
    }
    [super pushViewController:viewController animated:animated];
    
}
- (void)dealloc {
    
}
@end
