Closed radistmorse closed 8 years ago
Good to see you again.
I'll list some things I didn't like, but nothing very serious as far as I can see.
Good luck and thank you!
.1. Ok, I'll separate a class into a new file.
.2,3. The problem is, the unity project has 23 MB of auto-generated binary shit without which it won't work. But I think I found a way to distribute it more convenient.
.4. Well, renaming "...Controller" into "...GUI" is no biggy, but mixing both projects into the same folder is not good. They are two separate projects after all, just in the same solution. I'll put all the new stuff into the "NeoGUI" folder since that's how you want to name it.
.5. Whoops, my bad. I removed it while dealing with merge conflicts updating the stuff for a new version.
I was just composing another pull request to the new branch. There is a very important reason for separation, I'll explain it there.
And for the files, no, every one of them is important. As I said, unity project consists of 23 MB of weird files, and I spent several hours trying to strip it to bare minimum. I can return the .meta to gitignore, but the files in there are needed.
Here it is!
This commit adds a whole new project to the solution called AtmosphereAutopilot.GUI, which compiles as a separate dll. The changes to the AA itself are mostly located inside the nested class MainMenuController in the AtmosphereAutopilot class.
Other changes deal with the altitude and speed controllers, which were designed in such a way that it was impossible to change the values from outside.
With this patch both GUIs remain usable, but not synchronized: if you change values from the old GUI, new GUI remain unaffected. The update is done for the hotkeys though.
Now, the last interesting part is the prefab itself. Here, I just provide it in the BUILD folder, but to rebuild it yourself you'll need a unity editor installed, and a whole another project with all the sources and shit. Which I can provide, but I don't know where it would be best to do.
I also screwed your library paths. Which, to be honest, were screwed from the beginning. To test the new GUI you'll need both ddls and a prefab in the plugin root folder.