Module image
Image data used in the UI dialogs.
The Shaderfuses icon (that yellowish dark side of the moon app icon kind of thing) is intended to be used in different dialogs. Additionally we use that JiPi/nmbr73 'Shaderfuses' logo. For both the image data is needed in base64 format, and having these gigantic strings here they don't clutter the other files.
Functions
| icon_label (fusion_ui_mngr) | Create a Label containing the icon. |
| logo_label (fusion_ui_mngr) | Create a Label containing the logo. |
Local Functions
| label (fusion_ui_mngr, data, width, height) | Internal create a Label helper function. |
Functions
- icon_label (fusion_ui_mngr)
-
Create a
Labelcontaining the icon.Parameters:
- fusion_ui_mngr
- logo_label (fusion_ui_mngr)
-
Create a
Labelcontaining the logo.Parameters:
- fusion_ui_mngr
Local Functions
- label (fusion_ui_mngr, data, width, height)
-
Internal create a
Labelhelper function.Parameters:
- fusion_ui_mngr fu.UIManager The Fusion UI manager instance.
- data string The image's PNG data as a base64 encoded string.
- width int The image width in number of pixel.
- height int The image height in number of pixel.