diff --git a/src/data/field.cpp b/src/data/field.cpp index 6ba08a26..272cbcf0 100644 --- a/src/data/field.cpp +++ b/src/data/field.cpp @@ -42,6 +42,7 @@ IMPLEMENT_REFLECTION(Field) { REFLECT(name); if (tag.reading()) name = cannocial_name_form(name); REFLECT(description); + REFLECT_N("icon", icon_filename); REFLECT(editable); REFLECT(save_value); REFLECT(show_statistics); diff --git a/src/data/field.hpp b/src/data/field.hpp index 46963c74..b5a95b57 100644 --- a/src/data/field.hpp +++ b/src/data/field.hpp @@ -38,6 +38,7 @@ class Field { size_t index; ///< Used by IndexMap String name; ///< Name of the field, for refering to it from scripts and files String description; ///< Description, used in status bar + String icon_filename; ///< Filename for an icon (for list of fields) bool editable; ///< Can values of this field be edited? bool save_value; ///< Should values of this field be written to files? Can be false for script generated fields. bool show_statistics; ///< Should this field appear as a group by choice in the statistics panel? diff --git a/src/data/game.cpp b/src/data/game.cpp index 9e075957..81a23eaa 100644 --- a/src/data/game.cpp +++ b/src/data/game.cpp @@ -8,10 +8,14 @@ #include #include +#include #include #include