Container

This method creates a container for CUI elements with the specified parameters. It returns a CuiElementContainer object.

public CuiElementContainer CreateContainer(
    string panel,
    string color = "0 0 0 0", 
    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, 
    ClientPanels parent = ClientPanels.Overlay, 
    string destroyUi = null)

Creating the initial container comes with a default image only if the colour of the panel is not "0 0 0 0".

Last updated