public void UpdateVector()
        {
            if (PageID != 0)
            {
                string Outstring = "";
                switch (IsThisVector)
                {
                case Vector.Vector2:
                    Outstring = float.Parse(INX.text) + "," + float.Parse(INY.text);
                    break;

                case Vector.Vector2Int:
                    Outstring  = Math.Round(float.Parse(INX.text)) + "," + Math.Round(float.Parse(INY.text));
                    Outstring += "#";
                    break;

                case Vector.Vector3:
                    Outstring = float.Parse(INX.text) + "," + float.Parse(INY.text) + "," + float.Parse(INZ.text);
                    break;

                case Vector.Vector3Int:
                    Outstring = Math.Round(float.Parse(INX.text)) + "," + Math.Round(float.Parse(INY.text)) + "," + Math.Round(float.Parse(INZ.text));
                    Outstring = Outstring + "#";
                    break;
                }

                RequestChangeVariableNetMessage.Send(PageID, Outstring, UISendToClientToggle.toggle);
            }
        }
Example #2
0
 void ToggleValueChanged(Toggle change)
 {
     if (PageID != 0)
     {
         RequestChangeVariableNetMessage.Send(PageID, change.isOn.ToString(), UISendToClientToggle.toggle, ServerData.UserID, PlayerList.Instance.AdminToken);
     }
 }
Example #3
0
    public void UpdateVector()
    {
        if (PageID != 0)
        {
            string Outstring = "";
            switch (IsThisVector)
            {
            case Vector.Vector2:
                Outstring = (float.Parse(INX.text) + "," + float.Parse(INY.text));
                break;

            case Vector.Vector2Int:
                Outstring = (Math.Round(float.Parse(INX.text)) + "," + Math.Round(float.Parse(INY.text)));
                Outstring = Outstring + "#";
                break;

            case Vector.Vector3:
                Outstring = (float.Parse(INX.text) + "," + float.Parse(INY.text) + "," + float.Parse(INZ.text));
                break;

            case Vector.Vector3Int:
                Outstring = (Math.Round(float.Parse(INX.text)) + "," + Math.Round(float.Parse(INY.text)) + "," + Math.Round(float.Parse(INZ.text)));
                Outstring = Outstring + "#";
                break;
            }
            RequestChangeVariableNetMessage.Send(PageID, Outstring, UISendToClientToggle.toggle, ServerData.UserID, PlayerList.Instance.AdminToken);
        }
    }
Example #4
0
 void ToggleValueChanged(int intloc)
 {
     if (PageID != 0)
     {
         RequestChangeVariableNetMessage.Send(PageID, TDropdown.options[intloc].text, UISendToClientToggle.toggle, ServerData.UserID, PlayerList.Instance.AdminToken);
     }
 }
Example #5
0
 private void ToggleValueChanged(Toggle change)
 {
     if (PageID != 0)
     {
         RequestChangeVariableNetMessage.Send(PageID, change.isOn.ToString(), UISendToClientToggle.toggle);
     }
 }
 void ToggleValueChanged(int intloc)
 {
     if (PageID != 0)
     {
         RequestChangeVariableNetMessage.Send(PageID, TDropdown.options[intloc].text, UISendToClientToggle.toggle);
     }
 }
 void ToggleValueChanged(string change)
 {
     if (PageID != 0)
     {
         RequestChangeVariableNetMessage.Send(PageID, change, UISendToClientToggle.toggle);
     }
 }
Example #8
0
 void ToggleValueChanged(int intloc)
 {
     if (PageID != 0)
     {
         RequestChangeVariableNetMessage.Send(PageID, TDropdown.options[intloc].text);
     }
     else
     {
     }
 }
Example #9
0
    public static RequestChangeVariableNetMessage Send(ulong _PageID, string _newValue)
    {
        RequestChangeVariableNetMessage msg = new RequestChangeVariableNetMessage();

        msg.PageID   = _PageID;
        msg.newValue = _newValue;

        msg.Send();
        return(msg);
    }
Example #10
0
 void ToggleValueChanged(string change)
 {
     if (PageID != 0)
     {
         RequestChangeVariableNetMessage.Send(PageID, change);
     }
     else
     {
     }
 }
Example #11
0
 void ToggleValueChanged(string change)
 {
     if (PageID != 0)
     {
         RequestChangeVariableNetMessage.Send(PageID, change, ServerData.UserID, PlayerList.Instance.AdminToken);
     }
     else
     {
     }
 }
Example #12
0
 void ToggleValueChanged(Toggle change)
 {
     if (PageID != 0)
     {
         RequestChangeVariableNetMessage.Send(PageID, change.isOn.ToString());
     }
     else
     {
         //RequestChangeVariableNetMessage.Send(PageID, change.isOn.ToString());
     }
 }
    public static RequestChangeVariableNetMessage Send(ulong _PageID, string _newValue, bool InSendToClient, string adminId, string adminToken)
    {
        RequestChangeVariableNetMessage msg = new RequestChangeVariableNetMessage();

        msg.PageID       = _PageID;
        msg.newValue     = _newValue;
        msg.AdminId      = adminId;
        msg.AdminToken   = adminToken;
        msg.SendToClient = InSendToClient;
        msg.Send();
        return(msg);
    }
        public void UpdateColour()
        {
            if (PageID != 0)
            {
                thisColor = ColorPicker.CurrentColor;
                string Outstring = "" + Convert.ToChar(Mathf.RoundToInt(thisColor.r * 255));
                Outstring += Convert.ToChar(Mathf.RoundToInt(thisColor.g * 255));
                Outstring += Convert.ToChar(Mathf.RoundToInt(thisColor.b * 255));
                Outstring += Convert.ToChar(Mathf.RoundToInt(thisColor.a * 255));

                RequestChangeVariableNetMessage.Send(PageID, Outstring, UISendToClientToggle.toggle);
            }
        }
Example #15
0
    public void UpdateColour()
    {
        if (PageID != 0)
        {
            thisColor = ColorPicker.CurrentColor;
            string Outstring = "" + Convert.ToChar(Mathf.RoundToInt(thisColor.r * 255));
            Outstring = Outstring + Convert.ToChar(Mathf.RoundToInt(thisColor.g * 255));
            Outstring = Outstring + Convert.ToChar(Mathf.RoundToInt(thisColor.b * 255));
            Outstring = Outstring + Convert.ToChar(Mathf.RoundToInt(thisColor.a * 255));

            RequestChangeVariableNetMessage.Send(PageID, Outstring, UISendToClientToggle.toggle, ServerData.UserID,
                                                 PlayerList.Instance.AdminToken);
        }
    }