Author Topic: Proposed "Find Planet" screen  (Read 6701 times)

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Proposed "Find Planet" screen
« Reply #15 on: June 27, 2017, 09:32:37 am »
At the rate BadgerBadger is going, you are going to have to add him to the credits as an assistant/volunteer coder or something like that. So far I have seen BadgerBadger code some new map types, though I don't know if they will be in the base game, added the ability to name save games, and now this.

No kidding!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Dominus Arbitrationis

  • Arcen Games Contractor
  • Arcen Staff
  • Sr. Member Mark III
  • *****
  • Posts: 479
Re: Proposed "Find Planet" screen
« Reply #16 on: June 27, 2017, 10:08:23 am »
For the record, as of when I'm writing this, he has reported 76 issues. The person behind him has reported 9 issues.
Come help out at the Wiki!

Have ideas or bug reports for one of Arcen's games or any part of the site? Use  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games and site better!

Offline BadgerBadger

  • Arcen Volunteer
  • Hero Member Mark III
  • *****
  • Posts: 1,229
  • BadgerBadgerBadgerBadger
Re: Proposed "Find Planet" screen
« Reply #17 on: June 27, 2017, 10:20:35 am »
How did you get 76? What search criteria did you use?

Offline Dominus Arbitrationis

  • Arcen Games Contractor
  • Arcen Staff
  • Sr. Member Mark III
  • *****
  • Posts: 479
Re: Proposed "Find Planet" screen
« Reply #18 on: June 27, 2017, 10:38:42 am »
How did you get 76? What search criteria did you use?

https://bugtracker.arcengames.com/plugin.php?page=MantisGraph/reporter_graph.php I'm not sure if you can see it, but I can pull up a bunch of different graphs that show stuff. Mantis internally says you have submitted 76 issues that were resolved.
Come help out at the Wiki!

Have ideas or bug reports for one of Arcen's games or any part of the site? Use  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games and site better!

Offline BadgerBadger

  • Arcen Volunteer
  • Hero Member Mark III
  • *****
  • Posts: 1,229
  • BadgerBadgerBadgerBadger
Re: Proposed "Find Planet" screen
« Reply #19 on: June 27, 2017, 10:50:40 am »
Ah, that page says "Access Denied" for me. Cool. I like graphs.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Proposed "Find Planet" screen
« Reply #20 on: June 27, 2017, 11:44:13 am »
For the record, as of when I'm writing this, he has reported 76 issues. The person behind him has reported 9 issues.

Yup.  Special MVP credits are indisputably due.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline BadgerBadger

  • Arcen Volunteer
  • Hero Member Mark III
  • *****
  • Posts: 1,229
  • BadgerBadgerBadgerBadger
Re: Proposed "Find Planet" screen
« Reply #21 on: June 27, 2017, 01:13:00 pm »
Aww, thanks guys!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Proposed "Find Planet" screen
« Reply #22 on: June 27, 2017, 01:22:26 pm »
The help has been a great encouragement :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline BadgerBadger

  • Arcen Volunteer
  • Hero Member Mark III
  • *****
  • Posts: 1,229
  • BadgerBadgerBadgerBadger
Re: Proposed "Find Planet" screen
« Reply #23 on: July 06, 2017, 11:45:16 am »
I just realized I'd never actually uploaded the code for this. There are 3 files changed. The InGamePlanetActionMenu adds the FindPlanet button. FindPlanetMenu.cs implements the actual work, and the UIWindows sets up the location of UI elements.

I set autocomplete to be "@", but it's easily modified; check out the autoCompleteChar in FindPlanetMenu.

I believe you can basically drop this onto a build of .500 and recompile and have it work cleanly. Feel free to include it in the game (or tell me how you'd like it changed to make it worthy of inclusion)

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Proposed "Find Planet" screen
« Reply #24 on: July 06, 2017, 01:51:55 pm »
This is in for 0.501, many thanks :)

I made a few refinements, like "if you try to type into the box while the default text is still there, it clears out that text first rather than trying to add onto it" and "autocomplete doesn't require a case-sensitive match". I think it also now moves the caret to the end of the line after an autocomplete, but I'm not sure I remember correctly.

I also tried to have it focus on the textbox when you open the window, but none of the usual suspects made that happen. If you're curious the code is at:
//TODO: make this actually select the element so that the user can type in the planet name without having to click on the element or navigate to it using WASD (which seems to work, oddly)

That last piece would go a long way, combined with an "enter clicks the button" behavior (which I could add, just gotta run for now), as I could then type 0,5,3,(characters of planet name),enter and it would take me straight there if there was a match.

But even with the mouse interaction this is a big win, thanks again :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline BadgerBadger

  • Arcen Volunteer
  • Hero Member Mark III
  • *****
  • Posts: 1,229
  • BadgerBadgerBadgerBadger
Re: Proposed "Find Planet" screen
« Reply #25 on: July 06, 2017, 04:47:59 pm »
Great, all of those modifications sound good to me.

I have a few enhancements I'd like to make eventually. For example, I'd like it to be able to quickly find the Devourer Golem, Dyson Sphere, Zenith Trader, Superterminal, and other such things.

Offline BadgerBadger

  • Arcen Volunteer
  • Hero Member Mark III
  • *****
  • Posts: 1,229
  • BadgerBadgerBadgerBadger
Re: Proposed "Find Planet" screen
« Reply #26 on: August 14, 2017, 11:49:29 am »
Okay, I've added some code to allow the Find Planet menu to find things that aren't just planets (currently the SuperTerminal, Devourer, Zenith Trader, Dyson Sphere and Nanobot hive). Adding new things is extremely easy. Also it will be easy to add a description of all the shortcuts later. Sometimes you just gotta know where the Devourer Golem is....

Offline BadgerBadger

  • Arcen Volunteer
  • Hero Member Mark III
  • *****
  • Posts: 1,229
  • BadgerBadgerBadgerBadger
Re: Proposed "Find Planet" screen
« Reply #27 on: August 21, 2017, 03:43:13 pm »
Also, I have some proposed tweaks to the Galaxy Map View. These are three modes, one that shows AI Progress Reducers (Data Center, Coprocessor, etc), one that shows AI Defenses (Ion Cannon, Raid Engine, etc) and one that shows "Cool Capturable Things" (Golems, Fabs, Adv Starship Constructor, etc).

To do this I added a tag to the structures that I was interested in.