Есть знатоки, которые смогут поднять цифры кд НАД иконкой? Буду сильно благодарен
iLY9aOaYFOQ.jpg
Код:<?xml version="1.0"?> -<Ui xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.blizzard.com/wow/ui/"> <Script file="OmniBar.lua"/> -<Frame dontSavePosition="true" clampedToScreen="true" movable="true" frameStrata="MEDIUM" parent="UIParent" virtual="true" name="OmniBarTemplate"> -<Size> <AbsDimension y="1" x="1"/> </Size> -<Anchors> <Anchor point="CENTER"/> </Anchors> -<Frames> -<Frame clampedToScreen="true" name="$parentAnchor" enableMouse="true" parentKey="anchor"> -<Size> <AbsDimension y="30" x="80"/> </Size> -<Anchors> <Anchor point="CENTER"/> </Anchors> -<Layers> -<Layer level="BACKGROUND"> -<Texture name="$parentBG" parentKey="background" setAllPoints="true"> <Color a="0.3" b="0" g="0" r="0"/> </Texture> </Layer> -<Layer level="ARTWORK"> -<FontString name="$parentText" parentKey="text" text="OmniBar" inherits="GameFontNormal"> <Color a="1" b="0" g="1" r="1"/> -<Anchors> <Anchor point="CENTER"/> </Anchors> </FontString> </Layer> </Layers> -<Scripts> <OnMouseDown>local bar = self:GetParent()if button == "LeftButton" and not bar.settings.locked thenOmniBar_Center(bar)bar:StartMoving()end </OnMouseDown> <OnMouseUp>local bar = self:GetParent()if button == "LeftButton" and not bar.settings.locked thenbar:StopMovingOrSizing()OmniBar_SavePosition(bar)end </OnMouseUp> </Scripts> </Frame> -<Frame clampedToScreen="true" name="$parentIcons" parentKey="container"> -<Size> <AbsDimension y="1" x="1"/> </Size> -<Anchors> <Anchor point="CENTER" relativeTo="OmniBarAnchor"/> </Anchors> </Frame> </Frames> -<Scripts> <OnLoad>self:RegisterEvent("ADDON_LOADED") </OnLoad> <OnEvent function="OmniBar_OnEvent"/> </Scripts> </Frame> <Frame name="OmniBar" inherits="OmniBarTemplate"/> -<Button parent="OmniBarIcons" virtual="true" name="OmniBarButtonTemplate" inherits="ActionButtonTemplate" hidden="true"> -<Size> <AbsDimension y="36" x="36"/> </Size> -<Anchors> -<Anchors> <Anchor point="CENTER"/> </Anchors> </Anchors> -<NormalTexture name="$parentNormalTexture" parentKey="NormalTexture"> -<Anchors> <Anchor y="15" x="-15" point="TOPLEFT"/> <Anchor y="-15" x="15" point="BOTTOMRIGHT"/> </Anchors> </NormalTexture> <HighlightTexture/> <PushedTexture/> -<Layers> -<Layer level="BORDER"> <Texture name="$parentIcon" parentKey="icon"/> </Layer> <Layer level="OVERLAY" textureSubLevel="1"> </Layer> -<Layer level="BACKGROUND" textureSubLevel="-1"> -<Texture file="Interface\AddOns\OmniBar\UI-ActionButton-Border.blp" parentKey="TargetTexture" alphaMode="ADD"> -<Size> <AbsDimension y="72" x="72"/> </Size> <Color a="1" b="0.9333333333333333" g="0.20784313725490197" r="0.6392156862745098"/> -<Anchors> <Anchor point="CENTER"/> </Anchors> </Texture> -<Texture file="Interface\AddOns\OmniBar\UI-ActionButton-Border.blp" parentKey="FocusTexture" alphaMode="ADD" alpha="0"> -<Size> <AbsDimension y="72" x="72"/> </Size> -<Anchors> <Anchor point="CENTER"/> </Anchors> </Texture> </Layer> </Layers> -<Frames> -<Cooldown name="$parentCooldown" parentKey="cooldown" inherits="CooldownFrameTemplate" hidden="true" drawEdge="false" drawBling="false" reverse="true"> <Size y="36" x="36"/> -<Anchors> <Anchor y="-1" x="0" point="CENTER"/> </Anchors> -<SwipeTexture> <Color a="0.8" b="1" g="1" r="1"/> </SwipeTexture> -<Scripts> <OnHide function="OmniBar_CooldownFinish"/> </Scripts> </Cooldown> </Frames> -<Scripts> <OnEnter>local bar = self:GetParent():GetParent()if bar.settings.noTooltips or self:GetAlpha() == 0 then return endGameTooltip:SetOwner(self, "ANCHOR_RIGHT")GameTooltip:SetSpellByID(self.spellID) </OnEnter> <OnLeave>GameTooltip:Hide(); </OnLeave> <OnShow>local bar = self:GetParent():GetParent()table.insert(bar.active, self)OmniBar_Position(bar)OmniBar_UpdateBorders(bar) </OnShow> <OnHide>local bar = self:GetParent():GetParent()for i = 1, #bar.active doif bar.active[i] == self thentable.remove(bar.active, i)breakendendOmniBar_Position(bar) </OnHide> <OnMouseDown>local bar = self:GetParent():GetParent()if button == "LeftButton" and not bar.settings.locked thenOmniBar_Center(bar)bar:StartMoving()end </OnMouseDown> <OnMouseUp>local bar = self:GetParent():GetParent()if button == "LeftButton" and not bar.settings.locked thenbar:StopMovingOrSizing()OmniBar_SavePosition(bar)end </OnMouseUp> </Scripts> </Button> </Ui>



Ответить с цитированием
