aboutsummaryrefslogtreecommitdiff
path: root/po
Commit message (Expand)AuthorAge
...
* Translated using Weblate (Dutch)Auke Kok2016-05-10
* Translated using Weblate (Dutch)Tobyplowy2016-05-10
* Run updatepo.shest312016-05-05
* Translated using Weblate (Japanese)Rui2016-05-01
* Translated using Weblate (Italian)Emon Omen2016-05-01
* Translated using Weblate (Chinese (China))Claybiokiller2016-05-01
* Translated using Weblate (Catalan)Joan Ciprià Moreno Teodoro2016-05-01
* Translated using Weblate (Danish)Thomas Wagner Nielsen2016-05-01
* Translated using Weblate (Indonesian)Muhammad Rifqi Priyo Susanto2016-05-01
* Translated using Weblate (Estonian)Jan Harald2016-05-01
* Translated using Weblate (Portuguese)Fernando Reis2016-05-01
* Translated using Weblate (German)Wuzzy2016-05-01
* Translated using Weblate (Chinese (China))YFdyh0002016-05-01
* Translated using Weblate (Russian)Stas Kies2016-05-01
* Translated using Weblate (Russian)Pavel Sokolov2016-05-01
* Translated using Weblate (Russian)Anton Tsyganenko2016-05-01
* Translated using Weblate (Russian)Alex “XShell” Schekoldin2016-05-01
* Translated using Weblate (Russian)Stas Kies2016-05-01
* Translated using Weblate (Spanish)Ever Medina2016-05-01
* Translated using Weblate (Portuguese (Brazil))Ian Giestas Pauli2016-05-01
* Translated using Weblate (French)Jean-Patrick G2016-04-30
* Revert "Translated using Weblate (German)"est312016-03-27
* Translated using Weblate (Portuguese)Fernando Reis2016-03-25
* Translated using Weblate (Polish)red-0012016-03-25
* Translated using Weblate (French)Jean-Patrick G2016-03-25
* Translated using Weblate (Portuguese (Brazil))Ian giestas pauli2016-03-25
* Translated using Weblate (French)Jean-Baptiste2016-03-25
* Translated using Weblate (Chinese (China))akiyama akira2016-03-25
* Translated using Weblate (French)Thibault Noel2016-03-25
* Translated using Weblate (Catalan)Joan Ciprià Moreno Teodoro2016-03-25
* Translated using Weblate (Japanese)Rui2016-03-25
* Translated using Weblate (Spanish)Lucas Montenegro2016-03-25
* Translated using Weblate (Romanian)Lordmusic Player2016-03-25
* Translated using Weblate (Italian)Elia Zammuto2016-03-25
* Translated using Weblate (Indonesian)Muhammad Rifqi Priyo Susanto2016-03-25
* Translated using Weblate (Chinese (Taiwan))Jeff Huang2016-03-25
* Translated using Weblate (Hungarian)Kisbenedek Márton2016-03-25
* Translated using Weblate (Czech)Jakub Vaněk2016-03-25
* Translated using Weblate (Spanish)ShadowNinja2016-03-25
* Translated using Weblate (German)Wuzzy2016-03-25
* Update po files, minetest.conf.example and settings_translation_file.cppest312016-02-27
* Translated using Weblate (Russian)Dmitry Smirnov2016-02-27
* Translated using Weblate (Russian)Vasily Pavlov2016-02-27
* Translated using Weblate (Spanish)Miguel Isaac2016-02-27
* Translated using Weblate (Catalan)Joan Ciprià Moreno2016-02-27
* Translated using Weblate (Spanish)Laura Arjona Reina2016-02-27
* Translated using Weblate (Portuguese (Brazil))Bruno Borges2016-02-27
* Translated using Weblate (Polish)Amadeo2016-02-27
* Translated using Weblate (Ukrainian)Fixer2016-02-27
* Translated using Weblate (Spanish)Diego Martínez2016-02-27
span class="hl kwa">end end elseif hud_ids[name].id_breathbar ~= nil then player:hud_remove(hud_ids[name].id_breathbar) hud_ids[name].id_breathbar = nil end end local function cleanup_builtin_statbars(player) if not player:is_player() then return end local name = player:get_player_name() if name == "" then return end hud_ids[name] = nil end local function player_event_handler(player,eventname) assert(player:is_player()) local name = player:get_player_name() if name == "" then return end if eventname == "health_changed" then initialize_builtin_statbars(player) if hud_ids[name].id_healthbar ~= nil then player:hud_change(hud_ids[name].id_healthbar,"number",player:get_hp()) return true end end if eventname == "breath_changed" then initialize_builtin_statbars(player) if hud_ids[name].id_breathbar ~= nil then player:hud_change(hud_ids[name].id_breathbar,"number",player:get_breath()*2) return true end end if eventname == "hud_changed" then initialize_builtin_statbars(player) return true end return false end function core.hud_replace_builtin(name, definition) if definition == nil or type(definition) ~= "table" or definition.hud_elem_type ~= "statbar" then return false end if name == "health" then health_bar_definition = definition for name,ids in pairs(hud_ids) do local player = core.get_player_by_name(name) if player and hud_ids[name].id_healthbar then player:hud_remove(hud_ids[name].id_healthbar) initialize_builtin_statbars(player) end end return true end if name == "breath" then breath_bar_definition = definition for name,ids in pairs(hud_ids) do local player = core.get_player_by_name(name) if player and hud_ids[name].id_breathbar then player:hud_remove(hud_ids[name].id_breathbar) initialize_builtin_statbars(player) end end return true end return false end core.register_on_joinplayer(initialize_builtin_statbars) core.register_on_leaveplayer(cleanup_builtin_statbars) core.register_playerevent(player_event_handler)