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

Offline x4000

  • Chris Park, Arcen Games Founder and Lead Designer
  • Administrator
  • Zenith Council Member Mark III
  • *****
  • Posts: 30,698
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
  • Administrator
  • Sr. Member Mark III
  • *****
  • Posts: 443
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!

Online BadgerBadger

  • Hero Member
  • *****
  • Posts: 659
  • 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
  • Administrator
  • Sr. Member Mark III
  • *****
  • Posts: 443
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!

Online BadgerBadger

  • Hero Member
  • *****
  • Posts: 659
  • 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 Park, Arcen Games Founder and Lead Designer
  • Administrator
  • Zenith Council Member Mark III
  • *****
  • Posts: 30,698
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!

Online BadgerBadger

  • Hero Member
  • *****
  • Posts: 659
  • 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
  • Administrator
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,317
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!

Online BadgerBadger

  • Hero Member
  • *****
  • Posts: 659
  • 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
  • Administrator
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,317
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!

Online BadgerBadger

  • Hero Member
  • *****
  • Posts: 659
  • 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.

Online BadgerBadger

  • Hero Member
  • *****
  • Posts: 659
  • 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....

Online BadgerBadger

  • Hero Member
  • *****
  • Posts: 659
  • 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.