-
Notifications
You must be signed in to change notification settings - Fork 23
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
De-bundle unspecific stuff #146
Comments
are those functions/features already used elsewhere? |
No, they are not. But GUI helpers could be used for every Minetest mod using formspec, and settings for example with i3 which is using settings. And anyway, it's like the wrench which has its own mod now, because it was unrelated to technic. This one, we have a lot of helpers that are not directly related to mail, so why not share them ? |
Mostly commenting and adding reasoning for "why not?" part: Can you prove, through actual use cases and API stability stats, that those are actually good enough for real generic use? Many library projects fail because of trying to provide useful and generic stuff without really field testing it first, and when you fail once people will remember not to waste time with it again. Doesn't matter if you fix the issues. |
It only really makes sense to create a library mod when code is already being copy-pasted between mods,
That's a bad comparison. The |
Yes, but some have worked (e.g. GTK 😉)
Yes, and |
Btw I'm still waiting for getting the right to close this to release 1.4. |
1.4 is waited for a long time, I move that to 1.5 |
Yo,
I initially planned this in my mind for 1.5.0, but as 1.4.0 is getting more and more "late" (that's a volunteer project at all), so I'm opening the issue right now and I did not set a milestone, to be discussed.
IMHO, we should the following stuff :
guitil
? (idk, that's not important lol)util/colors.lua
util/time_ago.lua
(used in Date tooltip) ?modname.get_color("color")
actual functionmodname.get_color({"color1", "color2"})
actual functionmodname.insert_widget()
=> could returns a formspec-escaped for "custom" widgets like highlighted box.settings
, or to not be too restrictive something likesettingz
?ui/settings.lua
util/settings.lua
storage.lua
modname.register_setting(dictionary)
modname.register_settings(list of dictionaries)
modname.get_setting(name, "setting")
exactly likemail.get_setting()
modname.set_setting(name, "setting", value)
exactly likemail.set_setting()
modname.reset_settings(modname)
All those dependencies of
mail
mod, all managed bymt-mods
, and for all I assume the "unofficial" role of (co-)maintainer.The text was updated successfully, but these errors were encountered: