Skip to content

Commit 5b3fbd5

Browse files
committed
fix publishers
1 parent 5196540 commit 5b3fbd5

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

changelog.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33

44
#### Changes
55
- **Updated** Geode compatibility to version `4.6.3`
6+
- **Added** level thumbnail background to Team Project information pop-up
67
- **Added** promotional container for parent Team Project, if any, in information pop-up for independent levels
78
- **Reworked** level showcase menu in Team Project information pop-up
8-
- **Fixed** thumbnail loading error for Team levels in Team Project information pop-up
9-
- Team Projects may now show a customized thumbnail on the Team Project information pop-up
109

1110
#### Developers
1211
- **Updated** URLs to use Cubic Studios API endpoints for all web requests

src/headers/ProjectInfoPopup.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class ProjectInfoPopup : public geode::Popup<> {
2929

3030
CCClippingNode* m_clippingNode;
3131

32-
void doInfo(Project proj);
33-
void doShowcase(Project proj);
32+
void doInfo(Project proj, std::string publisher);
33+
void doShowcase(Project proj, std::string publisher);
3434

3535
void infoPopup(CCObject*);
3636
void settingsPopup(CCObject*);

src/headers/src/ProjectInfoPopup.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ inline std::string url_encode(const std::string& value) {
3838
return escaped.str();
3939
}
4040

41-
void ProjectInfoPopup::doInfo(Project proj) {
41+
void ProjectInfoPopup::doInfo(Project proj, std::string publisher) {
4242
std::ostringstream typeOfProj;
4343

4444
switch (proj.type) {
@@ -64,7 +64,7 @@ void ProjectInfoPopup::doInfo(Project proj) {
6464
};
6565

6666
std::ostringstream body;
67-
body << "<cy>" << m_avalPublisher << "</c> - '<cg>" << proj.name << "</c>' is " << typeOfProj.str() << ". You can watch its showcase here.";
67+
body << "<cy>" << publisher << "</c> - '<cg>" << proj.name << "</c>' is " << typeOfProj.str() << ". You can watch its showcase here.";
6868

6969
std::string resultBody = body.str();
7070

@@ -82,9 +82,9 @@ void ProjectInfoPopup::doInfo(Project proj) {
8282
true);
8383
};
8484

85-
void ProjectInfoPopup::doShowcase(Project proj) {
85+
void ProjectInfoPopup::doShowcase(Project proj, std::string publisher) {
8686
std::ostringstream body;
87-
body << "Watch the full showcase video for <cy>" << m_linkedPublisher << "</c> - '<cg>" << proj.name << "</c>'?";
87+
body << "Watch the full showcase video for <cy>" << publisher << "</c> - '<cg>" << proj.name << "</c>'?";
8888

8989
std::string resultBody = body.str();
9090

@@ -114,19 +114,19 @@ ProjectInfoPopup* ProjectInfoPopup::create() {
114114
};
115115

116116
void ProjectInfoPopup::infoPopup(CCObject*) {
117-
doInfo(m_avalProject);
117+
ProjectInfoPopup::doInfo(m_avalProject, m_avalPublisher);
118118
};
119119

120120
void ProjectInfoPopup::onPlayShowcase(CCObject*) {
121-
doShowcase(m_avalProject);
121+
ProjectInfoPopup::doShowcase(m_avalProject, m_avalPublisher);
122122
};
123123

124124
void ProjectInfoPopup::infoPopupLinked(CCObject*) {
125-
doInfo(m_linkedProject);
125+
ProjectInfoPopup::doInfo(m_linkedProject, m_linkedPublisher);
126126
};
127127

128128
void ProjectInfoPopup::onPlayShowcaseLinked(CCObject*) {
129-
doShowcase(m_linkedProject);
129+
ProjectInfoPopup::doShowcase(m_linkedProject, m_linkedPublisher);
130130
};
131131

132132
void ProjectInfoPopup::onFameInfo(CCObject*) {

0 commit comments

Comments
 (0)