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

Update and improve warnings when no games are found or when only devtest is installed #11955

Merged
merged 2 commits into from
Jun 29, 2022

Conversation

rollerozxa
Copy link
Member

@rollerozxa rollerozxa commented Jan 14, 2022

This PR updates the warning messages that appear when either no game is installed or when only the Development Test game is found. Previously it would give an unclear message to "download one from minetest.net", but now it contains a button which takes you to ContentDB in-game where you can actually install a new game.

image

image

To do

This PR is a Ready for Review.

How to test

  • Test with only Development Test installed and try to click on the "Install another game" button. It should take you to ContentDB where you can install a game.
  • Test with no game installed at all and try to click on the "Install a game" button. It should take you to ContentDB where you can install a game.
  • Test that the regular create world dialog still works like it should without any regressions.

@sfan5 sfan5 added @ Mainmenu Feature ✨ PRs that add or enhance a feature Concept approved Approved by a core dev: PRs welcomed! Roadmap The change matches an item on the current roadmap and removed Concept approved Approved by a core dev: PRs welcomed! labels Jan 14, 2022
if fields["world_create_open_cdb"] then
local dlg = create_store_dlg("game")
dlg:set_parent(this)
this:hide()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not this:delete()?

Copy link
Member Author

@rollerozxa rollerozxa Jan 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this:delete() causes this:

image

While this:hide() works like it should. It's also used by dlg_config_world when opening up the ContentDB dialog so I just copied that.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current code will return to new world after installing the game, I think that's fine

One thing to note is that the game theme isn't applied when doing this

@ghost
Copy link

ghost commented Jan 14, 2022

Did a quick test and saw something a bit problematic:

If you try to use this feature from Devtest as prompted in your "how to test" list it lets you go install a game. However, after the install is finished it takes you back to the new world dialog for devtest, without the devtest warning. Worse, since we have a game installed already the warning message is gone. I think the resulting flow is confusing, we should either go back to the main menu or change the active game in response (the former is probably simpler to do).

@ghost
Copy link

ghost commented Jan 14, 2022

One other thing I noticed in this test: We have a bug where the game selection list is shown in the new world dialog but only when devtest is your only installed game. This is not a regression from your code so it shouldn't block this PR though, it's a bug in 4c8c649.

@sfan5
Copy link
Member

sfan5 commented Jan 14, 2022

We have a bug where the game selection list is shown in the new world dialog but only when devtest is your only installed game. This is not a regression from your code so it shouldn't block this PR though, it's a bug in 4c8c649.

That's an intentional "limitation", I didn't want to figure out layout heights for all combinations of devtest_only={true,false} + hide_gamelist={true,false}.

@ghost
Copy link

ghost commented Jan 14, 2022

That's an intentional "limitation", I didn't want to figure out layout heights for all combinations of devtest_only={true,false} + hide_gamelist={true,false}.

I see. I feel like it ought to be done at some point, but it's low priority and doesn't affect this PR so I won't comment on that further.

@rollerozxa
Copy link
Member Author

If you try to use this feature from Devtest as prompted in your "how to test" list it lets you go install a game. However, after the install is finished it takes you back to the new world dialog for devtest, without the devtest warning. Worse, since we have a game installed already the warning message is gone. I think the resulting flow is confusing, we should either go back to the main menu or change the active game in response (the former is probably simpler to do).

In addition to this it also becomes ambiguous what game you're creating a world for if you have no games installed, go to CDB, install several games and then go back. Plus as rubenwardy mentioned the game theme doesn't become applied when going back.

So yeah it should just go back to the main menu, it'd be better that way.

@ghost ghost added the Action / change needed Code still needs changes (PR) / more information requested (Issues) label Feb 16, 2022
@rubenwardy
Copy link
Member

Are you stuck on this?

@rollerozxa
Copy link
Member Author

yeah, was never able to figure out how to go back to the main menu as opposed to the new world dialog. help would be appreciated

@Zughy Zughy added the Adoption needed The pull request needs someone to adopt it. Adoption welcomed! label May 26, 2022
@Zughy Zughy closed this May 26, 2022
@Zughy Zughy removed Action / change needed Code still needs changes (PR) / more information requested (Issues) Possible close labels May 26, 2022
@rubenwardy rubenwardy reopened this May 26, 2022
@rubenwardy rubenwardy self-assigned this May 26, 2022
@rubenwardy rubenwardy added Action / change needed Code still needs changes (PR) / more information requested (Issues) and removed Adoption needed The pull request needs someone to adopt it. Adoption welcomed! labels May 26, 2022
@rubenwardy rubenwardy removed Action / change needed Code still needs changes (PR) / more information requested (Issues) Help needed labels Jun 28, 2022
Copy link
Member

@sfan5 sfan5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature ✨ PRs that add or enhance a feature @ Mainmenu Roadmap The change matches an item on the current roadmap >= Two approvals ✅ ✅
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants