mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
Add proper scroller implementation for tab
This commit is contained in:
1 parent
ef8b4af231
commit
fc7eaef7c4
2 files changed
+4
No files matched your search
@@ -345,6 +345,8 @@ public static class RoleGuidePatches
|
||||
CurrentAdvancedTabObject.transform.SetParent(AdvancedWikiTab.Inner.transform);
|
||||
desc.transform.localPosition = new Vector3(0, 1.125f, 0);
|
||||
CurrentAdvancedTabObject.transform.localPosition = new Vector3(0f, 0f, 0f);
|
||||
desc.ForceMeshUpdate();
|
||||
AdvancedWikiTab.SetYBoundsMax(Mathf.Clamp(desc.textBounds.size.y- 2, 0f, 999f));
|
||||
}
|
||||
}
|
||||
[HarmonyPrefix]
|
||||
|
||||
@@ -327,6 +327,8 @@ public interface ICustomRole : IOptionable
|
||||
desc.alignment = TextAlignmentOptions.TopLeft;
|
||||
obj.transform.SetParent(parent.Inner.transform);
|
||||
desc.transform.localPosition = new Vector3(0, 1.125f, 0);
|
||||
desc.ForceMeshUpdate();
|
||||
parent.SetYBoundsMax(Mathf.Clamp(desc.textBounds.size.y - 2, 0f, 999f));
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user