mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-30 11:17:08 -05:00
a38743d01d
- reworked mod resource loading again - added `Loader::addTexturePath` and `Loader::removeTexturePath` for texture pack managers to add search paths - added `LayerBG.hpp` header with `createLayerBG` function for creating the blue background GD layers have
56 lines
1.5 KiB
C++
56 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include <Geode/DefaultInclude.hpp>
|
|
#include <cocos2d.h>
|
|
|
|
namespace geode {
|
|
class GEODE_DLL InputNode : public cocos2d::CCMenuItem {
|
|
protected:
|
|
cocos2d::extension::CCScale9Sprite* m_bgSprite;
|
|
CCTextInputNode* m_input;
|
|
|
|
bool init(float, float, const char*, const char*, std::string const&, int);
|
|
bool init(float, const char*, const char*, std::string const&, int);
|
|
|
|
public:
|
|
static InputNode* create(
|
|
float width,
|
|
const char* placeholder,
|
|
const char* fontFile,
|
|
std::string const& filter,
|
|
int limit
|
|
);
|
|
static InputNode* create(
|
|
float width,
|
|
const char* placeholder,
|
|
std::string const& filter,
|
|
int limit
|
|
);
|
|
static InputNode* create(
|
|
float width,
|
|
const char* placeholder,
|
|
std::string const& filter
|
|
);
|
|
static InputNode* create(
|
|
float width,
|
|
const char* placeholder,
|
|
const char* fontFile
|
|
);
|
|
static InputNode* create(
|
|
float width,
|
|
const char* placeholder
|
|
);
|
|
|
|
void activate() override;
|
|
|
|
CCTextInputNode* getInput() const;
|
|
cocos2d::extension::CCScale9Sprite* getBG() const;
|
|
|
|
void setEnabled(bool enabled) override;
|
|
|
|
void setString(std::string const&);
|
|
const char* getString();
|
|
};
|
|
}
|
|
|
|
|