Quote:
Originally Posted by cheesewiz
(Post 340330)
|
This was just a script that you would run directly in chatframe to test if the code works.
To assign it to a keybind and make it into an addon you'd need a couple more steps.
As to why it does nothing, are you sure you have "Use UI Scale" option checked?
You can find it at Esc > System > Advanced or by
Code:
/dump GetCVar("useUIScale")
If it doesn't return "1" that's your problem.
To make this into a minimal addon you'd need something like this.
1. Bindings.xml file with
Code:
<Bindings>
<Binding name="CHEESY_UISCALE_TOGGLE" header="CHEESY_UISCALE_TITLE" category="ADDONS">
Cheesy_UIScaleToggle();
</Binding>
</Bindings>
2. cheesy.lua file with
Code:
BINDING_HEADER_CHEESY_UISCALE_TITLE = "CheeseWiz UI Scale"
BINDING_NAME_CHEESY_UISCALE_TOGGLE = "Toggle UI Scale"
function Cheesy_UIScaleToggle()
SetCVar("useUIScale","1")
SetCVar((GetCVar("uiScale")=="1.15") and "0.65" or "1.15")
end
Finally a .toc file that loads the lua.
|