* Optimize settings layout
* Optimize about layout
* Use codes for contributors list instead of overflowing texts
* Integrate version id in its translation string
Using @1 within the string
Co-authored-by: y5nw <37980625+y5nw@users.noreply.github.com>
* Use contributions labels instead of code
* Fix formspec syntax error
Missing ]
* Implement grouping by contribution type (#142)
* Implement grouping by contribution type
* minor
---------
Co-authored-by: y5nw <37980625+y5nw@users.noreply.github.com>
* Implement non-player recipients
* Add API callback specifically for players receiving mail
* Exclude sender from (mailing list) recipients
* Complement test
* Fixup typos in complemented test
* Expand aliases at toplevel if the current expansion is at toplevel
This should allow players to send mail to their own aliases
* Also test on_(player_)receive callbacks
* Fix oversight in test case
* Add support for shared settings
* Optimize stored setting value getting
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
* Avoid false for default transfer value
In set_setting, to eventually transfer to another mod. Suggested by S-S-X in #127
---------
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
* Add colors utilities
Local function get_base_color(), conversions hex <=> rgb, rgb color mixer, and global function get_color()
* Round numbers to avoid eventual float in string.format
* Simplify inbox/outbox mixing of color
Use a single if statement for each property and concatenate to displayed_color then execute mail.get_color(displayed_color) instead of making many combined if statements
* Convert 3-chars hex colors to 6-chars hex colors
Could break the code, the hex convert to rgb always run on 6-chars
* Rework color utility using tables
Instead of one-letter symbols, it now supports tables of identifiers or single strings
* Add Indonesian translations
* Fix few strings for all translation files
* Update credits
---------
Co-authored-by: Athozus <athozus@gmail.com>
2023-12-05 22:31:40 +01:00
Github is a non-free platform owned by Microsoft. Reasonable alternatives exist, such as Gitea, Sourcehut. We need a federated, mastodon-like forge based on ForgeFed. See: https://forgefed.org
* Store globally settings (type and default value)
* Add settings groups
* Generate settings pages with global storage
Add saving, generate selection idxs from settings list, order settings via index value in each group of settings
* Rewrite setting store
No code change, only format
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
* Remove tabs from settings groups
Use spaces instead
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
* Use table.copy() minetest api function
* Better formatting for setting tooltip
Using inline instead of multiples lines to add tooltip attached to setting into formspec
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
---------
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>