API:BarbershopResetFeatures
From RoR Wiki
UI Lua API · Appearance functions
Version: WAR 1.4.8
Resets the barbershop preview to the character's current appearance.
BarbershopResetFeatures()
Arguments
None.
Returns
Nothing.
Details
- The client copies the player's stored appearance values back into the barbershop preview. This undoes all BarbershopSetFeature changes.
- It then fires
SystemData.Events.INTERACT_BARBERSHOP_FEATURE_UPDATEwith the feature table, as BarbershopSetFeature does. - If there is no player, nothing happens. If the barbershop is not open, nothing is copied.
Errors
None.
Example
From ea_barbershopwindow/source/barbershopwindow.lua:
function BarbershopWindow.Reset()
BarbershopResetFeatures()
end
