Skip to main content

GuiTriangle

2D Gui triangle rendering class. See: http://wiki.roblox.com/index.php?title=2D_triangles

Functions

new

GuiTriangle.new(parentInstance) → GuiTriangle

SetParent

GuiTriangle:SetParent(parentInstance) → ()

Show

GuiTriangle:Show() → ()

Shows the triangle

Set

GuiTriangle:Set() → GuiTriangle--

self

Sets the points to render

Hide

GuiTriangle:Hide() → ()

Hides the triangle

SetA

GuiTriangle:SetA(aVector2) → GuiTriangle--

self

Sets the point

SetB

GuiTriangle:SetB(bVector2) → GuiTriangle--

self

Sets the point

SetC

GuiTriangle:SetC(cVector2) → GuiTriangle--

self

Sets the point

UpdateRender

GuiTriangle:UpdateRender() → ()

Updates the render of the triangle.

Destroy

GuiTriangle:Destroy() → ()

Cleans up the triangle.

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "",
            "params": [
                {
                    "name": "parent",
                    "desc": "",
                    "lua_type": "Instance"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "GuiTriangle"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 17,
                "path": "src/guitriangle/src/Client/GuiTriangle.lua"
            }
        },
        {
            "name": "SetParent",
            "desc": "",
            "params": [
                {
                    "name": "parent",
                    "desc": "",
                    "lua_type": "Instance"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 37,
                "path": "src/guitriangle/src/Client/GuiTriangle.lua"
            }
        },
        {
            "name": "Show",
            "desc": "Shows the triangle",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 45,
                "path": "src/guitriangle/src/Client/GuiTriangle.lua"
            }
        },
        {
            "name": "Set",
            "desc": "Sets the points to render",
            "params": [
                {
                    "name": "a",
                    "desc": "",
                    "lua_type": "Vector2"
                },
                {
                    "name": "b",
                    "desc": "",
                    "lua_type": "Vector2"
                },
                {
                    "name": "c",
                    "desc": "",
                    "lua_type": "Vector2"
                }
            ],
            "returns": [
                {
                    "desc": "self",
                    "lua_type": "GuiTriangle"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 57,
                "path": "src/guitriangle/src/Client/GuiTriangle.lua"
            }
        },
        {
            "name": "Hide",
            "desc": "Hides the triangle",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 68,
                "path": "src/guitriangle/src/Client/GuiTriangle.lua"
            }
        },
        {
            "name": "SetA",
            "desc": "Sets the point",
            "params": [
                {
                    "name": "a",
                    "desc": "",
                    "lua_type": "Vector2"
                }
            ],
            "returns": [
                {
                    "desc": "self",
                    "lua_type": "GuiTriangle"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 88,
                "path": "src/guitriangle/src/Client/GuiTriangle.lua"
            }
        },
        {
            "name": "SetB",
            "desc": "Sets the point",
            "params": [
                {
                    "name": "b",
                    "desc": "",
                    "lua_type": "Vector2"
                }
            ],
            "returns": [
                {
                    "desc": "self",
                    "lua_type": "GuiTriangle"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 99,
                "path": "src/guitriangle/src/Client/GuiTriangle.lua"
            }
        },
        {
            "name": "SetC",
            "desc": "Sets the point",
            "params": [
                {
                    "name": "c",
                    "desc": "",
                    "lua_type": "Vector2"
                }
            ],
            "returns": [
                {
                    "desc": "self",
                    "lua_type": "GuiTriangle"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 110,
                "path": "src/guitriangle/src/Client/GuiTriangle.lua"
            }
        },
        {
            "name": "UpdateRender",
            "desc": "Updates the render of the triangle.",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 119,
                "path": "src/guitriangle/src/Client/GuiTriangle.lua"
            }
        },
        {
            "name": "Destroy",
            "desc": "Cleans up the triangle.",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 172,
                "path": "src/guitriangle/src/Client/GuiTriangle.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "GuiTriangle",
    "desc": "2D Gui triangle rendering class.\nSee: http://wiki.roblox.com/index.php?title=2D_triangles",
    "source": {
        "line": 7,
        "path": "src/guitriangle/src/Client/GuiTriangle.lua"
    }
}