Skip to content

Commit

Permalink
v1.111
Browse files Browse the repository at this point in the history
  • Loading branch information
juanosarg committed Jun 30, 2020
1 parent 1e383c7 commit 986b818
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 27 deletions.
Binary file modified 1.1/Assemblies/VanillaPowerExpanded.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ public override void PostDraw()
{
if ( parent.TryGetComp<CompFlickable>( out var flickable ) && !flickable.SwitchIsOn )
parent.Map.overlayDrawer.DrawOverlay( parent, GasOverlays.GasOff );

if ( !GasOn && WantsToBeOn) {
parent.Map.overlayDrawer.DrawOverlay(parent, GasOverlays.NeedsGas);

if ( !GasOn && WantsToBeOn )
parent.Map.overlayDrawer.DrawOverlay( parent, GasOverlays.NeedsGas );
}
}

private int lastUsed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,31 +169,7 @@ public override void PostExposeData()
public override void PostDraw()
{
base.PostDraw();
if (!this.parent.IsBrokenDown())
{
if (this.flickableComp != null && !this.flickableComp.SwitchIsOn)
{
this.parent.Map.overlayDrawer.DrawOverlay(this.parent, OverlayTypes.PowerOff);
}
else if (FlickUtility.WantsToBeOn(this.parent))
{
if (!this.PowerOn)
{



Vector3 drawPos = parent.DrawPos;
drawPos.y = BaseAlt + 0.181818187f;
float num = ((float)Math.Sin((double)((Time.realtimeSinceStartup + 397f * (float)(parent.thingIDNumber % 571)) * 4f)) + 1f) * 0.5f;
num = 0.3f + num * 0.7f;
Material material = FadedMaterialPool.FadedVersionOf(OutOfGas, num);
Graphics.DrawMesh(MeshPool.plane08, drawPos, Quaternion.identity, material, 0);


//this.parent.Map.overlayDrawer.DrawOverlay(this.parent, OverlayTypes.NeedsPower);
}
}
}

}

private void RenderPulsingOverlayInternal(Thing thing, Material mat, Vector3 drawPos, Mesh mesh)
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 986b818

Please sign in to comment.