Starchasers / OCGlasses

mod for minecraft and addon for Open Computers
zlib License
31 stars 17 forks source link

[Bug] Text2D disappeared when changed to absolute rendering #88

Closed portalmk2 closed 3 years ago

portalmk2 commented 4 years ago

Minecraft Version: 1.12.2 Forge Version: 14.23.5.2821 Java Version: openjdk version "1.8.0_212" (openj9) OCGlasses Version: 2.2-50

Calling glasses.setRenderPosition("absolute") makes text2D widgets disappear. Changing to "relative" will bring them back.

local gt = require("component").glasses local txt1 = gt.addText2D() txt1.addTranslation(30,30,0) txt1.setText("TEST") gt.setRenderPosition("absolute")

or setRenderPosition first

local gt = require("component").glasses gt.setRenderPosition("absolute") local txt1 = gt.addText2D() txt1.addTranslation(30,30,0) txt1.setText("TEST")

ben-mkiv commented 4 years ago

thanks for reporting the problem. i'll reopen this bug report until theres an official release on curseforge, till then you can use this prebuild:

https://ci.pc-logix.com/job/OCGlasses/55/artifact/build/libs/OpenGlasses-MC1.12.2-2.2-56.jar

ben-mkiv commented 3 years ago

official build contains the fix now (however version numbers gone a bit down as the buildbot was set up new, so 53 is newer than the previously linked 56) https://www.curseforge.com/minecraft/mc-mods/openglasses2/files/3143467