diff options
author | ShadowNinja <noreply@gmail.com> | 2013-03-05 17:23:03 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-03-13 21:18:40 -0400 |
commit | 350596b94f3d886812cb453e05540a16c3db5e5b (patch) | |
tree | e1a8e8302b81476b6909c27f67add82c9252454e /src/clouds.cpp | |
parent | 66750dc88e3b1001e2141dd965345ae51095e0bb (diff) | |
download | minetest-350596b94f3d886812cb453e05540a16c3db5e5b.tar.gz minetest-350596b94f3d886812cb453e05540a16c3db5e5b.tar.bz2 minetest-350596b94f3d886812cb453e05540a16c3db5e5b.zip |
Add cloud menu background by Krisi, configurable with the menu_clouds option.
Also add a menuheader, menusplash, menufooter_clouds, and allow HD menu footers.
And finally don't git-ignore textures/base/.
Diffstat (limited to 'src/clouds.cpp')
-rw-r--r-- | src/clouds.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/clouds.cpp b/src/clouds.cpp index 9f0bc06d8..55ec8965a 100644 --- a/src/clouds.cpp +++ b/src/clouds.cpp @@ -29,7 +29,8 @@ Clouds::Clouds( scene::ISceneNode* parent, scene::ISceneManager* mgr, s32 id, - u32 seed + u32 seed, + s16 cloudheight ): scene::ISceneNode(parent, mgr, id), m_seed(seed), @@ -45,7 +46,8 @@ Clouds::Clouds( //m_material.MaterialType = video::EMT_TRANSPARENT_VERTEX_ALPHA; m_material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL; - m_cloud_y = BS * g_settings->getS16("cloud_height"); + m_cloud_y = BS * (cloudheight ? cloudheight : + g_settings->getS16("cloud_height")); m_box = core::aabbox3d<f32>(-BS*1000000,m_cloud_y-BS,-BS*1000000, BS*1000000,m_cloud_y+BS,BS*1000000); |