Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:BarbershopHaveFeaturesChanged

From RoR Wiki
Revision as of 19:40, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 – true if 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 then true.

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

See also