[HELP]Unity3D Menu disappearing,(when finishing match) menu

User Tag List

Results 1 to 7 of 7
  1. #1
    CowPowers's Avatar Private
    Reputation
    2
    Join Date
    Jun 2014
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [HELP]Unity3D Menu disappearing,(when finishing match)

    Hello, I've made a hack for hearthstone , ( which currently only consists on a bunch of buttons), the problem is,
    when I inject the c# loader at the main menu , the menu doesnt show up , when i inject it in a match, it works fine,but after
    finishing it the menu disappears. Im using GULayout.

    I've took a picture of the menu :
    Last edited by CowPowers; 06-14-2014 at 08:41 AM.

    [HELP]Unity3D Menu disappearing,(when finishing match)
  2. #2
    Hysterical's Avatar Member
    Reputation
    4
    Join Date
    Aug 2013
    Posts
    18
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you'll need to provide us with the code. Btw will this hack make it to be public?

  3. #3
    CowPowers's Avatar Private
    Reputation
    2
    Join Date
    Jun 2014
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Hysterical View Post
    I think you'll need to provide us with the code. Btw will this hack make it to be public?
    I'm thinking on it, maybe if a lot of people want it , I'll make it public :3 . and if I fix some bugs (like this one )


    Btw, this is the code i'm using for the menu : (Btw the menu has changed through this days)

    Code:
     GUILayout.BeginArea(new Rect(Screen.width / 2, Screen.height / 2, 400, 400));
                if (GUILayout.Button("Craft"))
                {
    
                   // Secret Codenz
                
    
    
    
                }
                if (GUILayout.Button("Arcane Dust"))
                {
                    // Secret Codenz
                }
                GUILayout.EndArea();

  4. #4
    Kane49's Avatar Member
    Reputation
    1
    Join Date
    Oct 2006
    Posts
    21
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Hysterical View Post
    I think you'll need to provide us with the code. Btw will this hack make it to be public?
    You can check my archive, it has the complete hearthstone injection / mono hooking framework laid out for you.

    As for this thread, people won't be able to help you without knowing a little bit about what you are doing
    Are you executing in OnGui of a MonoBehaviour ? What GameObject did you attach that behaviour to ? Why are you using auto layout ?

  5. #5
    CowPowers's Avatar Private
    Reputation
    2
    Join Date
    Jun 2014
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Kane49 View Post
    You can check my archive, it has the complete hearthstone injection / mono hooking framework laid out for you.

    As for this thread, people won't be able to help you without knowing a little bit about what you are doing
    Are you executing in OnGui of a MonoBehaviour ? What GameObject did you attach that behaviour to ? Why are you using auto layout ?
    • Yes I'm executing it inside OnGui, in a MonoBehaviour class
      Code:
      namespace Embed
      {
          class Hack : MonoBehaviour
          {
              string Name;
              void OnGUI()
              {
                    GUILayout.BeginArea(new Rect(Screen.width / 2, Screen.height / 2, 400, 400));
                  if (GUILayout.Button("Craft"))
                  {
      
                      
      
      
                                  
                  if (!Options.Get().GetBool(Option.HAS_CRAFTED))
                  {
                      Options.Get().SetBool(Option.HAS_CRAFTED, true);
                  }
      
                 
      
                  CraftingManager.Get().AdjustLocalArcaneDustBalance(1800);
                  CraftingManager.Get().NotifyOfTransaction(1);
                 
                      CraftingManager.Get().ForceNonGhostFlagOn();
                
                  CraftingManager.Get().craftingUI.UpdateText();
      
                     
                 // MethodInfo info = GeneralStore.Get().GetType().GetMethod("SetGoldButtonState", BindingFlags.NonPublic | BindingFlags.Instance);
      
                 // info.Invoke(GeneralStore.Get(), new System.Object[] { 0 });
      
                  }
                  if (GUILayout.Button("Buy Card"))
                  {
                      CraftingManager.Get().craftingUI.DoCreate();
                      
      
                  }
                  if (GUILayout.Button("Get Card ID"))
                  {
      
                      Name = CraftingManager.Get().GetShownActor().GetEntityDef().GetCardId();
                  }
                  if (GUILayout.Button("Aracane Dust"))
                  {
                      CraftingManager.Get().AdjustLocalArcaneDustBalance(1800);
                      CraftingManager.Get().NotifyOfTransaction(1);
                      CraftingManager.Get().craftingUI.UpdateText();
                  }
                  GUILayout.Label("Card Name := " + Name);
                  GUILayout.EndArea();
          }      }
      }
    • I've created a new GameObject, and then I've attached to it.
      Code:
      if (tst == null)
                      {
                          tst = new GameObject();
      
                          tst.AddComponent<Hack>();
      
                          UnityEngine.Object.DontDestroyOnLoad(tst);
                      }
    • I'm using auto layout, because it's an easier and cleaner way to do the menu.


    Btw , sorry for not giving the code earlier D:

  6. #6
    Kane49's Avatar Member
    Reputation
    1
    Join Date
    Oct 2006
    Posts
    21
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by CowPowers View Post
    Btw , sorry for not giving the code earlier D:
    Try to use one of the existing Game Objects, SceneMgr.Get().gameObject for example

  7. #7
    CowPowers's Avatar Private
    Reputation
    2
    Join Date
    Jun 2014
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a ton man , I cant give you +rep because I dont even have rep, when I have I will give it to you.

Similar Threads

  1. [LUA HELP] Boss spawning npc when he dies
    By Moaradin in forum WoW EMU Questions & Requests
    Replies: 12
    Last Post: 04-19-2009, 11:03 AM
  2. [HELP]About menu shown in teleporter
    By jingxuan in forum World of Warcraft General
    Replies: 0
    Last Post: 03-11-2009, 08:24 AM
  3. [Question] Character disappears when...
    By krish in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 11-30-2008, 09:31 PM
  4. [HELP] Custom NPCs Disappearing after server reset
    By Baalzevuv in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-15-2008, 02:10 PM
  5. [Help] A few errors when trying to update to rev 4337
    By MisterEMU in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 04-21-2008, 06:11 PM
All times are GMT -5. The time now is 05:03 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search