KerbalKlinic

KerbalKlinic

329 Downloads

[Bug ๐Ÿž]: Window doesn't appear when button pressed

zer0Kerbal opened this issue ยท 2 comments

commented

Window doesn't appear when button pressed

existing code:

            Konf.SetValue("WindowPosX", string.Format("f", MenuWindow.x - (Screen.width / 2)));
            Konf.SetValue("WindowPosY", string.Format("f", MenuWindow.y - (Screen.height / 2)));

which also causes the config save file to be corrupted, save the letter 'f' instead of the screen position

commented

fix:

            Konf.SetValue("WindowPosX", string.Format("{0:f}", MenuWindow.x - (Screen.width / 2)));
            Konf.SetValue("WindowPosY", string.Format("{0:f}", MenuWindow.y - (Screen.height / 2)));