Enter the Gungeon
Posted: Wed Aug 15, 2018 3:14 pm
Do you mind if I use your GUI code to create a cheat mod so anyone can build it themselves or share it via similar to ETGMod?
MBRKiNG, post: 52982, member: 13227 wrote:updated to 2.0.8
download link below
viewtopic.php?t=689
added:
quick Reload (can now enabled/disabled)
give Armor (once added Armor disable the code or Ai can not be killed)
all Chests Rainbow (all chests will be spawn as rainbow)
last update for me im done with this game
Source Code Simple Cheat Menu 8 buttons
using UnityEngine;
public class modmenu : MonoBehaviour {
public static bool cheat1;
public static bool cheat2;
public static bool cheat3;
public static bool cheat4;
public static bool cheat5;
public static bool cheat6;
public static bool cheat7;
public static bool cheat8;
public static string string1;
public static string string2;
public static string string3;
public static string string4;
public static string string5;
public static string string6;
public static string string7;
public static string string8;
public static bool ShowHide = false;
public static void MyGUI() {
if (GUI.Button (new Rect (20, 20, 130f, 30f), "Cheat Menu")) {
ShowHide = !ShowHide;
}
if (ShowHide) {
GUI.Box (new Rect (20, 50, 180, 325), "Modded by XXX");
if (GUI.Button (new Rect (25, 80, 170f, 30f), string1)) {
cheat1 = !cheat1;
}
if (GUI.Button (new Rect (25, 115, 170f, 30f), string2)) {
cheat2 = !cheat2;
}
if (GUI.Button (new Rect (25, 150, 170f, 30f), string3)) {
cheat3 = !cheat3;
}
if (GUI.Button (new Rect (25, 185, 170f, 30f), string4)) {
cheat4 = !cheat4;
}
if (GUI.Button (new Rect (25, 220, 170f, 30f), string5)) {
cheat5 = !cheat5;
}
if (GUI.Button (new Rect (25, 255, 170f, 30f), string6)) {
cheat6 = !cheat6;
}
if (GUI.Button (new Rect (25, 290, 170f, 30f), string7)) {
cheat7 = !cheat7;
}
if (GUI.Button (new Rect (25, 325, 170f, 30f), string8)) {
cheat8 = !cheat8;
}
}
if (cheat1) {
string1 = "cheatname1 ON";
cheat1 = false;
} else {
string1 = "cheatname1 OFF";
cheat1 = true;
}
if (cheat2) {
string2 = "cheatname2 ON";
cheat2 = false;
} else {
string2 = "cheatname2 OFF";
cheat2 = true;
}
if (cheat3) {
string3 = "cheatname3 ON";
cheat3 = false;
} else {
string3 = "cheatname3 OFF";
cheat3 = true;
}
if (cheat4) {
string4 = "cheatname4 ON";
cheat4 = false;
} else {
string4 = "cheatname4 OFF";
cheat4 = true;
}
if (cheat5) {
string5 = "cheatname5 ON";
cheat5 = false;
} else {
string5 = "cheatname5 OFF";
cheat5 = true;
}
if (cheat6) {
string6 = "cheatname6 ON";
cheat6 = false;
} else {
string6 = "cheatname6 OFF";
cheat6 = true;
}
if (cheat7) {
string7 = "cheatname7 ON";
cheat7 = false;
} else {
string7 = "cheatname7 OFF";
cheat7 = true;
}
if (cheat8) {
string8 = "cheatname8 ON";
cheat8 = false;
} else {
string8 = "cheatname8 OFF";
cheat8 = true;
}
}
private void OnGUI ()
{
MyGUI ();
}
}
tutorial here
[Link]