Display bit-achievements as active

This commit is contained in:
Kurt
2020-05-22 00:05:39 -07:00
parent 406b64333a
commit 180e337f05

View File

@@ -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)