Compare commits

...

5 Commits

Author SHA1 Message Date
aa6 c94252c7e2 Fix: Better description. 2022-03-27 09:17:21 +03:00
aa6 de960d8c5e Fix: indentation broken 2022-03-27 09:14:28 +03:00
aa6 a3ffb5d2da Fix: Compatibility fix 2022-03-27 08:52:56 +03:00
aa6 53f1aa66de Fix: Better description. 2022-02-22 23:16:06 +03:00
aa6 c124238eba Fix: Comment on minetest.settings:get() behavior. 2022-02-22 22:17:04 +03:00
6 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# Wadsprint [![Version](/util/version.png)] [minetest_wadsprint]
Minetest mod for sprinting with W, A and D buttons.
Minetest mod for sprinting/running with W, A and D buttons. A+D => A+D+W => W.
![Wadsprint](/screenshots/wadsprint_screenshots.png?raw=true "Wadsprint mod screenshots")

View File

@ -1 +1 @@
0.11.9
0.11.14

View File

@ -1 +1 @@
Sprinting with W, A and D buttons.
Sprinting/running with W, A and D buttons. A+D => A+D+W => W.

View File

@ -3,6 +3,8 @@ dofile(minetest.get_modpath(minetest.get_current_modname()).."/config.lua")
-- Processing in-game settings. In-game settings are preferrable
-- over global config.lua values.
-- Warning: minetest.settings:get() and minetest.settings:get_bool()
-- return `nil` value when not set, instead of actual default value.
function minetest_wadsprint.load_minetest_settings_key(key,type)
if type == "int" then
if minetest.settings:get("minetest_wadsprint."..key) ~= nil then

View File

@ -33,7 +33,7 @@ elseif minetest.get_modpath("hudbars") ~= nil then
player.obj, -- `player`: `ObjectRef` of the player to which the new HUD bar should be displayed to.
minetest_wadsprint.HUDBARS_IDENTIFIER, -- `identifier`: The identifier of the HUD bar type, as specified in `hb.register_hudbar`.
math.ceil(player.stamina), -- `start_value`: The initial current value of the HUD bar. This is optional, `default_start_value` of the registration function will be used, if this is `nil`.
nil, -- `start_max`: The initial maximum value of the HUD bar. This is optional, `default_start_max` of the registration function will be used, if this is `nil`
minetest_wadsprint.STAMINA_MAX_VALUE, -- `start_max`: The initial maximum value of the HUD bar. This is optional, `default_start_max` of the registration function will be used, if this is `nil`
nil -- `start_hidden`: Whether the HUD bar is initially hidden. This is optional, `default_start_hidden` of the registration function will be used as default.
)
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB