mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-22 02:45:49 -04:00
remove unsigned from table indexes
it creates issues with android bindings :(
This commit is contained in:
parent
58477bbd2c
commit
df7166711c
5 changed files with 15 additions and 15 deletions
bindings
loader
|
@ -149,7 +149,7 @@ class BoomListView : cocos2d::CCLayer, TableViewDelegate, TableViewDataSource {
|
|||
virtual void TableViewCommitCellEditingStyleForRowAtIndexPath(TableView*, TableViewCellEditingStyle, CCIndexPath&) {}
|
||||
virtual void TableViewWillReloadCellForRowAtIndexPath(CCIndexPath&, TableViewCell*, TableView*) {}
|
||||
virtual TableViewCell* getListCell(const char*) = mac 0x18f200, win 0x10ed0;
|
||||
virtual void loadCell(TableViewCell*, unsigned int) = mac 0x18f4a0, win 0x10ff0;
|
||||
virtual void loadCell(TableViewCell*, int) = mac 0x18f4a0, win 0x10ff0;
|
||||
inline bool init(cocos2d::CCArray* entries, BoomListType type, float width, float height) {
|
||||
return this->init(entries, height, width, 0, type);
|
||||
}
|
||||
|
@ -919,7 +919,7 @@ class CustomListView : BoomListView {
|
|||
return CustomListView::create(entries, width, height, 0, type);
|
||||
}
|
||||
virtual TableViewCell* getListCell(const char*) = mac 0x10d560, win 0x58050;
|
||||
virtual void loadCell(TableViewCell*, unsigned int) = mac 0x10e610, win 0x585c0;
|
||||
virtual void loadCell(TableViewCell*, int) = mac 0x10e610, win 0x585c0;
|
||||
virtual void setupList() = mac 0x116e70, win 0x58870;
|
||||
inline CustomListView() {}
|
||||
}
|
||||
|
@ -2382,7 +2382,7 @@ class GJItemIcon : cocos2d::CCSprite {
|
|||
}
|
||||
|
||||
class GJLevelScoreCell : TableViewCell {
|
||||
void updateBGColor(unsigned int index) = win 0x5c6b0;
|
||||
void updateBGColor(int index) = win 0x5c6b0;
|
||||
}
|
||||
|
||||
class GJListLayer : cocos2d::CCLayerColor {
|
||||
|
@ -2410,7 +2410,7 @@ class GJMapPack : cocos2d::CCNode {
|
|||
}
|
||||
|
||||
class GJMessageCell : TableViewCell {
|
||||
void updateBGColor(unsigned int index) = win 0x5c6b0;
|
||||
void updateBGColor(int index) = win 0x5c6b0;
|
||||
void loadFromMessage(GJUserMessage *) = win 0x64b60;
|
||||
}
|
||||
|
||||
|
@ -2420,7 +2420,7 @@ class GJOptionsLayer : FLAlertLayer {
|
|||
}
|
||||
|
||||
class GJRequestCell : TableViewCell {
|
||||
void updateBGColor(unsigned int index) = win 0x5c6b0;
|
||||
void updateBGColor(int index) = win 0x5c6b0;
|
||||
}
|
||||
|
||||
class GJRewardDelegate {}
|
||||
|
@ -2506,7 +2506,7 @@ class GJScoreCell : TableViewCell {
|
|||
virtual void FLAlert_Clicked(FLAlertLayer*, bool) = win 0x624a0;
|
||||
void loadFromScore(GJUserScore* score) = win 0x61440;
|
||||
void onViewProfile(cocos2d::CCObject* sender) = win 0x62380;
|
||||
void updateBGColor(unsigned int index) = win 0x5c6b0;
|
||||
void updateBGColor(int index) = win 0x5c6b0;
|
||||
}
|
||||
|
||||
class GJSearchObject : cocos2d::CCNode {
|
||||
|
@ -2566,7 +2566,7 @@ class GJSpriteColor : cocos2d::CCNode {
|
|||
}
|
||||
|
||||
class GJUserCell : TableViewCell {
|
||||
void updateBGColor(unsigned int index) = win 0x5c6b0;
|
||||
void updateBGColor(int index) = win 0x5c6b0;
|
||||
}
|
||||
|
||||
class GJUserMessage : cocos2d::CCNode {
|
||||
|
@ -3611,7 +3611,7 @@ class LevelCell : TableViewCell {
|
|||
|
||||
void onViewProfile(cocos2d::CCObject*) = win 0x5c790;
|
||||
void loadCustomLevelCell() = mac 0x1183b0, win 0x5a020;
|
||||
void updateBGColor(unsigned int index) = win 0x5c6b0;
|
||||
void updateBGColor(int index) = win 0x5c6b0;
|
||||
}
|
||||
|
||||
class LevelCommentDelegate {
|
||||
|
@ -4077,7 +4077,7 @@ class LocalLevelManager : GManager {
|
|||
}
|
||||
|
||||
class MapPackCell : TableViewCell {
|
||||
void updateBGColor(unsigned int index) = win 0x5c6b0;
|
||||
void updateBGColor(int index) = win 0x5c6b0;
|
||||
void loadFromMapPack(GJMapPack *) = win 0x5cac0;
|
||||
}
|
||||
|
||||
|
@ -5292,7 +5292,7 @@ class SliderTouchLogic : cocos2d::CCMenu {
|
|||
}
|
||||
|
||||
class SongCell : TableViewCell {
|
||||
void updateBGColor(unsigned int index) = win 0x5c6b0;
|
||||
void updateBGColor(int index) = win 0x5c6b0;
|
||||
}
|
||||
|
||||
class SongInfoLayer : FLAlertLayer {
|
||||
|
@ -5352,7 +5352,7 @@ class StartPosObject : EffectGameObject {
|
|||
class StatsCell : TableViewCell {
|
||||
inline StatsCell() {}
|
||||
inline StatsCell(char const* identifier, float parentHeight, float height) : TableViewCell(identifier, parentHeight, height) {}
|
||||
void updateBGColor(unsigned int index) = win 0x59cf0;
|
||||
void updateBGColor(int index) = win 0x59cf0;
|
||||
virtual void draw() = mac 0x11bf80, win 0x59d40;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace geode {
|
|||
protected:
|
||||
void setupList() override;
|
||||
TableViewCell* getListCell(char const* key) override;
|
||||
void loadCell(TableViewCell* cell, unsigned int index) override;
|
||||
void loadCell(TableViewCell* cell, int index) override;
|
||||
|
||||
public:
|
||||
/**
|
||||
|
|
|
@ -114,7 +114,7 @@ TableViewCell* HookListView::getListCell(char const* key) {
|
|||
return HookCell::create(key, CCSize { m_width, m_itemSeparation });
|
||||
}
|
||||
|
||||
void HookListView::loadCell(TableViewCell* cell, unsigned int index) {
|
||||
void HookListView::loadCell(TableViewCell* cell, int index) {
|
||||
as<HookCell*>(cell)->loadFromHook(
|
||||
as<HookItem*>(m_entries->objectAtIndex(index))->m_hook, m_mod
|
||||
);
|
||||
|
|
|
@ -39,7 +39,7 @@ protected:
|
|||
|
||||
void setupList() override;
|
||||
TableViewCell* getListCell(char const* key) override;
|
||||
void loadCell(TableViewCell* cell, unsigned int index) override;
|
||||
void loadCell(TableViewCell* cell, int index) override;
|
||||
|
||||
public:
|
||||
static HookListView* create(CCArray* hooks, Mod* Mod, float width, float height);
|
||||
|
|
|
@ -52,7 +52,7 @@ TableViewCell* ListView::getListCell(char const* key) {
|
|||
return GenericListCell::create(key, { m_width, m_itemSeparation });
|
||||
}
|
||||
|
||||
void ListView::loadCell(TableViewCell* cell, unsigned int index) {
|
||||
void ListView::loadCell(TableViewCell* cell, int index) {
|
||||
auto node = dynamic_cast<CCNode*>(m_entries->objectAtIndex(index));
|
||||
if (node) {
|
||||
auto lcell = as<GenericListCell*>(cell);
|
||||
|
|
Loading…
Reference in a new issue