Skip to content

Commit

Permalink
- Added Trigger Drop
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeName-Anti committed Jan 2, 2022
1 parent 9a077fb commit 18a2803
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CrabGame Cheat/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public static class Constants
{
// Assembly and Plugin related
public const string
Version = "1.6.9.3",
Version = "1.6.9.4",
GUID = "de.jnnj.crabgamecheat";

// GitHub related
Expand Down
1 change: 1 addition & 0 deletions CrabGame Cheat/CrabGame Cheat.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<Compile Include="Modules\Combat\InfinityPunchModule.cs" />
<Compile Include="Modules\LobbyOwner\ForceStartModule.cs" />
<Compile Include="Modules\Movement\AirJumpModule.cs" />
<Compile Include="Modules\Other\TriggerDropModule.cs" />
<Compile Include="Modules\Player\AntiBoundKillsModule.cs" />
<Compile Include="Modules\Movement\ClickTPModule.cs" />
<Compile Include="Modules\Render\ESPModule.cs" />
Expand Down
29 changes: 29 additions & 0 deletions CrabGame Cheat/Modules/Other/TriggerDropModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using JNNJMods.CrabGameCheat.Util;
using JNNJMods.UI;
using JNNJMods.UI.Elements;

namespace JNNJMods.CrabGameCheat.Modules
{
[CheatModule]
public class TriggerDropModule : SingleElementModule<ButtonInfo>
{
public TriggerDropModule(ClickGUI gui) : base("Trigger drop", gui, WindowIDs.Other)
{
}

public override ElementInfo CreateElement(int windowId)
{

ButtonInfo triggerDrop = new(windowId, Name);

triggerDrop.ButtonPress += TriggerDrop;

return triggerDrop;
}

private void TriggerDrop()
{
MonoBehaviourPublicStCaSt1ObSthaUIStmaUnique.TryTriggerDrop();
}
}
}

0 comments on commit 18a2803

Please sign in to comment.