Updated to fix resize issue,

master
KoopaTroopa 3 years ago
parent 17e884248d
commit df60f8ca5f

@ -155,7 +155,7 @@ require "gmcphelper"
require "copytable" require "copytable"
require "serialize" require "serialize"
default_x = 868 default_x = 868 + Theme.RESIZER_SIZE + 2
default_y = 336 default_y = 336
default_height = 215 default_height = 215
default_width = 269 default_width = 269
@ -166,7 +166,9 @@ show_hp = tonumber (GetVariable ("show_hp")) or 1
show_mn = tonumber (GetVariable ("show_mn")) or 1 show_mn = tonumber (GetVariable ("show_mn")) or 1
show_mv = tonumber (GetVariable ("show_mv")) or 1 show_mv = tonumber (GetVariable ("show_mv")) or 1
hidden = tonumber (GetVariable ("hidden")) or 0 hidden = tonumber (GetVariable ("hidden")) or 0
flat_gauges = tonumber (GetVariable("flat_gauges")) or 0 gauge_style = tonumber(GetVariable("flat_gauges")) or tonumber(GetVariable("gauge_style")) or 0
DeleteVariable("flat_gauges")
number_style = tonumber(GetVariable("number_style")) or 1
overlay_numbers = tonumber(GetVariable("overlay_numbers")) or 0 overlay_numbers = tonumber(GetVariable("overlay_numbers")) or 0
GAP = 2 GAP = 2
font_size = 8 font_size = 8
@ -663,7 +665,7 @@ function ResizeReleaseCallback()
end end
function MouseDown(flags, hotspot_id) function MouseDown(flags, hotspot_id)
if (hotspot_id == "resize") then if (hotspot_id == win.."_resize") then
startx, starty = WindowInfo (win, 17), WindowInfo (win, 18) startx, starty = WindowInfo (win, 17), WindowInfo (win, 18)
end end
end end

Loading…
Cancel
Save