eepp: Added UIImageViewer new tool widget to view images.

Added a new UIMessageBox event: `Event::OnDiscard`, this will triggered when window is closed without confirmation (`Event::OnConfirm`). And now `Event::OnCancel` is only triggered when is manually cancelled (click the cancel button).
ecode: Greatly improved image viewing experience. Now you can switch images from the same directory with the mouse wheel, also zoom, translate and rotate the images, images open in a new tab by default but quick-preview can be activated in `Settings -> Window -> Quick Preview Images` (SpartanJ/ecode#96).
This commit is contained in:
Martín Lucas Golini
2025-09-28 00:39:17 -03:00
parent 6244563e7d
commit 9d2aec8e14
24 changed files with 736 additions and 65 deletions

View File

@@ -557,6 +557,24 @@ Multiple flags are separated by `|`.
---
### display-options
Allows to set what information should be displayed of the current image.
Multiple flags can be set, flags are separated by `|`.
* Applicable to: Any child of a EE::UI::UIImageViewer (ImageViewer)
* Data Type: [string-list](#string-list-data-type)
* Value List:
* `name`: Displays the file name
* `dimensions`: Displays the image dimensions
* `path`: Displays the file path
* `gallery_position`: Displays the gallery position of the current image (ex: `4 / 15`)
* `size`: Displays the file size
* `type`: Displays the image type
* Default value: _No value_
---
### display-percent
Enables/disables displaying the percentage of progress in the progress bar.