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

Gaming PR #284

Merged
merged 12 commits into from
Feb 13, 2022
Merged

Gaming PR #284

merged 12 commits into from
Feb 13, 2022

Conversation

HellBringer419
Copy link
Contributor

@HellBringer419 HellBringer419 commented Feb 12, 2022

This relates to issue #281

  • There are launch buttons for steam games. And Install for Open-source games.
  • YT button now says "Watch"
  • Official branded logos for steam and YT are added.
  • Coherent colours for buttons
  • Launch steam btn uses steam cli
  • minor addition to the tool-tip

Behaviour of launch button:

Game is installed Game is not installed
Steam is installed Launch game directly Show the game's page in store section of steam client
Steam is not installed Opens game page in browser Opens game page in browser

Earlier, these changes were not meant to go live in 22.04, but since the work is done, hence the PR.
In case there are problems, changes done by this PR may need to be reverted.

Reviewer:
@fossfreedom

@ilvipero
Copy link

Excellent work @HellBringer419 . Thanks for pushing this for 22.04 release.

@fossfreedom
Copy link
Member

I see the following when pulling in the branch - thoughts?

No steam installed here:

image

@HellBringer419
Copy link
Contributor Author

The branch does have the new images ... I checked on my VM

@fossfreedom
Copy link
Member

feels like something wasnt checked in - this is what was pulled:

dad@dad-TUXEDO-Pulse-15-Gen1:~/development/budgie-welcome$ git pull https://github.com/HellBringer419/budgie-welcome.git gaming-pr
remote: Enumerating objects: 47, done.
remote: Counting objects: 100% (47/47), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 38 (delta 27), reused 30 (delta 19), pack-reused 0
Unpacking objects: 100% (38/38), 58.18 KiB | 1.19 MiB/s, done.
From https://github.com/HellBringer419/budgie-welcome
 * branch            gaming-pr  -> FETCH_HEAD
Merge made by the 'ort' strategy.
 budgie-welcome                       |   7 +++++++
 data/config/packages.json            |   3 +++
 data/gaming.html                     |  93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------
 data/img/logos/steam.png             | Bin 31970 -> 5952 bytes
 data/img/logos/steam_app_icon.png    | Bin 0 -> 47446 bytes
 data/img/logos/youtube.png           | Bin 0 -> 7418 bytes
 data/img/logos/yt_logo_rgb_light.png | Bin 20462 -> 0 bytes
 7 files changed, 88 insertions(+), 15 deletions(-)
 create mode 100644 data/img/logos/steam_app_icon.png
 create mode 100644 data/img/logos/youtube.png
 delete mode 100644 data/img/logos/yt_logo_rgb_light.png

@HellBringer419
Copy link
Contributor Author

Even YT launch btn is not there ?
...
You seem to have the correct changes

@HellBringer419
Copy link
Contributor Author

I removed steam too ... I can see the btns.
It's on focal btw.
Screenshot-New btns

@fossfreedom
Copy link
Member

fossfreedom commented Feb 12, 2022

The valheim watch link goes to the wrong game. This needs correcting.

Also this is a diff that shows one way to hide/show the launch button

valheim.txt

@HellBringer419
Copy link
Contributor Author

Valhiem correct yt video
https://m.youtube.com/watch?v=5mHRJ1KFe20

@HellBringer419
Copy link
Contributor Author

HellBringer419 commented Feb 13, 2022

Wouldn't that btn in Valhiem.txt install steam .
I believe we should move them to game clients tab but not install steam automatically.

With that script we install steam:i386 and move to game clients tab.

@ilvipero need some opinions.

@fossfreedom
Copy link
Member

Look closely... the button runs a bit of javascript that changes to the client tools tab.

The config change is simply to determine if the steam button or the launch button is visible

@HellBringer419
Copy link
Contributor Author

got it

@HellBringer419
Copy link
Contributor Author

Done these changes ... Checking on VM

@HellBringer419
Copy link
Contributor Author

Tested on Focal .. Works

@fossfreedom fossfreedom merged commit e5b4490 into UbuntuBudgie:master Feb 13, 2022
@fossfreedom
Copy link
Member

@HellBringer419 nice work - I've merged. I don't think the "Install Steam from game-clients" really worked - made the button too wide - so have reduced it back to "Install Steam" again.

I've also fixed the issue where if you were at the bottom of the gaming list, switching tab also put steam on the wrong position in the page - so now we scroll back to steam.

@ilvipero
Copy link

@HellBringer419 thank you for your dedication and I am glad that with @fossfreedom help, you guys managed to find a way that not only works, but is also very user friendly.
Can't wait to test it. Thanks!

@HellBringer419
Copy link
Contributor Author

Thanks @fossfreedom .. You have a great eye for finding errors.

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

Successfully merging this pull request may close these issues.

3 participants