mirror of
https://github.com/kwsch/NHSE.git
synced 2026-08-22 18:45:23 -05:00
Display bit-achievements as active
This commit is contained in:
@@ -52,7 +52,13 @@ public void ChangeCount(in int index, in int row, in uint count)
|
||||
return;
|
||||
|
||||
var threshold = detail.GetThresholdValue(row);
|
||||
L_Threshold.ForeColor = row < detail.AchievementCount && count >= threshold ? Color.Red : CHK_Read.ForeColor;
|
||||
if (threshold == 0)
|
||||
{
|
||||
var bit = (count >> row) & 1;
|
||||
L_Threshold.ForeColor = bit != 0 ? Color.Red : CHK_Read.ForeColor;
|
||||
return;
|
||||
}
|
||||
L_Threshold.ForeColor = count >= threshold ? Color.Red : CHK_Read.ForeColor;
|
||||
}
|
||||
|
||||
private void CAL_Date_MouseDown(object sender, MouseEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user