OSDN Git Service
(root)
/
kancollesniffer
/
KancolleSniffer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e69cfc
)
大破時の文字色を黄色にする
author
Kazuhiro Fujieda
<fujieda@users.osdn.me>
Fri, 3 May 2019 06:18:15 +0000
(15:18 +0900)
committer
Kazuhiro Fujieda
<fujieda@users.osdn.me>
Fri, 3 May 2019 06:18:15 +0000
(15:18 +0900)
KancolleSniffer/View/ShipLabel.cs
patch
|
blob
|
history
diff --git
a/KancolleSniffer/View/ShipLabel.cs
b/KancolleSniffer/View/ShipLabel.cs
index
7e4d747
..
8753cd3
100644
(file)
--- a/
KancolleSniffer/View/ShipLabel.cs
+++ b/
KancolleSniffer/View/ShipLabel.cs
@@
-142,12
+142,14
@@
namespace KancolleSniffer.View
if (status == null)
\r
{
\r
Text = "";
\r
+ ForeColor = DefaultForeColor;
\r
BackColor = PresetColor;
\r
return;
\r
}
\r
Text = _hpPercent
\r
? $"{(int)Floor(status.NowHp * 100.0 / status.MaxHp):D}%"
\r
: $"{status.NowHp:D}/{status.MaxHp:D}";
\r
+ ForeColor = status.DamageLevel == ShipStatus.Damage.Badly ? CUDColors.Yellow : DefaultForeColor;
\r
BackColor = DamageColor(status);
\r
}
\r
\r