mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Formspec: Draw images before inventories. Allows to use image as background.
This commit is contained in:
parent
23837e4352
commit
8540871ebc
@ -692,17 +692,8 @@ void GUIFormSpecMenu::drawMenu()
|
|||||||
m_tooltip_element->setVisible(false);
|
m_tooltip_element->setVisible(false);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Draw items
|
Draw images
|
||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
for(u32 i=0; i<m_images.size(); i++)
|
for(u32 i=0; i<m_images.size(); i++)
|
||||||
{
|
{
|
||||||
const ImageDrawSpec &spec = m_images[i];
|
const ImageDrawSpec &spec = m_images[i];
|
||||||
@ -720,6 +711,17 @@ void GUIFormSpecMenu::drawMenu()
|
|||||||
NULL/*&AbsoluteClippingRect*/, colors, true);
|
NULL/*&AbsoluteClippingRect*/, colors, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
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
|
Draw dragged item stack
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user