Ezriilc / HyperEdit

A plugin for Kerbal Space Program.
http://www.Kerbaltek.com/hyperedit
GNU General Public License v3.0
41 stars 30 forks source link

negative window position ❎ #73

Open zer0Kerbal opened 2 years ago

zer0Kerbal commented 2 years ago

It is possible to have a negative window position

would you kindly either make negative window positions not possible, or add a reset window position button?

HyperEdit { x = 307 y = 114 } Orbit_Editor { x = 51 y = 443 } Select { x = 810 y = 290 } Load... { x = 810 y = 290 } Misc_tools { x = 111 y = -111 } Lander { x = 316 y = 180 } Error { x = 760 y = 540 } About { x = 100 y = 100 }

zer0Kerbal commented 2 years ago

fyi EL has this same issue

Ezriilc commented 2 years ago

You can reset window positions by deleting the file called "windowpos.cfg" in the "\GameData\Kerbaltek\HyperEdit" folder.

I'm not much of a C# coder, and I barely know Git at all, so I'm kinda stuck. Also, currently I cannot get my existing code to build and I don't know why, and interest has dropped off quite a lot lately, so I never got around to fixing it.

If you have tested code to submit, I'd gladly accept help.

fyi EL has this same issue

What is "EL"?

zer0Kerbal commented 2 years ago

I totally understand. Been there myself.

EL = Extraplanetary Launchpads by @taniwha

Will see if I can chisel some time out - but no guarantees.

obfusc8d commented 10 months ago

If it helps, I managed to cause the following when accidentally copy & pasting a rather long string into a text box: Orbit_Editor { x = -3764 y = 134 } The window grew wide and did not shrink when deleting the text, and so - of course - I dragged the window over to try find the "apply" button. I assume the top-left window corner coordinate is saved

I get this is probs low priority, but is a nice-to-have to ensure windows are on screen, or have the suggested reset button.

Ezriilc commented 10 months ago

I get this is probs low priority...

Yeah, sorry.