mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Added offset support for HUD items
This commit is contained in:
committed by
Perttu Ahola
parent
7c37b1891a
commit
9894167bbf
@@ -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:
|
||||
|
Reference in New Issue
Block a user