Skip to content

Commit a7ad9a3

Browse files
author
km7dev
committed
2 parents 534fce3 + bb986f8 commit a7ad9a3

6 files changed

Lines changed: 33 additions & 4 deletions

File tree

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## v1.14.0
2+
* Bump to Geode `v5.6.1`
3+
* Fix keyboard arrows typing 'a' characters
4+
* Add layout padding attribute
5+
16
## v1.13.0
27
* Updated for Geode v5.0.0 and Geometry Dash 2.2081
38

include/API.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include <string>
99
#include <type_traits>
1010
#include <Geode/loader/Dispatch.hpp>
11+
12+
#undef MY_MOD_ID
1113
#define MY_MOD_ID "geode.devtools"
1214

1315
namespace devtools {

mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"geode": "5.0.1",
3-
"version": "v1.13.1",
2+
"geode": "5.6.1",
3+
"version": "v1.14.0",
44
"gd": {
55
"win": "2.2081",
66
"android": "2.2081",

src/backend.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,14 @@ class $modify(CCIMEDispatcher) {
432432
if (!io.WantCaptureKeyboard) {
433433
CCIMEDispatcher::dispatchInsertText(text, len, key);
434434
}
435+
436+
switch (key) {
437+
case KEY_Left:
438+
case KEY_Right:
439+
return;
440+
default: break;
441+
}
442+
435443
std::string str(text, len);
436444
io.AddInputCharactersUTF8(str.c_str());
437445
}
@@ -549,4 +557,4 @@ class $modify(CCKeyboardDispatcher) {
549557
}
550558
#endif
551559
};
552-
#endif
560+
#endif

src/pages/Attributes.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,13 @@ void DevTools::drawLayoutAttributes(CCNode* node){
910910
layout->setGap(gap);
911911
updateLayout = true;
912912
}
913-
913+
914+
auto padding = layout->getPadding();
915+
if (ImGui::DragFloat4("Padding", &padding.left)) {
916+
layout->setPadding(padding);
917+
updateLayout = true;
918+
}
919+
914920
auto ignoreInvisibleChildren = layout->isIgnoreInvisibleChildren();
915921
if (ImGui::Checkbox("Ignore Invisible Children", &ignoreInvisibleChildren)) {
916922
layout->ignoreInvisibleChildren(ignoreInvisibleChildren);
@@ -1087,6 +1093,12 @@ void DevTools::drawLayoutAttributes(CCNode* node){
10871093
updateLayout = true;
10881094
}
10891095

1096+
auto padding = layout->getPadding();
1097+
if (ImGui::DragFloat4("Padding", &padding.left)) {
1098+
layout->setPadding(padding);
1099+
updateLayout = true;
1100+
}
1101+
10901102
auto ignoreInvisibleChildren = layout->isIgnoreInvisibleChildren();
10911103
if (ImGui::Checkbox("Ignore Invisible Children", &ignoreInvisibleChildren)) {
10921104
layout->ignoreInvisibleChildren(ignoreInvisibleChildren);

src/platform/Mac.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818

1919
#include <mach-o/dyld_images.h>
2020
#include <mach-o/dyld.h>
21+
#define CommentType CommentTypeDummy
2122
#import <Foundation/Foundation.h>
23+
#undef CommentType
2224

2325
#import <CoreGraphics/CoreGraphics.h>
2426
#ifdef GEODE_IS_MACOS

0 commit comments

Comments
 (0)