Revision | c9a72a3179836f059133c8fd2dead0d1f0cf37d2 (tree) |
---|---|
Zeit | 2020-03-20 21:29:53 |
Autor | Kazuhiro Fujieda <fujieda@user...> |
Commiter | Kazuhiro Fujieda |
メインウィンドウに制空状態を文字で表示する
@@ -111,7 +111,7 @@ namespace KancolleSniffer | ||
111 | 111 | { |
112 | 112 | PanelShipInfo = panelShipInfo, |
113 | 113 | Panel7Ships = panel7Ships, |
114 | - PanelCombinedFleet = panelCombinedFleet, | |
114 | + PanelCombinedFleet = panelCombinedFleet | |
115 | 115 | }, ShowShipOnShipList); |
116 | 116 | _ndockLabels.Create(panelDock, labelNDock_Click); |
117 | 117 | } |
@@ -765,7 +765,7 @@ namespace KancolleSniffer | ||
765 | 765 | _notificationManager.Flash(); |
766 | 766 | } |
767 | 767 | |
768 | - public void UpdateFighterPower(bool combined) | |
768 | + private void UpdateFighterPower(bool combined) | |
769 | 769 | { |
770 | 770 | var fleets = Sniffer.Fleets; |
771 | 771 | var fp = combined |
@@ -822,6 +822,7 @@ namespace KancolleSniffer | ||
822 | 822 | labelFormation.Text = ""; |
823 | 823 | labelEnemyFighterPower.Text = ""; |
824 | 824 | labelFighterPower.ForeColor = DefaultForeColor; |
825 | + labelFighterPowerCaption.Text = "制空"; | |
825 | 826 | labelResultRank.Text = "判定"; |
826 | 827 | panelBattleInfo.Visible = Sniffer.Battle.BattleState != BattleState.None; |
827 | 828 | } |
@@ -830,9 +831,8 @@ namespace KancolleSniffer | ||
830 | 831 | { |
831 | 832 | UpdateEnemyFighterPower(); |
832 | 833 | var battle = Sniffer.Battle; |
833 | - labelFighterPower.ForeColor = battle.BattleState == BattleState.Night | |
834 | - ? DefaultForeColor | |
835 | - : AirControlLevelColor(battle.AirControlLevel); | |
834 | + labelFighterPower.ForeColor = AirControlLevelColor(battle); | |
835 | + labelFighterPowerCaption.Text = AirControlLevelString(battle); | |
836 | 836 | if (battle.BattleState == BattleState.AirRaid) |
837 | 837 | { |
838 | 838 | UpdateAirRaidFighterPower(); |
@@ -861,13 +861,17 @@ namespace KancolleSniffer | ||
861 | 861 | _toolTip.SetToolTip(labelFighterPowerCaption, toolTop); |
862 | 862 | } |
863 | 863 | |
864 | - private static Color AirControlLevelColor(int level) | |
864 | + private static Color AirControlLevelColor(BattleInfo battle) | |
865 | 865 | { |
866 | - var colors = new[] | |
867 | - { | |
868 | - DefaultForeColor, DefaultForeColor, CUDColors.Blue, CUDColors.Green, CUDColors.Orange, CUDColors.Red | |
869 | - }; | |
870 | - return colors[level + 1]; | |
866 | + return new[] | |
867 | + {DefaultForeColor, DefaultForeColor, CUDColors.Blue, CUDColors.Green, CUDColors.Orange, CUDColors.Red}[ | |
868 | + battle.BattleState == BattleState.Night ? 0 : battle.AirControlLevel + 1]; | |
869 | + } | |
870 | + | |
871 | + private static string AirControlLevelString(BattleInfo battle) | |
872 | + { | |
873 | + return new[] {"制空", "拮抗", "確保", "優勢", "劣勢", "喪失"}[ | |
874 | + battle.BattleState == BattleState.Night ? 0 : battle.AirControlLevel + 1]; | |
871 | 875 | } |
872 | 876 | |
873 | 877 | private void ShowResultRank() |