/// <summary> /// Show the state in the canvas window. /// </summary> /// <param name="stateID">ID of the state.</param> public static void showBlockContent(int stateID) { HeroKitCommon.ResetCanvasContent(); HeroObjectMenuBlock.typeID = 1; HeroObjectMenuBlock.stateFocus = true; HeroObjectMenuBlock.stateID = stateID; }
/// <summary> /// Show the variable type in the canvas window. /// </summary> /// <param name="variableID">ID of the variable type.</param> public static void showBlockContent(int variableID) { HeroKitCommon.ResetCanvasContent(); HeroObjectMenuBlock.typeID = 5; HeroObjectMenuBlock.variableFocus = true; HeroObjectMenuBlock.variableID = variableID; }
/// <summary> /// Show the state in the canvas window. /// </summary> /// <param name="propertyID">ID of the state.</param> public static void showBlockContent(int propertyID) { HeroKitCommon.ResetCanvasContent(); HeroObjectMenuBlock.typeID = 4; HeroObjectMenuBlock.propertyFocus = true; HeroObjectMenuBlock.propertyID = propertyID; }
/// <summary> /// Show the variable type in the canvas window. /// </summary> /// <param name="globalID">ID of the variable type.</param> public static void showBlockContent(int globalID) { HeroKitCommon.ResetCanvasContent(); HeroObjectMenuBlock.typeID = 6; HeroObjectMenuBlock.globalFocus = true; HeroObjectMenuBlock.globalID = globalID; }
/// <summary> /// Show the event in the canvas window. /// </summary> /// <param name="eventID">ID of the event.</param> private static void showBlockContent(int eventID) { HeroKitCommon.ResetCanvasContent(); HeroObjectMenuBlock.typeID = 2; HeroObjectMenuBlock.stateFocus = true; HeroObjectMenuBlock.stateID = stateIndex; HeroObjectMenuBlock.eventID = eventID; }
/// <summary> /// Show the action in the canvas window. /// </summary> /// <param name="actionID">ID of the action.</param> /// <param name="eventID">ID of the event where the action resides.</param> /// <param name="stateID">ID of the state where the action resides.</param> public static void showBlockContent(int actionID, int eventID, int stateID) { HeroKitCommon.ResetCanvasContent(); HeroObjectMenuBlock.typeID = 3; HeroObjectMenuBlock.stateFocus = true; HeroObjectMenuBlock.stateID = stateID; HeroObjectMenuBlock.eventID = eventID; HeroObjectMenuBlock.actionID = actionID; }
/// <summary> /// Click on the button in the block. /// </summary> private static void clickOptionsButton() { HeroKitCommon.ResetCanvasContent(); if (forProperties) { HeroPropertyMenuBlock.variableID = -1; } else { HeroObjectMenuBlock.typeID = 7; HeroObjectMenuBlock.settingsFocus = true; } }
// -------------------------------------------------------------- // Methods (On Click State in Menu) // -------------------------------------------------------------- /// <summary> /// Show the state in the canvas window. /// </summary> /// <param name="itemID">ID of the state.</param> public static void showBlockContent(int itemID) { HeroKitCommon.ResetCanvasContent(); HeroKitMenuBlock.itemFocus = true; HeroKitMenuBlock.itemID = itemID; }