diff gui.lua @ 27:68d7b903ee17

Drycoded revision check/popup.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Sun, 09 Oct 2011 01:02:27 +0000
parents f866daadcdf6
children a7376e6de73c
line wrap: on
line diff
--- a/gui.lua	Fri Oct 07 03:47:45 2011 +0000
+++ b/gui.lua	Sun Oct 09 01:02:27 2011 +0000
@@ -2127,6 +2127,22 @@
 	end,
 }
 
+StaticPopupDialogs["OUROL_URL"] = { --flib.StaticPopup{
+	text = "Use Control-C or equivalent to copy this URL to your system clipboard:",
+	button1 = OKAY,
+	timeout = 0,
+	whileDead = true,
+	hideOnEscape = true,
+	enterClicksFirstButton = true,
+	hasEditBox = true,
+	editBoxWidth = 350,
+	OnShow = function (dialog, url)
+		dialog.editBox:SetText(url)
+		dialog.editBox:SetFocus()
+		dialog.editBox:HighlightText()
+	end,
+}
+
 StaticPopupDialogs["OUROL_REMIND"] = flib.StaticPopup{
 	text = "Do you wish to activate Ouro Loot?\n\n(Hit the Escape key to close this window without clicking)",
 	button1 = "Activate recording",  -- "accept", left