1
0
mirror of https://github.com/pyrollo/display_modpack.git synced 2025-06-28 14:16:19 +02:00

173 Commits

Author SHA1 Message Date
21cfb2e59e Merge branch 'github' 2022-07-02 12:47:48 +02:00
889ee5a88d Delete depends.txt, update mod.conf 2022-07-02 12:46:17 +02:00
0df11424ea Merge remote-tracking branch 'upstream/master' 2020-12-08 22:34:41 +01:00
f5bd6d1046 Delete .gitmodules 2020-12-05 13:20:17 +01:00
e6c366df04 Delete .gitmodules 2020-12-04 09:57:27 +01:00
ad30eeab23 Add mods loading messages to action log 2020-07-23 15:39:26 +02:00
6135b3a60c Merge pull request #42 from mnh48-minetest/update_malay_july2020
Update Malay translation
2020-07-05 18:15:06 +02:00
33f34e3d60 Update Malay translation 2020-07-05 19:44:42 +08:00
d36bf7c525 Add textarea styling to fix text color issue 2020-06-13 19:44:16 +02:00
b12d1f6b5e Merge pull request #40 from R3R3R3/master
Override on_punch for poster node definition
2020-02-17 20:06:31 +01:00
d63d32b42b Override on_punch for poster node definition
The signs_api `register_sign`'s default `on_punch` sets a sign's formspec to the
sign editor. If we protect a poster and then punch/break it, subsequent attempts
to view the poster will briefly cause the the sign editor to display before the
actual poster formspec. Small, but annoying.
2020-02-10 19:54:38 +01:00
d2c7abd98b Add 'signs_api/' from commit 'b837f9d38c3a81dc49c3c1234dbea0d34628b057'
git-subtree-dir: signs_api
git-subtree-mainline: ebadeb20d9
git-subtree-split: b837f9d38c
2019-12-31 17:07:27 +01:00
ebadeb20d9 Add 'font_api/' from commit '4c872e829d716014e601bdf0707edd11a9abbc17'
git-subtree-dir: font_api
git-subtree-mainline: f27b5478b9
git-subtree-split: 4c872e829d
2019-12-31 17:07:14 +01:00
f27b5478b9 Add 'display_api/' from commit '3a43e4ad81dc6595fabfa22c88e229c393f93529'
git-subtree-dir: display_api
git-subtree-mainline: 135cae7219
git-subtree-split: 3a43e4ad81
2019-12-31 17:06:56 +01:00
135cae7219 Removed display_api, signs_api, and font_api to make them subtrees 2019-12-31 17:06:15 +01:00
3a43e4ad81 Add missing entries to wallmounted_rotations 2019-12-31 16:58:45 +01:00
09974f0c90 Add nil check for node def 2019-12-31 16:58:20 +01:00
de915427ee Better compressions of PNG files 2019-08-31 17:11:53 +02:00
2c845e4f68 Revert svg 2019-08-20 13:06:18 +02:00
4ae72c7fad Lossless compression 2019-08-20 10:43:54 +02:00
4e9af449ff Fixed API documentation (height replaced by top) 2019-03-14 09:48:27 +01:00
89fc7f863d Fixed API documentation (height replaced by top) 2019-03-14 09:48:27 +01:00
4c872e829d Replaced prints by minetest.log and code styling 2019-03-14 09:46:04 +01:00
2b142e9dfe Replaced prints by minetest.log and code styling 2019-03-14 09:46:04 +01:00
6162f49bc1 Replaced prints by minetest.log and code styling 2019-03-14 09:46:04 +01:00
b837f9d38c Detect rotation restriction (#29)
Autodetect rotation restrictions if on MT<5.0
2019-03-14 09:36:41 +01:00
fd4c8e6c68 Detect rotation restriction (#29)
Autodetect rotation restrictions if on MT<5.0
2019-03-14 09:36:41 +01:00
0ca85ac5c1 Detect rotation restriction (#29)
Autodetect rotation restrictions if on MT<5.0
2019-03-14 09:36:41 +01:00
767c2653c2 Fixed crash on MT0.4 2019-03-11 10:16:18 +01:00
882af249e0 Fixed crash on MT0.4 2019-03-11 10:16:18 +01:00
1c15814156 Updated screenshot 2019-03-09 21:18:57 +01:00
010b7cc89f Fixed a remaining bug in node placement 2019-03-09 21:18:43 +01:00
76dde2b6f5 Fixed a remaining bug in node placement 2019-03-09 21:18:43 +01:00
7c4af47caf Update README 2019-03-09 20:50:48 +01:00
da1af1fdeb Update README 2019-03-09 20:47:33 +01:00
5d91a6de20 Update README 2019-03-09 20:47:33 +01:00
17923d5aea Use MT5 set_rotation to allow all rotations of nodes 2019-03-09 20:24:53 +01:00
15ed431b3a Use MT5 set_rotation to allow all rotations of nodes 2019-03-09 20:24:53 +01:00
2e98900cc0 Use MT5 set_rotation to allow all rotations of nodes 2019-03-09 20:24:53 +01:00
b43c7046d7 Fixed top and bottom nodeboxes in preparation of new rotation abilities 2019-03-09 19:11:44 +01:00
2d63967938 Removed redundant mod dependancies 2019-03-09 19:10:27 +01:00
ce65eb4e9b Small update of README 2019-03-09 19:09:27 +01:00
38e5d62caf Small update of README 2019-03-09 19:09:27 +01:00
ec6f742895 Added mod.conf 2019-03-09 19:08:46 +01:00
7221f59a9d Added mod.conf 2019-03-09 19:08:46 +01:00
ad6e62aa5b Added mod.conf 2019-03-09 19:08:46 +01:00
8735de0fce Added mod.conf 2019-03-09 19:08:46 +01:00
d7de025623 Switched from deprecated functions setyaw and setpos to set_yaw and set_pos 2019-03-05 20:59:42 +01:00
46cb9d82dd Switched from deprecated functions setyaw and setpos to set_yaw and set_pos 2019-03-05 20:59:42 +01:00
eae85369ca Update README.md 2018-12-14 11:17:38 +01:00
199f9c7a13 Merge branch 'dev' for version 1.2.3 2018-12-14 11:13:37 +01:00
9194904b78 Update README.md 2018-12-14 11:13:24 +01:00
f1b92adb0f Fixed craft recipe for labels 2018-12-13 17:44:36 +01:00
e2b597d09f Update API documentation 2018-12-11 14:58:11 +01:00
b98e97157c Update API documentation 2018-12-11 14:58:11 +01:00
fc40e54ed2 Update API documentation 2018-12-11 14:58:11 +01:00
d073c9edb8 Added display entity yaw attribute 2018-12-11 14:57:42 +01:00
c9329d3789 Added display entity yaw attribute 2018-12-11 14:57:42 +01:00
8b896ab23f Updated font_api mod desctiption in headers 2018-12-11 12:01:16 +01:00
e75d6bc575 Updated font_api mod desctiption in headers 2018-12-11 12:01:16 +01:00
51a4a45a45 Updated font_api mod desctiption in headers 2018-12-11 11:57:54 +01:00
4604be9a8b Updated font_api mod desctiption in headers 2018-12-11 11:57:54 +01:00
523485df2b Add font_lib to deprecation notice 2018-12-11 11:57:05 +01:00
ea583b5250 Added font_lib deprecation and corresponding notices in READMEs 2018-12-11 11:52:55 +01:00
4005b99c05 Added font_lib deprecation and corresponding notices in READMEs 2018-12-11 11:52:55 +01:00
81e6dc89ae Added font_lib deprecation and corresponding notices in READMEs 2018-12-11 11:52:55 +01:00
d013809244 Merge branch 'dev' of http://github.com/pyrollo/display_modpack into dev 2018-12-11 11:41:20 +01:00
4c8eee06b2 Better management of display_api integration 2018-12-11 11:41:03 +01:00
62c8de26b4 Better management of display_api integration 2018-12-11 11:41:03 +01:00
7793f6363f Better management of invalid UTF strings 2018-12-11 11:26:50 +01:00
feb1b639ff Better management of invalid UTF strings 2018-12-11 11:26:50 +01:00
b3c935768f Merge branch 'master' into dev 2018-12-09 17:24:46 +01:00
4e5ebedc17 Merge branch 'master' into dev 2018-12-09 17:24:46 +01:00
ffe113c62a Remove entity where display node not found 2018-12-08 19:27:08 +01:00
ca28c5e835 Remove entity where display node not found 2018-12-08 19:27:08 +01:00
e94a1b21f6 Merge branch 'deprecation' 2018-12-05 16:11:24 +01:00
47cb8f2cd3 New Font:render method 2018-12-05 15:41:56 +01:00
f46dd0a72e New Font:render method 2018-12-05 15:41:56 +01:00
1856121098 New Font:render method 2018-12-05 15:41:56 +01:00
b71d5a8f01 Fixed width fonts specific management 2018-12-05 11:42:36 +01:00
1d4c45e130 Fixed width fonts specific management 2018-12-05 11:42:36 +01:00
86db2d2c72 Fixed entity existence verification 2018-12-04 18:01:36 +01:00
0f514c5c89 Fixed entity existence verification 2018-12-04 18:01:36 +01:00
b16f9fc23b Updated API with new group 2018-12-04 17:59:52 +01:00
4d8dec3b79 Updated API with new group 2018-12-04 17:59:52 +01:00
5862997a02 Depreciation of old display groups and display_lib global + warnings 2018-12-03 16:27:08 +01:00
9ce075d30b Depreciation of old display groups and display_lib global + warnings 2018-12-03 16:27:08 +01:00
e46ece5ec6 Depreciation of old display groups and display_lib global + warnings 2018-12-03 16:27:08 +01:00
a3e0d36a68 Fixed issue showing "Unknown objects" instead of display on Raspberry Pi 2018-12-02 21:05:46 +01:00
6900077558 Update README.md 2018-12-02 21:04:01 +01:00
ab5a510775 Avoid crash if entity not defined. 2018-12-02 15:22:37 +01:00
b88f67f015 Avoid crash if entity not defined. 2018-12-02 15:22:37 +01:00
6c92826e3c Replaced core reference by usual minetest reference 2018-12-01 20:44:10 +01:00
bcc181cb15 Replaced core reference by usual minetest reference 2018-12-01 20:44:10 +01:00
9ca3474360 Atempt to fix "unknown object" issue + code rework 2018-11-29 14:27:36 +01:00
03983f081e Atempt to fix "unknown object" issue + code rework 2018-11-29 14:27:36 +01:00
ba5b7aee52 Red and blue signs, node names tidy up 2018-11-26 21:05:58 +01:00
52eb47626a Update SVG files 2018-11-26 20:14:20 +01:00
1c51fa7723 Updated readme and screenshot for v1.2.1 2018-11-23 11:56:08 +01:00
b5b34899cc Font chooser form added 2018-11-23 11:35:42 +01:00
0f8db34368 Font chooser form added 2018-11-23 11:35:42 +01:00
cce3d84493 Fonts configurable in signs, posters and steles 2018-11-23 11:34:55 +01:00
19f2da52ee Fonts configurable in signs, posters and steles 2018-11-23 11:34:55 +01:00
367e5026dd Fonts configurable in signs, posters and steles 2018-11-23 11:34:55 +01:00
7fc0f92e75 Simplified signs formspec for release 2018-11-18 15:44:55 +01:00
59ae9fa4d1 Simplified signs formspec for release 2018-11-18 15:44:55 +01:00
db66553fbf Update poster.svg 2018-11-18 15:34:49 +01:00
1f8451567f Merge local and origin 'master' branches 2018-11-18 15:32:07 +01:00
4eb72f0c3f Moved compatibility functions to compatibility.lua 2018-11-18 15:31:53 +01:00
6d9e45f43d Added font formspec textures 2018-11-18 15:30:37 +01:00
07eb4737fa Added font formspec textures 2018-11-18 15:30:37 +01:00
a35b0ec7b9 Code simplification and securisation 2018-11-18 15:29:59 +01:00
81fa9f60cf Code simplification and securisation 2018-11-18 15:29:59 +01:00
641dddfd51 Code simplification and securisation 2018-11-18 15:29:59 +01:00
d9b10f6c3e Update depends.txt 2018-11-13 17:20:06 +01:00
a720c1ffd7 Typo fixing 2018-11-13 14:25:33 +01:00
36f94f81a4 Update README.md 2018-11-13 14:02:04 +01:00
1221cfcc4a Update README.md 2018-11-13 14:02:04 +01:00
3bb05ea6a6 Updated README.md with links and fonts 2018-11-13 13:58:27 +01:00
4a57d08f2b New font selection formspec 2018-11-10 22:35:47 +01:00
b8357a505c New font selection formspec 2018-11-10 22:35:47 +01:00
e7856f70a7 Update README.md 2018-11-09 15:28:54 +01:00
77c8b0a5ec Update README.md 2018-11-09 15:28:54 +01:00
06e97a1631 Update README.md 2018-11-09 15:28:28 +01:00
9c5752f0d9 Update README.md 2018-11-09 15:28:28 +01:00
11ede12680 Update README.md 2018-11-09 15:28:07 +01:00
ab70424143 Update README.md 2018-11-09 15:28:07 +01:00
7a3f3bf875 Update README.md 2018-11-09 09:37:06 +01:00
377d5f2b8c Merge branch 'master' of https://github.com/pyrollo/display_modpack 2018-11-09 09:35:51 +01:00
61ea3b35f3 Add font_metro screenshot.png 2018-11-09 09:35:36 +01:00
b2119e7ec1 Update font license in README.md 2018-11-07 11:00:45 +01:00
5b841a9008 Update and rename LICENSE.txt to LGPL.txt 2018-11-07 10:59:43 +01:00
1d26bcd9f3 Create CC-BY-SA.txt 2018-11-07 10:58:20 +01:00
6827063fbd Create README.md 2018-11-07 10:56:09 +01:00
01ba1d47b1 Updated changelog 2018-11-01 18:56:59 +01:00
c1835931e5 Added labels and wooden signs 2018-11-01 18:10:26 +01:00
1a50b59995 Rewrited split_lines to avoid a string.split bug if first line empty 2018-11-01 12:25:47 +01:00
06d35ec9bf Rewrited split_lines to avoid a string.split bug if first line empty 2018-11-01 12:25:47 +01:00
b74407e11e Changed UTF8 routines and added char fallback mechanism 2018-11-01 10:47:39 +01:00
95c9da849d Changed UTF8 routines and added char fallback mechanism 2018-11-01 10:47:39 +01:00
bb24d91645 Merge pull request #24 from 12Me21/master
Fixes collision boxes on right directional signs
2018-10-08 09:13:07 +02:00
125cae3300 Fixes collision boxes on right directional signs 2018-10-07 00:32:12 -04:00
aac0ccf591 Merge pull request #23 from pandorabox-io/master 2018-10-03 10:24:03 +02:00
1c40830ddf fix infinite stack of steles 2018-10-03 09:07:42 +02:00
f6b11d6cc6 Update copyright.txt 2018-09-26 19:43:33 +02:00
5586b9d1c4 Update copyright.txt 2018-09-26 19:43:33 +02:00
8fa161c90b Improve on_rotate functions (#21)
Fixed bugs and improve on_rotate and support color- paramtype2s
2018-09-26 19:41:30 +02:00
a9c7e2235f Improve on_rotate functions (#21)
Fixed bugs and improve on_rotate and support color- paramtype2s
2018-09-26 19:41:30 +02:00
44b911be9e Improve on_rotate functions (#21)
Fixed bugs and improve on_rotate and support color- paramtype2s
2018-09-26 19:41:30 +02:00
969bd674c9 Reverting submodule change until zip file does not include submodule 2018-09-21 21:19:48 +02:00
d22362a4ac Reverting submodule change until zip file does not include submodule 2018-09-21 21:19:48 +02:00
12b556e929 Turned display_api into a submodule 2018-09-21 19:37:38 +02:00
508db92633 Update copyright.txt 2018-09-21 17:08:17 +02:00
30af909da5 Merge pull request #20 from 12Me21/master
Improved on_place
2018-09-21 17:07:11 +02:00
dfaf64cd61 Improved on_place
Now uses player view direction when trying to place nodes on the floor or ceiling, for both wallmounted and facedir nodes.
Also supports nodes where paramtype2 is not wallmounted or facedir.
2018-09-20 16:07:43 -04:00
c1f7b571b8 Add missing textures 2018-09-20 21:15:23 +02:00
2793e0ab8f Added simple wooden sign 2018-09-20 15:27:42 +02:00
a0d596bab9 Creation for boards mod 2018-07-16 10:26:26 +02:00
2f1899a35d Cleanup some unused code 2018-07-16 10:18:37 +02:00
c19348d305 Cleanup some unused code 2018-07-16 10:18:37 +02:00
35ead5a2a5 Fix default font chosing when multiple fonts 2018-07-16 10:18:08 +02:00
4b02cfdfca Fix default font chosing when multiple fonts 2018-07-16 10:18:08 +02:00
076adbe8ab Removed a debug trick and fixed indentation 2018-07-15 09:40:18 +02:00
fac6dfe1f8 Removed a debug trick and fixed indentation 2018-07-15 09:40:18 +02:00
897b0f1f98 Update README.md 2018-07-13 23:23:46 +02:00
8d94b1ffed Rework all nodes displaying text according to new font_api 2018-07-13 20:41:53 +02:00
80b616ab97 Rework all nodes displaying text according to new font_api 2018-07-13 20:41:53 +02:00
825557ff31 Fix typos in API.md 2018-07-09 07:19:27 +00:00
98272ebf63 Added two documentation schema 2018-07-08 21:27:39 +02:00
e233ffb691 Creation of Font class and code update accordingly (fix) 2018-07-08 20:41:02 +02:00
52973fbd84 Creation of Font class and code update accordingly 2018-07-08 20:36:34 +02:00
f9a26194f0 Seperate signs API from signs definitions
Change modnames from *_lib to *_api
2018-02-07 06:04:12 +01:00
4bfc237ddc Seperate signs API from signs definitions
Change modnames from *_lib to *_api
2018-02-07 06:04:12 +01:00
681 changed files with 3754 additions and 1979 deletions

110
README.md
View File

@ -1,81 +1,115 @@
# Display Modpack
Version 1.3.1
This modpack provides mods with dynamic display. Mods are :
- **display_api**: A library for adding display entities to nodes;
- **font_api**: A library for displaying fonts on entities;
- **ontime_clocks**: A mod providing clocks which display the ingame time;
- **signs_api**: A library for the easy creation of signs;
- **signs**: A mod providing signs and direction signs displaying text;
- **signs_road**: A mod providing road signs displaying text;
- **steles**: A mod providing stone steles with text;
- **[display_api](https://github.com/pyrollo/display_modpack/tree/master/display_api)**: A library for adding display entities to nodes;
- **[font_api](https://github.com/pyrollo/display_modpack/tree/master/font_api)**: A library for displaying fonts on entities;
- **[signs_api](https://github.com/pyrollo/display_modpack/tree/master/signs_api)**: A library for the easy creation of signs;
- **[font_metro](https://github.com/pyrollo/display_modpack/tree/master/font_metro)**: A font mod used as default font (includes uppercase, lowercase and accentuated latin letters, usual signs, cyrillic and greek letters)
- **[boards](https://github.com/pyrollo/display_modpack/tree/master/boards)**: A mod providing school boards (includes *tiny cursive font*, a handwriting style font);
- **[ontime_clocks](https://github.com/pyrollo/display_modpack/tree/master/ontime_clocks)**: A mod providing clocks which display the ingame time;
- **[signs](https://github.com/pyrollo/display_modpack/tree/master/signs)**: A mod providing signs and direction signs displaying text;
- **[signs_road](https://github.com/pyrollo/display_modpack/tree/master/signs_road)**: A mod providing road signs displaying text;
- **[steles](https://github.com/pyrollo/display_modpack/tree/master/steles)**: A mod providing stone steles with text;
For more information, see the [forum topic](https://forum.minetest.net/viewtopic.php?t=19365) at the Minetest forums.
![Presentation image of Display_Modpack](screenshot.png)
## Extra fonts
*Metro* and *Tiny Cursive* fonts are provided in **Display Modpack** (in **font_metro** and **boards** mods) but you can add more fonts by installing font mods. Be aware that each font mod comes with numerous textures. This can result in slowing media downloading and/or client display.
Extra font mods can be found here:
* [OldWizard](https://github.com/pyrollo/font_oldwizard): An old style gothic font.
* [Botic](https://github.com/pyrollo/font_botic): A scifi style font.
## Deprecation notice (for modders)
### December 2018
Following objects are deprecated, shows a warning in log when used:
* `display_modpack_node` group (use `display_api` group instead);
* `display_lib_node` group (use `display_api` group instead);
* `display_lib` global table (use `display_api` global table instead);
* `font_lib` global table (use `font_api` global table instead);
These objects will be removed in the future.
## Changelog
### 2019-03-14 (Version 1.3.1)
- __dispay_api__: Display API now detects automatically whenr rotation restrictions have to be applied.
- __sign_api__: Screwdriver behavior changed. Now, left click rotates and changes direction.
### 2019-03-09 (Version 1.3)
- __display_api__: Display nodes can be rotated in every directions (if running Minetest 5 or above).
- __display_api__: New setting to restrict rotations to Minetest 0.4 abilities (restriction enabled by default).
- __sign_api__: Changed behavior of screwdriver if no rotation restriction.
### 2018-12-14 (Version 1.2.3)
- __display_api__: New `yaw` attributes, entities can now have different angles with node.
- __font_api__: New `Font:render` method for texture creation
- __font_api__: Specific management for fixed width font. Allows number of columns based texture width.
- __font_api__: Improve `display_api` integration into `font_api`. Display API fully optional. `font_api.on_display_update` defined only if `display_api` enabled.
- __font_api__: Improve management of invalid UTF strings (should not crash anymore)
- __font_api__: Deprecation of `font_lib`
- __signs__: Fixed craft recipe for labels
### 2018-12-02 (Version 1.2.2)
- Fixed a bug that prevented Display API from working on some systems (Raspberry Pi)
### 2018-11-01 (Version 1.2.1)
- Now font can be chosen per sign / stele
### 2018-11-01 (Version 1.2)
- Labels and woodend signs added.
- Fallback mechanism for missing chars (For example: "é" --> "e" --> "E").
- Several bug fixes by 12Me21 and naturefreshmilk.
### 2018-07-16 (Version 1.1.1)
- Boards mod added.
- Bug fix in default font chosing when multiple font registered.
### 2018-07-13 (Version 1.1.0)
- Font API rework introducing Font class.
- Replaced default Epilepsy Font by Metro Font for licensing purposes,
- Rework of all nodes displaying text accordingly to the Font API rework.
As font_epilepsy mod has been replaced by font_metro mod, **don't forget to activate font_metro mod after updating** or you won't have any text displayed.
### 2018-05-30 (Version 1.0.1)
Mostly bug fixes :
- Fix steles orientation when placing
- Update entity on mapblock load
- Use default formspec style
- Fix ndef nill value in steles mod when technics not installed
- Seperate signs API from signs définitions
- Allow a greater offset between display and block
### 2018-01-13 (Version 1.0)
- Switch to Epilepsy font by KREATIVE SOFTWARE
- Add settings "default_font"
- Add horizontal alignment
- Add tool for creating font textures from .ttf font files
- Fix UTF 8 to Unicode decoding
- Fix UTF 8 to Unicode decoding
- Updated forum thread link in README.md
### 2017-12-19
This change is a preparation to merge Andrzej Pieńkowski fork (apienk) : new font and support of UTF chars.
- Font\_lib support for multiple fonts (nothing yet visible in mods) ;
- Font\_lib support for Unicode characters (limited to Unicode Plane 0: 0000-FFFF, see [Wikipedia](https://en.wikipedia.org/wiki/Unicode)) ;
- Font\_lib support for Unicode characters (limited to Unicode Plane 0: 0000-FFFF, see [Wikipedia](https://en.wikipedia.org/wiki/Unicode)) ;
- New "default" font with original textures from Vanessa Ezekowitz (VanessaE) ;
### 2017-12-10
- Compatibility of signs mod with signs_lib (thanks to gpcf) ;
- Added large banner in road signs (thanks to gpcf) ;
### 2017-08-26
- Changed signs from wallmounted to facedir to improve textures and make it possible to use screwdriver.
- Changed signs from wallmounted to facedir to improve textures and make it possible to use screwdriver.
**IMPORTANT** : Map will be updated to change to new nodes but inventory items will turn into "Unknown items" and have to be re-crafted.
- Intllib support added with french translation (whole modpack, thanks to fat115) ;
- Punch on nodes to update entity (signs, signs_road and steles). Usefull in case of /clearobjects ;
- Changed wooden direction sign textures (signs) ;
- Added back and side textures to all signs (road_signs) ;
- Added more sign types : White/yellow/green signs and direction signs (signs_road) ;

166
boards/LICENSE.txt Normal file
View File

@ -0,0 +1,166 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

4
boards/LICENSE_FONT.txt Normal file
View File

@ -0,0 +1,4 @@
The FontStruction “Tiny Cursive”
(https://fontstruct.com/fontstructions/show/63155) by “cyfry77” is licensed
under a Creative Commons Attribution Share Alike license
(http://creativecommons.org/licenses/by-sa/3.0/).

2
boards/copyright.txt Normal file
View File

@ -0,0 +1,2 @@
Code by Pierre-Yves Rollo (pyrollo)
Font by (cyfry77)

27
boards/font_tinycurs.lua Normal file
View File

@ -0,0 +1,27 @@
--[[
Tinycurs font for Font API
Original font Tiny Cursive
by cyfry77
G and J textures by Pierre-Yves Rollo (pyrollo)
released under CC-BY-SA license
https://fontstruct.com/fontstructions/show/63155/tiny_cursive
Derivative texture are under CC-BY-SA license
Code is under LGPL v3 license
--]]
font_api.register_font('tinycurs',
{
default = false, -- Don't register this font as a possible default font
margintop = -2,
marginbottom = -2,
linespacing = -4,
height = 19,
widths = {
[0]=9, [32]=9, [33]=6, [34]=7, [35]=10, [36]=14, [37]=14, [38]=12, [39]=3, [40]=6, [41]=6, [42]=9, [43]=8, [44]=3, [45]=7, [46]=3, [47]=9, [48]=9, [49]=7, [50]=10, [51]=9, [52]=9, [53]=10, [54]=10, [55]=9, [56]=10, [57]=8, [58]=5, [59]=5, [60]=8, [61]=8, [62]=8, [63]=8, [64]=12, [65]=9, [66]=7, [67]=9, [68]=10, [69]=8, [70]=8, [71]=8, [72]=10, [73]=7, [74]=8, [75]=9, [76]=9, [77]=12, [78]=10, [79]=9, [80]=9, [81]=9, [82]=11, [83]=11, [84]=8, [85]=11, [86]=11, [87]=12, [88]=12, [89]=11, [90]=11, [91]=8, [92]=5, [93]=8, [94]=8, [95]=8, [96]=5, [97]=6, [98]=6, [99]=6, [100]=7, [101]=6, [102]=5, [103]=6, [104]=6, [105]=4, [106]=5, [107]=7, [108]=5, [109]=9, [110]=8, [111]=6, [112]=9, [113]=8, [114]=7, [115]=7, [116]=6, [117]=8, [118]=8, [119]=11, [120]=10, [121]=8, [122]=8, [123]=8, [124]=6, [125]=9, [126]=10, [8216]=4, [8217]=4, [8220]=6, [8221]=6
},
}
);

140
boards/init.lua Normal file
View File

@ -0,0 +1,140 @@
--[[
boards mod for Minetest. Black boards with text on it.
(c) Pierre-Yves Rollo
This file is part of boards.
boards is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
boards is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with boards. If not, see <http://www.gnu.org/licenses/>.
--]]
boards = {}
boards.name = minetest.get_current_modname()
boards.path = minetest.get_modpath(boards.name)
-- Load support for intllib.
local S, NS = dofile(boards.path.."/intllib.lua")
boards.intllib = S
local F = function(...) return minetest.formspec_escape(S(...)) end
-- Load font
dofile(boards.path.."/font_tinycurs.lua")
local function set_formspec(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec",
"size[6,4]"..default.gui_bg..default.gui_bg_img..default.gui_slots..
"textarea[0.5,0.7;5.5,3;display_text;"..F("Text")..";${display_text}]"..
"button_exit[3,3.5;2,1;ok;"..F("Write").."]"..
"button_exit[1,3.5;2,1;wipe;"..F("Wipe").."]")
end
-- On boards, everyone is allowed to write and wipe
local function on_receive_fields(pos, formname, fields, player)
if fields then
if fields.ok or fields.key_enter then
signs_api.set_display_text(pos, fields.display_text, fields.font)
end
if fields.wipe then
signs_api.set_display_text(pos, "", fields.font)
end
end
end
models = {
black_board = {
depth = 1/16, width = 1, height = 1,
entity_fields = {
top = -1/32,
size = { x = 1, y = 15/16 },
maxlines = 5,
color = "#fff",
font_name = "tinycurs",
valign = "top",
},
node_fields = {
description = S("Black board"),
tiles = { "default_wood.png", "default_wood.png",
"default_wood.png", "default_wood.png",
"default_wood.png", "board_black_front.png" },
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, 7/16, 0.5, 0.5, 0.5},
{-0.5, -7/16, 6/16, 0.5, -0.5, 7/16}
},
},
on_construct = function(pos)
set_formspec(pos)
display_api.on_construct(pos)
end,
on_receive_fields = on_receive_fields,
},
},
green_board = {
depth = 1/16, width = 1, height = 1,
entity_fields = {
top = -1/32,
size = { x = 1, y = 15/16 },
maxlines = 5,
color = "#fff",
font_name = "tinycurs",
valign = "top",
},
node_fields = {
description = S("Green board"),
tiles = { "default_wood.png", "default_wood.png",
"default_wood.png", "default_wood.png",
"default_wood.png", "board_green_front.png" },
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, 7/16, 0.5, 0.5, 0.5},
{-0.5, -7/16, 6/16, 0.5, -0.5, 7/16}
},
},
on_construct = function(pos)
set_formspec(pos)
display_api.on_construct(pos)
end,
on_receive_fields = on_receive_fields,
},
},
}
-- Node registration
for name, model in pairs(models)
do
signs_api.register_sign("boards", name, model)
end
-- Recipes
minetest.register_craft(
{
output = "boards:black_board",
recipe = {
{"group:wood", "group:stone", "dye:black"},
}
})
minetest.register_craft(
{
output = "boards:green_board",
recipe = {
{"group:wood", "group:stone", "dye:dark_green"},
}
})
minetest.log("action", "[boards] loaded.")

45
boards/intllib.lua Normal file
View File

@ -0,0 +1,45 @@
-- Fallback functions for when `intllib` is not installed.
-- Code released under Unlicense <http://unlicense.org>.
-- Get the latest version of this file at:
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
local function format(str, ...)
local args = { ... }
local function repl(escape, open, num, close)
if escape == "" then
local replacement = tostring(args[tonumber(num)])
if open == "" then
replacement = replacement..close
end
return replacement
else
return "@"..open..num..close
end
end
return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
end
local gettext, ngettext
if minetest.get_modpath("intllib") then
if intllib.make_gettext_pair then
-- New method using gettext.
gettext, ngettext = intllib.make_gettext_pair()
else
-- Old method using text files.
gettext = intllib.Getter()
end
end
-- Fill in missing functions.
gettext = gettext or function(msgid, ...)
return format(msgid, ...)
end
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
return format(n==1 and msgid or msgid_plural, ...)
end
return gettext, ngettext

40
boards/locale/fr.po Normal file
View File

@ -0,0 +1,40 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-16 10:00+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua
msgid "Text"
msgstr "Texte"
#: init.lua
msgid "Write"
msgstr "Ecrire"
#: init.lua
msgid "Wipe"
msgstr "Effacer"
#: init.lua
msgid "Black board"
msgstr "Tableau noir"
#: init.lua
msgid "Green board"
msgstr "Tableau vert"

35
boards/locale/ms.po Normal file
View File

@ -0,0 +1,35 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# Yaya (Nurul Azeera Hidayah @ Muhammad Nur Hidayat) <translation@mnh48.moe>, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: Display Modpack\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-16 10:00+0200\n"
"PO-Revision-Date: 2020-07-05 11:31+0000\n"
"Language-Team: Malay <translation@mnh48.moe>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.3\n"
"Last-Translator: Yaya MNH48 <translation@mnh48.moe>\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"Language: ms\n"
#: init.lua
msgid "Text"
msgstr "Teks"
#: init.lua
msgid "Write"
msgstr "Tulis"
#: init.lua
msgid "Wipe"
msgstr "Padam"
#: init.lua
msgid "Black board"
msgstr "Papan hitam"

View File

@ -0,0 +1,34 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-16 10:00+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: init.lua
msgid "Text"
msgstr ""
#: init.lua
msgid "Write"
msgstr ""
#: init.lua
msgid "Wipe"
msgstr ""
#: init.lua
msgid "Black board"
msgstr ""

4
boards/mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = boards
title = Black boards
description = Writable school boards using sign_api
depends = default,signs_api

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 B

Some files were not shown because too many files have changed in this diff Show More