Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help getting project to build #37

Closed
3 tasks done
rolodato opened this issue May 14, 2020 · 1 comment
Closed
3 tasks done

Help getting project to build #37

rolodato opened this issue May 14, 2020 · 1 comment

Comments

@rolodato
Copy link

rolodato commented May 14, 2020

Hi, I'm a complete Windows programming newbie. I'd like to make a change but can't even get the project to build.

I'm using Visual Studio 2019 Community on Windows 10 and I think all the necessary SDKs are installed, but the project fails to build by not finding dependencies in the Windows namespace, such as Windows.UI.Notifications and Windows.Data.Xml.Dom:

image

From what I can tell, the missing classes are from Windows UWP, which Visual Studio Installer shows as installed:

image

It's likely I'm missing something basic but haven't had any luck googling. Any clues? Thanks!

PS: The change I'd like to make is to only ever show known battery levels, and not show any information about wireless controllers or unknown battery statuses. I use a mix of wireless and wired controllers in my setup, and do not really care if the wired controllers are plugged in or not - I just want to know the battery levels of the other controllers. Also, I do not really care if a wireless controller is connected but the battery status has not been reported yet.

I could see this being implemented as a multiple selection, one for each icon that can be displayed. The default options would be:

  • Wireless controller battery level
  • Wireless controller with unknown battery level
  • Wired controller status

Currently, if controllers are connected but the user has selected not to show the icon for their current status, the fallback tooltip message would be "No controllers connected" with a question mark icon. Instead, I think a better UX for the tooltip text would be to always show the full known state of all controllers regardless of display preferences. For example, the following text:

Controller 1: Wired
Controller 2: Wireless, 80% battery
Controller 3: Wireless, unknown battery level

or, just fall back to "No controllers connected". This way it's easy for the user to tell apart "no controllers are connected" and "controllers are connected, but their icons can't be shown". It has the added bonus of not needing to wait until the tray icon is showing a specific controller to check on its battery level.

@NiyaShy
Copy link
Owner

NiyaShy commented May 14, 2020

Hey,
the missing references are already covered in Issue #28, it's a thing Microsoft changed in VS 2019...

You're welcome to tinker with the code. If anything useful comes out of it that could benefit everyone, a pull request is much appreciated 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants