Merge pull request #1 from mrsebseb/1.5

1.5 Support, Draw to DrawAt
This commit is contained in:
2024-05-07 14:16:38 -05:00
committed by GitHub

View File

@@ -234,13 +234,13 @@ namespace HydroponicsExpanded {
private static readonly Material HydroponicUnfilledMaterial =
SolidColorMaterials.SimpleSolidColorMaterial(new Color(0.3f, 0.3f, 0.3f));
public override void Draw() {
base.Draw();
protected override void DrawAt(Vector3 drawLoc, bool flip=false) {
base.DrawAt(drawLoc, flip);
// Only draw growth percentage bar during Sowing stage
if (_stage == HydroponicsStage.Grow) {
var bar = new GenDraw.FillableBarRequest {
center = DrawPos + Vector3.up * 0.1f,
center = drawLoc + Vector3.up * 0.1f,
size = new Vector2(DrawSize.y - 0.4f, DrawSize.x - 0.4f),
margin = 0.15f,
fillPercent = _highestGrowth,