<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ABarbershopSubmitFeatures</id>
	<title>API:BarbershopSubmitFeatures - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ABarbershopSubmitFeatures"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:BarbershopSubmitFeatures&amp;action=history"/>
	<updated>2026-10-17T13:13:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:BarbershopSubmitFeatures&amp;diff=30183&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:BarbershopSubmitFeatures&amp;diff=30183&amp;oldid=prev"/>
		<updated>2026-10-16T19:40:33Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Appearance}}&lt;br /&gt;
Sends the barbershop preview appearance to the server to make it the character&amp;#039;s new appearance.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BarbershopSubmitFeatures()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The call only has an effect while the barbershop is open. Otherwise nothing is sent.&lt;br /&gt;
* 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 [[API:BarbershopHaveFeaturesChanged|BarbershopHaveFeaturesChanged]] and its own token count.&lt;br /&gt;
* The server&amp;#039;s answer arrives as &amp;lt;code&amp;gt;SystemData.Events.INTERACT_BARBERSHOP_RESULT&amp;lt;/code&amp;gt;. The stock handler compares it with &amp;lt;code&amp;gt;GameData.BarberShopMessage&amp;lt;/code&amp;gt; values such as &amp;lt;code&amp;gt;SUCCESS&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;NOT_ENOUGH_TOKENS&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;BAD_VARIATION&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;ANOTHER_FORM&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;ea_barbershopwindow/source/barbershopwindow.lua&amp;lt;/code&amp;gt;, which asks for confirmation when tokens are needed:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local confirmText = GetStringFormat( StringTables.Default.TEXT_BARBERSHOP_TOKEN_CONFIRMATION, { towstring(numTokensRequired) } )&lt;br /&gt;
local yesText = GetString( StringTables.Default.LABEL_YES )&lt;br /&gt;
local noText = GetString( StringTables.Default.LABEL_NO )&lt;br /&gt;
DialogManager.MakeTwoButtonDialog( confirmText, yesText, BarbershopSubmitFeatures, noText, nil )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:BarbershopHaveFeaturesChanged|BarbershopHaveFeaturesChanged]]&lt;br /&gt;
* [[API:BarbershopSetFeature|BarbershopSetFeature]]&lt;br /&gt;
* [[API:BarbershopResetFeatures|BarbershopResetFeatures]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>