Esempio n. 1
0
        public override void DrawFields(BloxEditorWindow ed, BloxBlockEd bdi)
        {
            Comment_Block comment_Block = (Comment_Block)bdi.b;

            Comment_BlockDrawer.GC_Message.text = comment_Block.message;
            GUILayout.Label(Comment_BlockDrawer.GC_Message, BloxEdGUI.Styles.ActionLabel);
        }
        public override bool CreateBlockCodeStatements(BloxBlockEd bdi, CodeStatementCollection statements)
        {
            Comment_Block comment_Block = (Comment_Block)bdi.b;

            if (!string.IsNullOrEmpty(comment_Block.message))
            {
                statements.Add(new CodeCommentStatement(comment_Block.message));
            }
            return(true);
        }
Esempio n. 3
0
        public override void DrawProperties(BloxEditorWindow ed, BloxBlockEd bdi)
        {
            if (bdi.b.paramBlocks == null)
            {
                bdi.b.paramBlocks = new BloxBlock[0];
            }
            Comment_Block obj = (Comment_Block)bdi.b;

            EditorGUILayout.PrefixLabel(Comment_BlockDrawer.GC_Head);
            obj.message = EditorGUILayout.TextArea(obj.message, plyEdGUI.Styles.TextArea);
        }