OSDN Git Service

小さいサイズ用の退避ラベルが使用されていなかったので使用するようにした
authormasakih <masakih@users.sourceforge.jp>
Tue, 3 May 2016 12:39:46 +0000 (21:39 +0900)
committermasakih <masakih@users.sourceforge.jp>
Tue, 3 May 2016 12:39:46 +0000 (21:39 +0900)
KCD/HMShipDetailViewController.m

index 400751b..4cdc150 100644 (file)
@@ -21,6 +21,8 @@
 
 @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;
@@ -71,6 +73,7 @@
                           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