[Bug ๐]: Window doesn't appear when button pressed
zer0Kerbal opened this issue ยท 2 comments
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
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)));