Hidden/Spoiler:
[code]
print("fullHD_insert: trying to take control of NewButtonWindow()..")
if NewButtonWindow and not fullHD_NewButtonWindow then
print(" : success")
-- backup old function
print(" : backup old function")
fullHD_NewButtonWindow = NewButtonWindow
-- some variables
local screenW, screenH = ScriptCB_GetScreenInfo()
-- redefine NewButtonWindow
print(" : redefine NewButtonWindow()")
NewButtonWindow = function(...)
local temp = arg[1]
-- fix the size and position for the boxes for instant action and muliplayer
if temp.titleText == "ifs.controls.General.map" or temp.titleText == "ifs.missionselect.selectmode" or temp.titleText == "ifs.missionselect.selectera" or temp.titleText == "ifs.missionselect.playlist" then
temp.x = screenW * temp.x/800
temp.y = screenH * temp.y/600
temp.width = screenW * temp.width/800
temp.height = screenH * temp.height/600
end
if uf_print then
uf_print(temp, 1, 0)
else
print("Leider nein")
end
-- let the original function happen
return fullHD_NewButtonWindow(unpack(arg))
end
else
print(" : failed")
if fullHD_NewButtonWindow then
print(" : backup variable fullHD_NewButtonWindow already in use!")
else
print(" : no NewButtonWindow() to take over!")
end
end
[/code]
print("fullHD_insert: trying to take control of NewButtonWindow()..")
if NewButtonWindow and not fullHD_NewButtonWindow then
print(" : success")
-- backup old function
print(" : backup old function")
fullHD_NewButtonWindow = NewButtonWindow
-- some variables
local screenW, screenH = ScriptCB_GetScreenInfo()
-- redefine NewButtonWindow
print(" : redefine NewButtonWindow()")
NewButtonWindow = function(...)
local temp = arg[1]
-- fix the size and position for the boxes for instant action and muliplayer
if temp.titleText == "ifs.controls.General.map" or temp.titleText == "ifs.missionselect.selectmode" or temp.titleText == "ifs.missionselect.selectera" or temp.titleText == "ifs.missionselect.playlist" then
temp.x = screenW * temp.x/800
temp.y = screenH * temp.y/600
temp.width = screenW * temp.width/800
temp.height = screenH * temp.height/600
end
if uf_print then
uf_print(temp, 1, 0)
else
print("Leider nein")
end
-- let the original function happen
return fullHD_NewButtonWindow(unpack(arg))
end
else
print(" : failed")
if fullHD_NewButtonWindow then
print(" : backup variable fullHD_NewButtonWindow already in use!")
else
print(" : no NewButtonWindow() to take over!")
end
end
[/code]