Skip to main content

InputImageLibrary

InputImageLibrary with a variety of dark and light themed icons for inputs on keyboard, xbox, touched events, mouse, and more.

Functions

GetPreloadAssetIds

InputImageLibrary:GetPreloadAssetIds() → {string}

Retrieves all the asset ids to preload

GetSprite

InputImageLibrary:GetSprite(
keyCodeany,--

The sprite keyCode to get

preferredStylestring,--

The preferred style type to retrieve this in

preferredPlatformstring--

The preferred platform to get the sprite for

) → Sprite

Retrieves a sprite from the library

StyleImage

InputImageLibrary:StyleImage(
keyCodeany,--

The sprite keyCode to get

preferredStylestring,--

The preferred style type to retrieve this in

preferredPlatformstring--

The preferred platform to get the sprite for

) → Sprite

Styles a GUI for a specific keycode

local InputImageLibrary = require("InputImageLibrary")
InputImageLibrary:StyleImage(script.Parent, Enum.KeyCode.ButtonA)
Show raw api
{
    "functions": [
        {
            "name": "GetPreloadAssetIds",
            "desc": "Retrieves all the asset ids to preload",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "{ string }"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 32,
                "path": "src/sprites/src/Shared/InputImageLibrary/init.lua"
            }
        },
        {
            "name": "GetSprite",
            "desc": "Retrieves a sprite from the library",
            "params": [
                {
                    "name": "keyCode",
                    "desc": "The sprite keyCode to get",
                    "lua_type": "any"
                },
                {
                    "name": "preferredStyle",
                    "desc": "The preferred style type to retrieve this in",
                    "lua_type": "string"
                },
                {
                    "name": "preferredPlatform",
                    "desc": "The preferred platform to get the sprite for",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Sprite"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 63,
                "path": "src/sprites/src/Shared/InputImageLibrary/init.lua"
            }
        },
        {
            "name": "StyleImage",
            "desc": "Styles a GUI for a specific keycode\n\n```lua\nlocal InputImageLibrary = require(\"InputImageLibrary\")\nInputImageLibrary:StyleImage(script.Parent, Enum.KeyCode.ButtonA)\n```",
            "params": [
                {
                    "name": "gui",
                    "desc": "",
                    "lua_type": "ImageLabel | ImageButton"
                },
                {
                    "name": "keyCode",
                    "desc": "The sprite keyCode to get",
                    "lua_type": "any"
                },
                {
                    "name": "preferredStyle",
                    "desc": "The preferred style type to retrieve this in",
                    "lua_type": "string"
                },
                {
                    "name": "preferredPlatform",
                    "desc": "The preferred platform to get the sprite for",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Sprite"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 90,
                "path": "src/sprites/src/Shared/InputImageLibrary/init.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "InputImageLibrary",
    "desc": "InputImageLibrary with a variety of dark and light themed icons for inputs on keyboard, xbox, touched events,\nmouse, and more.",
    "source": {
        "line": 7,
        "path": "src/sprites/src/Shared/InputImageLibrary/init.lua"
    }
}