mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
More of reusing objects in SexStatusViewModel
This commit is contained in:
parent
bed83e1eca
commit
ffe6a9b7f7
6 changed files with 212 additions and 209 deletions
|
@ -47,25 +47,5 @@ namespace RJWSexperience.SexHistory.UI
|
|||
_labelRight = "";
|
||||
Border = null;
|
||||
}
|
||||
|
||||
public BarInfo(string label, float fillPercent, Texture2D fillTexture, TipSignal tooltip, string labelRight = "", Texture2D border = null)
|
||||
{
|
||||
_label = label.CapitalizeFirst();
|
||||
_fillPercent = Mathf.Clamp01(fillPercent);
|
||||
FillTexture = fillTexture;
|
||||
Tooltip = tooltip;
|
||||
_labelRight = labelRight.CapitalizeFirst();
|
||||
Border = border;
|
||||
}
|
||||
|
||||
public BarInfo(string label, float fillPercent, Texture2D fillTexture, string labelRight = "")
|
||||
{
|
||||
_label = label.CapitalizeFirst();
|
||||
_fillPercent = Mathf.Clamp01(fillPercent);
|
||||
FillTexture = fillTexture;
|
||||
Tooltip = default;
|
||||
_labelRight = labelRight.CapitalizeFirst();
|
||||
Border = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue