private Sprite isLicence(UssageLicense tex) { if (tex == UssageLicense.Allow) { return(maru); } else { return(batu); } }
string ColorizeVrmUsageLicense(UssageLicense license) { if (license == UssageLicense.Allow) { return("Allow"); } else { return("<color=red>Disallow</color>"); } }
private void SetUssageLabel(UssageLicense ussage, Label iconLabel, Label label) { if (ussage == UssageLicense.Disallow) { iconLabel.Text = "×"; iconLabel.ForeColor = Color.Red; label.Text = "不許可"; } else if (ussage == UssageLicense.Allow) { iconLabel.Text = "○"; iconLabel.ForeColor = Color.Green; label.Text = "許可"; } else { iconLabel.Text = "?"; iconLabel.ForeColor = Color.Black; label.Text = "不明な値です"; } }