Got the encoder to scale with the screen resolution

Took a lot of remembering how to do this unity than translating that to
java minecraft. As well to calculate the correct translation base on the
fact that my gui is scaled by .52 of a normal one.