function GG.ProcessInput( uiMsg, wParam, lParam )
if GG.updateOptions then --used to force update options screen on actions
if( uiMsg == MouseEvents.MouseMove ) then
Controls.MainWindow:SetHide(false)
GG.UpdateDisplay()
GG.updateOptions = false
end
end
if GG.moveMode then --move main window
Controls.MainWindow:SetHide(false) --was temporarily hidden to get mouse movements registered
if( uiMsg == MouseEvents.MouseMove ) then
x, y = UIManager:GetMousePos()
Controls.MainWindow:SetAnchor("L,T")
Controls.MainWindow:SetOffsetVal(x+1, y) -- +1 to avoid clicking the element
end
if( uiMsg == MouseEvents.LButtonUp ) then
x, y = UIManager:GetMousePos()
Controls.MainWindow:SetAnchor("L,T")
Controls.MainWindow:SetOffsetVal(x+1, y) -- -1 to help position on top and left edges
GG.S.Settings.windowX = x+1
GG.S.Settings.windowY = y
GG.moveMode = false
end
end
if GG.moveMode2 then --move main button
if( uiMsg == MouseEvents.MouseMove ) then
x, y = UIManager:GetMousePos()
Controls.MainButton:SetAnchor("L,B")
Controls.MainButton:SetOffsetVal(x+1, 0) -- +1 to avoid clicking the element
end
if( uiMsg == MouseEvents.LButtonUp ) then
x, y = UIManager:GetMousePos()
Controls.MainButton:SetAnchor("L,B")
Controls.MainButton:SetOffsetVal(x+1, 0) -- -1 to help position on top and left edges
GG.S.Settings.buttonX = x+1
GG.S.Settings.buttonY = 0
GG.moveMode2 = false
Controls.MainWindow:SetHide(false)
end
end
end