//private static bool isButtonAdd = false; public static void SetButton() { //if (isButtonAdd) // return; // //if (GameMain.Instance == null || GameMain.Instance.SysShortcut == null) //{ // return; //} string text; text = "로그 온오프"; SystemShortcutAPI.AddButton(text, new Action(Lilly.SetLogOnOff), text, png); /* * text = "InfoUtill GUI 온오프"; * SystemShortcutAPI.AddButton(text, new Action(Lilly.infoUtill.SetGuiOnOff), text, png); * * text = "HarmonyUtill GUI 온오프"; * SystemShortcutAPI.AddButton(text, new Action(Lilly.harmonyUtill.SetGuiOnOff), text, png); * * text = "CheatUtill GUI 온오프"; * SystemShortcutAPI.AddButton(text, new Action(Lilly.cheatUtill.SetGuiOnOff), text, png); * * text = "maidEditGui GUI 온오프"; * SystemShortcutAPI.AddButton(text, new Action(Lilly.maidEditGui.SetGuiOnOff), text, png); * * text = "easyUtill GUI 온오프"; * SystemShortcutAPI.AddButton(text, new Action(Lilly.easyUtill.SetGuiOnOff), text, png); */ //isButtonAdd = true; }
private void RegisterOrClearGearMenuButton() { //if (!Buttons.Contains(gearMenuButtonName)) { //GameObject gameObject = Buttons.Add(gearMenuButtonName, "", GetGearMenuIconPng(!isUIVisible), OnGearMenuClick); SystemShortcutAPI.AddButton(gearMenuButtonName, OnGearMenuClick, gearMenuButtonName, GetGearMenuIconPng(!isUIVisible)); //UpdateGearMenuIcon(gameObject); } }
/// <summary> /// 게임 실행시 한번만 실행됨 /// </summary> public void Start() { myLog.LogMessage("Start"); PoseStreamLillyGUI.Install(gameObject, Config); //SystemShortcutAPI.AddButton(MyAttribute.PLAGIN_FULL_NAME, new Action(delegate () { enabled = !enabled; }), MyAttribute.PLAGIN_NAME, MyUtill.ExtractResource(COM3D2.PoseStreamLilly.Plugin.Properties.Resources.icon)); SystemShortcutAPI.AddButton(MyAttribute.PLAGIN_FULL_NAME, new Action(delegate() { myLog.LogMessage("SystemShortcutAPI.AddButton", MyAttribute.PLAGIN_FULL_NAME, PoseStreamLillyGUI.isGUIOn); PoseStreamLillyGUI.isGUIOn = !PoseStreamLillyGUI.isGUIOn; }), MyAttribute.PLAGIN_NAME + " : " + ShowCounter.Value.ToString(), MyUtill.ExtractResource(COM3D2.PoseStreamLilly.Plugin.Properties.Resources.icon)); }
public static void SetButton() { if (isButtonAdd) { return; } if (GameMain.Instance == null || GameMain.Instance.SysShortcut == null) { return; } string text; text = "CheatUtill GUI 온오프"; SystemShortcutAPI.AddButton(text, new Action(COM3D2.Lilly.RemoveFlag.Lilly.cheatUtill.SetGuiOnOff), text, png); isButtonAdd = true; }