public override void DrawHead(BloxEditorWindow ed, BloxBlockEd bdi)
        {
            Variable_Block variable_Block = (Variable_Block)bdi.b;

            Variable_BlockDrawer.GC_VarName.text = variable_Block.varName;
            if (bdi.owningBlock == null)
            {
                GUILayout.Label(Variable_BlockDrawer.GC_Set, BloxEdGUI.Styles.ActionLabel);
                GUILayout.Label(Variable_BlockDrawer.GC_Ico[(int)variable_Block.varType], BloxEdGUI.Styles.IconLabel);
                GUILayout.Label(Variable_BlockDrawer.GC_VarName, BloxEdGUI.Styles.ActionBoldLabel);
                GUILayout.Label(Variable_BlockDrawer.GC_Eq, BloxEdGUI.Styles.ActionLabel);
            }
            else
            {
                GUILayout.Label(Variable_BlockDrawer.GC_Ico[(int)variable_Block.varType], BloxEdGUI.Styles.IconLabel);
                GUILayout.Label(Variable_BlockDrawer.GC_VarName, BloxEdGUI.Styles.ActionLabel);
                if (bdi.b.paramBlocks[0] != null)
                {
                    bdi.b.paramBlocks[0] = null;
                    bdi.paramBlocks[0]   = null;
                    GUI.changed          = true;
                }
                if (variable_Block.varType == plyVariablesType.Object)
                {
                    ed.DrawBlockField(null, bdi, 1);
                }
                else if (bdi.b.paramBlocks[1] != null)
                {
                    bdi.b.paramBlocks[1] = null;
                    bdi.paramBlocks[1]   = null;
                    GUI.changed          = true;
                }
            }
        }
 public override void DrawFields(BloxEditorWindow ed, BloxBlockEd bdi)
 {
     if (bdi.owningBlock == null)
     {
         Variable_Block obj = (Variable_Block)bdi.b;
         ed.DrawBlockField(null, bdi, 0);
         if (obj.varType == plyVariablesType.Object)
         {
             ed.DrawBlockField(null, bdi, 1);
         }
         else if (bdi.b.paramBlocks[1] != null)
         {
             bdi.b.paramBlocks[1] = null;
             bdi.paramBlocks[1]   = null;
             GUI.changed          = true;
         }
     }
 }
 public override void DrawFields(BloxEditorWindow ed, BloxBlockEd bdi)
 {
     ed.DrawBlockField(null, bdi, 0);
     ed.DrawBlockField(null, bdi, 1);
     ed.DrawBlockField(null, bdi, 2);
     GUILayout.Label(TriggeEvent_BlockDrawer.GC_Seconds, BloxEdGUI.Styles.FieldLabel);
     if (bdi.paramBlocks.Length > 3)
     {
         TriggerEvent_Block _ = (TriggerEvent_Block)bdi.b;
         GUILayout.Label(TriggeEvent_BlockDrawer.GC_With, BloxEdGUI.Styles.FieldLabel);
         for (int i = 3; i < bdi.paramBlocks.Length; i++)
         {
             TriggeEvent_BlockDrawer.GC_Param.text = "param" + (i - 3).ToString() + "=";
             GUILayout.Label(TriggeEvent_BlockDrawer.GC_EventVar, BloxEdGUI.Styles.IconLabel);
             GUILayout.Label(TriggeEvent_BlockDrawer.GC_Param, BloxEdGUI.Styles.FieldLabel);
             ed.DrawBlockField(null, bdi, i);
         }
     }
 }
Example #4
0
 public override void DrawFields(BloxEditorWindow ed, BloxBlockEd bdi)
 {
     if (bdi.b.paramBlocks == null)
     {
         bdi.b.paramBlocks = new BloxBlock[0];
     }
     GUILayout.Label(((Debug_Block)bdi.b).message, BloxEdGUI.Styles.FieldLabel);
     if (bdi.paramBlocks.Length != 0)
     {
         for (int i = 0; i < bdi.paramBlocks.Length; i++)
         {
             if (i != 0)
             {
                 GUILayout.Label(Debug_BlockDrawer.GC_Comma, BloxEdGUI.Styles.FieldLabel);
             }
             ed.DrawBlockField(null, bdi, i);
         }
     }
 }
Example #5
0
 public override void DrawFields(BloxEditorWindow ed, BloxBlockEd bdi)
 {
     GUILayout.Label(NOT_BlockDrawer.GC_Not, BloxEdGUI.Styles.ActionBoldLabel);
     ed.DrawBlockField(null, bdi, 0);
 }
Example #6
0
 public override void DrawFields(BloxEditorWindow ed, BloxBlockEd bdi)
 {
     ed.DrawBlockField(null, bdi, 0);
     GUILayout.Label(bdi.def.paramDefs[2].name, BloxEdGUI.Styles.ActionBoldLabel);
     ed.DrawBlockField(null, bdi, 1);
 }