Skip to content

Refresh uvars and Combat Text events on FCT SetValue - #4

Merged
Stanzilla merged 2 commits into
Stanzilla:masterfrom
Ketho:master
Aug 12, 2016
Merged

Stanzilla merged 2 commits into
Stanzilla:masterfrom
Ketho:master

Conversation

@Ketho

@Ketho Ketho commented Aug 12, 2016

Copy link
Copy Markdown
Contributor

Updates the FCT events when changing the "Scrolling Combat Text for Self" options, otherwise a /reload or relog would be required for the changes to show up

Comment thread basicOptions.lua Outdated
info.func = function(self)
addon:SetCVar("floatingCombatTextFloatMode", self.value)
UIDropDownMenu_SetSelectedValue(dropdown, self.value)
if not InCombatLockdown() then

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is InCombatLockdown() needed here? We already close the options when combat starts and they can't be opened in combat anyway.

@Ketho Ketho Aug 12, 2016 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ow, I still managed to keep the options window open somehow, but removed that unneeded conditional now

@Stanzilla
Stanzilla merged commit a6d5e0e into Stanzilla:master Aug 12, 2016
@Stanzilla

Copy link
Copy Markdown
Owner

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants