Note: due to massive spam issues, the forum registration is now closed. If needed, you may still contact me at the following address:

hello
i want to write a plugin so i can cange te skin from a lua code
how can i proceed ?
is there a method in the api?





Hi, I've uploaded a dev version which allows changing the skin from Lua: Appetizer_1.3.2.458-dev.zip It provides two new functions - one to get the list of the available skins, and one to set the skin. The function you need is appetizer:setSkin, which takes as a parameter the name of the skin folder. Here's an example:

-- Get the list of available skins
skinNames = appetizer:getSkinNames()
 
for key, value in pairs(skinNames) do
   -- Print the skin names
   trace(key, value)
end
 
-- Change the current skin to the BlueGlass skin:
appetizer:setSkin("BlueGlass");

It didn't do much testing on it, so let me know if you find any issue.