Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OmgRod committed Nov 19, 2024
1 parent c77e851 commit 21f45e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/GPFeedbackLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ bool GPFeedbackLayer::init() {

auto winSize = CCDirector::sharedDirector()->getWinSize();
auto menu = CCMenu::create();
menu->setID("menu");

auto corner1 = CCSprite::createWithSpriteFrameName("GJ_sideArt_001.png");
corner1->setPosition(CCPoint(winSize.width * -0.5, winSize.height * -0.5));
Expand All @@ -112,7 +111,7 @@ bool GPFeedbackLayer::init() {
gameBgSpr->setScale(2.f);
gameBgSpr->setZOrder(-1);
gameBgSpr->setPositionY(winSize.height / -2);
gameBgSpr->setID("background");
gameBgSpr->setID("gameBgSpr");
menu->addChild(gameBgSpr);

auto squareSpr = CCScale9Sprite::create("GJ_square01.png");
Expand Down Expand Up @@ -151,7 +150,7 @@ bool GPFeedbackLayer::init() {
descBg->setContentSize(CCPoint(winSize.width * 0.6, winSize.height * 0.5));
descBg->setID("descBg");
descBg->setZOrder(1);
descBg->setColor(ccColor3B(0, 0, 0));
descBg->setColor(ccc3(0, 0, 0)); // Corrected this line
descBg->setOpacity(60);
this->addChild(descBg);

Expand Down
3 changes: 2 additions & 1 deletion src/GPKofiLayer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "GPKofiLayer.hpp"
#include "GPFeedbackLayer.hpp" // Include this header

void GPKofiLayer::KeyBackClicked() {
CCDirector::get()->popScene();
Expand Down Expand Up @@ -68,7 +69,7 @@ bool GPKofiLayer::init() {
auto backBtn = CCMenuItemSpriteExtra::create(
CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"),
this,
menu_selector(GPFeedbackLayer::onClick)
menu_selector(GPFeedbackLayer::onClick) // Corrected this line
);
backBtn->setPosition(winSize.width * -0.45, winSize.height * 0.4);
backBtn->setID("back-btn");
Expand Down
1 change: 1 addition & 0 deletions src/GPSceneManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

#include "GPShopsLayer.hpp"
#include "GPKofiLayer.hpp"
#include "GPFeedbackLayer.hpp" // Include this header

using namespace geode::prelude;

Expand Down

0 comments on commit 21f45e8

Please sign in to comment.