We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently the way that Lua is parsed and executes is kind of confusing:
public void ClickOnTrainButton() { LuaDoString("LoadAddOn\"Blizzard_TrainerUI\"f=ClassTrainerTrainButton;f.e=0;if f:GetScript\"OnUpdate\"then f:SetScript(\"OnUpdate\",nil)else f:SetScript(\"OnUpdate\",function(f,a)f.e=f.e+a;if f.e>.01 then f.e=0;f:Click()end end)end"); }
Why can't we have it like this?
public void ClickOnTrainButton() { LuaDoString(@" LoadAddOn"Blizzard_TrainerUI" local trainButton = ClassTrainerTrainButton trainButton.e = 0 if trainButton:GetScript"OnUpdate" then trainButton:SetScript("OnUpdate", nil) else trainButton:SetScript("OnUpdate", function(trainButton, e) trainButton.e = trainButton.e + e if trainButton.e > .01 then trainButton.e = 0 trainButton:Click() end end) end") }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently the way that Lua is parsed and executes is kind of confusing:
Why can't we have it like this?
The text was updated successfully, but these errors were encountered: