Exemplo n.º 1
0
        public List <TreeNode> RenderInScriptManager(string code)
        {
            List <TreeNode> list = new List <TreeNode>();

            TreeNode          node      = new TreeNode();
            TreeViewColorTool TextColor = new TreeViewColorTool();

            string activated = "deactivated";

            if (Loop)
            {
                activated = "activated";
            }

            VO_PlayableCharacter playableCharacter = GameCore.Instance.GetPlayableCharacterById(Character);

            TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_ORANGE, "Change");
            TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLACK, " player ");
            TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLUE, "[" + playableCharacter.Title + "]");
            TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLACK, " animation of type ");
            TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLUE, "[" + AnimationType.GetDescription() + "]");
            TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLACK, " to ");
            TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLUE, "[" + GameCore.Instance.GetCharAnimationById(playableCharacter.CharacterId, Animation).Title + "]");
            TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLACK, ", loop ");
            TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLUE, "[" + activated + "]");

            node.Text = TextColor.GetJsonisedObject();
            node.Name = code;
            node.Tag  = this;
            list.Add(node);
            return(list);
        }
        public List <TreeNode> RenderInScriptManager(string code)
        {
            List <TreeNode> list = new List <TreeNode>();

            TreeNode          node      = new TreeNode();
            TreeViewColorTool TextColor = new TreeViewColorTool();

            if (FreeAll == true)
            {
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLACK, "Free all Animations of Character ");
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLUE, "[" + GameCore.Instance.GetStageCharacter(Character).Title + "]");
                node.Text = TextColor.GetJsonisedObject();
            }
            else
            {
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLACK, "Free Animation ");
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLUE, "[" + AnimationType.GetDescription() + "]");
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLACK, " of Character ");
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLUE, "[" + GameCore.Instance.GetStageCharacter(Character).Title + "]");

                node.Text = TextColor.GetJsonisedObject();
            }
            node.Name = code;
            node.Tag  = this;
            list.Add(node);
            return(list);
        }
Exemplo n.º 3
0
        public List <TreeNode> RenderInScriptManager(string code)
        {
            List <TreeNode> list = new List <TreeNode>();

            TreeNode          node      = new TreeNode();
            TreeViewColorTool TextColor = new TreeViewColorTool();

            String CurrentPlayer;

            if (Character == new Guid(GlobalConstants.CURRENT_PLAYER_ID))
            {
                CurrentPlayer = "Current Player";
            }
            else
            {
                CurrentPlayer = GameCore.Instance.GetPlayableCharacterById(Character).Title;
            }
            if (FreezeAll == true)
            {
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_RED, "Freeze");
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLACK, " all Animations of Player ");
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLUE, "[" + CurrentPlayer + "]");

                node.Text = TextColor.GetJsonisedObject();
            }
            else
            {
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_RED, "Freeze");
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLACK, " Animation ");
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLUE, "[" + AnimationType.GetDescription() + "]");
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLACK, " of Player ");
                TextColor.AddNewColorAndText(GlobalConstants.TREEVIEW_BLUE, "[" + CurrentPlayer + "]");

                node.Text = TextColor.GetJsonisedObject();
            }
            node.Name = code;
            node.Tag  = this;
            list.Add(node);
            return(list);
        }