<?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%3ACharacterSettingsGetData</id>
	<title>API:CharacterSettingsGetData - 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%3ACharacterSettingsGetData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:CharacterSettingsGetData&amp;action=history"/>
	<updated>2026-10-18T06:58:45Z</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:CharacterSettingsGetData&amp;diff=30220&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:CharacterSettingsGetData&amp;diff=30220&amp;oldid=prev"/>
		<updated>2026-10-16T19:41:08Z</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=CharacterSettings}}&lt;br /&gt;
Returns the current character&amp;#039;s UI profile settings: the active profile and the list of profiles the character can use.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
characterSettings = CharacterSettingsGetData()&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;
;characterSettings : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – A table with these fields:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;activeUiProfile&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Name of the active UI profile. &amp;lt;code&amp;gt;L&amp;quot;&amp;quot;&amp;lt;/code&amp;gt; when no profile is active.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isRunningDefaultUi&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || The &amp;quot;running the default UI&amp;quot; flag. [[API:CharacterSettingsClearRunningDefaultUiFlag|CharacterSettingsClearRunningDefaultUiFlag]] clears it.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;uiProfiles&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of profile tables, indexed from 1.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each profile table has these fields:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;server&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Server name of the character that owns the profile.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;character&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Name of the character that owns the profile.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Profile name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;path&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Folder of the profile&amp;#039;s files. The stock UI passes it to [[API:CharacterSettingsImportUiProfile|CharacterSettingsImportUiProfile]] and [[API:CharacterSettingsSetActiveUiProfile|CharacterSettingsSetActiveUiProfile]].&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isShared&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if the profile is shared with other characters. See [[API:CharacterSettingsSetUiProfileShared|CharacterSettingsSetUiProfileShared]].&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isOwnedByActiveCharacter&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if the current character owns the profile. Only owned profiles can be renamed, removed, exported or imported into.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;lastUpdated&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Last update time of the profile, with the number fields &amp;lt;code&amp;gt;year&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;month&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;day&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;hour&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;minute&amp;lt;/code&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* A new table is built on every call.&lt;br /&gt;
* The &amp;lt;code&amp;gt;uiProfiles&amp;lt;/code&amp;gt; list contains the profiles known to the current character&amp;#039;s settings. That includes shared profiles of other characters. [[API:CharacterSettingsGetAllUiProfiles|CharacterSettingsGetAllUiProfiles]] lists the profiles of all characters instead.&lt;br /&gt;
* While a character deletion is being handled (see [[API:CharacterSettingsHandleDeletedCharacter|CharacterSettingsHandleDeletedCharacter]]), the data is that of the character being deleted.&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_uiprofileswindow/source/characterdeletedhandler.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local characterSettings = CharacterSettingsGetData()&lt;br /&gt;
&lt;br /&gt;
-- Examine the Profiles data&lt;br /&gt;
for _, profileData in ipairs( characterSettings.uiProfiles )&lt;br /&gt;
do&lt;br /&gt;
    if( profileData.isShared )&lt;br /&gt;
    then&lt;br /&gt;
        -- ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:CharacterSettingsGetAllUiProfiles|CharacterSettingsGetAllUiProfiles]]&lt;br /&gt;
* [[API:CharacterSettingsSetActiveUiProfile|CharacterSettingsSetActiveUiProfile]]&lt;br /&gt;
* [[API:CharacterSettingsClearRunningDefaultUiFlag|CharacterSettingsClearRunningDefaultUiFlag]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>