diff options
author | Wuzzy <almikes@aol.com> | 2014-07-07 09:38:55 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2014-07-07 09:38:55 +0200 |
commit | bbc90ad630c1de6296ada58777a7b28e9836ac3b (patch) | |
tree | 29afd8f78df4918a8a898db0192b9d7cc9b2cd20 /examples.lua | |
parent | 49dafa6425b366c0915e6592bd48e6b08898b6f8 (diff) |
Add support for HUD icons; improve HUD alignment
Diffstat (limited to 'examples.lua')
-rw-r--r-- | examples.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples.lua b/examples.lua index df438ee..d7736a0 100644 --- a/examples.lua +++ b/examples.lua @@ -1,6 +1,6 @@ ----- EXAMPLE EFFECT TYPES ----- -playereffects.register_effect_type("high_speed", "high speed", {"speed"}, +playereffects.register_effect_type("high_speed", "High speed", nil, {"speed"}, function(player) player:set_physics_override(4,nil,nil) end, @@ -10,7 +10,7 @@ playereffects.register_effect_type("high_speed", "high speed", {"speed"}, player:set_physics_override(1,nil,nil) end ) -playereffects.register_effect_type("low_speed", "low speed", {"speed"}, +playereffects.register_effect_type("low_speed", "Low speed", nil, {"speed"}, function(player) player:set_physics_override(0.25,nil,nil) end, @@ -20,7 +20,7 @@ playereffects.register_effect_type("low_speed", "low speed", {"speed"}, player:set_physics_override(1,nil,nil) end ) -playereffects.register_effect_type("highjump", "greater jump height", {"jump"}, +playereffects.register_effect_type("highjump", "Greater jump height", "playereffects_example_highjump.png", {"jump"}, function(player) player:set_physics_override(nil,2,nil) end, @@ -29,7 +29,7 @@ playereffects.register_effect_type("highjump", "greater jump height", {"jump"}, player:set_physics_override(nil,1,nil) end ) -playereffects.register_effect_type("fly", "fly mode available", {"fly"}, +playereffects.register_effect_type("fly", "Fly mode available", "playereffects_example_fly.png", {"fly"}, function(player) local playername = player:get_player_name() local privs = minetest.get_player_privs(playername) |