Esempio n. 1
0
        /// <summary>
        /// Draw the body of the block.
        /// </summary>
        private static void DrawBody()
        {
            SimpleLayout.BeginVertical(Box.StyleCanvasBox);

            // draw name of the block
            eventBlock.name = HeroKitCommon.DrawBlockName(eventBlock.name);

            SimpleLayout.Line();
            SimpleLayout.Space(5);

            DrawEventTypeField();

            DrawIntConditionFields();

            DrawBoolConditionFields();

            SimpleLayout.EndVertical();
        }
Esempio n. 2
0
        /// <summary>
        /// Draw the body of the block.
        /// </summary>
        private static void DrawBody()
        {
            SimpleLayout.BeginVertical(Box.StyleCanvasBox);

            // draw name of the block
            action.name = HeroKitCommon.DrawBlockName(action.name);

            SimpleLayout.Line();

            // get current action template on hero object
            HeroKitAction oldTemplate = action.actionTemplate;

            // draw action field for block
            SimpleLayout.Space(5);
            SimpleLayout.BeginHorizontal();
            SimpleLayout.Label("Action:");
            action.actionTemplate = SimpleLayout.ObjectField(action.actionTemplate, HeroKitCommon.GetWidthForField(85));

            SimpleLayout.Space();
            SimpleLayout.EndHorizontal();

            // SHOW FIELDS FOR SPECIFIC ACTION
            if (action.actionTemplate != null)
            {
                SimpleLayout.Space(5);
                SimpleLayout.Line();
                SimpleLayout.Space(5);

                // build fields
                ActionBlockBuilder.BuildFields(heroObject, action, action.actionTemplate, oldTemplate);

                // build description for action
                SimpleLayout.Space(5);
                SimpleLayout.Line();
                SimpleLayout.Label("Description:");
                SimpleLayout.Label(action.actionTemplate.description, true);
            }


            SimpleLayout.EndVertical();
        }
Esempio n. 3
0
        /// <summary>
        /// Draw the body of the block.
        /// </summary>
        private static void DrawBody()
        {
            SimpleLayout.BeginVertical(Box.StyleCanvasBox);

            // draw name of the block
            stateBlock.name = HeroKitCommon.DrawBlockName(stateBlock.name);

            SimpleLayout.Line();
            SimpleLayout.Space(5);

            // draw the conditions for the block
            DrawIntConditionFields();
            DrawBoolConditionFields();

            SimpleLayout.Space(5);
            SimpleLayout.Line();
            SimpleLayout.Space(5);

            // draw the image for the block
            DrawVisualsTypeForState();

            SimpleLayout.EndVertical();
        }