aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_item.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2013-11-09 22:49:27 +0100
committerKahrl <kahrl@gmx.net>2013-12-13 18:05:46 +0100
commit0d990bd189881a9a6c829e1c9ec17b2dc5ac12c8 (patch)
tree90474ffb3ca64934aaefaaba92d85f6ff56b9574 /src/script/cpp_api/s_item.h
parentb03135548bbd9bcb73d14b067b96ec913404dd5f (diff)
downloadminetest-0d990bd189881a9a6c829e1c9ec17b2dc5ac12c8.tar.gz
minetest-0d990bd189881a9a6c829e1c9ec17b2dc5ac12c8.tar.bz2
minetest-0d990bd189881a9a6c829e1c9ec17b2dc5ac12c8.zip
Replace any direct curl usage by httpfetch
Diffstat (limited to 'src/script/cpp_api/s_item.h')
0 files changed, 0 insertions, 0 deletions
item_name, gui::IGUIFont *font, Client *client) : gui::IGUIElement(gui::EGUIET_ELEMENT, env, parent, id, rectangle), m_item_name(item_name), m_font(font), m_client(client), m_label(core::stringw()) { } void GUIItemImage::draw() { if (!IsVisible) return; if (!m_client) { IGUIElement::draw(); return; } IItemDefManager *idef = m_client->idef(); ItemStack item; item.deSerialize(m_item_name, idef); // Viewport rectangle on screen core::rect<s32> rect = core::rect<s32>(AbsoluteRect); drawItemStack(Environment->getVideoDriver(), m_font, item, rect, &AbsoluteClippingRect, m_client, IT_ROT_NONE); video::SColor color(255, 255, 255, 255); m_font->draw(m_label, rect, color, true, true, &AbsoluteClippingRect); IGUIElement::draw(); }