API:BarbershopHaveFeaturesChanged
From RoR Wiki
UI Lua API · Appearance functions
Version: WAR 1.4.8
Returns whether the barbershop preview differs from the character's current appearance.
changed = BarbershopHaveFeaturesChanged()
Arguments
None.
Returns
- changed
boolean–trueif at least one appearance value of the preview differs from the player's stored value.
Details
- The client compares the 15 appearance values of the preview with the player's stored ones.
- If there is no player or the barbershop is not open, the function returns nothing.
not BarbershopHaveFeaturesChanged()is thentrue.
Errors
None.
Example
From ea_barbershopwindow/source/barbershopwindow.lua:
function BarbershopWindow.CheckOut()
if ( not BarbershopHaveFeaturesChanged() )
then
local errorText = GetString( StringTables.Default.TEXT_BARBERSHOP_NO_CHANGES )
local okayText = GetString( StringTables.Default.LABEL_OKAY )
DialogManager.MakeOneButtonDialog( errorText, okayText )
return
end
