Browse Source

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

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

10
itemwatch.lua

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

Loading…
Cancel
Save