diff options
author | rubenwardy <rw@rubenwardy.com> | 2021-02-17 19:51:28 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-17 19:51:28 +0000 |
commit | f85e9ab9254e2ae4ac13170f9edea00fb8d931a2 (patch) | |
tree | 43fa19520c7f744f798de0ed8bcbb8e01c82e327 /src/object_properties.h | |
parent | a8f6befd398cb8f962f3bb1fab092d6355bfe015 (diff) | |
download | minetest-f85e9ab9254e2ae4ac13170f9edea00fb8d931a2.tar.gz minetest-f85e9ab9254e2ae4ac13170f9edea00fb8d931a2.tar.bz2 minetest-f85e9ab9254e2ae4ac13170f9edea00fb8d931a2.zip |
Add nametag background setting and object property (#10937)
Diffstat (limited to 'src/object_properties.h')
-rw-r--r-- | src/object_properties.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/object_properties.h b/src/object_properties.h index adb483527..db28eebfd 100644 --- a/src/object_properties.h +++ b/src/object_properties.h @@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <iostream> #include <map> #include <vector> +#include "util/Optional.h" struct ObjectProperties { @@ -53,6 +54,7 @@ struct ObjectProperties s8 glow = 0; std::string nametag = ""; video::SColor nametag_color = video::SColor(255, 255, 255, 255); + Optional<video::SColor> nametag_bgcolor = nullopt; f32 automatic_face_movement_max_rotation_per_sec = -1.0f; std::string infotext; //! For dropped items, this contains item information. |