-
Notifications
You must be signed in to change notification settings - Fork 78
Skin (library)
Aaron H edited this page Nov 29, 2016
·
1 revision
The Love Frames skins library houses functions that relate to skin files.
#Functions
Registers a skin
loveframes.skins.Register(skin[table])
Gets all available skins
Returns 1 value: available skins [table]
local skin = loveframes.skins.GetAvailable()
Gets a skin by its name
Returns 1 value: skin [table]
local skin = loveframes.skins.Get(skin_name[string])
Sets the value of a control registered to a specific skin
loveframes.skins.SetControl(skin_name[string], control[string], value[any])
Sets the value of an image index on the specified skin
loveframes.skins.SetImage(skin_name[string], image_index[string], new_image[iamge])
Sets the image directory of the specified skin
loveframes.skins.SetImageDirectory(skin_name[string], directory[string])
Reloads a skin's images based on the contents of its image directory
loveframes.skins.ReloadImages(skin_name[string])