File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 44
55using namespace geode ::prelude;
66
7- static constexpr float BULK_BUTTON_X = 285 .f;
87static constexpr float BULK_BUTTON_Y = 30 .f;
98static constexpr float INFO_LABEL_Y = 22 .f;
109static 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 );
You can’t perform that action at this time.
0 commit comments