From 0e365f2bac3563559ef6a8cda22f347cc97caf68 Mon Sep 17 00:00:00 2001 From: Ackis Date: Tue, 25 Nov 2008 19:46:14 +0000 Subject: [PATCH] Move another function around, to hell with local functions! RAWR --- ARLFrame.lua | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index 4039201..de01c0d 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -213,6 +213,27 @@ end -- Expected result: -- Input: -- Output: + +local function SetSortString(recipeSkill, recStr) + + local sorttype = addon.db.profile.sorting + + if (sorttype == L["Skill"]) then + + return "[" .. recipeSkill .. "] - " .. recStr + + else + + return recStr .. " - [" .. recipeSkill .. "]" + + end + +end + +-- Description: +-- Expected result: +-- Input: +-- Output: -- This does the initial fillup of the DisplayStrings structure. -- This won't run if all we're doing is expanding/contracting a recipe @@ -406,27 +427,6 @@ end -- Input: -- Output: -local function SetSortString(recipeSkill, recStr) - - local sorttype = addon.db.profile.sorting - - if (sorttype == L["Skill"]) then - - return "[" .. recipeSkill .. "] - " .. recStr - - else - - return recStr .. " - [" .. recipeSkill .. "]" - - end - -end - --- Description: --- Expected result: --- Input: --- Output: - function addon:CreateScanButton() -- Create the scan button -- 1.7.9.5