Mercurial > wow > askmrrobot
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 68:6c523f147709 | 69:69db1c3025ac |
|---|---|
| 15 end | 15 end |
| 16 | 16 |
| 17 local function onSplashClose() | 17 local function onSplashClose() |
| 18 Amr:HideCover() | 18 Amr:HideCover() |
| 19 Amr.db.char.FirstUse = false | 19 Amr.db.char.FirstUse = false |
| 20 end | |
| 21 | |
| 22 local function onTextChanged(widget) | |
| 23 local val = _txt:GetText() | |
| 24 if val == "overwolf-bib" then | |
| 25 -- go to the gear tab, open import window, and show a cover | |
| 26 Amr:ShowTab("Gear") | |
| 27 Amr:ShowImportWindow(true) | |
| 28 end | |
| 20 end | 29 end |
| 21 | 30 |
| 22 -- render a splash screen with first-time help | 31 -- render a splash screen with first-time help |
| 23 local function renderSplash(container) | 32 local function renderSplash(container) |
| 24 local panel = Amr:RenderCoverChrome(container, 700, 450) | 33 local panel = Amr:RenderCoverChrome(container, 700, 450) |
| 78 _txt = AceGUI:Create("AmrUiTextarea") | 87 _txt = AceGUI:Create("AmrUiTextarea") |
| 79 _txt:SetWidth(800) | 88 _txt:SetWidth(800) |
| 80 _txt:SetHeight(300) | 89 _txt:SetHeight(300) |
| 81 _txt:SetPoint("TOP", lbl.frame, "BOTTOM", 0, -20) | 90 _txt:SetPoint("TOP", lbl.frame, "BOTTOM", 0, -20) |
| 82 _txt:SetFont(Amr.CreateFont("Regular", 12, Amr.Colors.Text)) | 91 _txt:SetFont(Amr.CreateFont("Regular", 12, Amr.Colors.Text)) |
| 92 _txt:SetCallback("OnTextChanged", onTextChanged) | |
| 83 container:AddChild(_txt) | 93 container:AddChild(_txt) |
| 84 | 94 |
| 85 local data = self:ExportCharacter() | 95 local data = self:ExportCharacter() |
| 86 local txt = Amr.Serializer:SerializePlayerData(data, true) | 96 local txt = Amr.Serializer:SerializePlayerData(data, true) |
| 87 _txt:SetText(txt) | 97 _txt:SetText(txt) |
