Пример #1
0
        //tag: print
        public void PrintText(Dictionary <string, string> data)
        {
            Debug.Log("[Print Text]");

            string text = data["text"];

            CurrentMainTextBox.SetText(text);
        }
Пример #2
0
        //change current main text box
        public void OnCurrent(Dictionary <string, string> data)
        {
            Debug.Log("[Current]");
            string layer;

            if (data.ContainsKey("layer"))
            {
                layer = data["layer"];
                if (_textBoxes.ContainsKey(layer))
                {
                    Debug.LogFormat("change main textbox to: {0}", layer);
                    CurrentMainTextBox = _textBoxes[layer];
                    CurrentMainTextBox.SetVisible(true);
                }
                else
                {
                    Debug.LogFormat("can not change main textbox: {0}", layer);
                }
            }
            else
            {
                Debug.LogFormat("message error!");
            }
        }
Пример #3
0
 //Tag: [r]
 public void Reline()
 {
     CurrentMainTextBox.Reline();
 }
Пример #4
0
 //Tag: [CM]
 public void ClearMessage(Dictionary <string, string> data)
 {
     CurrentMainTextBox.ClearMessage();
 }