@property (readonly) NSManagedObjectContext *managedObjectContext;
+@property (nonatomic) HMShipDetailViewType type;
+
@property (nonatomic, weak) IBOutlet HMSuppliesView *supply;
@property (nonatomic, weak) IBOutlet HMGuardEscapedView *guardEscapedView;
@property (nonatomic, weak) IBOutlet HMDamageView *damageView;
selector:@selector(updateStatus:)
name:HMGuardShelterCommandDidUpdateGuardExcapeNotification
object:nil];
+ _type = type;
}
return self;
}
[self.guardEscapedView setFrameOrigin:NSZeroPoint];
[self.view addSubview:self.guardEscapedView];
+ if(self.type == medium || self.type == minimum) {
+ self.guardEscapedView.controlSize = NSMiniControlSize;
+ }
[self.slot00Field bind:@"slotItemID"
toObject:self.shipController