Skip to content

Commit

Permalink
Merge pull request #150 from Elesario/Fishing-hide-enemy-nameplate-au…
Browse files Browse the repository at this point in the history
…tomation

Update OutfitterScripting.lua to add nameplate option to fishing
  • Loading branch information
cdmichaelb authored Oct 9, 2023
2 parents 4aa396f + ceef215 commit f97b794
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions OutfitterScripting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,7 @@ end
[[
-- $SETTING EnableFishTracking={type="boolean", label="Select Track Fish while equipped", default=true}
-- $SETTING EnableAutoLoot={type="boolean", label="Enable auto loot while equipped"}
-- $SETTING DisableEnemyNamePlates={type="boolean", label="Disable enemy name bars while equiped", default=false}
-- $SETTING DisableClicktoMove={type="boolean", label="Disable Click-to-Move while equipped", default=true}
-- $SETTING ChangeActionBar={type="boolean", label="Switch action bars while equipped", default=false}
-- $SETTING ActionBarNumber={type="number", label="Action bar (1 - 6)", default=1}
Expand Down Expand Up @@ -841,6 +842,12 @@ if event == "OUTFIT_EQUIPPED" then
setting.didChangeActionBar = true
end
if setting.DisableEnemyNamePlates then
setting.savedShowEnemies = GetCVar("nameplateShowEnemies")
SetCVar("nameplateShowEnemies", 0)
setting.didChangeShowEnemies = true
end
-- Turn auto looting back off if the outfit is being unequipped and we turned it on
elseif event == "OUTFIT_UNEQUIPPED" then
Expand Down Expand Up @@ -871,6 +878,12 @@ elseif event == "OUTFIT_UNEQUIPPED" then
setting.didChangeActionBar = nil
setting.savedActionBar = nil
end
if setting.didChangeShowEnemies then
SetCVar("nameplateShowEnemies", setting.savedShowEnemies)
setting.didChangeShowEnemies = nil
setting.savedShowEnemies = nil
end
end
if equip == equipped then
Expand Down

0 comments on commit f97b794

Please sign in to comment.