From 4fe48b574f2f767460c05bf3a9cea0ad935f828a Mon Sep 17 00:00:00 2001 From: wixoaGit Date: Thu, 23 Jan 2025 20:53:57 -0500 Subject: [PATCH] Fix initial maptext vars --- OpenDreamRuntime/AtomManager.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/OpenDreamRuntime/AtomManager.cs b/OpenDreamRuntime/AtomManager.cs index eef1f98338..021954a71a 100644 --- a/OpenDreamRuntime/AtomManager.cs +++ b/OpenDreamRuntime/AtomManager.cs @@ -709,6 +709,11 @@ public MutableAppearance GetAppearanceFromDefinition(DreamObjectDefinition def) def.TryGetVariable("render_target", out var renderTargetVar); def.TryGetVariable("blend_mode", out var blendModeVar); def.TryGetVariable("appearance_flags", out var appearanceFlagsVar); + def.TryGetVariable("maptext", out var maptextVar); + def.TryGetVariable("maptext_width", out var maptextWidthVar); + def.TryGetVariable("maptext_height", out var maptextHeightVar); + def.TryGetVariable("maptext_x", out var maptextXVar); + def.TryGetVariable("maptext_y", out var maptextYVar); appearance = MutableAppearance.Get(); SetAppearanceVar(appearance, "name", nameVar); @@ -729,6 +734,11 @@ public MutableAppearance GetAppearanceFromDefinition(DreamObjectDefinition def) SetAppearanceVar(appearance, "render_target", renderTargetVar); SetAppearanceVar(appearance, "blend_mode", blendModeVar); SetAppearanceVar(appearance, "appearance_flags", appearanceFlagsVar); + SetAppearanceVar(appearance, "maptext", maptextVar); + SetAppearanceVar(appearance, "maptext_width", maptextWidthVar); + SetAppearanceVar(appearance, "maptext_height", maptextHeightVar); + SetAppearanceVar(appearance, "maptext_x", maptextXVar); + SetAppearanceVar(appearance, "maptext_y", maptextYVar); if (def.TryGetVariable("transform", out var transformVar) && transformVar.TryGetValueAsDreamObject(out var transformMatrix)) { appearance.Transform = DreamObjectMatrix.MatrixToTransformFloatArray(transformMatrix);