Fit more error info in the dialog when videos fail
This commit is contained in:
1 parent
e4870a752b
commit
151e108183
6 files changed
+20
-7
No files matched your search
@@ -3,13 +3,16 @@ function ShowDialog(message as dynamic, title as string) as object
|
||||
end function
|
||||
|
||||
function ShowDialogButtons(message as dynamic, title as string, buttons as object) as object
|
||||
dialog = CreateObject("roSGNode", "Dialog")
|
||||
dialog = CreateObject("roSGNode", "SimpleDialog")
|
||||
if GetInterface(message, "ifArray") = invalid
|
||||
message = message.Tokenize(UnixNL()).ToArray()
|
||||
end if
|
||||
dialog.message = message
|
||||
dialog.title = title
|
||||
dialog.buttons = buttons
|
||||
deviceInfo = CreateObject("roDeviceInfo")
|
||||
displaySize = deviceInfo.GetDisplaySize()
|
||||
dialog.width = displaySize.w - 100
|
||||
m.top.getScene().dialog = dialog
|
||||
return dialog
|
||||
end function
|
||||
Reference in new issue
Block a user