class MAGES::RuntimeToolsSubModule

Overview

A sub module for the runtime tools. More…

class RuntimeToolsSubModule: public MAGES::SubModule
{
public:
    // structs

    struct Tool;

    // classes

    class RuntimeToolsGUI;

    // methods

    override void Startup();
    override void Shutdown();
    void RegisterTool(string name, System.Action onClick);
    void RegisterTool(System.Func getName, System.Action onClick);
};

Inherited Members

public:
    // properties

    int Version;

    // methods

    void Startup();
    void Shutdown();
    virtual void UpdateModule(UpdatePhase updatePhase);

Detailed Documentation

A sub module for the runtime tools.

Methods

void RegisterTool(string name, System.Action onClick)

Registers a tool.

Parameters:

name

The name of the tool.

onClick

The action to invoke when the tool is selected.

void RegisterTool(System.Func getName, System.Action onClick)

Registers a tool.

Parameters:

getName

Invoked per frame to compute the name of the button.

onClick

The action to invoke when the tool is selected.