diff --git a/src/core/Global.ttslua b/src/core/Global.ttslua index d1495748..a8ad385e 100644 --- a/src/core/Global.ttslua +++ b/src/core/Global.ttslua @@ -691,6 +691,16 @@ function onClick_select(_, _, identificationKey) updatePreviewWindow() end +-- click function for the "Custom URL" button in the playarea image gallery +function onClick_customUrl(player) + onClick_toggleUi(_, "playareaGallery") + Wait.time(function() + player.showInputDialog("Enter a custom URL for the playarea image", "", function(newURL) + playAreaApi.updateSurface(newURL) + end) + end, 0.15) +end + -- click function for the download button in the preview window function onClick_download(player) local params = library[contentToShow][currentListItem] diff --git a/xml/Global/PlayareaGallery.xml b/xml/Global/PlayareaGallery.xml index 83570b03..d03c66ec 100644 --- a/xml/Global/PlayareaGallery.xml +++ b/xml/Global/PlayareaGallery.xml @@ -12,6 +12,13 @@