mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
modified health bar a bit
This commit is contained in:
BIN
data/heart.png
BIN
data/heart.png
Binary file not shown.
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 308 B |
@@ -362,7 +362,7 @@ void draw_hotbar(video::IVideoDriver *driver, gui::IGUIFont *font,
|
|||||||
core::rect<s32>(core::position2d<s32>(0,0),
|
core::rect<s32>(core::position2d<s32>(0,0),
|
||||||
core::dimension2di(heart_texture->getOriginalSize())),
|
core::dimension2di(heart_texture->getOriginalSize())),
|
||||||
NULL, colors, true);
|
NULL, colors, true);
|
||||||
p += v2s32(20,0);
|
p += v2s32(16,0);
|
||||||
}
|
}
|
||||||
if(halfheartcount % 2 == 1)
|
if(halfheartcount % 2 == 1)
|
||||||
{
|
{
|
||||||
@@ -375,7 +375,7 @@ void draw_hotbar(video::IVideoDriver *driver, gui::IGUIFont *font,
|
|||||||
driver->draw2DImage(heart_texture, rect,
|
driver->draw2DImage(heart_texture, rect,
|
||||||
core::rect<s32>(core::position2d<s32>(0,0), srcd),
|
core::rect<s32>(core::position2d<s32>(0,0), srcd),
|
||||||
NULL, colors, true);
|
NULL, colors, true);
|
||||||
p += v2s32(20,0);
|
p += v2s32(16,0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user