This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "PLoop" (function(_ENV) | |
| __Sealed__() | |
| struct "Case" (function(_ENV) | |
| import "System.Text" | |
| export { unpack = unpack or table.unpack } | |
| member "vars" { type = Variables, require = true } | |
| member "func" { type = Callable, require = true } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scorpio "MinimmapPatch" "" | |
| MinimapZoneTextButton:SetParent(Minimap) | |
| MinimapZoneTextButton:ClearAllPoints() | |
| MinimapZoneTextButton:SetPoint("BOTTOMLEFT", Minimap, "TOPLEFT", 0, 4) | |
| MinimapZoneTextButton:SetPoint("BOTTOMRIGHT", Minimap, "TOPRIGHT", 0, 4) | |
| MiniMapTracking:Show() | |
| MiniMapTrackingBackground:Hide() | |
| MiniMapTrackingIconOverlay:Hide() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scorpio "InfoBar" "" | |
| _Status = Frame("_Status", UIParent) | |
| _Text = FontString("Text", _Status) | |
| Style[_Status] = { | |
| { | |
| Text = { | |
| drawLayer = "ARTWORK", | |
| fontObject = TextStatusBarTextLarge, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scorpio "ChatFix" "" | |
| local _LoadedTab = 1 | |
| local _CheckCompare = false | |
| local _CheckType = nil | |
| local _CheckAchievement = nil | |
| local GameTooltip = _G.GameTooltip | |
| _G.CHAT_FRAME_TAB_SELECTED_NOMOUSE_ALPHA = 0 | |
| _G.CHAT_FRAME_TAB_NORMAL_NOMOUSE_ALPHA = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scorpio "MinimmapPatch" "" | |
| MinimapZoneTextButton:SetParent(Minimap) | |
| MinimapZoneTextButton:ClearAllPoints() | |
| MinimapZoneTextButton:SetPoint("BOTTOMLEFT", Minimap, "TOPLEFT", 0, 4) | |
| MinimapZoneTextButton:SetPoint("BOTTOMRIGHT", Minimap, "TOPRIGHT", 0, 4) | |
| MinimapZoneText:ClearAllPoints() | |
| MinimapZoneText:SetAllPoints() | |
| MinimapZoneText.JustifyH = "CENTER" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scorpio "SpellCooldown" "" | |
| class "Scorpio.Widget.SpellCooldownPanel" (function(_ENV) | |
| inherit "ElementPanel" | |
| import "System.Reactive" | |
| class "Icon" { Frame } | |
| __Indexer__() __Observable__() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local create = coroutine.create | |
| local resume = coroutine.resume | |
| local running = coroutine.running | |
| local status = coroutine.status | |
| local wrap = coroutine.wrap | |
| local yield = coroutine.yield | |
| local tinsert = table.insert | |
| local tremove = table.remove | |
| local PREPARE_CONFIRM = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class "FileController" (function(_ENV) | |
| inherit "Controller" | |
| -- GET /file/download?name=test&fields=["name","age"] | |
| __Action__("download", HttpMethod.GET) | |
| __Form__{ -- Form验证并自动按照结构组织数据,下面的fields是字符串数组 | |
| name = String, | |
| fields = struct { String }, | |
| } | |
| __File__() __Iterator__() -- 申明返回为文件,并且使用迭代器的形式返回数据 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local create = coroutine.create | |
| local resume = coroutine.resume | |
| local running = coroutine.running | |
| local status = coroutine.status | |
| local wrap = coroutine.wrap | |
| local yield = coroutine.yield | |
| local tinsert = table.insert | |
| local tremove = table.remove |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Scorpio "AshToAshSkin" "" | |
| pcall(Style.RegisterSkin, "5MSkin") | |
| DEFAULT_COLOR = Color("|c222222ff") | |
| LOW_HEALTH_COLOR = Color.WHITE | |
| HEALTHBAR = (Scorpio.IsRetail or Scorpio.IsBCC or IsAddOnLoaded("LibHealComm-4.0") or pcall(_G.LibStub, "LibHealComm-4.0")) and "PredictionHealthBar" or "HealthBar" | |
| Style.UpdateSkin("5MSkin", { | |
| [AshToAsh.AshUnitFrame] = { |
OlderNewer