Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:BarbershopSubmitFeatures

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

Sends the barbershop preview appearance to the server to make it the character's new appearance.

BarbershopSubmitFeatures()

Arguments

None.

Returns

Nothing.

Details

  • The call only has an effect while the barbershop is open. Otherwise nothing is sent.
  • The client sends the 15 appearance values of the preview to the server. The client does not check whether anything changed or whether the player can pay; the stock UI does that first with BarbershopHaveFeaturesChanged and its own token count.
  • The server's answer arrives as SystemData.Events.INTERACT_BARBERSHOP_RESULT. The stock handler compares it with GameData.BarberShopMessage values such as SUCCESS, NOT_ENOUGH_TOKENS, BAD_VARIATION and ANOTHER_FORM.

Errors

None.

Example

From ea_barbershopwindow/source/barbershopwindow.lua, which asks for confirmation when tokens are needed:

local confirmText = GetStringFormat( StringTables.Default.TEXT_BARBERSHOP_TOKEN_CONFIRMATION, { towstring(numTokensRequired) } )
local yesText = GetString( StringTables.Default.LABEL_YES )
local noText = GetString( StringTables.Default.LABEL_NO )
DialogManager.MakeTwoButtonDialog( confirmText, yesText, BarbershopSubmitFeatures, noText, nil )

See also