mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
Merge branch 'main' into new-index-but-better
This commit is contained in:
commit
c7c2cc7afb
4 changed files with 1 additions and 11 deletions
|
@ -243,7 +243,7 @@ if (DEFINED GEODE_TULIPHOOK_REPO_PATH)
|
|||
message(STATUS "Using ${GEODE_TULIPHOOK_REPO_PATH} for TulipHook")
|
||||
add_subdirectory(${GEODE_TULIPHOOK_REPO_PATH} ${GEODE_TULIPHOOK_REPO_PATH}/build)
|
||||
else()
|
||||
CPMAddPackage("gh:geode-sdk/TulipHook#ada6508")
|
||||
CPMAddPackage("gh:geode-sdk/TulipHook#a416a7b")
|
||||
endif()
|
||||
set(CMAKE_WARN_DEPRECATED ON CACHE BOOL "" FORCE)
|
||||
|
||||
|
|
1
loader/include/Geode/cocos/include/ccTypes.h
vendored
1
loader/include/Geode/cocos/include/ccTypes.h
vendored
|
@ -50,7 +50,6 @@ typedef struct _ccHSVValue
|
|||
float h, s, v;
|
||||
bool absoluteSaturation;
|
||||
bool absoluteBrightness;
|
||||
private: unsigned char __pad[2];
|
||||
} ccHSVValue;
|
||||
|
||||
static inline ccHSVValue
|
||||
|
|
|
@ -30,8 +30,6 @@ namespace geode {
|
|||
[[deprecated("Use geode::TextInput from the ui/TextInput.hpp header instead")]]
|
||||
static InputNode* create(float width, char const* placeholder);
|
||||
|
||||
void activate() override;
|
||||
|
||||
CCTextInputNode* getInput() const;
|
||||
cocos2d::extension::CCScale9Sprite* getBG() const;
|
||||
|
||||
|
|
|
@ -22,13 +22,6 @@ CCScale9Sprite* InputNode::getBG() const {
|
|||
return m_bgSprite;
|
||||
}
|
||||
|
||||
void InputNode::activate() {
|
||||
auto const size = m_input->getContentSize();
|
||||
auto const pos = m_input->convertToNodeSpace(getMousePos()) + m_input->m_textField->getAnchorPoint() * size;
|
||||
m_input->onClickTrackNode(true);
|
||||
m_input->updateCursorPosition(pos, { CCPointZero, size });
|
||||
}
|
||||
|
||||
void InputNode::setEnabled(bool enabled) {
|
||||
m_input->setMouseEnabled(enabled);
|
||||
m_input->setTouchEnabled(enabled);
|
||||
|
|
Loading…
Reference in a new issue