[listitems] Update to Git commit 92449fb:
https://github.com/AntumMT/mod-listitems/tree/92449fb
This commit is contained in:
parent
564f182dd4
commit
99414efd27
@ -30,7 +30,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||
* chat/
|
||||
* [away][] ([GPL][lic.gpl2.0]) -- version: [4c1e5a9 Git][ver.away] *2012-03-09* ([patched][patch.away])
|
||||
* [chatlog][] ([CC0][lic.cc0]) -- version: (no version info) *2013-06-09* ([patched][patch.chatlog])
|
||||
* [listitems][] ([MIT][lic.listitems]) -- version: [0.3 (48e0a64 Git)][ver.listitems] *2017-07-23*
|
||||
* [listitems][] ([MIT][lic.listitems]) -- version: [0.4 (92449fb Git)][ver.listitems] *2017-07-24*
|
||||
* crafting/
|
||||
* [craftguide][] ([GPL / WTFPL](mods/crafting/craftguide/LICENSE)) -- version: [86a96c3 Git][ver.craftguide] *2017-03-21* ([patched][patch.craftguide])
|
||||
* [currency][] ([WTFPL][lic.currency]) -- version: [3ee673d Git][ver.currency] *2017-05-18* ([patched][patch.currency])
|
||||
@ -469,7 +469,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
||||
[ver.invisibility]: https://github.com/tenplus1/invisibility/tree/bf4156b
|
||||
[ver.jukebox]: https://github.com/minetest-mods/jukebox/tree/e6a507f
|
||||
[ver.lightning]: https://github.com/minetest-mods/lightning/tree/39bd36c
|
||||
[ver.listitems]: https://github.com/AntumMT/mod-listitems/tree/48e0a64
|
||||
[ver.listitems]: https://github.com/AntumMT/mod-listitems/tree/92449fb
|
||||
[ver.mesecons]: https://github.com/minetest-mods/mesecons/tree/564bdc2
|
||||
[ver.minetest_game]: https://github.com/minetest/minetest_game/tree/f855bee
|
||||
[ver.mob-engine]: https://github.com/minetest-mods/mob-engine/tree/138f655
|
||||
|
@ -1670,6 +1670,14 @@ coloredwood_enable_stairsplus = true
|
||||
#chatlog.monthfirst = true
|
||||
|
||||
|
||||
# *** listitems ***
|
||||
|
||||
## Displays items in a bulleted list.
|
||||
# type: bool
|
||||
# default: true
|
||||
#listitems.bullet_list = true
|
||||
|
||||
|
||||
|
||||
###############
|
||||
## EQUIPMENT ##
|
||||
|
@ -78,6 +78,17 @@ end
|
||||
|
||||
minetest.log('action', '[listitems] Registering chat command "' .. list_command .. '"')
|
||||
|
||||
local bullet_list = core.settings:get_bool('listitems.bullet_list')
|
||||
if bullet_list == nil then
|
||||
-- Default is true
|
||||
bullet_list = true
|
||||
end
|
||||
|
||||
local bullet = ''
|
||||
if bullet_list then
|
||||
bullet = S('•') .. ' '
|
||||
end
|
||||
|
||||
minetest.register_chatcommand(list_command, {
|
||||
params = '[' .. S('string1') .. '] [' .. S('string2') .. '] ...',
|
||||
description = S('List registered items'),
|
||||
@ -102,7 +113,7 @@ minetest.register_chatcommand(list_command, {
|
||||
|
||||
if found_names ~= nil then
|
||||
for I in pairs(found_names) do
|
||||
minetest.chat_send_player(player, S('•') .. ' ' .. found_names[I])
|
||||
minetest.chat_send_player(player, bullet .. found_names[I])
|
||||
end
|
||||
end
|
||||
-- Show player number of items listed
|
||||
|
@ -2,4 +2,4 @@ name = listitems
|
||||
author = AntumDeluge
|
||||
description = Chat command that lists registered items.
|
||||
license = MIT
|
||||
version = 0.3
|
||||
version = 0.4
|
||||
|
3
mods/chat/listitems/settingtypes.txt
Normal file
3
mods/chat/listitems/settingtypes.txt
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
# Displays items in a bulleted list.
|
||||
listitems.bullet_list (Bulleted list) bool true
|
@ -237,6 +237,12 @@ hudbars_vmargin (Vertical distance between HUD bars) int 24 0
|
||||
hudbars_tick (Default HUD bars update interval) float 0.1 0.0 4.0
|
||||
|
||||
|
||||
[*listitems]
|
||||
|
||||
# Displays items in a bulleted list.
|
||||
listitems.bullet_list (Bulleted list) bool true
|
||||
|
||||
|
||||
[*pipeworks]
|
||||
|
||||
#Enable pipes.
|
||||
|
Loading…
x
Reference in New Issue
Block a user