-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
27 changed files
with
455 additions
and
321 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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#pragma once | ||
|
||
#include <Geode/Geode.hpp> | ||
|
||
namespace allium { | ||
class BrushDrawer; | ||
class AlliumButtonBar : public cocos2d::CCNode { | ||
protected: | ||
geode::Ref<EditButtonBar> m_buttonBar; | ||
cocos2d::CCArray* m_buttons = nullptr; | ||
|
||
CCMenuItemToggler* m_lineToggle = nullptr; | ||
CCMenuItemToggler* m_curveToggle = nullptr; | ||
CCMenuItemToggler* m_freeToggle = nullptr; | ||
BrushDrawer* m_brushDrawer = nullptr; | ||
|
||
public: | ||
static AlliumButtonBar* create(EditorUI* editorUI); | ||
|
||
bool init(EditorUI* editorUI); | ||
|
||
void resetToggles(cocos2d::CCObject* sender); | ||
|
||
EditButtonBar* getButtonBar() const; | ||
BrushDrawer* getBrushDrawer() const; | ||
|
||
CCMenuItemSpriteExtra* addButton( | ||
std::string_view spriteName, std::string_view bgName, std::string_view id, | ||
geode::utils::MiniFunction<void(CCMenuItemSpriteExtra*)> const& callback | ||
); | ||
|
||
CCMenuItemSpriteExtra* addDefaultButton( | ||
std::string_view spriteName, std::string_view id, | ||
geode::utils::MiniFunction<void(CCMenuItemSpriteExtra*)> const& callback | ||
); | ||
|
||
CCMenuItemToggler* addToggle( | ||
std::string_view spriteName, std::string_view bgOnName, std::string_view bgOffName, std::string_view id, | ||
geode::utils::MiniFunction<void(CCMenuItemToggler*)> const& callback | ||
); | ||
|
||
CCMenuItemToggler* addDefaultToggle( | ||
std::string_view spriteName, std::string_view id, | ||
geode::utils::MiniFunction<void(CCMenuItemToggler*)> const& callback | ||
); | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
#pragma once | ||
|
||
#include <Geode/Geode.hpp> | ||
|
||
namespace allium { | ||
class SupportPopup : public FLAlertLayer { | ||
public: | ||
static SupportPopup* create(); | ||
bool init() override; | ||
|
||
void keyBackClicked() override; | ||
void onClose(cocos2d::CCObject* sender); | ||
}; | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
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
Oops, something went wrong.