public static void popup(ref global::ConsoleSystem.Arg arg)
    {
        float  @float  = arg.GetFloat(0, 2f);
        string @string = arg.GetString(1, "!");
        string string2 = arg.GetString(2, "This is the text");

        global::PopupUI.singleton.CreateNotice(@float, @string, string2);
    }
Esempio n. 2
0
    public static void add(ref global::ConsoleSystem.Arg arg)
    {
        if (!global::chat.enabled)
        {
            return;
        }
        string @string = arg.GetString(0, string.Empty);
        string string2 = arg.GetString(1, string.Empty);

        if (@string == string.Empty || string2 == string.Empty)
        {
            return;
        }
        global::ChatUI.AddLine(@string, string2);
    }
Esempio n. 3
0
    public static void connect(ref global::ConsoleSystem.Arg arg)
    {
        Object @object = Object.FindObjectOfType(typeof(global::ClientConnect));

        if (@object)
        {
            Debug.Log("Connect already in progress!");
            return;
        }
        if (global::NetCull.isClientRunning)
        {
            Debug.Log("Use net.disconnect before trying to connect to a new server.");
            return;
        }
        string[] array = arg.GetString(0, string.Empty).Split(new char[]
        {
            ':'
        });
        if (array.Length != 2)
        {
            Debug.Log("Not a valid ip - or port missing");
            return;
        }
        string text = array[0];
        int    num  = int.Parse(array[1]);

        Debug.Log(string.Concat(new object[]
        {
            "Connecting to ",
            text,
            ":",
            num
        }));
        PlayerPrefs.SetString("net.lasturl", arg.GetString(0, string.Empty));
        global::ClientConnect clientConnect = global::ClientConnect.Instance();

        if (!clientConnect.DoConnect(text, num))
        {
            return;
        }
        global::LoadingScreen.Show();
        global::LoadingScreen.Update("connecting..");
    }
    public static void inventory(ref global::ConsoleSystem.Arg arg)
    {
        string @string = arg.GetString(0, "This is the text");

        global::PopupUI.singleton.CreateInventory(@string);
    }
Esempio n. 5
0
    public static void add(ref global::ConsoleSystem.Arg arg)
    {
        string @string = arg.GetString(0, string.Empty);

        global::FavouriteList.Add(@string);
    }