Exemplo n.º 1
0
        /// <summary>
        /// Draw the block.
        /// </summary>
        private static void DrawBlock()
        {
            // draw the properties
            //PropertyMenuBlock.Block(heroObject);

            // draw the list of hero properties
            PropertyListMenuBlock.Block(heroObject);

            // draw the states
            StateMenuBlock.Block(heroObject);

            // draw the variables
            VariablesMenuBlock.Block(heroObject);

            // draw the global variables
            GlobalsMenuBlock.Block(heroObject);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Go up to Properties from States.
        /// </summary>
        private static void gotoPropertiesFromStates()
        {
            // if property list is expanded and if there are any properties, go to the last property.
            // if property list is expanded and there are no properties, go to properties heading
            if (heroObject.propertiesList.visible)
            {
                int propertyCount = heroObject.propertiesList.properties.Count;
                if (propertyCount > 0)
                {
                    PropertyListMenuBlock.showBlockContent(propertyCount - 1);
                }
                else
                {
                    gotoPropertiesTitle();
                }
            }

            // go to state heading
            else
            {
                gotoPropertiesTitle();
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Go to Properties from first property.
 /// </summary>
 private static void gotoPropertiesTitle()
 {
     PropertyListMenuBlock.showBlockTitle();
 }