Button

Pair<string, CuiElement, CuiElement> CreateButton(
    CuiElementContainer container,
    string parent,
    string color,
    string textColor,
    string text,
    int size,
    float xMin = 0f,
    float xMax = 1f,
    float yMin = 0f,
    float yMax = 1f,
    float OxMin = 0f,
    float OxMax = 0f,
    float OyMin = 0f,
    float OyMax = 0f,
    string command = null,
    TextAnchor align = TextAnchor.MiddleCenter,
    Handler.FontTypes font = Handler.FontTypes.RobotoCondensedRegular,
    float fadeIn = 0f,
    float fadeOut = 0f,
    bool needsCursor = false,
    bool needsKeyboard = false,
    string outlineColor = null,
    string outlineDistance = null,
    bool outlineUseGraphicAlpha = false,
    string id = null,
    string destroyUi = null,
    bool update = false
);

Last updated