class MAGES::Analytics::Editor::DidNotPerformRequiredActionUI¶
Overview¶
Class for the analytics type that triggers an error when an action is not performed while another action is still running. More…
class DidNotPerformRequiredActionUI: public MAGES::Analytics::Editor::BaseAnalyticsUI { public: // methods DidNotPerformRequiredActionUI(Listactions); virtual override void Draw( AnalyticsScriptableObject so, VisualElement foldout, bool isObjective, bool editMode, string entryName ); virtual override void Save( AnalyticsScriptableObject so, string name, string typeOfError, string info, int penalty ); virtual override void Delete(AnalyticsScriptableObject so, string key); };
Inherited Members¶
public: // methods void Initialize( AnalyticsScriptableObject so, string entryName, string assetName, string savePath, VisualElement parent, VisualElement foldout, AnalyticsTypes.Type type, Type internalType, Type internalTypeUI, bool editMode, ScrollView existingItemsView, List> items, BaseAnalyticsStateMachine stateMachine ); virtual void Save( AnalyticsScriptableObject so, string name, string typeOfError, string info, int penalty ); virtual void Delete(AnalyticsScriptableObject so, string key); virtual void Draw( AnalyticsScriptableObject so, VisualElement foldout, bool isObjective, bool editMode = false, string entryName = "" );
Detailed Documentation¶
Class for the analytics type that triggers an error when an action is not performed while another action is still running.
Methods¶
DidNotPerformRequiredActionUI(Listactions)
Initializes a new instance of the DidNotPerformRequiredActionUI class.
Parameters:
actions |
The available actions. |
virtual override void Draw( AnalyticsScriptableObject so, VisualElement foldout, bool isObjective, bool editMode, string entryName )
Draws the analytics object specific UI elements.
Parameters:
so |
The scriptable object that the data are stored to. |
foldout |
The parent foldout element that the analytics object specific UI elements will be under. |
isObjective |
Specifies is the analytics object is for the objective UI or not. |
editMode |
Specifies whether or not we are int edit or create mode. |
entryName |
The name of the current entry that gets edited. |
virtual override void Save( AnalyticsScriptableObject so, string name, string typeOfError, string info, int penalty )
Saves the changes made to this analytics entry.
Parameters:
so |
The scriptable object that the data are stored to. |
name |
The name of the error to save. |
typeOfError |
The type of the error to save. |
info |
The info of the error to save. |
penalty |
The penalty of the error to save. |
virtual override void Delete(AnalyticsScriptableObject so, string key)
Deletes the specified analytics object from the scriptable object and UI.
Parameters:
so |
The scriptable object that the data are stored to. |
key |
The name of the error to delete. |