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

Separate optional from required mod dependencies in main menu #4721

Merged
merged 2 commits into from Nov 5, 2016

Conversation

Wuzzy2
Copy link
Contributor

@Wuzzy2 Wuzzy2 commented Nov 3, 2016

This PR tweaks the main menu. The listed mod dependencies are now separated in required and optional dependencies. The current approach is basically just just blindly pasting depends.txt (including the question marks). The the main menu “Mods” tab,, if a mod has no dependencies, the string “No dependencies.” is shown.

Screenshots:

Screenshot of tweaked mod selection list
Screenshot of tweaked mod tab in main menu

@est31
Copy link
Contributor

est31 commented Nov 4, 2016

👍 looks good

end
toadd_hard = toadd_hard .. hard_dependencies[i]
end
for i=1, #soft_dependencies do
Copy link
Member

@SmallJoker SmallJoker Nov 4, 2016

Choose a reason for hiding this comment

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

Or short: toadd_soft = table.concat(soft_dependencies, ",")
Empty entries can be avoided in the reading function above easily

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, good idea, it should be adopted in all places before merge.

@nerzhul
Copy link
Member

nerzhul commented Nov 5, 2016

Okay for me too

@est31
Copy link
Contributor

est31 commented Nov 5, 2016

@Wuzzy2 can you change the code according to @SmallJoker 's suggestions? Then this PR can be merged.

@Wuzzy2
Copy link
Contributor Author

Wuzzy2 commented Nov 5, 2016

Done.

@est31 est31 merged commit 1c570cb into minetest:master Nov 5, 2016
@est31
Copy link
Contributor

est31 commented Nov 5, 2016

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

4 participants