-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0mgRod
committed
Jul 13, 2024
1 parent
e7d8510
commit 1a06006
Showing
10 changed files
with
103 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# v2.1.0 | ||
|
||
- Added Ko-fi promo video | ||
|
||
# v2.0.0 | ||
|
||
- Removed Creator Points error messages - check console for errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"geode": "3.2.0", | ||
"version": "v2.0.0", | ||
"version": "v2.1.0", | ||
"gd": { | ||
"win": "2.206", | ||
"android": "2.206" | ||
|
File renamed without changes.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#pragma once | ||
|
||
#include <chrono> | ||
#include <iostream> | ||
#include <Geode/Geode.hpp> | ||
#include <Geode/modify/GJGarageLayer.hpp> | ||
#include <Geode/binding/GJGarageLayer.hpp> | ||
#include <Geode/utils/web.hpp> | ||
#include <Geode/ui/GeodeUI.hpp> | ||
#include <Geode/ui/Notification.hpp> | ||
|
||
#include "VideoPlayer.hpp" | ||
|
||
using namespace geode::prelude; | ||
|
||
class GPKofiLayer : public CCLayer { | ||
public: | ||
struct Fields { | ||
EventListener<web::WebTask> m_listener; | ||
}; | ||
|
||
virtual void KeyBackClicked() { | ||
CCDirector::get()->popScene(); | ||
} | ||
|
||
static CCScene* garageScene() { | ||
auto scene = CCScene::create(); | ||
scene->addChild(GJGarageLayer::scene()); | ||
return scene; | ||
} | ||
|
||
static CCScene* scene() { | ||
auto scene = CCScene::create(); | ||
scene->addChild(GPKofiLayer::create()); | ||
return scene; | ||
} | ||
|
||
static GPKofiLayer* create() { | ||
GPKofiLayer* ret = new GPKofiLayer(); | ||
if (ret && ret->init()) { | ||
ret->autorelease(); | ||
return ret; | ||
} | ||
delete ret; | ||
return nullptr; | ||
} | ||
|
||
bool init() { | ||
if (!CCLayer::init()) | ||
return false; | ||
|
||
setKeypadEnabled(true); | ||
|
||
auto winSize = CCDirector::sharedDirector()->getWinSize(); | ||
auto menu = CCMenu::create(); | ||
|
||
// geode::utils::web::openLinkInBrowser("https://ko-fi.com/omgrod"); | ||
std::filesystem::path videoPath = Mod::get()->getResourcesDir() / "kofiPromo.mpg"; | ||
|
||
// Create a VideoPlayer instance | ||
auto player = videoplayer::VideoPlayer::create(videoPath, true); | ||
|
||
player->setWidth(0.7 * winSize.width); | ||
|
||
player->setPosition(winSize.width * 0.5, winSize.height * 0.5); | ||
|
||
this->addChild(player); | ||
|
||
this->addChild(menu); | ||
return true; | ||
} | ||
|
||
private: | ||
geode::EventListener<web::WebTask> m_listener; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters