]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/object_properties.h
Fix revoke debug privs not reliably turn off stuff (#11409)
[dragonfireclient.git] / src / object_properties.h
index f010c1dafabc03d527d091423042905600015530..db28eebfda1fded27139ac9b9faf204321634baf 100644 (file)
@@ -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.
@@ -62,6 +64,7 @@ struct ObjectProperties
        float zoom_fov = 0.0f;
        bool use_texture_alpha = false;
        bool shaded = true;
+       bool show_on_minimap = false;
 
        ObjectProperties();
        std::string dump();