Mineclonia/mods/HUD
E 842cc6d1e4 hud/mcl_formspec: add formspec V2 conversion utilities
Formspecs come in different versions. While maintaining the same basic
syntax, version 1->2 changed (among other things) how coordinates work
by eliminating some (previously) built-in spacing and padding. This
commit adds a number of utility functions that can be used to upgrade
a formspec in-place.

- `size2r` returns a string with the provided w,h coordinates converted
  for use with `size[]` in formspec versions 2+
- `i2r` converts a single coordinate from the V1 coordinates system to
  the V2+ "Real" coordinates
- `xy2r` returns a string suitable for use with other elements that
  accept a coordinate pair. It is a simple wrapper for `i2r`.

The formulas used reflect those specified by the Minetest Lua API docs.
2021-05-02 00:54:52 -04:00
..
awards fix a typo 2021-02-27 23:31:01 +04:00
hudbars Fix #1150 2021-02-22 11:08:57 +01:00
mcl_achievements Russian translation 2020-07-20 00:11:13 +00:00
mcl_base_textures Add object crosshair 2020-11-12 13:51:37 +01:00
mcl_death_messages Make the server not crash when players are killed by named mobs 2021-04-18 16:51:47 +02:00
mcl_experience Fix #1192 2021-02-26 09:38:02 +01:00
mcl_formspec hud/mcl_formspec: add formspec V2 conversion utilities 2021-05-02 00:54:52 -04:00
mcl_formspec_prepend Major default formspec style update 2020-03-10 05:01:49 +01:00
mcl_hbarmor Russian translation 2020-07-20 00:11:13 +00:00
mcl_inventory Enable 3D player preview by default now that MT 5.4 is released 2021-02-25 09:52:08 +01:00
mcl_tmp_message Sneak to dismount when in boat 2021-01-28 17:44:55 +01:00
show_wielded_item Fix wielded item text overlapping with HUD 2020-11-12 12:30:00 +01:00
modpack.conf Add a couple of modpack.conf files 2019-01-07 00:52:05 +01:00