Skip to content

Commit

Permalink
Version 4.6.0
Browse files Browse the repository at this point in the history
* 艦船図鑑:艦型も表示するように
  • Loading branch information
andanteyk committed Jun 7, 2020
1 parent 67391f7 commit a5b368c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ElectronicObserver/Utility/SoftwareInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ public static class SoftwareInformation
/// <summary>
/// バージョン(日本語, ソフトウェア名を含みます)
/// </summary>
public static string VersionJapanese => SoftwareNameJapanese + "四五型改";
public static string VersionJapanese => SoftwareNameJapanese + "四六型";


/// <summary>
/// バージョン(英語)
/// </summary>
public static string VersionEnglish => "4.5.1";
public static string VersionEnglish => "4.6.0";



/// <summary>
/// 更新日時
/// </summary>
public static DateTime UpdateTime => DateTimeHelper.CSVStringToTime("2020/04/26 15:00:00");
public static DateTime UpdateTime => DateTimeHelper.CSVStringToTime("2020/06/07 23:00:00");



Expand Down
11 changes: 7 additions & 4 deletions ElectronicObserver/Window/Dialog/DialogAlbumMasterShip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,19 @@ private void UpdateAlbumPage(int shipID)
ToolTipInfo.SetToolTip(ResourceName, string.Format("リソース名: {0}\r\nグラフィック ver. {1}\r\nボイス ver. {2}\r\n母港ボイス ver. {3}\r\n({4})",
ship.ResourceName, ship.ResourceGraphicVersion, ship.ResourceVoiceVersion, ship.ResourcePortVoiceVersion, Constants.GetVoiceFlag(ship.VoiceFlag)));


ShipType.Text = ship.IsLandBase ? "陸上施設" : ship.ShipTypeName;
{
string shipClassName = Constants.GetShipClass(ship.ShipClass);
bool isShipClassUnknown = shipClassName == "不明";

ShipType.Text = (ship.IsAbyssalShip ? "深海" : isShipClassUnknown ? "" : shipClassName) + (ship.IsLandBase ? "陸上施設" : ship.ShipTypeName);

var tip = new StringBuilder();
if (ship.IsAbyssalShip)
tip.AppendLine($"艦型ID: {ship.ShipClass}");
else if (Constants.GetShipClass(ship.ShipClass) == "不明")
else if (isShipClassUnknown)
tip.AppendLine($"艦型不明: {ship.ShipClass}");
else
tip.AppendLine($"{Constants.GetShipClass(ship.ShipClass)}: {ship.ShipClass}");
tip.AppendLine($"{shipClassName}: {ship.ShipClass}");

tip.AppendLine();
tip.AppendLine("装備可能:");
Expand Down

0 comments on commit a5b368c

Please sign in to comment.