aboutsummaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.cpp
diff options
context:
space:
mode:
authorPilzAdam <adam-k@outlook.com>2012-11-05 08:12:12 -0800
committerPilzAdam <adam-k@outlook.com>2012-11-05 08:12:12 -0800
commit8c3ffa3907dae0c16bfe63965ed6380c7e89df84 (patch)
tree6a362da87ea4338f5024634cb7c85dbb0818dc48 /src/guiFormSpecMenu.cpp
parent23837e43525e332ea140b58e0f5d1e2b89f1149f (diff)
parent8540871ebcfca6584051e1fc042951baa0ed3275 (diff)
downloadminetest-8c3ffa3907dae0c16bfe63965ed6380c7e89df84.tar.gz
minetest-8c3ffa3907dae0c16bfe63965ed6380c7e89df84.tar.bz2
minetest-8c3ffa3907dae0c16bfe63965ed6380c7e89df84.zip
Merge pull request #279 from RealBadAngel/patch-2
Formspec: Draw images before inventories. Allows to use image as backgro...
Diffstat (limited to 'src/guiFormSpecMenu.cpp')
-rw-r--r--src/guiFormSpecMenu.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index ed44e441b..affbd1a34 100644
--- a/src/guiFormSpecMenu.cpp
+++ b/src/guiFormSpecMenu.cpp
@@ -692,17 +692,8 @@ void GUIFormSpecMenu::drawMenu()
m_tooltip_element->setVisible(false);
/*
- Draw items
- Phase 0: Item slot rectangles
- Phase 1: Item images; prepare tooltip
+ Draw images
*/
-
- for(int phase=0; phase<=1; phase++)
- for(u32 i=0; i<m_inventorylists.size(); i++)
- {
- drawList(m_inventorylists[i], phase);
- }
-
for(u32 i=0; i<m_images.size(); i++)
{
const ImageDrawSpec &spec = m_images[i];
@@ -721,6 +712,17 @@ void GUIFormSpecMenu::drawMenu()
}
/*
+ Draw items
+ Phase 0: Item slot rectangles
+ Phase 1: Item images; prepare tooltip
+ */
+ for(int phase=0; phase<=1; phase++)
+ for(u32 i=0; i<m_inventorylists.size(); i++)
+ {
+ drawList(m_inventorylists[i], phase);
+ }
+
+ /*
Draw dragged item stack
*/
drawSelectedItem();