Skip to content

Commit 6ea45ca

Browse files
committed
okaye!
1 parent 8ac07da commit 6ea45ca

3 files changed

Lines changed: 49 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build Geode Mod
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "**"
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
config:
15+
- name: Windows
16+
os: windows-latest
17+
18+
- name: macOS
19+
os: macos-latest
20+
21+
name: ${{ matrix.config.name }}
22+
runs-on: ${{ matrix.config.os }}
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Build the mod
28+
uses: geode-sdk/build-geode-mod@main
29+
with:
30+
combine: true
31+
target: ${{ matrix.config.target }}
32+
33+
package:
34+
name: Package builds
35+
runs-on: ubuntu-latest
36+
needs: ['build']
37+
38+
steps:
39+
- uses: geode-sdk/build-geode-mod/combine@main
40+
id: build
41+
42+
- uses: actions/upload-artifact@v4
43+
with:
44+
name: Build Output
45+
path: ${{ steps.build.outputs.build-output }}

mod.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"geode": "4.10.0",
33
"gd": {
4-
"win": "*",
5-
"mac": "*"
4+
"win": "2.2074",
5+
"mac": "2.2074"
66
},
77
"version": "1.0.1",
88
"id": "coah.bulkchestopen",

src/main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
using namespace geode::prelude;
66

7-
static constexpr float BULK_BUTTON_X = 285.f;
87
static constexpr float BULK_BUTTON_Y = 30.f;
98
static constexpr float INFO_LABEL_Y = 22.f;
109
static constexpr const char* STAT_DEMON_KEYS = "21";
@@ -69,13 +68,13 @@ class $modify(BulkChestLayer, SecretRewardsLayer) {
6968

7069
m_fields->bulkOpenMenu = CCMenu::create();
7170
m_fields->bulkOpenMenu->addChild(bulkButton);
72-
m_fields->bulkOpenMenu->setPosition({BULK_BUTTON_X, BULK_BUTTON_Y});
71+
m_fields->bulkOpenMenu->setPosition({CCScene::get()->getContentWidth() / 2.f, BULK_BUTTON_Y});
7372
m_fields->bulkOpenMenu->setVisible(false);
7473
this->addChild(m_fields->bulkOpenMenu, 100);
7574

7675
auto infoLabel = CCLabelBMFont::create("Shift+Click to select chests", "chatFont.fnt");
7776
infoLabel->setScale(0.4f);
78-
infoLabel->setPosition({BULK_BUTTON_X, INFO_LABEL_Y});
77+
infoLabel->setPosition({CCScene::get()->getContentWidth() / 2.f, INFO_LABEL_Y});
7978
infoLabel->setColor({180, 180, 180});
8079
infoLabel->setID("bulk-info-label"_spr);
8180
this->addChild(infoLabel, 100);

0 commit comments

Comments
 (0)