@@ -145,57 +145,57 @@ class ClientUtils
145
145
Client::instance->windows .push_back (level);
146
146
147
147
148
- Client::GetModule (" noclip" )->options .push_back (new Module (" Tint on death" , " noclip-death-tint" , " Tints the screen red when you die in noclip" ));
149
- Client::GetModule (" noclip" )->options .push_back (new SliderModule (" Tint Opacity:" , " tint-opacity" , 0 .25f ));
150
- Client::GetModule (" noclip" )->options .push_back (new ColourModule (" Tint Colour:" , " noclip-tint-colour" , ccc3 (255 , 0 , 0 )));
151
- Client::GetModule (" noclip" )->options .push_back (nullptr );
152
- Client::GetModule (" noclip" )->options .push_back (new Module (" Minimum Accuracy" , " noclip-min-accuracy-toggle" , " Allows you to die if your noclip accuracy drops below this value" ));
153
- Client::GetModule (" noclip" )->options .push_back (new InputModule (" Min Accuracy:" , " noclip-min-accuracy" , " 95.0" ));
154
- Client::GetModule (" noclip" )->options .push_back (new Module (" Player 1" , " noclip-player1" , " Apply noclip to player 1" , true ));
155
- Client::GetModule (" noclip" )->options .push_back (new Module (" Player 2" , " noclip-player2" , " Apply noclip to player 2" , true ));
156
- Client::GetModule (" noclip" )->options .push_back (new SFXModule (" Player 1 SFX:" , " noclip-player1-sfx" ));
157
- Client::GetModule (" noclip" )->options .push_back (new SFXModule (" Player 2 SFX:" , " noclip-player2-sfx" ));
148
+ Module::get (" noclip" )->options .push_back (new Module (" Tint on death" , " noclip-death-tint" , " Tints the screen red when you die in noclip" ));
149
+ Module::get (" noclip" )->options .push_back (new SliderModule (" Tint Opacity:" , " tint-opacity" , 0 .25f ));
150
+ Module::get (" noclip" )->options .push_back (new ColourModule (" Tint Colour:" , " noclip-tint-colour" , ccc3 (255 , 0 , 0 )));
151
+ Module::get (" noclip" )->options .push_back (nullptr );
152
+ Module::get (" noclip" )->options .push_back (new Module (" Minimum Accuracy" , " noclip-min-accuracy-toggle" , " Allows you to die if your noclip accuracy drops below this value" ));
153
+ Module::get (" noclip" )->options .push_back (new InputModule (" Min Accuracy:" , " noclip-min-accuracy" , " 95.0" ));
154
+ Module::get (" noclip" )->options .push_back (new Module (" Player 1" , " noclip-player1" , " Apply noclip to player 1" , true ));
155
+ Module::get (" noclip" )->options .push_back (new Module (" Player 2" , " noclip-player2" , " Apply noclip to player 2" , true ));
156
+ Module::get (" noclip" )->options .push_back (new SFXModule (" Player 1 SFX:" , " noclip-player1-sfx" ));
157
+ Module::get (" noclip" )->options .push_back (new SFXModule (" Player 2 SFX:" , " noclip-player2-sfx" ));
158
158
159
159
160
- Client::GetModule (" kill-after" )->options .push_back (new InputModule (" Percent:" , " death-percent" , " 100" ));
161
- Client::GetModule (" kill-after" )->options .push_back (new InputModule (" Time:" , " death-time" , " 6.9" ));
160
+ Module::get (" kill-after" )->options .push_back (new InputModule (" Percent:" , " death-percent" , " 100" ));
161
+ Module::get (" kill-after" )->options .push_back (new InputModule (" Time:" , " death-time" , " 6.9" ));
162
162
163
- Client::GetModule (" coin-tracers" )->options .push_back (new ColourModule (" Line Colour:" , " coin-tracers-colour" , ccc3 (255 , 0 , 0 )));
163
+ Module::get (" coin-tracers" )->options .push_back (new ColourModule (" Line Colour:" , " coin-tracers-colour" , ccc3 (255 , 0 , 0 )));
164
164
165
- Client::GetModule (" show-layout" )->options .push_back (new Module (" Keep Camera Triggers" , " layout-retain-camera" , " Keeps the 2.2 camera triggers in the level" , true ));
166
- Client::GetModule (" show-layout" )->options .push_back (new ColourModule (" BG Colour:" , " show-layout-bg" , ccc3 (40 , 125 , 255 )));
167
- Client::GetModule (" show-layout" )->options .push_back (new ColourModule (" Ground Colour:" , " show-layout-g" , ccc3 (0 , 102 , 255 )));
165
+ Module::get (" show-layout" )->options .push_back (new Module (" Keep Camera Triggers" , " layout-retain-camera" , " Keeps the 2.2 camera triggers in the level" , true ));
166
+ Module::get (" show-layout" )->options .push_back (new ColourModule (" BG Colour:" , " show-layout-bg" , ccc3 (40 , 125 , 255 )));
167
+ Module::get (" show-layout" )->options .push_back (new ColourModule (" Ground Colour:" , " show-layout-g" , ccc3 (0 , 102 , 255 )));
168
168
169
169
170
170
auto decimals = new InputModule (" Decimal Places:" , " accurate-percentage-places" , " 2" );
171
171
decimals->allowedChars = " 1234567890" ;
172
- Client::GetModule (" accurate-percentage" )->options .push_back (decimals);
172
+ Module::get (" accurate-percentage" )->options .push_back (decimals);
173
173
174
174
auto seed = new InputModule (" Seed:" , " rand-seed-seed" , " 69420" );
175
175
seed->allowedChars = " 1234567890" ;
176
176
seed->maxSize = 16 ;
177
- Client::GetModule (" rand-seed" )->options .push_back (seed);
177
+ Module::get (" rand-seed" )->options .push_back (seed);
178
178
179
179
auto cdownT = new InputModule (" Time:" , " countdown-time" , " 3" );
180
180
cdownT->allowedChars = " 1234567890" ;
181
181
cdownT->maxSize = 4 ;
182
- Client::GetModule (" pause-countdown" )->options .push_back (cdownT);
182
+ Module::get (" pause-countdown" )->options .push_back (cdownT);
183
183
184
- Client::GetModule (" startpos-switcher" )->options .push_back (new SliderModule (" Opacity:" , " startpos-opacity" , 50 .0f / 255 .0f ));
185
- Client::GetModule (" frame-stepper" )->options .push_back (new Module (" unused" , " unused-module" , " this is here because i need a module for the popup" ));
186
- // Client::GetModule ("smart-startpos")->options.push_back(new SmartStartposUIModule());
187
- // Client::GetModule ("smart-startpos")->optionSizeForce = Client::GetModule ("smart-startpos")->options[0]->sizeForOptionsPage();
184
+ Module::get (" startpos-switcher" )->options .push_back (new SliderModule (" Opacity:" , " startpos-opacity" , 50 .0f / 255 .0f ));
185
+ Module::get (" frame-stepper" )->options .push_back (new Module (" unused" , " unused-module" , " this is here because i need a module for the popup" ));
186
+ // Module::get ("smart-startpos")->options.push_back(new SmartStartposUIModule());
187
+ // Module::get ("smart-startpos")->optionSizeForce = Module::get ("smart-startpos")->options[0]->sizeForOptionsPage();
188
188
189
- Client::GetModule (" custom-respawn-time" )->options .push_back (new InputModule (" Delay:" , " respawn-time-delay" , " 4.2069" ));
189
+ Module::get (" custom-respawn-time" )->options .push_back (new InputModule (" Delay:" , " respawn-time-delay" , " 4.2069" ));
190
190
191
- Client::GetModule (" auto-clicker" )->options .push_back (new InputModule (" Interval" , " auto-clicker-delay" , " 6" ));
192
- Client::GetModule (" auto-clicker" )->options .push_back (new InputModule (" Hold For" , " auto-clicker-hold-for" , " 3" ));
193
- Client::GetModule (" auto-clicker" )->options .push_back (new Module (" Player 1" , " auto-clicker-player1" , " Should it click for player 1" , true ));
194
- Client::GetModule (" auto-clicker" )->options .push_back (new Module (" Player 2" , " auto-clicker-player2" , " Should it click for player 2" , true ));
195
- as<InputModule*>(Client::GetModule (" auto-clicker" )->options [0 ])->allowedChars = " 0123456789" ;
196
- as<InputModule*>(Client::GetModule (" auto-clicker" )->options [1 ])->allowedChars = " 0123456789" ;
191
+ Module::get (" auto-clicker" )->options .push_back (new InputModule (" Interval" , " auto-clicker-delay" , " 6" ));
192
+ Module::get (" auto-clicker" )->options .push_back (new InputModule (" Hold For" , " auto-clicker-hold-for" , " 3" ));
193
+ Module::get (" auto-clicker" )->options .push_back (new Module (" Player 1" , " auto-clicker-player1" , " Should it click for player 1" , true ));
194
+ Module::get (" auto-clicker" )->options .push_back (new Module (" Player 2" , " auto-clicker-player2" , " Should it click for player 2" , true ));
195
+ as<InputModule*>(Module::get (" auto-clicker" )->options [0 ])->allowedChars = " 0123456789" ;
196
+ as<InputModule*>(Module::get (" auto-clicker" )->options [1 ])->allowedChars = " 0123456789" ;
197
197
198
- if (auto hitboxMult = Client::GetModule (" hitbox-multiplier" ))
198
+ if (auto hitboxMult = Module::get (" hitbox-multiplier" ))
199
199
{
200
200
hitboxMult->options .push_back (new InputModule (" Player" , " hitbox-multiplier-player" , " 1.0" ));
201
201
hitboxMult->options .push_back (nullptr );
@@ -275,17 +275,17 @@ class ClientUtils
275
275
276
276
auto tps = new InputModule (" Ticks:" , " tps-bypass-value" , " 240" );
277
277
tps->maxSize = 11 ;
278
- Client::GetModule (" tps-bypass" )->options .push_back (tps);
278
+ Module::get (" tps-bypass" )->options .push_back (tps);
279
279
280
- Client::GetModule (" custom-trans" )->options .push_back (new TransCustomizerModule ());
281
- Client::GetModule (" custom-trans" )->optionSizeForce = ccp (350 , 180 );
282
- // Client::GetModule ("custom-trans")->options.push_back(nullptr);
283
- // Client::GetModule ("custom-trans")->options.push_back(new InputModule("Time Mod (*)", "transition-time-modifier", "1.0"));
284
- // Client::GetModule ("custom-trans")->options.push_back(new ColourModule("Fade Colour:", "transition-fade-colour", ccc3(0, 0, 0)));
280
+ Module::get (" custom-trans" )->options .push_back (new TransCustomizerModule ());
281
+ Module::get (" custom-trans" )->optionSizeForce = ccp (350 , 180 );
282
+ // Module::get ("custom-trans")->options.push_back(nullptr);
283
+ // Module::get ("custom-trans")->options.push_back(new InputModule("Time Mod (*)", "transition-time-modifier", "1.0"));
284
+ // Module::get ("custom-trans")->options.push_back(new ColourModule("Fade Colour:", "transition-fade-colour", ccc3(0, 0, 0)));
285
285
286
286
auto pitch = new InputModule (" Pitch:" , " pitch-shifter-value" , " 1.0" );
287
287
pitch->maxSize = 6 ;
288
- Client::GetModule (" pitch-shifter" )->options .push_back (pitch);
288
+ Module::get (" pitch-shifter" )->options .push_back (pitch);
289
289
}
290
290
291
291
static void SetupCreator ()
@@ -398,7 +398,7 @@ class ClientUtils
398
398
Client::instance->windows .push_back (cosmetic);
399
399
400
400
401
- Client::GetModule (" no-wave-pulse" )->options .push_back (new SliderModule (" Pulse Size:" , " wave-pulse-size" , 0 .5f ));
401
+ Module::get (" no-wave-pulse" )->options .push_back (new SliderModule (" Pulse Size:" , " wave-pulse-size" , 0 .5f ));
402
402
}
403
403
404
404
static void SetupIconEffects ()
@@ -498,7 +498,7 @@ class ClientUtils
498
498
499
499
for (auto hack : macInc)
500
500
{
501
- auto mod = Client::GetModule (hack);
501
+ auto mod = Module::get (hack);
502
502
503
503
if (mod)
504
504
{
@@ -511,65 +511,65 @@ class ClientUtils
511
511
512
512
#ifdef GEODE_IS_IOS
513
513
514
- Client::GetModule (" custom-trans" )->setIncompatible (" This mod does not <cg>yet</c> support <cl>iOS</c>" );
514
+ Module::get (" custom-trans" )->setIncompatible (" This mod does not <cg>yet</c> support <cl>iOS</c>" );
515
515
516
516
#endif
517
517
518
518
#ifndef GEODE_IS_WINDOWS
519
- // Client::GetModule ("custom-obj-limit")->setIncompatible("This mod only supports <cl>Windows</c> <cg>currently</c>");
519
+ // Module::get ("custom-obj-limit")->setIncompatible("This mod only supports <cl>Windows</c> <cg>currently</c>");
520
520
#endif
521
521
522
522
#ifndef QOLMOD_AUTOSONG
523
- Client::GetModule (" auto-song" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>2.2074</c>" );
523
+ Module::get (" auto-song" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>2.2074</c>" );
524
524
#endif
525
525
526
526
#ifndef QOLMOD_NOJUSTDONT
527
- Client::GetModule (" just-dont" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>2.2074</c>" );
527
+ Module::get (" just-dont" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>2.2074</c>" );
528
528
#endif
529
529
530
530
#ifndef QOLMOD_VERIFYHACK
531
- Client::GetModule (" verify-hack" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>2.2074</c>" );
531
+ Module::get (" verify-hack" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>2.2074</c>" );
532
532
#endif
533
533
534
534
#ifndef QOLMOD_PULSINGMENU
535
- Client::GetModule (" menu-pulse" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>2.2074</c>" );
535
+ Module::get (" menu-pulse" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>2.2074</c>" );
536
536
#endif
537
537
538
538
#ifndef NO_ROTATION_BUILD
539
- Client::GetModule (" no-rot" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>2.2074</c>" );
539
+ Module::get (" no-rot" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>2.2074</c>" );
540
540
#endif
541
541
542
542
#ifdef GEODE_IS_WINDOWS
543
543
544
544
#endif
545
545
546
- // Client::GetModule ("rand-seed")->setIncompatible("This mod has <cr>not yet</c> been ported to <cl>2.206</c>");
547
- // Client::GetModule ("show-trajectory")->setIncompatible("This mod has <cr>not yet</c> been ported to <cl>2.206</c>");
546
+ // Module::get ("rand-seed")->setIncompatible("This mod has <cr>not yet</c> been ported to <cl>2.206</c>");
547
+ // Module::get ("show-trajectory")->setIncompatible("This mod has <cr>not yet</c> been ported to <cl>2.206</c>");
548
548
549
549
#ifdef GEODE_IS_ARM_MAC
550
- Client::GetModule (" tps-bypass" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>ARM Mac</c>" );
551
- Client::GetModule (" editor-wave-trail" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>ARM Mac</c>" );
552
- Client::GetModule (" editor-extension" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>ARM Mac</c>" );
550
+ Module::get (" tps-bypass" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>ARM Mac</c>" );
551
+ Module::get (" editor-wave-trail" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>ARM Mac</c>" );
552
+ Module::get (" editor-extension" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>ARM Mac</c>" );
553
553
#endif
554
554
555
555
#ifdef GEODE_IS_MACOS
556
- Client::GetModule (" smart-startpos" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>MacOS</c>" );
556
+ Module::get (" smart-startpos" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>MacOS</c>" );
557
557
#endif
558
558
559
559
#ifndef QOLMOD_ALL_MODES_PLATFORMER
560
- Client::GetModule (" all-plat" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>2.2074</c>." );
560
+ Module::get (" all-plat" )->setIncompatible (" This mod has <cr>not yet</c> been ported to <cl>2.2074</c>." );
561
561
#endif
562
562
563
- Client::GetModule (" menu-bg-blur" )->setIncompatible (" Blur BG is temporarily disabled because i broke it :(." );
563
+ Module::get (" menu-bg-blur" )->setIncompatible (" Blur BG is temporarily disabled because i broke it :(." );
564
564
565
565
if (auto nodeIDs = Loader::get ()->getInstalledMod (" geode.node-ids" ))
566
566
{
567
567
if (!nodeIDs->isOrWillBeEnabled ())
568
- Client::GetModule (" unlock-gauntlets" )->setIncompatible (" This mod requires the <cc>Node IDs</c> mod to be enabled!" );
568
+ Module::get (" unlock-gauntlets" )->setIncompatible (" This mod requires the <cc>Node IDs</c> mod to be enabled!" );
569
569
}
570
570
else
571
571
{
572
- Client::GetModule (" unlock-gauntlets" )->setIncompatible (" This mod requires the <cc>Node IDs</c> mod to be installed!" );
572
+ Module::get (" unlock-gauntlets" )->setIncompatible (" This mod requires the <cc>Node IDs</c> mod to be installed!" );
573
573
}
574
574
}
575
575
0 commit comments