Skip to content

Commit

Permalink
Add new content images to resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Silarn committed Oct 17, 2023
1 parent 1b9ca69 commit ff52d0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/starfieldmoddatacontent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -26,7 +27,8 @@ class StarfieldModDataContent : public GamebryoModDataContent
{
static std::vector<Content> 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));
Expand All @@ -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);
}
}
}
Expand Down

0 comments on commit ff52d0b

Please sign in to comment.