1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-18 08:00:40 +01:00
Commit Graph

42 Commits

Author SHA1 Message Date
kaeza
119f8fe494 Add proper word-wrapping.
Also cleaned up a bit code.
2013-10-24 23:32:37 -02:00
kaeza
a963352793 Fix inverted conditional.
Also document function return value. It's kinda misleading,
my bad.
2013-10-24 20:30:26 -02:00
kaeza
8c2ee97b8f Simplify a bit the code. 2013-10-24 19:52:33 -02:00
kaeza
b4a16205f3 Fix signs_lib on Windows.
It seems `io.open' by default opens files as text, which fails
on Windows when the file is a binary file. This prevented
signs_lib from opening the texture files and get the font size,
which resulted in an error.
2013-10-24 16:49:36 -02:00
kaeza
eb1ccc3caa We don't need no padding!
Why have padding at sides when we can change text scale?
Better change just in one place.
2013-10-23 08:29:59 -02:00
kaeza
0931923900 Some I18N cleanup. 2013-10-21 22:50:45 -02:00
kaeza
10cef3dda1 Use a single `intllib.Getter' for all the texts.
Just a minimal code reduction, but big reduction in code
duplication. This could help if in the future, support for
different "internationalization" mods will be added, or in
case Minetest supports I18N/L10N internally in the engine.
2013-10-21 22:31:54 -02:00
kaeza
ebe8adf855 Small fixes to signs_lib. 2013-10-19 22:34:14 -02:00
kaeza
d5f5785b13 More fixes.
Sorry for the separate commits.
2013-10-18 07:29:50 -02:00
kaeza
a487ffaa16 Some fixes to proportional/HQ font support. 2013-10-18 07:26:16 -02:00
kaeza
40f74beec0 Separate lines of sign text a bit. 2013-10-18 06:17:28 -02:00
kaeza
cbbe2ccaef Add random checks to see if font changed in the meantime. 2013-10-18 06:11:21 -02:00
kaeza
424a374d83 Add support for high resolution and proportional fonts to signs.
This also gets rid of useless constructs, and optimizes others.
2013-10-18 04:55:10 -02:00
kaeza
e97ee8256e Fix signs' text overflowing at bottom. 2013-10-18 00:12:06 -02:00
Vanessa Ezekowitz
ce09d71c4f Fixed offset bug in sign entities.
Existing signs' text will not be moved - this fix only applies to
newly-placed signs (or at leasty, newly-spawned text entities e.g. after
/clearobjects followed by punching).

Also, made a few functions local that didn't really need to be global,
some minor re-arranging of the code to accommodate the above and to tidy it
up a bit.
2013-10-17 22:05:34 -04:00
kaeza
e6e8cf04e8 Some fixes to signslib.
- Optimize texture generation by using `table.insert' and
  `table.concat' instead of concatenating strings.
- Related to first point, use `string.format' to construct
  individual textures.
- Fixed text entity not wrapping.
- Fixed small typo: `SIGN_WITH' -> `SIGN_WIDTH' :-)
2013-10-17 23:16:06 -02:00
kaeza
6b09ea3a6f Optimize create_lines() by using patterns, and prevent truncation of infotext. 2013-10-16 14:49:45 -02:00
kaeza
7219f6cd49 Make registering unknown signs a warning instead of an error. 2013-10-16 13:31:30 -02:00
Vanessa Ezekowitz
e4c02a82d6 Split ownership checking and 6d facedir into separate files. Changed
related functions to use homedecor: and lib_6d: namespaces, as
necessary, instead of simple "homedecor_" name prefixes.
2013-10-13 13:20:42 -04:00
Vanessa Ezekowitz
e04a0e5e4f changed all "homedecor_" variable and function names to "homedecor."
(underscore -> period).  Similarly for intllib calls and the DEBUG variable.
2013-10-09 12:47:22 -04:00
Vanessa Ezekowitz
2550672352 Replaced most uses of get_modpath() with variables cached at the top of init.lua 2013-10-09 12:27:49 -04:00
kaeza
dbc2242d00 Make wall signs protection-aware. 2013-10-01 22:33:26 -03:00
kaeza
53e9690679 Fix disabled signs. 2013-08-16 13:52:19 -03:00
Vanessa Ezekowitz
2efa203185 Phased out all deprecated minetest.env:* uses in favor of minetest.* 2013-06-30 23:55:07 -04:00
Zeg9
5a45d2b609 Only remove fences and signs from inventory if expected 2013-06-06 20:15:32 +02:00
Diego Martínez
53b62463fc Fix wrong check for ownership on fence placement, respect pointed_thing on_rightclick callback, and support placing fences in buildable_to nodes 2013-05-23 08:56:21 -03:00
Vanessa Ezekowitz
049b358c31 fix missing ownership check on editing yard signs 2013-05-20 21:55:40 -04:00
Vanessa Ezekowitz
987f070069 fixed inverted condition in sign ownership check 2013-05-20 21:39:25 -04:00
Diego Martínez
581b63a6b3 signs can now only be edited by owner 2013-05-20 17:51:32 -03:00
Diego Martínez
618aa5f167 Placing fences now takes into account protection systems 2013-05-19 04:20:03 -03:00
ShadowNinja
7d0a3f9056 Use "|" for linebreaks in infotext 2013-04-05 19:04:05 -04:00
ShadowNinja
7c9778d64b Use infotext for signs 2013-04-05 18:47:34 -04:00
Vanessa Ezekowitz
1ca5d00096 fixed a similar bug in signs code 2013-04-03 22:53:23 -04:00
Vanessa
349748e100 kaeza fixed node ownership detection for placing signs 2013-03-22 23:26:54 -04:00
Diego Martínez
1ce512a3c8 add logging support to signslib and re-add intllib support 2013-03-22 14:49:57 -03:00
Diego Martínez
d4f7de4640 fix wrong check for protection on node placement 2013-03-22 14:37:44 -03:00
Diego Martínez
a077685e8b Fixed yard signs being able to overwrite other nodes 2013-03-16 19:20:02 -03:00
Diego Martínez
670c44c156 Fixed fences being able to overwrite other nodes 2013-03-16 19:00:41 -03:00
Diego Martínez
07f3e65b4f Fixed text on brass/wrought-iron posts not showing 2013-03-16 18:27:13 -03:00
Diego Martínez
f79c5557fc changed way in which signs attach to fences 2013-03-11 06:59:42 -03:00
Diego Martínez
6133234771 Added localization support 2013-03-05 05:18:56 -02:00
Vanessa Ezekowitz
178386ee53 Added the ability to place a sign onto a brass or wrought iron fence
uses code from PilzAdam's rework of thexyz's signs mod.
2013-02-08 02:31:40 -05:00