How can I turn this into a togglable key?
Code:
/run SetCVar("UIScale", 0.65) I'd like to be able to bind the max ui scale and the min ui scale into a single key via an addon. What else do I need? Code:
local binding = "F1"; |
Code:
/run SetCVar(GetCVar("UIScale")=="1.15" and "0.65" or "1.15") |
Quote:
|
Quote:
|
Quote:
|
Quote:
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") To make this into a minimal addon you'd need something like this. 1. Bindings.xml file with Code:
<Bindings> Code:
BINDING_HEADER_CHEESY_UISCALE_TITLE = "CheeseWiz UI Scale" |
How do you assign a keybind within Bindings.xml with what you wrote?
I'm thinking it has to do with Cheesy_UIScaleToggle(); but I'm not sure. |
You assign it from the default keybindings menu under Addons.
|
All times are GMT -6. The time now is 12:41 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI