dialog.swf
Use this plugin to display a dialog box where the viewer can enter a choice.The box can show either a plain text prompt or a more complex HTML text including images.
The following parameters are supported:
NOTE:
All parameters can be updated dynamically from FPP. Please note that when setting the different parameters dynamically to show a new message, the box is displayed when the plugin receives the parameter "visible=1". When the viewer closes the message box, the plugin resets to "visible=0". Certain characters like ,'"; cannot be used directly in the text, because they have special meaning in the XML file. They can however be included in the text by using the escape-coded forms (%2C, %3B...). This applies to the "text", "command1" and "command2" parameters. The close-button command can be set to "1" or "2", which means that when it is clicked, the command from button1 or button2 will be executed. Also, "\n" or "\r" can be used to force newline in the text.
text | text=Do you want to go fullscreen? | text message |
htmlfile | htmlfile=files/text2.html | load html text file |
visible | visible=1 | 0 or 1, default 0 |
maxWidth | maxWidth=250 | maximum width - wider texts wrap |
button1 | button1=Yes, please! | Left button label |
button2 | button2=No thanks! | Right button label |
command1 | command1= | left button command(s) when clicked |
command2 | command2=pano.fullscreen(-) | right button command(s) when clicked |
commandClose | commandClose=1 | close-button command(s) when clicked |
alpha | alpha=0.75 | alpha value of message box |
bgColor | bgColor=#000000 | background color RGB value, default "#C0C0C0" |
borderColor | borderColor=#000000 | border color RGB value, default "#000000" |
textFont | textFont=Garamond | text font family, default "Arial" |
textSize | textSize=16 | text font size, default 14 |
textColor | textColor=#FFFFFF | text color RGB value, default "#000000" |
textAlign | textAlign=left | left, center or right, default center |
textBold | textBold=1 | 1 or 0, default 0 |
offset | offset=0:120 | dialog position offset from center |
NOTE:
All parameters can be updated dynamically from FPP. Please note that when setting the different parameters dynamically to show a new message, the box is displayed when the plugin receives the parameter "visible=1". When the viewer closes the message box, the plugin resets to "visible=0". Certain characters like ,'"; cannot be used directly in the text, because they have special meaning in the XML file. They can however be included in the text by using the escape-coded forms (%2C, %3B...). This applies to the "text", "command1" and "command2" parameters. The close-button command can be set to "1" or "2", which means that when it is clicked, the command from button1 or button2 will be executed. Also, "\n" or "\r" can be used to force newline in the text.