"File Got Selected" listener
Keksuccino opened this issue ยท 2 comments
This listener triggers when a file got selected via the "Select File" action. It triggers both when the selection got cancelled and when a file got selected.
If a file got selected, the listener needs to trigger AFTER the action finished copying the file to the new directory.
The action has support for copying files to the Minecraft instance directory AND .minecraft, which does not have to be the actual instance directory. Make sure to check the action to see how it handles/resolves paths.
The listener provides the following custom variables:
absolute_source_file_path= The absolute path of the original location of the selected file. This is empty when no file got selected or the selection failed in another way.resource_path= Returns the short path of the new location the file got copied to (like/config/fancymenu/assets/image.pngwhen in the actual MC instance or something like.minecraft/config/...., with the.minecraft/prefix, when copied to the.minecraftdirectory. This is empty when no file got selected or the selection failed in another way.success= If the selection was a success or got cancelled or otherwise interrupted (by an error or whatever) (true/false).
Issue for the action: #1327