API ReferenceGE Extensionsutil
Photomode
Provides overlay file listing for the photo mode UI.
Provides overlay file listing for the photo mode UI.
Overview
util_photomode scans for available photo mode overlay PNG files and returns them as a list. Used by the photo mode UI module to populate overlay selection.
Extension path: lua/ge/extensions/util/photomode.lua
Exports (M)
| Function | Signature | Description |
|---|---|---|
getPhotomodeOverlays | () | Returns array of available overlay files. |
Internals
Overlay Discovery
Scans ui/modules/photomode/ui-overlays/ for *.png files (non-recursive, depth 0).
Returns an array of tables:
{
{filename = "ui/modules/photomode/ui-overlays/grid_3x3.png"},
{filename = "ui/modules/photomode/ui-overlays/golden_ratio.png"},
...
}How It Works
- The photo mode UI calls
getPhotomodeOverlays(). - The function scans the overlays directory for PNG files.
- Results are returned as an array of
{filename}tables for the UI to display.
Lua Examples
-- Get available photo mode overlays
local overlays = extensions.util_photomode.getPhotomodeOverlays()
for _, overlay in ipairs(overlays) do
print(overlay.filename)
endAdditional Exports
M.getPhotomodeOverlays- (undocumented)