コード例 #1
0
    public WindowUIMenu(WindowImage wimg, WindowType wtype, List <string> wbuttons, string wtitle, string werror, bool wexit, int id, ExitDefault ex)
    {
        //GameObject unityHook = GameObject.Find("WindowUI");
        uh = Resources.FindObjectsOfTypeAll <UnityHook>()[0];
        // uh = (UnityHook) unityHook.GetComponent(typeof(UnityHook));
        wum      = new WindowUIManager(uh);
        windowUI = uh.windowUI;

        uh.activeMenu = this;

        img             = wimg;
        type            = wtype;
        buttons         = wbuttons;
        title           = wtitle;
        error           = werror;
        exit            = wexit;
        this.ex         = ex;
        this.id         = id;
        this.background = false;
    }
コード例 #2
0
 public WindowUI(WindowImage image, WindowType type, List <string> buttons, string title, string errorMessage, bool exitButton, int id, ExitDefault defaultCloseOperation)
 {
     WindowUIMenu wum = new WindowUIMenu(image, type, buttons, title, errorMessage, exitButton, id, defaultCloseOperation);
 }