diff Export.lua @ 69:69db1c3025ac v27

fixed some bugs with 6.2 item link format changes, added bib overwolf support
author yellowfive
date Mon, 06 Jul 2015 17:39:57 -0700
parents 01b63b8ed811
children 0515882856f1
line wrap: on
line diff
--- a/Export.lua	Mon Jun 29 17:06:02 2015 -0700
+++ b/Export.lua	Mon Jul 06 17:39:57 2015 -0700
@@ -19,6 +19,15 @@
 	Amr.db.char.FirstUse = false
 end
 
+local function onTextChanged(widget)
+	local val = _txt:GetText()
+	if val == "overwolf-bib" then
+		-- go to the gear tab, open import window, and show a cover
+		Amr:ShowTab("Gear")
+		Amr:ShowImportWindow(true)
+	end
+end
+
 -- render a splash screen with first-time help
 local function renderSplash(container)
 	local panel = Amr:RenderCoverChrome(container, 700, 450)
@@ -80,6 +89,7 @@
 	_txt:SetHeight(300)
 	_txt:SetPoint("TOP", lbl.frame, "BOTTOM", 0, -20)
 	_txt:SetFont(Amr.CreateFont("Regular", 12, Amr.Colors.Text))
+	_txt:SetCallback("OnTextChanged", onTextChanged)
 	container:AddChild(_txt)
 	
 	local data = self:ExportCharacter()