• 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

修订版8e13706711d79cb09d2cceed0f792adfdf2895b5 (tree)
时间2013-11-10 22:26:40
作者masakih <masakih@user...>
Commitermasakih

Log Message

艦娘の10000以上のダミーナンバーを表示しないようにした

更改概述

差异

--- a/KanColleLevelManager.xcodeproj/project.pbxproj
+++ b/KanColleLevelManager.xcodeproj/project.pbxproj
@@ -43,6 +43,7 @@
4343 F4837E18181BEEFA003E879C /* KCFleetViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F4837E16181BEEFA003E879C /* KCFleetViewController.m */; };
4444 F4837E19181BEEFA003E879C /* KCFleetViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F4837E17181BEEFA003E879C /* KCFleetViewController.xib */; };
4545 F4837E1B181CF395003E879C /* BattleArea.plist in Resources */ = {isa = PBXBuildFile; fileRef = F4837E1A181CF395003E879C /* BattleArea.plist */; };
46+ F4BA7F18182FB8C500B37348 /* Ship.m in Sources */ = {isa = PBXBuildFile; fileRef = F4BA7F17182FB8C500B37348 /* Ship.m */; };
4647 /* End PBXBuildFile section */
4748
4849 /* Begin PBXContainerItemProxy section */
@@ -110,6 +111,8 @@
110111 F4837E16181BEEFA003E879C /* KCFleetViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KCFleetViewController.m; sourceTree = "<group>"; };
111112 F4837E17181BEEFA003E879C /* KCFleetViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KCFleetViewController.xib; sourceTree = "<group>"; };
112113 F4837E1A181CF395003E879C /* BattleArea.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = BattleArea.plist; sourceTree = "<group>"; };
114+ F4BA7F16182FB8C500B37348 /* Ship.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Ship.h; sourceTree = "<group>"; };
115+ F4BA7F17182FB8C500B37348 /* Ship.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Ship.m; sourceTree = "<group>"; };
113116 /* End PBXFileReference section */
114117
115118 /* Begin PBXFrameworksBuildPhase section */
@@ -182,6 +185,8 @@
182185 F448271118292C01000F1CC2 /* KCDataImporter.m */,
183186 F457DDB7180BB1C500885A7F /* Images.xcassets */,
184187 F457DDB4180BB1C500885A7F /* KanColleLevelManager.xcdatamodeld */,
188+ F4BA7F16182FB8C500B37348 /* Ship.h */,
189+ F4BA7F17182FB8C500B37348 /* Ship.m */,
185190 F4837DED180C33B6003E879C /* CollectedShip.h */,
186191 F4837DEE180C33B6003E879C /* CollectedShip.m */,
187192 F4837DFE181362C0003E879C /* KCFleet.h */,
@@ -366,6 +371,7 @@
366371 F4837DF5180D9454003E879C /* KCCollectionWindowController.m in Sources */,
367372 F4837E13181BEBBB003E879C /* KCBattleWindowController.m in Sources */,
368373 F4837E0918169955003E879C /* KCShipViewController.m in Sources */,
374+ F4BA7F18182FB8C500B37348 /* Ship.m in Sources */,
369375 F457DDA9180BB1C500885A7F /* main.m in Sources */,
370376 F457DDB0180BB1C500885A7F /* HMAppDelegate.m in Sources */,
371377 F457DDB6180BB1C500885A7F /* KanColleLevelManager.xcdatamodeld in Sources */,
--- a/KanColleLevelManager/KCCollectionWindowController.xib
+++ b/KanColleLevelManager/KCCollectionWindowController.xib
@@ -1,8 +1,8 @@
11 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4510" systemVersion="12F37" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
2+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
33 <dependencies>
44 <deployment defaultVersion="1070" identifier="macosx"/>
5- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4510"/>
5+ <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
66 </dependencies>
77 <objects>
88 <customObject id="-2" userLabel="File's Owner" customClass="KCCollectionWindowController">
@@ -60,7 +60,11 @@
6060 </textFieldCell>
6161 <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
6262 <connections>
63- <binding destination="TYb-36-xds" name="value" keyPath="arrangedObjects.ship.number" id="jDS-N6-J8T"/>
63+ <binding destination="TYb-36-xds" name="value" keyPath="arrangedObjects.ship.tranceformedNumber" id="k1J-v0-1fi">
64+ <dictionary key="options">
65+ <bool key="NSConditionallySetsEditable" value="YES"/>
66+ </dictionary>
67+ </binding>
6468 </connections>
6569 </tableColumn>
6670 <tableColumn width="40" minWidth="40" maxWidth="1000" id="C4m-LV-Pev">
@@ -152,11 +156,11 @@
152156 </subviews>
153157 <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
154158 </clipView>
155- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" id="22X-QW-GfI">
159+ <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="22X-QW-GfI">
156160 <rect key="frame" x="1" y="458" width="413" height="16"/>
157161 <autoresizingMask key="autoresizingMask"/>
158162 </scroller>
159- <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" id="8sN-BA-7hO">
163+ <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="8sN-BA-7hO">
160164 <rect key="frame" x="398" y="17" width="16" height="457"/>
161165 <autoresizingMask key="autoresizingMask"/>
162166 </scroller>
@@ -192,7 +196,11 @@
192196 </textFieldCell>
193197 <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
194198 <connections>
195- <binding destination="lhJ-Yl-dOi" name="value" keyPath="arrangedObjects.number" id="lyG-ne-F02"/>
199+ <binding destination="lhJ-Yl-dOi" name="value" keyPath="arrangedObjects.number" id="OjG-PY-3lB">
200+ <dictionary key="options">
201+ <bool key="NSConditionallySetsEditable" value="YES"/>
202+ </dictionary>
203+ </binding>
196204 </connections>
197205 </tableColumn>
198206 <tableColumn editable="NO" width="83.04296875" minWidth="40" maxWidth="1000" id="Wxc-AK-VCT">
@@ -232,11 +240,11 @@
232240 </subviews>
233241 <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
234242 </clipView>
235- <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" id="kEq-U1-hrW">
243+ <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="kEq-U1-hrW">
236244 <rect key="frame" x="1" y="458" width="252" height="16"/>
237245 <autoresizingMask key="autoresizingMask"/>
238246 </scroller>
239- <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" id="lUx-nW-wCM">
247+ <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="lUx-nW-wCM">
240248 <rect key="frame" x="237" y="17" width="16" height="457"/>
241249 <autoresizingMask key="autoresizingMask"/>
242250 </scroller>
--- a/KanColleLevelManager/KCFleetWindowController.xib
+++ b/KanColleLevelManager/KCFleetWindowController.xib
@@ -51,7 +51,7 @@
5151 </textFieldCell>
5252 <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
5353 <connections>
54- <binding destination="XkY-x3-PYP" name="value" keyPath="arrangedObjects.ship.number" id="kV3-aV-Ird"/>
54+ <binding destination="XkY-x3-PYP" name="value" keyPath="arrangedObjects.ship.tranceformedNumber" id="rv8-0r-tzw"/>
5555 </connections>
5656 </tableColumn>
5757 <tableColumn width="70.22265625" minWidth="40" maxWidth="1000" id="sqg-Ah-fkU">
--- a/KanColleLevelManager/KanColleLevelManager.xcdatamodeld/KanColleLevelManager.xcdatamodel/contents
+++ b/KanColleLevelManager/KanColleLevelManager.xcdatamodeld/KanColleLevelManager.xcdatamodel/contents
@@ -21,11 +21,12 @@
2121 <attribute name="subAreaName" attributeType="String" syncable="YES"/>
2222 <relationship name="area" maxCount="1" deletionRule="Nullify" destinationEntity="Area" inverseName="plans" inverseEntity="Area" syncable="YES"/>
2323 </entity>
24- <entity name="Ship" syncable="YES">
24+ <entity name="Ship" representedClassName="Ship" syncable="YES">
2525 <attribute name="imageURL" optional="YES" attributeType="Transformable" syncable="YES"/>
2626 <attribute name="name" attributeType="String" indexed="YES" syncable="YES"/>
2727 <attribute name="number" attributeType="Integer 16" syncable="YES"/>
2828 <attribute name="smallImageURL" optional="YES" attributeType="Transformable" syncable="YES"/>
29+ <attribute name="tranceformedNumber" optional="YES" transient="YES" attributeType="Integer 16" defaultValueString="0" syncable="YES"/>
2930 <attribute name="updateLevel" optional="YES" attributeType="Integer 16" syncable="YES"/>
3031 <attribute name="updateNumber" optional="YES" attributeType="Integer 16" syncable="YES"/>
3132 <relationship name="collection" optional="YES" toMany="YES" deletionRule="Nullify" destinationEntity="CollectedShip" inverseName="ship" inverseEntity="CollectedShip" syncable="YES"/>
--- /dev/null
+++ b/KanColleLevelManager/Ship.h
@@ -0,0 +1,34 @@
1+//
2+// Ship.h
3+// KanColleLevelManager
4+//
5+// Created by Hori,Masaki on 2013/11/10.
6+// Copyright (c) 2013年 Hori,Masaki. All rights reserved.
7+//
8+
9+#import <Foundation/Foundation.h>
10+#import <CoreData/CoreData.h>
11+
12+@class CollectedShip;
13+
14+@interface Ship : NSManagedObject
15+
16+@property (nonatomic, retain) id imageURL;
17+@property (nonatomic, retain) NSString * name;
18+@property (nonatomic, retain) NSNumber * number;
19+@property (nonatomic, retain) id smallImageURL;
20+@property (nonatomic, retain) NSNumber * updateLevel;
21+@property (nonatomic, retain) NSNumber * updateNumber;
22+@property (readonly) NSNumber * tranceformedNumber;
23+@property (nonatomic, retain) NSSet *collection;
24+@property (nonatomic, retain) NSManagedObject *type;
25+@end
26+
27+@interface Ship (CoreDataGeneratedAccessors)
28+
29+- (void)addCollectionObject:(CollectedShip *)value;
30+- (void)removeCollectionObject:(CollectedShip *)value;
31+- (void)addCollection:(NSSet *)values;
32+- (void)removeCollection:(NSSet *)values;
33+
34+@end
--- /dev/null
+++ b/KanColleLevelManager/Ship.m
@@ -0,0 +1,34 @@
1+//
2+// Ship.m
3+// KanColleLevelManager
4+//
5+// Created by Hori,Masaki on 2013/11/10.
6+// Copyright (c) 2013年 Hori,Masaki. All rights reserved.
7+//
8+
9+#import "Ship.h"
10+#import "CollectedShip.h"
11+
12+
13+@implementation Ship
14+
15+@dynamic imageURL;
16+@dynamic name;
17+@dynamic number;
18+@dynamic smallImageURL;
19+@dynamic updateLevel;
20+@dynamic updateNumber;
21+@dynamic collection;
22+@dynamic type;
23+
24+
25+- (NSNumber *)tranceformedNumber
26+{
27+ NSNumber *number = self.number;
28+ if(NSOrderedDescending == [number compare:@(10000)]) {
29+ return @([number integerValue] - 10000);
30+ }
31+ return number;
32+}
33+
34+@end