• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

艦これの経験値を管理するツール


Commit MetaInfo

修订版9ed350cd3182773cb8cd0f2a88435443ef6f2ab9 (tree)
时间2013-11-11 00:29:59
作者masakih <masakih@user...>
Commitermasakih

Log Message

遠征タグ選択時に強制的にA勝利を選択しほかを選択不能にした

更改概述

差异

--- a/KanColleLevelManager/KCBattleWindowController.m
+++ b/KanColleLevelManager/KCBattleWindowController.m
@@ -26,6 +26,8 @@
2626
2727 @property (retain) NSObjectController *selectedController;
2828
29+@property NSInteger prevSelectedWinTag;
30+
2931 @end
3032
3133 @interface KCBattleWindowController (KC_NSTabViewDelegate) <NSTabViewDelegate>
@@ -148,14 +150,29 @@
148150 }
149151 }
150152
153+- (void)setManueverMode:(BOOL)flag
154+{
155+ if(flag) {
156+ self.prevSelectedWinTag = [[self.winRadio selectedCell] tag];
157+ [self.winRadio selectCellWithTag:2];
158+ [self.winRadio setEnabled:NO];
159+ } else {
160+ [self.winRadio setEnabled:YES];
161+ [self.winRadio selectCellWithTag:self.prevSelectedWinTag];
162+ }
163+}
151164
152165 - (void)tabView:(NSTabView *)tabView didSelectTabViewItem:(NSTabViewItem *)tabViewItem
153166 {
154167 NSString *identifier = [tabViewItem identifier];
155168 if([identifier isEqualToString:@"battle"]) {
156169 self.selectedController = self.battleViewController.controller;
170+ [self setManueverMode:NO];
157171 } else if([identifier isEqualToString:@"manuever"]) {
158172 self.selectedController = self.manueverViewController.controller;
173+ [self setManueverMode:YES];
174+ } else {
175+ [self setManueverMode:NO];
159176 }
160177 }
161178