From ff52d0b6ca0278a5501ceae5210caacdbb7f7c92 Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Tue, 17 Oct 2023 01:02:57 -0500 Subject: [PATCH] Add new content images to resources --- src/starfieldmoddatacontent.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/starfieldmoddatacontent.h b/src/starfieldmoddatacontent.h index 66cbf9c..574e7ba 100644 --- a/src/starfieldmoddatacontent.h +++ b/src/starfieldmoddatacontent.h @@ -10,7 +10,8 @@ class StarfieldModDataContent : public GamebryoModDataContent enum StarfieldContent { CONTENT_MATERIAL = CONTENT_NEXT_VALUE, - CONTENT_GEOMETRIES = CONTENT_NEXT_VALUE + 1 + CONTENT_GEOMETRIES = CONTENT_NEXT_VALUE + 1, + CONTENT_VIDEO = CONTENT_NEXT_VALUE + 2 }; public: @@ -26,7 +27,8 @@ class StarfieldModDataContent : public GamebryoModDataContent { static std::vector STARFIELD_CONTENTS{ {CONTENT_MATERIAL, QT_TR_NOOP("Materials"), ":/MO/gui/content/material"}, - {CONTENT_GEOMETRIES, QT_TR_NOOP("Geometries"), ":/MO/gui/content/mesh"}}; + {CONTENT_GEOMETRIES, QT_TR_NOOP("Geometries"), ":/MO/gui/content/geometries"}, + {CONTENT_VIDEO, QT_TR_NOOP("Video"), ":/MO/gui/content/media"}}; auto contents = GamebryoModDataContent::getAllContents(); std::copy(std::begin(STARFIELD_CONTENTS), std::end(STARFIELD_CONTENTS), std::back_inserter(contents)); @@ -43,6 +45,8 @@ class StarfieldModDataContent : public GamebryoModDataContent contents.push_back(CONTENT_MATERIAL); } else if (e->compare("geometries") == 0) { contents.push_back(CONTENT_GEOMETRIES); + } else if (e->compare("video") == 0) { + contents.push_back(CONTENT_VIDEO); } } }