Example #1
0
 public static void Show()
 {
     if (instance == null)
     {
         instance = UISystem.InstantiateUI("RegisterAccountUI").GetComponent <RegisterAccountUI>();
     }
 }
Example #2
0
 public static void ShowChatPanel()
 {
     if (instance == null)
     {
         instance = UISystem.InstantiateUI("ChatPanel").GetComponent <ChatPanel>();
     }
 }
Example #3
0
    public static void Show(string content)
    {
        GameObject      obj  = UISystem.InstantiateUI("FastTips");
        TextMeshProUGUI text = obj.transform.Find("RawImage/Image/Text").GetComponent <TextMeshProUGUI>();

        text.text = content;
    }
Example #4
0
 public static void Show()
 {
     if (Instance != null)
     {
         Instance.gameObject.SetActive(true);
     }
     else
     {
         Instance = UISystem.InstantiateUI("DebugUI").GetComponent <DebugUI>();
     }
 }
Example #5
0
 public static void Show()
 {
     if (instance != null)
     {
         instance.gameObject.SetActive(true);
     }
     else
     {
         instance = UISystem.InstantiateUI("loading").GetComponent <LoadingUI>();
     }
     isLoading = true;
 }
Example #6
0
 public static void Show()
 {
     if (instance == null)
     {
         instance = UISystem.InstantiateUI("hand").GetComponent <Hand>();
         instance.transform.SetAsFirstSibling();
     }
     else
     {
         instance.gameObject.SetActive(true);
     }
 }
Example #7
0
 public static void Show()
 {
     if (Instance != null)
     {
         Instance.gameObject.SetActive(true);
     }
     else
     {
         Instance = UISystem.InstantiateUI("DeathUI").GetComponent <DeathUI>();
     }
     InputManager.enabled = false;
     PlayerController.LockCursor(false);
 }
Example #8
0
    public static void Show()
    {
        if (Instance != null)
        {
            Instance.gameObject.SetActive(true);
            Instance.RefreshFullscreenLabel();
        }
        else
        {
            Instance = UISystem.InstantiateUI("SettingsPanel").GetComponent <SettingsPanel>();
        }

        InputManager.enabled = false;
        PlayerController.LockCursor(false);
    }
Example #9
0
    public static void Show()
    {
        if (Instance != null)
        {
            Instance.gameObject.SetActive(true);
            Instance.RefreshUI();
            Instance.RefreshGrabItem();
        }
        else
        {
            Instance = UISystem.InstantiateUI("SurvivalInventory").GetComponent <SurvivalInventory>();
        }

        InputManager.enabled = false;
        PlayerController.LockCursor(false);
    }
Example #10
0
    public static void Show()
    {
        if (Instance != null)
        {
            Instance.gameObject.SetActive(true);
            Instance.lastStep     = 0;
            Instance.slider.value = 0;
            Instance.RefreshUI();
            Instance.RefreshSelectPanel();
        }
        else
        {
            Instance = UISystem.InstantiateUI("CreativeInventory").GetComponent <CreativeInventory>();
        }

        InputManager.enabled = false;
        PlayerController.LockCursor(false);
    }
Example #11
0
    public static void Show(Vector3Int pos)
    {
        if (Instance != null)
        {
            Instance.pos = pos;
            Instance.gameObject.SetActive(true);
            Instance.InitData();
            Instance.RefreshUI();
            Instance.RefreshGrabItem();
        }
        else
        {
            Instance     = UISystem.InstantiateUI("FurnaceUI").GetComponent <FurnaceUI>();
            Instance.pos = pos;
            Instance.InitData();
        }

        InputManager.enabled = false;
        PlayerController.LockCursor(false);
    }
Example #12
0
 public static void Show()
 {
     UISystem.InstantiateUI("DisconnectedUI");
 }
Example #13
0
 public static void Show()
 {
     instance = UISystem.InstantiateUI("DeleteWorldUI").GetComponent <DeleteWorldUI>();
 }
Example #14
0
 public static void Show()
 {
     instance = UISystem.InstantiateUI("ItemSelectPanel").GetComponent <ItemSelectPanel>();
 }
Example #15
0
 public static void Show()
 {
     instance = UISystem.InstantiateUI("MainMenu").GetComponent <MainMenu>();
 }
Example #16
0
 public static void ShowLoginPanel()
 {
     instance = UISystem.InstantiateUI("LoginPanel").GetComponent <LoginPanel>();
 }