Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #32 from LaicosVK/luemmel
Browse files Browse the repository at this point in the history
TOR
  • Loading branch information
LaicosVK authored Feb 23, 2022
2 parents 49ab53b + 8f499da commit e77584f
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 1,424 deletions.
Binary file modified Images/TOR_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Images/TOR_server.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,457 changes: 37 additions & 1,420 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion TheOtherRoles/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public override void Load() {

if (ToggleCursor.Value) {
Helpers.enableCursor(true);
}
}
}
public static Sprite GetModStamp() {
if (ModStamp) return ModStamp;
Expand Down
8 changes: 5 additions & 3 deletions TheOtherRoles/Patches/CredentialsPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
namespace TheOtherRoles.Patches {
[HarmonyPatch]
public static class CredentialsPatch {
public static string fullCredentials = $@"<size=130%><color=#ff351f>TheEpicRoles</color></size> v{TheOtherRolesPlugin.Version.ToString()} <size=60%>Remodded by <color=#D5342AFF>LaicosVK</color>, <color=#D5342AFF>Nova</color> & <color=#D5342AFF>DasMonschta</color></size>";
public static string fullCredentials = $@"<size=130%><color=#00ffd9>TheEpicRoles</color></size> <size=50%>v{TheOtherRolesPlugin.Version.ToString()}
Remodded by <color=#D5342AFF>LaicosVK</color>, <color=#D5342AFF>Nova</color> & <color=#D5342AFF>DasMonschta</color></size>";

public static string mainMenuCredentials = $@"Remodded by <color=#D5342AFF>LaicosVK</color>, <color=#D5342AFF>Nova</color> & <color=#D5342AFF>DasMonschta</color>";

Expand Down Expand Up @@ -37,6 +38,7 @@ private static class PingTrackerPatch
{
private static GameObject modStamp;
static void Prefix(PingTracker __instance) {

if (modStamp == null) {
modStamp = new GameObject("ModStamp");
var rend = modStamp.AddComponent<SpriteRenderer>();
Expand All @@ -52,7 +54,7 @@ static void Prefix(PingTracker __instance) {
static void Postfix(PingTracker __instance){
__instance.text.alignment = TMPro.TextAlignmentOptions.TopRight;
if (AmongUsClient.Instance.GameState == InnerNet.InnerNetClient.GameStates.Started) {
__instance.text.text = $"<size=130%><color=#ff351f>TheOtherRoles</color></size> v{TheOtherRolesPlugin.Version.ToString()}\n" + __instance.text.text;
__instance.text.text = $"<size=130%><color=#ff351f>TheEpicRoles</color></size> v{TheOtherRolesPlugin.Version.ToString()}\n" + __instance.text.text;
if (PlayerControl.LocalPlayer.Data.IsDead || (!(PlayerControl.LocalPlayer == null) && (PlayerControl.LocalPlayer == Lovers.lover1 || PlayerControl.LocalPlayer == Lovers.lover2))) {
__instance.transform.localPosition = new Vector3(3.45f, __instance.transform.localPosition.y, __instance.transform.localPosition.z);
} else {
Expand All @@ -73,7 +75,7 @@ static void Postfix(PingTracker __instance) {
if (amongUsLogo != null) {
amongUsLogo.transform.localScale *= 0.6f;
amongUsLogo.transform.position += Vector3.up * 0.25f;
}
}

var torLogo = new GameObject("bannerLogo_TOR");
torLogo.transform.position = Vector3.up;
Expand Down
Binary file modified TheOtherRoles/Resources/Banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e77584f

Please sign in to comment.