Skip to content

Commit

Permalink
Add a configurable text size
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurihaia committed May 19, 2021
1 parent 37199fc commit 663a0e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Data.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Newtonsoft.Json;
using UnityEngine;

Expand All @@ -12,6 +11,7 @@ public class Settings {

[JsonConverter(typeof(JsonVec2Converter))]
public Vector2 timerPosition = new Vector2(1880, 1020);
public int textSize = 30;

public void LogBindErrors() {
StringInputManager.LogBindErors(new string[] {
Expand Down
6 changes: 3 additions & 3 deletions src/TriggerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,21 @@ public void InitDisplay() {
this.pbDisplay = CanvasUtil.CreateTextPanel(
timerCanvas,
this.PbText(),
30,
HKTimer.settings.textSize,
TextAnchor.MiddleRight,
Timer.CreateTimerRectData(new Vector2(190, 30), new Vector2(-50, -45))
);
this.pbStaticTextDisplay = CanvasUtil.CreateTextPanel(
timerCanvas,
"PB",
30,
HKTimer.settings.textSize,
TextAnchor.MiddleRight,
Timer.CreateTimerRectData(new Vector2(50, 30), new Vector2(0, -45))
);
this.pbDeltaDisplay = CanvasUtil.CreateTextPanel(
timerCanvas,
this.PbDeltaText(),
20,
HKTimer.settings.textSize * 2 / 3,
TextAnchor.MiddleRight,
Timer.CreateTimerRectData(new Vector2(120, 20), new Vector2(-50, -70))
);
Expand Down

0 comments on commit 663a0e5

Please sign in to comment.