Compare commits

...

33 commits

Author SHA1 Message Date
Wuzzy
d4455b31f0 Rename Minetest to Luanti 2024-10-29 13:35:16 +01:00
Wuzzy
c7e39fb2db Add megustanlosfrijoles to credits 2024-09-24 09:53:56 +02:00
Wuzzy
47a9fc050c Add mod name/description template to locale files 2024-09-24 09:52:26 +02:00
Wuzzy
b04cc0ece8 Translate mod name+description to German 2024-09-24 09:52:05 +02:00
José Miguel Muñoz Z
7ea3076ba2 Translate mod name/description to Spanish 2024-09-24 09:49:45 +02:00
Wuzzy
87d4e305fe Merge pull request 'Add Spanish Translation' (#9) from megustanlosfrijoles/pride_flags-spanish-translation:master into master
Reviewed-on: https://codeberg.org/Wuzzy/pride_flags/pulls/9
2024-01-04 08:33:18 +00:00
José M
12de6a2365 Add Spanish Translation 2024-01-01 14:00:46 -06:00
Wuzzy
5baf4eea28 Version 2.2.0 2023-06-05 10:44:43 +02:00
Wuzzy
3fcbc8d793 Use updated polyamorous flag 2023-06-05 10:21:57 +02:00
Wuzzy
97e66600fd Version 2.1.3 2023-05-20 18:34:54 +02:00
Wuzzy
f58488c715 Merge pull request 'fix logic error' (#7) from Niklp/pride_flags:master into master
Reviewed-on: https://codeberg.org/Wuzzy/pride_flags/pulls/7
2023-05-20 16:24:49 +00:00
Niklp09
249ca5d861 fix logic error 2023-05-20 11:21:15 +02:00
Wuzzy
efc157492a Version 2.1.2 2023-05-14 02:50:00 +02:00
Wuzzy
fba6030272 Merge pull request 'Fix French translation' (#6) from syl/pride_flags:master into master
Reviewed-on: https://codeberg.org/Wuzzy/pride_flags/pulls/6
2023-05-14 00:49:14 +00:00
syl
16613e636c Fix French translation 2023-04-20 16:45:23 +00:00
Wuzzy
0bf701f451 Add translation credits 2023-04-20 17:44:55 +02:00
Wuzzy
55bb184ea6 Add French translation by Z-Master 2023-04-20 17:44:02 +02:00
Wuzzy
a0adbb6c06 Version 2.1.1 2022-09-29 19:19:43 +02:00
Wuzzy
6936be82d0 Fix crash when using in protected areas 2022-09-29 19:19:21 +02:00
Wuzzy
e774da4fd4 Version 2.1.0 2022-08-19 12:29:08 +02:00
Wuzzy
e1b6f01687 Remove progress pride flag from legacy flag list 2022-08-11 12:13:22 +02:00
Wuzzy
a81e55d781 Add Edgy1 to credits for Progress Pride 2022-08-11 12:11:36 +02:00
Wuzzy
343f664534 Some bugfixes with regards to progress pride flag 2022-08-11 12:10:40 +02:00
Wuzzy
b06fff649a Merge pull request 'Add progress flag' (#2) from Edgy1/pride_flags:master into master
Reviewed-on: https://codeberg.org/Wuzzy/pride_flags/pulls/2
2022-08-11 12:06:50 +02:00
Edgy1
1985c4d921 Add progress flag 2022-08-10 16:04:49 -04:00
Wuzzy
02b3118cfc Version 2.0.5 2022-08-05 23:58:16 +02:00
Wuzzy
39924e6ab0 Move license info to LICENSE.txt 2022-08-05 23:57:51 +02:00
Wuzzy
c676c63634 Version 2.0.4 2022-07-26 23:29:50 +02:00
Wuzzy
17a1520487 Remove orphan flags 2022-07-26 23:29:30 +02:00
Wuzzy
e1ef02f97e Version 2.0.3 2022-07-26 21:44:00 +02:00
Wuzzy
6c6e1d453d Fix crash in non-MTG games 2022-07-26 21:43:40 +02:00
Wuzzy
947cc219eb Version 2.0.2 2022-07-26 21:25:07 +02:00
Wuzzy
7a2fd7d755 Clean up mod.conf, add description 2022-07-26 21:24:47 +02:00
10 changed files with 156 additions and 99 deletions

94
LICENSE.txt Normal file
View file

@ -0,0 +1,94 @@
# Licensing and credits for Pride Flags Mod
Source Code License
----------------------------------------------------------
GNU Lesser General Public License v3 (LGPL-3.0)
Copyright (c) 2022, Leslie E. Krause <leslie@searstower.org> and Wuzzy <Wuzzy@disroot.org>
This program is free software; you can redistribute it and/or modify it under the terms of
the GNU Lesser General Public License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This program 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 Lesser General Public License for more details.
http://www.gnu.org/licenses/lgpl-3.0.html
Multimedia License (textures, sounds, and models)
----------------------------------------------------------
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
/models/pride_flags_mast_lower.obj
by sorcerykid
/models/pride_flags_mast_upper.obj
by sorcerykid
/models/pride_flags_wavingflag.b3d
by sorcerykid
/textures/pride_flags_baremetal.png
by sorcerykid
/sounds/pride_flags_flagwave1.ogg
by Chelly01
obtained from https://freesound.org/people/Chelly01/sounds/541088/
modified by sorcerykid
/sounds/pride_flags_flagwave2.ogg
by Chelly01
obtained from https://freesound.org/people/Chelly01/sounds/541088/
modified by sorcerykid
/sounds/pride_flags_flagwave3.ogg
by Chelly01
obtained from https://freesound.org/people/Chelly01/sounds/541088/
modified by sorcerykid
Pride flags:
All pride flags have a name like "/textures/prideflag_<NAME>.png",
where <NAME> is the pride flag name. For example, the rainbow flag
is "/textures/prideflag_rainbow.png". These are the current pride flags:
asexual, bisexual, rainbow, gendercreative, genderfluid, genderqueer,
lesbian, nonbinary, pansexual, polysexual, transgender:
by sorcerykid
aromantic, grayromantic, demiromantic, graysexual, demisexual, omnisexual,
homoromantic, biromantic, panromantic, polyromantic, omniromantic,
vincian, agender, demigender, androgyne, multigender,
intersex, polyamorous, queer, maverique, neutrois, multigender, polygender:
by Wuzzy
progress
by Edgy1
You are free to:
Share — copy and redistribute the material in any medium or format.
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
Attribution — You must give appropriate credit, provide a link to the license, and
indicate if changes were made. You may do so in any reasonable manner, but not in any way
that suggests the licensor endorses you or your use.
No additional restrictions — You may not apply legal terms or technological measures that
legally restrict others from doing anything the license permits.
Notices:
You do not have to comply with the license for elements of the material in the public
domain or where your use is permitted by an applicable exception or limitation.
No warranties are given. The license may not give you all of the permissions necessary
for your intended use. For example, other rights such as publicity, privacy, or moral
rights may limit how you use the material.
For more details:
http://creativecommons.org/licenses/by-sa/3.0/

View file

@ -1,7 +1,7 @@
Pride Flags Mod v2.0.1
Pride Flags Mod v2.2.0
By Leslie E. Krause and Wuzzy
Pride Flags adds a variety of animated flags to celebrate Pride in Minetest.
Pride Flags adds a variety of animated flags to celebrate Pride in Luanti.
This adds two blocks:
@ -29,8 +29,10 @@ List of flags
--------------------
These flags are available:
* Orientations (sexual, romantic or other)
* Broader community:
* Gay/LGBTQ+ (rainbow flag)
* Progress Pride
* Orientations (sexual, romantic or other)
* Lesbian
* Vincian
* Sexual orientations
@ -83,7 +85,7 @@ Browse source code...
Compatability
----------------------
Minetest 5.4.0 or later required.
Luanti/Minetest version 5.4.0 or later required.
(older versions might work, too, but the flag waving sound is buggy)
@ -93,92 +95,17 @@ Installation
1) Unzip the archive into the mods directory of your game.
2) Rename the pride_flags-master directory to "pride_flags".
Source Code License
License/Credits
----------------------------------------------------------
GNU Lesser General Public License v3 (LGPL-3.0)
This mod is free software.
The source code is licensed under the LGPLv3.
The media is licensed under CC BY-SA 3.0.
Copyright (c) 2022, Leslie E. Krause <leslie@searstower.org> and Wuzzy <Wuzzy@disroot.org>
See LICENSE.txt for details and credits.
This program is free software; you can redistribute it and/or modify it under the terms of
the GNU Lesser General Public License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
Translation credits:
This program 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 Lesser General Public License for more details.
http://www.gnu.org/licenses/lgpl-3.0.html
Multimedia License (textures, sounds, and models)
----------------------------------------------------------
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
/models/pride_flags_mast_lower.obj
by sorcerykid
/models/pride_flags_mast_upper.obj
by sorcerykid
/models/pride_flags_wavingflag.b3d
by sorcerykid
/textures/pride_flags_baremetal.png
by sorcerykid
/sounds/pride_flags_flagwave1.ogg
by Chelly01
obtained from https://freesound.org/people/Chelly01/sounds/541088/
modified by sorcerykid
/sounds/pride_flags_flagwave2.ogg
by Chelly01
obtained from https://freesound.org/people/Chelly01/sounds/541088/
modified by sorcerykid
/sounds/pride_flags_flagwave3.ogg
by Chelly01
obtained from https://freesound.org/people/Chelly01/sounds/541088/
modified by sorcerykid
Pride flags:
All pride flags have a name like "/textures/prideflag_<NAME>.png",
where <NAME> is the pride flag name. For example, the rainbow flag
is "/textures/prideflag_rainbow.png". These are the current pride flags:
asexual, bisexual, rainbow, gendercreative, genderfluid, genderqueer,
lesbian, nonbinary, pansexual, polysexual, transgender:
by sorcerykid
aromantic, grayromantic, demiromantic, graysexual, demisexual, omnisexual,
homoromantic, biromantic, panromantic, polyromantic, omniromantic,
vincian, agender, demigender, androgyne, multigender,
intersex, polyamorous, queer, maverique, neutrois, multigender, polygender:
by Wuzzy
You are free to:
Share — copy and redistribute the material in any medium or format.
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
The licensor cannot revoke these freedoms as long as you follow the license terms.
Under the following terms:
Attribution — You must give appropriate credit, provide a link to the license, and
indicate if changes were made. You may do so in any reasonable manner, but not in any way
that suggests the licensor endorses you or your use.
No additional restrictions — You may not apply legal terms or technological measures that
legally restrict others from doing anything the license permits.
Notices:
You do not have to comply with the license for elements of the material in the public
domain or where your use is permitted by an applicable exception or limitation.
No warranties are given. The license may not give you all of the permissions necessary
for your intended use. For example, other rights such as publicity, privacy, or moral
rights may limit how you use the material.
For more details:
http://creativecommons.org/licenses/by-sa/3.0/
* German: Wuzzy
* French: Z-Master
* Spanish: megustanlosfrijoles

View file

@ -1,5 +1,5 @@
--------------------------------------------------------
-- Minetest :: Pride Flags Mod (pride_flags)
-- Luanti :: Pride Flags Mod (pride_flags)
--
-- See README.txt for licensing and other information.
-- Copyright (c) 2022, Leslie E. Krause and Wuzzy
@ -10,7 +10,7 @@ pride_flags = {}
local wind_noise = PerlinNoise( 204, 1, 0, 500 )
-- Check whether the new `get_2d` Perlin function is available,
-- otherwise use `get2d`. Needed to suppress deprecation
-- warning in newer Minetest versions.
-- warning in newer Luanti versions.
local old_get2d = true
if wind_noise.get_2d then
old_get2d = false
@ -25,7 +25,8 @@ local rad_90 = pi / 2
local DEFAULT_FLAG = "rainbow"
-- Flag list for the old number-based storing of flags, used up to
-- 8fd4f9661e123bc84c0499c4809537e8aeb24c3b. Do not change this list!
-- 8fd4f9661e123bc84c0499c4809537e8aeb24c3b.
-- DO NOT CHANGE THIS LIST!
local legacy_flag_list = {
"rainbow", "lesbian", "bisexual", "transgender", "genderqueer", "nonbinary", "pansexual", "asexual",
"vincian", "polysexual", "omnisexual", "graysexual", "demisexual", "homoromantic", "biromantic",
@ -34,8 +35,9 @@ local legacy_flag_list = {
"genderfluid", "intersex", "polyamorous", "queer", "demigirl", "demiboy", "bigender", "trigender",
}
local flag_list = {
-- rainbow flag / LGBT+ Pride flag / Gay Pride flag
"rainbow",
-- broader community
"rainbow", -- rainbow flag / LGBTQ+ Pride flag / Gay Pride flag
"progress", -- Progress Pride
-- orientations (general)
"lesbian", "vincian",
-- sexual orientations
@ -111,6 +113,18 @@ else
S = function(s) return s end
end
-- Delete entity if there is no flag mast node
local delete_if_orphan = function( self )
local pos = self.object:get_pos( )
local node = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})
if node.name ~= "pride_flags:upper_mast" and node.name ~= "ignore" then
minetest.log("action", "[pride_flags] Orphan flag entity removed at "..minetest.pos_to_string(pos, 1))
self.object:remove( )
return true
end
return false
end
minetest.register_entity( "pride_flags:wavingflag", {
initial_properties = {
physical = false,
@ -125,6 +139,10 @@ minetest.register_entity( "pride_flags:wavingflag", {
},
on_activate = function ( self, staticdata, dtime )
if delete_if_orphan( self) then
return
end
-- Init stuff
self:reset_animation( true )
self.object:set_armor_groups( { immortal = 1 } )
@ -178,6 +196,9 @@ minetest.register_entity( "pride_flags:wavingflag", {
self.anim_timer = self.anim_timer - dtime
if self.anim_timer <= 0 then
if delete_if_orphan( self) then
return
end
self:reset_animation( )
end
end,
@ -343,7 +364,7 @@ local function cycle_flag( pos, player, cycle_backwards )
local pname = player:get_player_name( )
if minetest.is_protected( pos, pname ) and not
minetest.check_player_privs( pname, "protection_bypass") then
minetest.register_protection_violation( pos, pname )
minetest.record_protection_violation( pos, pname )
return
end
@ -401,7 +422,7 @@ minetest.register_node( "pride_flags:upper_mast", {
node_placement_prediction = "",
on_place = function( itemstack, placer, pointed_thing )
if not pointed_thing.type == "node" then
if pointed_thing.type ~= "node" then
return itemstack
end
@ -464,7 +485,9 @@ minetest.register_node( "pride_flags:upper_mast", {
end
local def = minetest.registered_nodes["pride_flags:upper_mast"]
if def and def.sounds then
minetest.sound_play(def.sounds.place, {pos = pos}, true)
end
return itemstack
end,

View file

@ -1,3 +1,5 @@
# textdomain:pride_flags
Pride Flags=Pride-Flaggen
Adds a variety of animated flags to celebrate Pride.=Fügt eine Reihe an animierten Flaggen hinzu, um Pride (LGBTQ+) zu feiern.
Flag Pole=Flaggenmast
Flag Pole with Flag=Flaggenmast mit Flagge

5
locale/pride_flags.es.tr Normal file
View file

@ -0,0 +1,5 @@
# textdomain:pride_flags
Pride Flags=Banderas del orgullo
Adds a variety of animated flags to celebrate Pride.=Añade una variedad de banderas animadas para celebrar el orgullo
Flag Pole=Asta
Flag Pole with Flag=Asta con bandera

5
locale/pride_flags.fr.tr Normal file
View file

@ -0,0 +1,5 @@
# textdomain: pride_flags
Pride Flags=
Adds a variety of animated flags to celebrate Pride.=
Flag Pole=Mât
Flag Pole with Flag=Mât avec drapeau

View file

@ -1,3 +1,5 @@
# textdomain:pride_flags
Pride Flags=
Adds a variety of animated flags to celebrate Pride.=
Flag Pole=
Flag Pole with Flag=

View file

@ -1,6 +1,5 @@
name = pride_flags
title = Pride Flags
author = sorcerykid
license = LGPL-3.0
author = sorcerykid, Wuzzy
optional_depends = default, screwdriver
description = Adds a variety of animated flags to celebrate Pride.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 787 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB