1
0
mirror of https://github.com/pandorabox-io/banners.git synced 2025-01-06 16:10:32 +01:00
Commit Graph

40 Commits

Author SHA1 Message Date
Luke aka SwissalpS
80aff0dc7d version bump 2024-11-29 12:32:58 +01:00
Luke aka SwissalpS
fe72fc27a3 add chatcommand banners_fix
fixes #7
provides a work-around for the engine problem with entities.
2024-11-29 11:59:11 +01:00
Luke aka SwissalpS
767a49a432 remove stray debug point 2024-11-29 10:38:17 +01:00
Luke aka SwissalpS
143e549ff9 oopsie fixes 2024-11-29 10:27:50 +01:00
Luke aka SwissalpS
4178bd1501 version bump 2024-11-29 10:16:30 +01:00
Luke aka SwissalpS
578bd700d1 read item meta allowing players to edit existing banners 2024-11-29 10:11:33 +01:00
Luke aka SwissalpS
88d628d73f cleanup old banners when their entities are generated 2024-11-29 10:09:31 +01:00
Luke aka SwissalpS
e3c216eba7 add transform_string_to_table
allows us to add more features such as:
- clean existing banners to slim down data
- read transforms from items in inventory -> allow players
  to change existing patterns without having to start from
  scratch.
2024-11-29 10:07:32 +01:00
Luke aka SwissalpS
1c5b11609b refactor: reusable transformation string creation
unfortunately the git diff is a bit messy on this one.
Nothing changed with:
- banners.Banner
- banners.Banner:new
- banners.Banner:push_transform
- banners.Banner:pop_transform

content of banners.Banner:get_transform_string was moved
to banners.transform_table_to_string with very few changes
2024-11-29 10:04:22 +01:00
Luke aka SwissalpS
2fea87dbde preserve player undo-history over joins
player could have timed-out and thus lost their history.
It isn't crucial to remove their history, so let's give
them this feature.
2024-11-29 09:56:17 +01:00
Luke aka SwissalpS
3d5805c8a9 remove set_banner_texture()
only used once and is easy enough to have inline
2024-11-29 09:51:03 +01:00
Luke aka SwissalpS
d86c93bcc5 use same function declaration style throughout 2024-11-29 09:49:40 +01:00
Luke aka SwissalpS
9b5962aba4 banner always exists
even if only "" it exists and there isn't an error.
not adding "" or texture string, causes a non critical error.
2024-11-29 07:45:14 +01:00
Luke aka SwissalpS
38bf923967 dynamically update masks
to reflect the currently selected colour.
2024-11-28 15:37:02 +01:00
Luke aka SwissalpS
f2147ce1b0 rename update_all -> update_preview_inv
since it isn't updating everything, only
the preview and the inventory item
2024-11-28 15:36:07 +01:00
Luke aka SwissalpS
b99d10cba5 add recoverable per player history with saved colour 2024-11-28 15:08:42 +01:00
Luke aka SwissalpS
dc9867f359 add versioning 2024-11-28 14:19:54 +01:00
Luke aka SwissalpS
7e3a84eaac minimize metadata size
also changed banners.max_transformations to
banners.max_undo_levels and lowered the value substantially.
2024-11-28 14:18:26 +01:00
Luke aka SwissalpS
3d22f9b76b fix #5 make transform history non-global
fixes #5
transformation history was shared by all users and kept growing as it
was never truely reset. Every time a user
used a banner a white background was dumped on top of the
stack making it possible to crash the server through an
overflow to core.serialize() function.
2024-11-28 12:59:45 +01:00
Luke aka SwissalpS
78be1611c3 cap max amount of layers
fixes #5
2024-11-28 12:55:46 +01:00
Luke aka SwissalpS
b1ff0eb558 use ipairs feature
or use the faster repeat-until-loop
2024-11-28 11:22:49 +01:00
Luke aka SwissalpS
b1d63fd7b1 reduce amount of times transformation string is calculated 2024-11-28 11:20:40 +01:00
Luke aka SwissalpS
9c688d416b refactor weird declaration 2024-11-28 01:06:26 +01:00
Luke aka SwissalpS
c8af7c71e5 avoid duplicate code
save some lines and some extra method calls.
2024-11-27 23:08:26 +01:00
Luke aka SwissalpS
ae679a14d4 luacheck cleanups
- unused arguments
- shaddowed vars
- var redeclarations
- some whitespace involved in above lines
2024-11-27 22:54:39 +01:00
Luke aka SwissalpS
c8012c7266 whitespace and minetest. -> core.
- use same whitespace style throughout and fix some indents.
- change from minetest. to core. namespace.
2024-11-27 22:32:24 +01:00
Niklp
283b5bec25
Fix all deprecation warnings (#4) 2024-07-08 19:10:42 +02:00
nikolaus-albinger
9c624a94da Fix 2 deprecated warnings 2022-02-08 19:49:29 +01:00
OgelGames
ef8cf57941 fix banners not being protected 2020-12-31 21:12:04 +11:00
shamoanjac
03745ff814 Refactoring 2017-02-10 07:28:16 +01:00
shamoanjac
4197d88bad Update init.lua 2016-08-11 14:49:26 +02:00
shamoanjac
9feea540ee Fixed banners.on_dig() no checking for nil players 2016-08-09 18:28:57 +02:00
shamoanjac
c1311b2790 Real fix 2016-08-09 17:07:42 +02:00
shamoanjac
4af7e9c112 Fixed steel support craft recipe 2016-08-09 17:06:00 +02:00
shamoanjac
3a1cc409fe Changed default:wood to group:wood 2016-08-08 23:30:29 +02:00
shamoanjac
b29f96b88b Added faction support 2016-08-08 21:08:43 +02:00
shamoanjac
ed41b17ff5 Moved banners callback definitions out of register_node function 2016-08-06 01:46:52 +02:00
shamoanjac
acca429105 Added color preview button, centralized formspec update code 2016-08-06 01:38:42 +02:00
shamoanjac
937c628ab6 Removed "done" button, changes are now saved the moment they're made 2016-08-06 01:05:30 +02:00
shamoanjac
bd7b456c05 Initial commit 2016-08-06 00:18:23 +02:00