Skip to content

Commit

Permalink
Adding longDescription
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost0159 committed Nov 5, 2024
1 parent eaac7f3 commit e1f622f
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion assets/gfx/sprites.t3s
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ sprites/wifi/wifi_3.png
sprites/cancel.png
sprites/checked.png
sprites/delete.png
sprites/description.png
sprites/download.png
sprites/info.png
sprites/installed.png
Expand All @@ -28,7 +29,6 @@ sprites/langs/zh-CN.png
sprites/langs/zh-TW.png
sprites/list.png
sprites/noIcon.png
sprites/notes.png
sprites/qr_code.png
sprites/queue0.png
sprites/queue1.png
Expand Down
Binary file added assets/gfx/sprites/description.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion include/screens/mainScreen.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
4: Sorting.
5: Settings / Credits(?).
6: Screenshot Menu.
7: Release Notes.
7: Long Description.
*/

class MainScreen : public Screen {
Expand Down
2 changes: 1 addition & 1 deletion include/store/store.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Store {
std::string GetFileTypes(int index, const std::string &entry) const;
std::vector<std::string> GetScreenshotList(int index) const;
std::vector<std::string> GetScreenshotNames(int index) const;
std::string GetReleaseNotes(int index) const;
std::string GetLongDescription(int index) const;

std::vector<std::string> GetDownloadList(int index) const;

Expand Down
4 changes: 2 additions & 2 deletions include/store/storeEntry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class StoreEntry {
std::vector<std::string> GetTypes() const { return this->Types; };
std::vector<std::string> GetScreenshots() const { return this->Screenshots; };
std::vector<std::string> GetScreenshotNames() const { return this->ScreenshotNames; };
std::string GetReleaseNotes() const { return this->ReleaseNotes; };
std::string GetLongDescription() const { return this->LongDescription; };

bool GetUpdateAvl() const { return this->UpdateAvailable; };
void SetUpdateAvl(bool v) { this->UpdateAvailable = v; };
Expand All @@ -62,7 +62,7 @@ class StoreEntry {
};

private:
std::string Title, Author, Description, Category, Version, Console, LastUpdated, MarkString, Additional, ReleaseNotes;
std::string Title, Author, Description, Category, Version, Console, LastUpdated, MarkString, Additional, LongDescription ;
C2D_Image Icon;
int SheetIndex, EntryIndex, Marks;
std::vector<std::string> FullCategory, FullConsole, Sizes, Types, Screenshots, ScreenshotNames;
Expand Down
8 changes: 4 additions & 4 deletions include/store/storeUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ namespace StoreUtils {
void DrawSorting(bool asc, SortType st);
void SortHandle(bool &asc, SortType &st);

/* Release Notes. */
/* Long Description. */
size_t FindSplitPoint(const std::string &str, const std::vector<std::string> splitters);
void ProcessReleaseNotes(std::string ReleaseNotes);
void ProcessLongDescription(std::string LongDescription);

void DrawReleaseNotes(const int &scrollIndex, const std::unique_ptr<StoreEntry> &entry);
void ReleaseNotesLogic(int &scrollIndex, int &storeMode);
void DrawLongDescription(const int &scrollIndex, const std::unique_ptr<StoreEntry> &entry);
void LongDescriptionLogic(int &scrollIndex, int &storeMode);

bool compareTitleDescending(const std::unique_ptr<StoreEntry> &a, const std::unique_ptr<StoreEntry> &b);
bool compareTitleAscending(const std::unique_ptr<StoreEntry> &a, const std::unique_ptr<StoreEntry> &b);
Expand Down
Binary file modified romfs/gfx/sprites.t3x
Binary file not shown.

0 comments on commit e1f622f

Please sign in to comment.