Browse Source

Fixed issue where +/- buttons would not work for font positioning.

pull/6/head
atom0s 7 years ago
parent
commit
de2b8ea357
  1. 6
      itemwatch.lua

6
itemwatch.lua

@ -25,7 +25,7 @@
_addon.author = 'atom0s'; _addon.author = 'atom0s';
_addon.name = 'ItemWatch'; _addon.name = 'ItemWatch';
_addon.version = '3.0.0'; _addon.version = '3.0.1';
require 'common' require 'common'
require 'imguidef' require 'imguidef'
@ -747,6 +747,8 @@ function render_configuration_editor()
save_settings(); save_settings();
end end
if (imgui.InputInt('Font X Position', variables['var_FontPositionX'][1])) then if (imgui.InputInt('Font X Position', variables['var_FontPositionX'][1])) then
local x = imgui.GetVarValue(variables['var_FontPositionX'][1]);
font:SetPositionX(x);
save_settings(); save_settings();
else else
if (font ~= nil) then if (font ~= nil) then
@ -754,6 +756,8 @@ function render_configuration_editor()
end end
end end
if (imgui.InputInt('Font Y Position', variables['var_FontPositionY'][1])) then if (imgui.InputInt('Font Y Position', variables['var_FontPositionY'][1])) then
local y = imgui.GetVarValue(variables['var_FontPositionY'][1]);
font:SetPositionY(y);
save_settings(); save_settings();
else else
if (font ~= nil) then if (font ~= nil) then

Loading…
Cancel
Save