Browse Source

settings now save on a per-char basis

master
matix 6 years ago
parent
commit
2d1d344093
  1. 4
      recast.lua

4
recast.lua

@ -92,7 +92,7 @@ end @@ -92,7 +92,7 @@ end
----------------------------------------------------------------------------------------------------
ashita.register_event('load', function()
-- Attempt to load the fps configuration..
recast_config = ashita.settings.load_merged(_addon.path .. 'settings/settings.json', recast_config);
recast_config = ashita.settings.load_merged(_addon.path .. 'settings/' .. AshitaCore:GetDataManager():GetParty():GetMemberName(0) .. '.settings.json', recast_config);
-- Create our font object..
local f = AshitaCore:GetFontManager():Create('__recast_addon');
@ -117,7 +117,7 @@ ashita.register_event('unload', function() @@ -117,7 +117,7 @@ ashita.register_event('unload', function()
recast_config.font.position = { f:GetPositionX(), f:GetPositionY() };
-- Save the configuration..
ashita.settings.save(_addon.path .. 'settings/settings.json', recast_config);
ashita.settings.save(_addon.path .. 'settings/' .. AshitaCore:GetDataManager():GetParty():GetMemberName(0) .. '.settings.json', recast_config);
-- Unload our font object..
AshitaCore:GetFontManager():Delete('__recast_addon');

Loading…
Cancel
Save