Skip to content
This repository was archived by the owner on Dec 20, 2025. It is now read-only.

Commit e5fe406

Browse files
committed
Fixed settings preview desync
opps
1 parent 08dc6e8 commit e5fe406

4 files changed

Lines changed: 58 additions & 4 deletions

File tree

Infoholic.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
namespace Infoholic
1414
{
1515
[BepInDependency("com.willis.rounds.unbound", BepInDependency.DependencyFlags.HardDependency)]
16-
[BepInPlugin("com.penial.rounds.Infoholic", "Infoholic", "2.1.1")]
16+
[BepInPlugin("com.penial.rounds.Infoholic", "Infoholic", "2.1.2")]
1717
[BepInProcess("Rounds.exe")]
1818

1919
public class Infoholic : BaseUnityPlugin
@@ -22,7 +22,7 @@ public class Infoholic : BaseUnityPlugin
2222
public const string ModInitials = "IH";
2323
private const string ModId = "com.penial.rounds.Infoholic";
2424
private const string ModName = "Infoholic";
25-
public const string Version = "2.1.1";
25+
public const string Version = "2.1.2";
2626
private const string CompatibilityModName = "Infoholic";
2727
public static bool DebugMode = false;
2828

MonoBehaviours/SettingsPreview.cs

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ void Start()
2929
livesText.transform.parent = gameObject.transform;
3030
livesText.gameObject.transform.localScale = new Vector3(Infoholic.statsToggled, Infoholic.statsToggled, Infoholic.statsToggled);
3131
livesText.gameObject.AddComponent<Canvas>().sortingLayerName = "MostFront";
32-
livesText.fontSize = Infoholic.FontSize;
3332
livesText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
3433

3534
// Block Cooldown
@@ -221,27 +220,71 @@ public void Update()
221220
if (Infoholic.inSettings)
222221
{
223222
healthText.text = "HP: 100 / 100";
223+
healthText.fontSize = Infoholic.FontSize;
224+
healthText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
224225
damageText.text = "DMG: 55";
226+
damageText.fontSize = Infoholic.FontSize;
227+
damageText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
225228
livesText.text = "Lives: 1";
229+
livesText.fontSize = Infoholic.FontSize;
230+
livesText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
226231
blockCooldownText.text = "Block CD: 4.00s";
232+
blockCooldownText.fontSize = Infoholic.FontSize;
233+
blockCooldownText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
227234
blockCountText.text = "Block Count: 1";
235+
blockCountText.fontSize = Infoholic.FontSize;
236+
blockCountText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
228237
movementSpeedText.text = "Move SPD: 1.00";
238+
movementSpeedText.fontSize = Infoholic.FontSize;
239+
movementSpeedText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
229240
jumpHeightText.text = "Jump Height: 1.00";
241+
jumpHeightText.fontSize = Infoholic.FontSize;
242+
jumpHeightText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
230243
playerSizeText.text = "Player Size: 1.00";
244+
playerSizeText.fontSize = Infoholic.FontSize;
245+
playerSizeText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
231246
knockbackText.text = "Knockback: 1.00";
247+
knockbackText.fontSize = Infoholic.FontSize;
248+
knockbackText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
232249
lifeStealText.text = "Life Steal: 0.00";
250+
lifeStealText.fontSize = Infoholic.FontSize;
251+
lifeStealText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
233252
bulletGrowthText.text = "Damage Grow: 0.00";
253+
bulletGrowthText.fontSize = Infoholic.FontSize;
254+
bulletGrowthText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
234255
bulletSlowText.text = "Bullet Slow: 0.00";
256+
bulletSlowText.fontSize = Infoholic.FontSize;
257+
bulletSlowText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
235258
attackSpeedText.text = "Attack SPD: 0.30s";
259+
attackSpeedText.fontSize = Infoholic.FontSize;
260+
attackSpeedText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
236261
projectileSpeedText.text = "Bullet SPD: 1.00";
262+
projectileSpeedText.fontSize = Infoholic.FontSize;
263+
projectileSpeedText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
237264
projectileSimulationSpeedText.text = "Projectile SPD: 1.00";
265+
projectileSimulationSpeedText.fontSize = Infoholic.FontSize;
266+
projectileSimulationSpeedText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
238267
reloadTimeText.text = "Reload Time: 2.00s";
268+
reloadTimeText.fontSize = Infoholic.FontSize;
269+
reloadTimeText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
239270
bulletGravityText.text = "Bullet Gravity: 1.00";
271+
bulletGravityText.fontSize = Infoholic.FontSize;
272+
bulletGravityText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
240273
ammoText.text = "Ammo: 3";
274+
ammoText.fontSize = Infoholic.FontSize;
275+
ammoText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
241276
bulletsText.text = "Bullets: 1";
277+
bulletsText.fontSize = Infoholic.FontSize;
278+
bulletsText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
242279
rangeText.text = "Bullet Range: 0";
280+
rangeText.fontSize = Infoholic.FontSize;
281+
rangeText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
243282
reflectsText.text = "Bounces: 0";
283+
reflectsText.fontSize = Infoholic.FontSize;
284+
reflectsText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
244285
burstsText.text = "Bursts: 0";
286+
burstsText.fontSize = Infoholic.FontSize;
287+
burstsText.color = new Color(Infoholic.ColorR, Infoholic.ColorG, Infoholic.ColorB, Infoholic.Opacity);
245288

246289
SetTextPosition();
247290
UpdateTextScale();

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@
88

99
<i>Patch Notes</i>
1010

11+
<details>
12+
<summary>Version 2.1.2</summary>
13+
<br>
14+
15+
Released on <i>10/14/2023</i>
16+
17+
Fixed stat interface not properly updating when changing certain mod options
18+
19+
---
20+
</details>
21+
1122
<details>
1223
<summary>Version 2.1.1</summary>
1324
<br>

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Infoholic",
3-
"version_number": "2.1.1",
3+
"version_number": "2.1.2",
44
"website_url": "https://github.com/PikachuPenial/Infoholic",
55
"description": "A ROUNDS mod that shows you the most important stats at all times! Created by Penial.",
66
"dependencies": [

0 commit comments

Comments
 (0)