mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Added offset support for HUD items
This commit is contained in:
parent
7c37b1891a
commit
9894167bbf
9 changed files with 43 additions and 8 deletions
|
@ -3617,6 +3617,7 @@ void Server::SendHUDAdd(u16 peer_id, u32 id, HudElement *form)
|
|||
writeU32(os, form->item);
|
||||
writeU32(os, form->dir);
|
||||
writeV2F1000(os, form->align);
|
||||
writeV2F1000(os, form->offset);
|
||||
|
||||
// Make data buffer
|
||||
std::string s = os.str();
|
||||
|
@ -3652,6 +3653,7 @@ void Server::SendHUDChange(u16 peer_id, u32 id, HudElementStat stat, void *value
|
|||
case HUD_STAT_POS:
|
||||
case HUD_STAT_SCALE:
|
||||
case HUD_STAT_ALIGN:
|
||||
case HUD_STAT_OFFSET:
|
||||
writeV2F1000(os, *(v2f *)value);
|
||||
break;
|
||||
case HUD_STAT_NAME:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue