Quantcast

Rename StarLibs as ScriptableDisplay

Scott Sibley [09-30-10 - 21:16]
Rename StarLibs as ScriptableDisplay
Filename
StarTip.lua
diff --git a/StarTip.lua b/StarTip.lua
index 09c40ad..d0d8eec 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -1,4 +1,4 @@
-StarTip = LibStub("AceAddon-3.0"):NewAddon("StarTip: @project-version@", "AceConsole-3.0", "AceHook-3.0", "AceEvent-3.0", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0")
+StarTip = LibStub("AceAddon-3.0"):NewAddon("StarTip: @project-version@", "AceConsole-3.0", "AceHook-3.0", "AceEvent-3.0", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0")
 StarTip.version = GetAddOnMetadata("StarTip", "X-StarTip-Version") or ""
 StarTip.name = GetAddOnMetadata("StarTip", "Notes")
 StarTip.name = "StarTip " .. StarTip.version
@@ -9,61 +9,61 @@ local LSM = _G.LibStub("LibSharedMedia-3.0")
 local LDB = LibStub:GetLibrary("LibDataBroker-1.1")
 local AceConfigDialog = LibStub("AceConfigDialog-3.0")

-local LibCore = LibStub("StarLibCore-1.0", true)
-assert(LibCore, MAJOR .. " requires StarLibCore-1.0")
-local LibTimer = LibStub("StarLibTimer-1.0", true)
-assert(LibTimer, MAJOR .. " requires StarLibTimer-1.0")
-local LibError = LibStub("StarLibError-1.0", true)
-assert(LibError, MAJOR .. " requires StarLibError-1.0")
-local LibCFG = LibStub("StarLibCFG-1.0", true)
-assert(LibCFG, MAJOR .. " requires StarLibCFG-1.0")
-local WidgetText = LibStub("StarLibWidgetText-1.0", true)
-assert(WidgetText, MAJOR .. " requires StarLibWidgetText-1.0")
-local WidgetBar = LibStub("StarLibWidgetBar-1.0", true)
-assert(WidgetBar, MAJOR .. " requires StarLibWidgetBar-1.0")
-local WidgetIcon = LibStub("StarLibWidgetIcon-1.0", true)
---assert(WidgetIcon, MAJOR .. " requires StarLibWidgetIcon-1.0")
-local WidgetHistogram = LibStub("StarLibWidgetHistogram-1.0", true)
-assert(WidgetHistogram, MAJOR .. " requires StarLibWidgetHistogram-1.0")
-local WidgetBignums = LibStub("StarLibWidgetBignums-1.0", true)
---assert(WidgetBignums, MAJOR .. " requires StarLibWidgetBignums-1.0")
-local WidgetKey = LibStub("StarLibWidgetKey-1.0", true)
---assert(WidgetKey, MAJOR .. " requires StarLibWidgetKey-1.0")
-local WidgetTimer = LibStub("StarLibWidgetTimer-1.0", true)
-assert(WidgetTimer, MAJOR .. " requires StarLibWidgetTimer-1.0")
-local WidgetScript = LibStub("StarLibWidgetScript-1.0", true)
---assert(WidgetScript, MAJOR .. " requires StarLibWidgetScript-1.0")
-local Evaluator = LibStub("StarLibEvaluator-1.0", true)
-assert(Evaluator, MAJOR .. " requires StarLibEvaluator-1.0")
-local PluginWidgetText = LibStub("StarLibWidgetTextPlugin-1.0", true)
-assert(PluginWidgetText, MAJOR .. " requires StarLibWidgetTextPlugin-1.0")
-local PluginRangeCheck = LibStub("StarLibPluginRangeCheck-1.0", true)
-assert(PluginRangeCheck, MAJOR .. " requires StarLibRangeCheck-1.0")
-local PluginUnit = LibStub("StarLibPluginUnit-1.0", true)
-assert(PluginUnit, MAJOR .. " requires StarLibPluginUnit-1.0")
-local PluginBit = LibStub("StarLibPluginBit-1.0", true)
-assert(PluginBit, MAJOR .. " requires StarLibPluginBit-1.0")
-local PluginLua = LibStub("StarLibPluginLua-1.0", true)
-assert(PluginLua, MAJOR .. " requires StarLibPluginLua-1.0")
-local PluginMath = LibStub("StarLibPluginMath-1.0", true)
-assert(PluginMath, MAJOR .. " requires StarLibPluginMath-1.0")
-local PluginString = LibStub("StarLibPluginString-1.0", true)
-assert(PluginString, MAJOR .. " requires StarLibPluginString-1.0")
-local PluginTable = LibStub("StarLibPluginTable-1.0", true)
-assert(PluginTable, MAJOR .. " requires StarLibPluginTable-1.0")
-local PluginResourceTools = LibStub("StarLibPluginResourceTools-1.0", true)
-assert(PluginResourceTools, MAJOR .. " requires StarLibPluginResourceTools-1.0")
-local PluginCharacterStats = LibStub("StarLibPluginCharacterStats-1.0", true)
-assert(PluginCharacterStats, MAJOR .. " requires StarLibPluginCharacterStats-1.0")
-local PluginLocation = LibStub("StarLibPluginLocation-1.0", true)
-assert(PluginLocation, MAJOR .. " requires StarLibPluginLocation-1.0")
-local PluginUnitTooltipStats = LibStub("StarLibPluginUnitTooltipStats-1.0", true)
-assert(PluginUnitTooltipStats, MAJOR .. " requires StarLibPluginUnitTooltipStats-1.0")
-local PluginDBM = LibStub("StarLibPluginDBM-1.0", true)
-local PluginLinq = LibStub("StarLibPluginLinq-1.0", true)
-assert(PluginLinq, MAJOR .. " requires StarLibPluginLinq-1.0")
-local LibTimer = LibStub("StarLibTimer-1.0", true)
-assert(LibTimer, MAJOR .. " requires StarLibtimer-1.0")
+local LibCore = LibStub("LibScriptableDisplayCore-1.0", true)
+assert(LibCore, MAJOR .. " requires LibScriptableDisplayCore-1.0")
+local LibTimer = LibStub("LibScriptableDisplayTimer-1.0", true)
+assert(LibTimer, MAJOR .. " requires LibScriptableDisplayTimer-1.0")
+local LibError = LibStub("LibScriptableDisplayError-1.0", true)
+assert(LibError, MAJOR .. " requires LibScriptableDisplayError-1.0")
+local LibCFG = LibStub("LibScriptableDisplayCFG-1.0", true)
+assert(LibCFG, MAJOR .. " requires LibScriptableDisplayCFG-1.0")
+local WidgetText = LibStub("LibScriptableDisplayWidgetText-1.0", true)
+assert(WidgetText, MAJOR .. " requires LibScriptableDisplayWidgetText-1.0")
+local WidgetBar = LibStub("LibScriptableDisplayWidgetBar-1.0", true)
+assert(WidgetBar, MAJOR .. " requires LibScriptableDisplayWidgetBar-1.0")
+local WidgetIcon = LibStub("LibScriptableDisplayWidgetIcon-1.0", true)
+--assert(WidgetIcon, MAJOR .. " requires LibScriptableDisplayWidgetIcon-1.0")
+local WidgetHistogram = LibStub("LibScriptableDisplayWidgetHistogram-1.0", true)
+assert(WidgetHistogram, MAJOR .. " requires LibScriptableDisplayWidgetHistogram-1.0")
+local WidgetBignums = LibStub("LibScriptableDisplayWidgetBignums-1.0", true)
+--assert(WidgetBignums, MAJOR .. " requires LibScriptableDisplayWidgetBignums-1.0")
+local WidgetKey = LibStub("LibScriptableDisplayWidgetKey-1.0", true)
+--assert(WidgetKey, MAJOR .. " requires LibScriptableDisplayWidgetKey-1.0")
+local WidgetTimer = LibStub("LibScriptableDisplayWidgetTimer-1.0", true)
+assert(WidgetTimer, MAJOR .. " requires LibScriptableDisplayWidgetTimer-1.0")
+local WidgetScript = LibStub("LibScriptableDisplayWidgetScript-1.0", true)
+--assert(WidgetScript, MAJOR .. " requires LibScriptableDisplayWidgetScript-1.0")
+local Evaluator = LibStub("LibScriptableDisplayEvaluator-1.0", true)
+assert(Evaluator, MAJOR .. " requires LibScriptableDisplayEvaluator-1.0")
+local PluginWidgetText = LibStub("LibScriptableDisplayWidgetTextPlugin-1.0", true)
+assert(PluginWidgetText, MAJOR .. " requires LibScriptableDisplayWidgetTextPlugin-1.0")
+local PluginRangeCheck = LibStub("LibScriptableDisplayPluginRangeCheck-1.0", true)
+assert(PluginRangeCheck, MAJOR .. " requires LibScriptableDisplayRangeCheck-1.0")
+local PluginUnit = LibStub("LibScriptableDisplayPluginUnit-1.0", true)
+assert(PluginUnit, MAJOR .. " requires LibScriptableDisplayPluginUnit-1.0")
+local PluginBit = LibStub("LibScriptableDisplayPluginBit-1.0", true)
+assert(PluginBit, MAJOR .. " requires LibScriptableDisplayPluginBit-1.0")
+local PluginLua = LibStub("LibScriptableDisplayPluginLua-1.0", true)
+assert(PluginLua, MAJOR .. " requires LibScriptableDisplayPluginLua-1.0")
+local PluginMath = LibStub("LibScriptableDisplayPluginMath-1.0", true)
+assert(PluginMath, MAJOR .. " requires LibScriptableDisplayPluginMath-1.0")
+local PluginString = LibStub("LibScriptableDisplayPluginString-1.0", true)
+assert(PluginString, MAJOR .. " requires LibScriptableDisplayPluginString-1.0")
+local PluginTable = LibStub("LibScriptableDisplayPluginTable-1.0", true)
+assert(PluginTable, MAJOR .. " requires LibScriptableDisplayPluginTable-1.0")
+local PluginResourceTools = LibStub("LibScriptableDisplayPluginResourceTools-1.0", true)
+assert(PluginResourceTools, MAJOR .. " requires LibScriptableDisplayPluginResourceTools-1.0")
+local PluginCharacterStats = LibStub("LibScriptableDisplayPluginCharacterStats-1.0", true)
+assert(PluginCharacterStats, MAJOR .. " requires LibScriptableDisplayPluginCharacterStats-1.0")
+local PluginLocation = LibStub("LibScriptableDisplayPluginLocation-1.0", true)
+assert(PluginLocation, MAJOR .. " requires LibScriptableDisplayPluginLocation-1.0")
+local PluginUnitTooltipStats = LibStub("LibScriptableDisplayPluginUnitTooltipStats-1.0", true)
+assert(PluginUnitTooltipStats, MAJOR .. " requires LibScriptableDisplayPluginUnitTooltipStats-1.0")
+local PluginDBM = LibStub("LibScriptableDisplayPluginDBM-1.0", true)
+local PluginLinq = LibStub("LibScriptableDisplayPluginLinq-1.0", true)
+assert(PluginLinq, MAJOR .. " requires LibScriptableDisplayPluginLinq-1.0")
+local LibTimer = LibStub("LibScriptableDisplayTimer-1.0", true)
+assert(LibTimer, MAJOR .. " requires LibScriptableDisplaytimer-1.0")

 local _G = _G
 local GameTooltip = _G.GameTooltip
@@ -296,7 +296,7 @@ local options = {
 					name = "Error Level",
 					desc = "StarTip's error level",
 					type = "select",
-					values = LibStub("StarLibError-1.0").defaultTexts,
+					values = LibStub("LibScriptableDisplayError-1.0").defaultTexts,
 					get = function() return StarTip.db.profile.errorLevel end,
 					set = function(info, v) StarTip.db.profile.errorLevel = v; StarTip:Print("Note that changing error verbosity requires a UI reload.") end,
 					order = 11
@@ -528,7 +528,7 @@ function StarTip:OnEnable()
 	self:RegisterEvent("MODIFIER_STATE_CHANGED")

 	local plugin = {}
-	LibStub("StarLibPluginColor-1.0"):New(plugin)
+	LibStub("LibScriptableDisplayPluginColor-1.0"):New(plugin)
 	ChatFrame1:AddMessage(plugin.Colorize("Welcome to " .. StarTip.name, 0, 1, 1) .. plugin.Colorize(" Type /startip to open config. Alternatively you could press escape and choose the addons menu. Or you can choose to show a minimap icon.", 1, 1, 0))
 end