Skip to content

Commit

Permalink
- added importing/exporting of config
Browse files Browse the repository at this point in the history
  • Loading branch information
frozn committed May 26, 2024
1 parent a91ab51 commit 3471e73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions TipTac/libs/LibFroznFunctions-1.0/LibFroznFunctions-1.0.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

-- create new library
local LIB_NAME = "LibFroznFunctions-1.0";
local LIB_MINOR = 24; -- bump on changes
local LIB_MINOR = 25; -- bump on changes

if (not LibStub) then
error(LIB_NAME .. " requires LibStub.");
Expand Down Expand Up @@ -2011,7 +2011,7 @@ end
--
-- @param params parameters
-- .prompt prompt to show
-- .text text to show
-- .lockedText locked text to show
-- .iconFile optional. path to an icon (usually in Interface\\) or a FileDataID
-- .iconTexCoord optional. coordinates for cropping the icon. object with four values:
-- leftTexel coordinate that identifies the left edge as a fraction of the image's width
Expand Down Expand Up @@ -2146,7 +2146,7 @@ function LibFroznFunctions:ShowPopupWithText(params)

-- show popup with text
StaticPopup_Show(popupName, nil, nil, {
lockedEditBoxText = params.text,
lockedEditBoxText = params.lockedText,
iconFile = params.iconFile,
iconTexCoord = params.iconTexCoord,
onShowHandler = params.onShowHandler,
Expand Down
4 changes: 2 additions & 2 deletions TipTacOptions/ttOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ local function Misc_SettingsDropDownOnClick(dropDownMenuButton, arg1, arg2)
if (encodedConfig) then
LibFroznFunctions:ShowPopupWithText({
prompt = "Copy this export string with current config:",
text = encodedConfig,
lockedText = encodedConfig,
iconFile = "Interface\\AddOns\\" .. PARENT_MOD_NAME .. "\\media\\Talents",
iconTexCoord = { 0.924316, 0.942871, 0.000976562, 0.0361328 },
acceptButtonText = "Close",
Expand Down Expand Up @@ -879,7 +879,7 @@ local function Misc_ReportDropDownOnClick(dropDownMenuButton, arg1, arg2)
if (url) then
LibFroznFunctions:ShowPopupWithText({
prompt = "Open this link in your web browser:",
text = url,
lockedText = url,
iconFile = iconFile,
acceptButtonText = "Close",
onShowHandler = function(self, data)
Expand Down

0 comments on commit 3471e73

Please sign in to comment.