botão de gerador de balao randomico opicional
parent
6aef56a0c8
commit
d70c6abc0e
4
init.lua
4
init.lua
|
@ -44,6 +44,10 @@ if minetest.settings:get("telepro_autogen") == "false" then telepro.var.autogen
|
|||
telepro.var.limite_diario = true
|
||||
if minetest.settings:get("telepro_daily_limit") == "false" then telepro.var.limite_diario = false end
|
||||
|
||||
-- Desabilitar botão de geração de balão aleatorio
|
||||
telepro.var.disable_random_balloon_button = false
|
||||
if minetest.settings:get("telepro_disable_random_balloon_button") == "true" then telepro.var.disable_random_balloon_button = true end
|
||||
|
||||
-- Tempo de verificação do balao proprio
|
||||
telepro.var.tempo_verificar_balao = tonumber(minetest.setting_get("telepro_time_check_balloon") or 15)
|
||||
if telepro.var.tempo_verificar_balao < 5 then telepro.var.tempo_verificar_balao = 5 end
|
||||
|
|
|
@ -23,9 +23,13 @@ telepro.acessar = function(player)
|
|||
..default.gui_bg
|
||||
..default.gui_bg_img
|
||||
.."image[0,0;3.5,3.5;telepro_mapa.png]"
|
||||
.."button_exit[0,3.25;3,1;gerar_balao;"..S("Gerar Balao").."]"
|
||||
.."button_exit[0,4.25;3,1;por_balao_aqui;"..S("Por Balao Aqui").."]"
|
||||
|
||||
-- Botão de gerar balão aleatorio
|
||||
if telepro.var.disable_random_balloon_button == false then
|
||||
formspec = formspec.."button_exit[0,3.25;3,1;gerar_balao;"..S("Gerar Balao").."]"
|
||||
end
|
||||
|
||||
-- Exibir formspec
|
||||
minetest.show_formspec(player:get_player_name(), "telepro:jogador", formspec)
|
||||
end
|
||||
|
|
|
@ -12,6 +12,10 @@ telepro_autogen (Autogerar Balao proprio) bool true
|
|||
# Limit of 24 hours for a new generation
|
||||
telepro_daily_limit (Limite diario para gerar) bool true
|
||||
|
||||
# Desabilita o botão de gerar balão aleatorio no mapa
|
||||
# Disable the button generate random balloon on the map
|
||||
telepro_disable_random_balloon_button (Desabilitar botão de geração randomica) bool false
|
||||
|
||||
# Tempo entre cada vez que o balão do jogador é verificado
|
||||
# Time step which balloon is verified
|
||||
telepro_time_check_balloon (Tempo do iterador de checagem do balao) int 15 5
|
||||
|
|
Loading…
Reference in New Issue