diff options
author | paramat <mat.gregory@virginmedia.com> | 2017-04-28 03:06:49 +0100 |
---|---|---|
committer | Auke Kok <sofar+github@foo-projects.org> | 2017-05-02 20:42:35 -0700 |
commit | ad9fcf859ec2347325830e09504ae96968b51ea8 (patch) | |
tree | 1f13dd4bdfe3f2aef666fce622634f1d0ee70e3f /src/script/lua_api/l_object.h | |
parent | f9fdb48dc85e53253ef93972355d3c7bc9d0ffb0 (diff) | |
download | minetest-ad9fcf859ec2347325830e09504ae96968b51ea8.tar.gz minetest-ad9fcf859ec2347325830e09504ae96968b51ea8.tar.bz2 minetest-ad9fcf859ec2347325830e09504ae96968b51ea8.zip |
Set sky API: Add bool for clouds in front of custom skybox
Default true.
Add 'm_clouds_enabled' bool to sky.h, set from new bool in 'set sky' API.
Make 'getCloudsVisible()' depend on 'm_clouds_enabled' instead of
'm_visible' (whether normal sky is visible).
Diffstat (limited to 'src/script/lua_api/l_object.h')
-rw-r--r-- | src/script/lua_api/l_object.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/lua_api/l_object.h b/src/script/lua_api/l_object.h index 0912a1c49..9801ce02b 100644 --- a/src/script/lua_api/l_object.h +++ b/src/script/lua_api/l_object.h @@ -283,10 +283,10 @@ private: // hud_get_hotbar_selected_image(self) static int l_hud_get_hotbar_selected_image(lua_State *L); - // set_sky(self, type, list) + // set_sky(self, bgcolor, type, list, clouds = true) static int l_set_sky(lua_State *L); - // get_sky(self, type, list) + // get_sky(self) static int l_get_sky(lua_State *L); // set_clouds(self, {density=, color=, ambient=, height=, thickness=, speed=}) |