mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Hud: Cache hud_scaling, fix minor style issues
This commit is contained in:
parent
eae33951ad
commit
2eeb62057a
3 changed files with 28 additions and 28 deletions
|
@ -148,13 +148,13 @@ private:
|
|||
void drawStatbar(v2s32 pos, u16 corner, u16 drawdir, std::string texture,
|
||||
s32 count, v2s32 offset, v2s32 size=v2s32());
|
||||
|
||||
void drawItems(v2s32 upperleftpos, s32 itemcount, s32 inv_offset,
|
||||
InventoryList *mainlist, u16 selectitem, u16 direction,
|
||||
const v2s32 &offset = v2s32(0, 0));
|
||||
void drawItems(v2s32 upperleftpos, v2s32 screen_offset, s32 itemcount,
|
||||
s32 inv_offset, InventoryList *mainlist, u16 selectitem, u16 direction);
|
||||
|
||||
void drawItem(const ItemStack &item, const core::rect<s32>& rect,
|
||||
bool selected);
|
||||
|
||||
float m_hud_scaling;
|
||||
v3s16 m_camera_offset;
|
||||
v2u32 m_screensize;
|
||||
v2s32 m_displaycenter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue