diff --git a/Reference/Widget Reference/Widgets/Animations/!/Alpha.sublime-completions.txt b/Reference/Widget Reference/Widgets/Animations/!/Alpha.sublime-completions.txt index 87f636845..3e2b20e05 100644 --- a/Reference/Widget Reference/Widgets/Animations/!/Alpha.sublime-completions.txt +++ b/Reference/Widget Reference/Widgets/Animations/!/Alpha.sublime-completions.txt @@ -287,7 +287,7 @@ { "trigger": "_Alpha\thelp", - "contents": "Alpha = {\n\tinherits = {\n\t\t\"Alpha\",\n\t\t\"Animation\",\n\t\t\"ScriptObject\",\n\t\t\"ParentedObject\",\n\t\t\"UIObject\",\n\t},\n\thandlers = {\n\t\t[\"OnFinished\"] = \"self, requested\", -- Run when the animation finishes animating\n\t\t[\"OnLoad\"] = \"self\", -- Run when the frame is created\n\t\t[\"OnPause\"] = \"self\", -- Run when the animation begins to play\n\t\t[\"OnPlay\"] = \"self\", -- Run when the animation begins to play\n\t\t[\"OnStop\"] = \"self, requested\", -- Run when the animation is stopped\n\t\t[\"OnUpdate\"] = \"self, elapsed\", -- Run each time the screen is drawn by the game engine\n\t},\n\tmethods = {\n\t\t\"GetDebugName\", -- Returns the widget object's debug name\n\t\t\"GetDuration\", -- Returns the time for the animation to progress from start to finish\n\t\t\"GetElapsed\", -- Returns the amount of time since the animation began playing\n\t\t\"GetEndDelay\", -- Returns the amount of time the animation delays after finishing\n\t\t\"GetFromAlpha\", -- Returns the start value that the alpha of this animation's parent region changes by\n\t\t\"GetName\", -- Returns the widget object's name\n\t\t\"GetObjectType\", -- Returns the object's widget type\n\t\t\"GetOrder\", -- Returns the order of the animation within it's parent group\n\t\t\"GetParent\", -- Returns the object's parent object\n\t\t\"GetProgress\", -- Returns the progress of an animation, ignoring smoothing effects\n\t\t\"GetRegionParent\", -- Returns the region object on which the animation operates\n\t\t\"GetScript\", -- Returns the widget's handler function for a script\n\t\t\"GetSmoothing\", -- Returns the smoothing type for the animation\n\t\t\"GetSmoothProgress\", -- Returns the progress of the animation (ignoring start and end delay)\n\t\t\"GetStartDelay\", -- Returns the amount of time the animation delays before it's progress begins\n\t\t\"GetTarget\", -- Returns the region affected by this animation\n\t\t\"GetToAlpha\", -- Returns the end value that the alpha of this animation's parent region changes by\n\t\t\"HasScript\", -- Returns whether the widget supports a script handler\n\t\t\"HookScript\", -- Securely hooks a script handler\n\t\t\"IsDelaying\", -- Returns whether the animation is currently in the middle of a start or end delay\n\t\t\"IsDone\", -- Returns whether the animation has finished playing\n\t\t\"IsForbidden\", -- Returns if this widget's methods may only be called from secure execution paths\n\t\t\"IsObjectType\", -- Returns whether the object belongs to a given widget type\n\t\t\"IsPaused\", -- Returns whether the animation is currently paused\n\t\t\"IsPlaying\", -- Returns whether the animation is currently playing\n\t\t\"IsStopped\", -- Returns whether the animation is currently stopped\n\t\t\"Pause\", -- Pauses the animation\n\t\t\"Play\", -- Plays the animation\n\t\t\"Restart\", -- Restarts the animation\n\t\t\"SetChildKey\", -- Sets the animation to manipulate a particular child member of it's host frame\n\t\t\"SetDuration\", -- Sets the time for the animation to progress from start to finish\n\t\t\"SetEndDelay\", -- Sets the amount of time for the animation to delay after finishing\n\t\t\"SetForbidden\", -- Sets whether the modification of the object's secure methods are forbidden while in combat\n\t\t\"SetFromAlpha\", -- Sets the start value from which the alpha of this animation's parent region changes by\n\t\t\"SetOrder\", -- Sets the order for the animation to play within it's parent group\n\t\t\"SetParent\", -- Sets another frame the parent of this regihon\n\t\t\"SetScript\", -- Sets the widget's handler function for a script\n\t\t\"SetSmoothing\", -- Sets the smoothing type for the animation\n\t\t\"SetSmoothProgress\", -- Sets the progress of the smoothing type for the animation\n\t\t\"SetStartDelay\", -- Sets the amount of time for the animation to delay before it's progress begins\n\t\t\"SetTarget\", -- Sets the region affected by this animation\n\t\t\"SetTargetKey\", -- Sets the animation to manipulate a particular child member of it's target\n\t\t\"SetToAlpha\", -- Sets the end value from which the alpha of this animation's parent region changes by\n\t\t\"Stop\", -- Stops the animation\n\t},\n}", + "contents": "Alpha = {\n\tinherits = {\n\t\t\"Alpha\",\n\t\t\"Animation\",\n\t\t\"ScriptObject\",\n\t\t\"ParentedObject\",\n\t\t\"UIObject\",\n\t},\n\thandlers = {\n\t\t[\"OnFinished\"] = \"self, requested\", -- Run when the animation finishes animating\n\t\t[\"OnLoad\"] = \"self\", -- Run when the frame is created\n\t\t[\"OnPause\"] = \"self\", -- Run when the animation begins to play\n\t\t[\"OnPlay\"] = \"self\", -- Run when the animation begins to play\n\t\t[\"OnStop\"] = \"self, requested\", -- Run when the animation is stopped\n\t\t[\"OnUpdate\"] = \"self, elapsed\", -- Run each time the screen is drawn by the game engine\n\t},\n\tmethods = {\n\t\t\"GetDebugName\", -- Returns the widget object's debug name\n\t\t\"GetDuration\", -- Returns the time for the animation to progress from start to finish\n\t\t\"GetElapsed\", -- Returns the amount of time since the animation began playing\n\t\t\"GetEndDelay\", -- Returns the amount of time the animation delays after finishing\n\t\t\"GetFromAlpha\", -- Returns the start value that the alpha of this animation's parent region changes by\n\t\t\"GetName\", -- Returns the widget object's name\n\t\t\"GetObjectType\", -- Returns the object's widget type\n\t\t\"GetOrder\", -- Returns the order of the animation within it's parent group\n\t\t\"GetParent\", -- Returns the object's parent object\n\t\t\"GetProgress\", -- Returns the progress of an animation, ignoring smoothing effects\n\t\t\"GetRegionParent\", -- Returns the region object on which the animation operates\n\t\t\"GetScript\", -- Returns the widget's handler function for a script\n\t\t\"GetSmoothing\", -- Returns the smoothing type for the animation\n\t\t\"GetSmoothProgress\", -- Returns the progress of the animation (ignoring start and end delay)\n\t\t\"GetStartDelay\", -- Returns the amount of time the animation delays before it's progress begins\n\t\t\"GetTarget\", -- Returns the region affected by this animation\n\t\t\"GetToAlpha\", -- Returns the end value that the alpha of this animation's parent region changes by\n\t\t\"HasScript\", -- Returns whether the widget supports a script handler\n\t\t\"HookScript\", -- Securely hooks a script handler\n\t\t\"IsDelaying\", -- Returns whether the animation is currently in the middle of a start or end delay\n\t\t\"IsDone\", -- Returns whether the animation has finished playing\n\t\t\"IsForbidden\", -- Returns if this widget's methods may only be called from secure execution paths\n\t\t\"IsObjectType\", -- Returns whether the object belongs to a given widget type\n\t\t\"IsPaused\", -- Returns whether the animation is currently paused\n\t\t\"IsPlaying\", -- Returns whether the animation is currently playing\n\t\t\"IsStopped\", -- Returns whether the animation is currently stopped\n\t\t\"Pause\", -- Pauses the animation\n\t\t\"Play\", -- Plays the animation\n\t\t\"Restart\", -- Restarts the animation\n\t\t\"SetChildKey\", -- Sets the animation to manipulate a particular child member of it's host frame\n\t\t\"SetDuration\", -- Sets the time for the animation to progress from start to finish\n\t\t\"SetEndDelay\", -- Sets the amount of time for the animation to delay after finishing\n\t\t\"SetForbidden\", -- Sets whether the modification of the object's secure methods are forbidden while in combat\n\t\t\"SetFromAlpha\", -- Sets the start value from which the alpha of this animation's parent region changes by\n\t\t\"SetOrder\", -- Sets the order for the animation to play within it's parent group\n\t\t\"SetParent\", -- Sets another frame the parent of this region\n\t\t\"SetScript\", -- Sets the widget's handler function for a script\n\t\t\"SetSmoothing\", -- Sets the smoothing type for the animation\n\t\t\"SetSmoothProgress\", -- Sets the progress of the smoothing type for the animation\n\t\t\"SetStartDelay\", -- Sets the amount of time for the animation to delay before it's progress begins\n\t\t\"SetTarget\", -- Sets the region affected by this animation\n\t\t\"SetTargetKey\", -- Sets the animation to manipulate a particular child member of it's target\n\t\t\"SetToAlpha\", -- Sets the end value from which the alpha of this animation's parent region changes by\n\t\t\"Stop\", -- Stops the animation\n\t},\n}", }, ] } diff --git a/Reference/Widget Reference/Widgets/Animations/_Alphahelp.sublime-snippet b/Reference/Widget Reference/Widgets/Animations/_Alphahelp.sublime-snippet index ead048bc1..c906d4ec1 100644 --- a/Reference/Widget Reference/Widgets/Animations/_Alphahelp.sublime-snippet +++ b/Reference/Widget Reference/Widgets/Animations/_Alphahelp.sublime-snippet @@ -51,7 +51,7 @@ "SetForbidden", -- Sets whether the modification of the object's secure methods are forbidden while in combat "SetFromAlpha", -- Sets the start value from which the alpha of this animation's parent region changes by "SetOrder", -- Sets the order for the animation to play within it's parent group - "SetParent", -- Sets another frame the parent of this regihon + "SetParent", -- Sets another frame the parent of this region "SetScript", -- Sets the widget's handler function for a script "SetSmoothing", -- Sets the smoothing type for the animation "SetSmoothProgress", -- Sets the progress of the smoothing type for the animation diff --git a/WoW Global Finder/Globals.lua b/WoW Global Finder/Globals.lua index 30198039a..64827914e 100644 --- a/WoW Global Finder/Globals.lua +++ b/WoW Global Finder/Globals.lua @@ -29,6 +29,8 @@ Directives in the file: --]] +local File = ... + local strmatch = string.match local strgmatch = string.gmatch local print = print @@ -36,7 +38,7 @@ local gsub = string.gsub local tonumber = tonumber local stdin = io.input() -local source = assert(io.open(arg[1])) +local source = assert(io.open(File)) -- First we parse the source file diff --git a/WoW Global Finder/WoW Global Finder.sublime-build b/WoW Global Finder/WoW Global Finder.sublime-build index 1b2e6ace8..824774d3d 100644 --- a/WoW Global Finder/WoW Global Finder.sublime-build +++ b/WoW Global Finder/WoW Global Finder.sublime-build @@ -1,4 +1,6 @@ { "cmd": ["$packages/WoWDevelopment/WoW Global Finder/WoW Global Finder.bat", "$file"], - "selector": "source.lua" + "selector": "source.lua", + //"target": "ansi_color_build", + //"syntax": "Packages/ANSIescape/ANSI.tmLanguage" } diff --git a/WoW Lua.sublime-syntax b/WoW Lua.sublime-syntax index 7d760d347..7e54cfb76 100644 --- a/WoW Lua.sublime-syntax +++ b/WoW Lua.sublime-syntax @@ -8,10 +8,13 @@ file_extensions: scope: source.lua.wow contexts: main: + # Self - match: '(?=?|(?