make all this follow ui scale

This commit is contained in:
RandomityGuy 2025-02-11 18:05:22 +05:30
parent 5736b9c03c
commit 301a8675cf

View file

@ -8,6 +8,7 @@ import h2d.RenderContext;
import h2d.Interactive;
import h2d.Object;
import h2d.Text;
import src.Settings;
/**
The `HtmlText` line height calculation rules.
@ -736,7 +737,7 @@ class HtmlText extends Text {
switch (a.toLowerCase()) {
case "value":
var v = e.get(a);
if (v != null) xPos = Std.parseFloat(v);
if (v != null) xPos = Std.parseFloat(v) * Settings.uiScale;
default:
}
}