Skip to content

Commit

Permalink
fix(ui): make tier upgrade screen visible again (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenira authored Jan 27, 2024
1 parent b24b093 commit 147013e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- id: release
uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
config-file: release-please-config.json
- name: Download release artifact
if: ${{ steps.release.outputs.release_created }}
uses: actions/download-artifact@v4
with:
name: release-artifact
path: artifact
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.DEPENDENCY_TOKEN }}
- id: release
uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
config-file: release-please-config.json
- name: Download Tobey.UnityAudio
if: ${{ steps.release.outputs.release_created }}
uses: dsaltares/fetch-gh-release-asset@1.1.1
Expand Down
2 changes: 0 additions & 2 deletions plugin/src/patch/main_game/ui/IaCMenuPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ protected override bool Apply(GameObject gameObject)
iac.Refresh();
};

allButtonMappings.SetActive(false);

return true;
}
}
19 changes: 19 additions & 0 deletions plugin/src/patch/main_game/ui/ProductionTerminalPatch.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using TechtonicaVR.Util;
using UnityEngine;

namespace TechtonicaVR.Patches.MainGame.UI;
Expand All @@ -12,6 +13,24 @@ protected override bool Apply(ProductionTerminalMenu component)
return false;
}

var celebration = tlc.GetComponentInChildren<ProductionTerminalCelebration>();
if (celebration == null)
{
return false;
}

var celebrationText = GameObjectFinder.FindChildObjectByName("VFX_AnimatedScaled_Text", celebration.gameObject);
if (celebrationText == null)
{
return false;
}

foreach (var child in celebration.GetComponentsInChildren<Transform>())
{
child.gameObject.layer = 0;
}
celebrationText.transform.localPosition += new Vector3(0, 0, -250);

tlc.localPosition = Vector3.zero;
return true;
}
Expand Down

0 comments on commit 147013e

Please sign in to comment.