Remove get_portrait(..)

This commit is contained in:
marco_a 2024-07-27 11:35:45 +02:00
parent 7ae3a5b6f8
commit 55e292cf70
3 changed files with 0 additions and 7 deletions

View File

@ -57,7 +57,6 @@ Data about collections can be retrieved via a few functions like `get_collection
* `collectible_skins.get_skins_amount(<coll_name>)`: returns the amount of the current skins. Can filter by collection
* `collectible_skins.get_skin(skin_name)`: returns a copy of the skin corresponding to `skin_name`, if any
* `collectible_skins.get_collection(coll_name)`: returns a copy of the specified collection, format `{coll_name = coll_data}`
* `collectible_skins.get_portrait(skin)`: returns the portrait associated to the skin, if any. This only works with Minecraft-like textures and it'll probably be removed in the future: *do not* rely on it
* `collectible_skins.get_player_skins(p_name, <coll_name>)`: returns a table containing as value all the skins that `p_name` has unlocked, format `{"skin_name1", "skin_name2"}`. Can filter by collection
* `collectible_skins.get_player_skin(p_name)`: returns a copy of the skin that `p_name` has currently equipped

View File

@ -330,12 +330,6 @@ end
function collectible_skins.get_portrait(skin)
return "([combine:24x24:0,0=" .. skin.texture .. "^[mask:cskins_portraitmask.png)"
end
function collectible_skins.get_player_skins(p_name, coll_name)
try_to_load_player(p_name)
if not players_skins[p_name] then return {} end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 B