Image

Create an image using the ID generated by Carbon's built-in Image Database module.

Pair<string, CuiElement> CreateImage(
    CuiElementContainer container,
    string parent,
    uint png,
    string color,
    float xMin = 0f,
    float xMax = 1f,
    float yMin = 0f,
    float yMax = 1f,
    float OxMin = 0f,
    float OxMax = 0f,
    float OyMin = 0f,
    float OyMax = 0f,
    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
);
Pair<string, CuiElement> CreateImage(
    CuiElementContainer container,
    string parent,
    string url,
    string color,
    float xMin = 0f,
    float xMax = 1f,
    float yMin = 0f,
    float yMax = 1f,
    float OxMin = 0f,
    float OxMax = 0f,
    float OyMin = 0f,
    float OyMax = 0f,
    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
);
Pair<string, CuiElement> CreateImage(
    CuiElementContainer container,
    string parent,
    string url,
    float scale,
    string color,
    float xMin = 0f,
    float xMax = 1f,
    float yMin = 0f,
    float yMax = 1f,
    float OxMin = 0f,
    float OxMax = 0f,
    float OyMin = 0f,
    float OyMax = 0f,
    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