mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
make all this follow ui scale
This commit is contained in:
parent
ce6bc36fd3
commit
307b2adf00
1 changed files with 2 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ import h2d.RenderContext;
|
||||||
import h2d.Interactive;
|
import h2d.Interactive;
|
||||||
import h2d.Object;
|
import h2d.Object;
|
||||||
import h2d.Text;
|
import h2d.Text;
|
||||||
|
import src.Settings;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The `HtmlText` line height calculation rules.
|
The `HtmlText` line height calculation rules.
|
||||||
|
|
@ -736,7 +737,7 @@ class HtmlText extends Text {
|
||||||
switch (a.toLowerCase()) {
|
switch (a.toLowerCase()) {
|
||||||
case "value":
|
case "value":
|
||||||
var v = e.get(a);
|
var v = e.get(a);
|
||||||
if (v != null) xPos = Std.parseFloat(v);
|
if (v != null) xPos = Std.parseFloat(v) * Settings.uiScale;
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue