OSDN Git Service

IUpdatableをIUpdateContextとIUpdateTimerに分離する
[kancollesniffer/KancolleSniffer.git] / KancolleSniffer / View / ShipNameWidth.cs
1 // Copyright (C) 2019 Kazuhiro Fujieda <fujieda@users.osdn.me>\r
2 //\r
3 // Licensed under the Apache License, Version 2.0 (the "License");\r
4 // you may not use this file except in compliance with the License.\r
5 // You may obtain a copy of the License at\r
6 //\r
7 //    http://www.apache.org/licenses/LICENSE-2.0\r
8 //\r
9 // Unless required by applicable law or agreed to in writing, software\r
10 // distributed under the License is distributed on an "AS IS" BASIS,\r
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
12 // See the License for the specific language governing permissions and\r
13 // limitations under the License.\r
14 \r
15 namespace KancolleSniffer.View\r
16 {\r
17     /// <summary>\r
18     /// 艦娘名の横幅\r
19     /// 艦娘名のラベルのZ-orderは最下なので名前が長すぎると右隣のラベルの下に隠れるが、\r
20     /// 空装備マークはラベルの右端に表示するので右端が見えるように縮める必要がある。\r
21     /// </summary>\r
22     public enum ShipNameWidth\r
23     {\r
24         MainPanel = 92, // 左端2 HP右端129幅35 129-2-35=92\r
25         AkashiTimer = 53, // 左端2 タイマー左端55 55-2=53 漢字4文字\r
26         NDock = 65, // 左端29 終了時刻右端138幅47 138-47-29=62 空装備マークなし漢字5文字65\r
27         RepairList = 65, // 左端9 時間左端75 75-9=66 漢字5文字65\r
28         RepairListFull = 73, // 左端10 HP右端118幅35 118-10-35=73\r
29         ShipList = 81, // 左端10 HP右端126幅35 126-10-35=81\r
30         GroupConfig = 80, // 左端10 レベル左端90 90-10=80\r
31         Combined = 53, // 左端2 HP右端88幅35 88-2-35=51 空装備マーク犠牲 漢字4文字53\r
32         BattleResult = 65, // 左端2 HP右端101幅35 101-1-35=65\r
33         CiShipName = 65, // 左端168幅236 236-168=68 漢字5文字65\r
34         Max = int.MaxValue\r
35     }\r
36 }