Forums » MacOS X
Differences with lua and iup under Mac OS X?
Hello,
I made a simple plugin to show three labels. The plugin works just fine under windows, under Mac OS 10.5.6 Vendetta hangs. The sound keeps playing, but thats it.
The system.log contains only one entry:
25.04.09 08:58:55 [0x0-0x1e01e].vendettaclient[160] ../iup/vo_set.cpp:769: failed assertion `Check((char*)iupTableGet(env(n), IUP_VISIBLE)) != NO'
The error.log is not different from a start without my plugin.
The code is:
MyUI = {}
MyUI.labels = {}
for i = 1,3,1 do
MyUI.labels[ i ] = iup.label{
title = "Test"..i,
-- expand = 'HORIZONTAL',
-- alignment = 'ACENTER:ACENTER',
-- font = '15'
}
end
MyUI.dialog = iup.dialog {
iup.pdarootframe {
iup.vbox {
MyUI.labels[1],
MyUI.labels[2],
MyUI.labels[3]
}
};
TITLE = nil,
BORDER = 'NO',
TOPMOST = "NO",
RESIZE = 'NO',
MAXBOX = 'NO',
MINBOX = 'NO',
MODAL = 'NO',
FULLSCREEN = 'NO',
EXPAND = 'YES',
ACTIVE = 'NO',
MENUBOX = 'NO',
BGCOLOR = "0 0 0 0 *",
}
function MyUI.show()
MyUI.dialog:showxy(0.50 * gkinterface.GetXResolution(), 0.95 * gkinterface.GetYResolution())
end
VO stops working right after I do /lua MyUI.show() in the console. I tried a version without iup.pdarootframe, but that does not make any difference.
Are there any errors in my code? Did I miss something?
With kind regards,
Tohiwa
Edit: The forum software ate my [ i ], had to "escape" those with spaces.
I made a simple plugin to show three labels. The plugin works just fine under windows, under Mac OS 10.5.6 Vendetta hangs. The sound keeps playing, but thats it.
The system.log contains only one entry:
25.04.09 08:58:55 [0x0-0x1e01e].vendettaclient[160] ../iup/vo_set.cpp:769: failed assertion `Check((char*)iupTableGet(env(n), IUP_VISIBLE)) != NO'
The error.log is not different from a start without my plugin.
The code is:
MyUI = {}
MyUI.labels = {}
for i = 1,3,1 do
MyUI.labels[ i ] = iup.label{
title = "Test"..i,
-- expand = 'HORIZONTAL',
-- alignment = 'ACENTER:ACENTER',
-- font = '15'
}
end
MyUI.dialog = iup.dialog {
iup.pdarootframe {
iup.vbox {
MyUI.labels[1],
MyUI.labels[2],
MyUI.labels[3]
}
};
TITLE = nil,
BORDER = 'NO',
TOPMOST = "NO",
RESIZE = 'NO',
MAXBOX = 'NO',
MINBOX = 'NO',
MODAL = 'NO',
FULLSCREEN = 'NO',
EXPAND = 'YES',
ACTIVE = 'NO',
MENUBOX = 'NO',
BGCOLOR = "0 0 0 0 *",
}
function MyUI.show()
MyUI.dialog:showxy(0.50 * gkinterface.GetXResolution(), 0.95 * gkinterface.GetYResolution())
end
VO stops working right after I do /lua MyUI.show() in the console. I tried a version without iup.pdarootframe, but that does not make any difference.
Are there any errors in my code? Did I miss something?
With kind regards,
Tohiwa
Edit: The forum software ate my [ i ], had to "escape" those with spaces.