Приветствуем вас на форуме проекта WoW Circle. Если вы читаете это, значит не зарегистрировались у нас. Для того, чтобы получить доступ к расширенным возможностям нашего форума нажмите сюда и пройди регистрацию, которая не займет у вас много времени. После регистрации будут доступны новые, более расширенные, возможности.
Кастом стандартных плейтов

Упомянутые в теме пользователи:

Страница 1 из 4 123 ... ПоследняяПоследняя
Показано с 1 по 12 из 38
  1. #1
    Старожил Аватар для ida
    Регистрация
    24.04.2020
    Сообщений
    154
    Поблагодарил(а)
    33
    Получено благодарностей: 60 (сообщений: 31).
    Репутация: 60

    Кастом стандартных плейтов

    Кто-то сможет помочь произвести небольшую кастомизацию дефолтных плейтов?

    1. Убрать прозрачность нейпмлейтов при активном выбранном таргете
    393kd1Z1va8.jpg

    2. Добавить значения хп (оставшиеся) в циферках на полоске здоровья

    Спасибо
    Последний раз редактировалось ida; 05.07.2020 в 11:55.

  2. #2
    Заблокирован
    Регистрация
    09.06.2016
    Адрес
    Rivne, Ukraine
    Сообщений
    907
    Поблагодарил(а)
    244
    Получено благодарностей: 412 (сообщений: 237).
    Репутация: 412
    PHP код:
    local function formatV(v)
        if 
    0 then
            
    if 1e3 then
                
    return v
            
    elseif 1e6 then
                
    return ("%.1fk"):format(v/1e3)
            else
                return (
    "%.1fm"):format(v/1e6)
            
    end
        end
    end

    local 
    function healthbar_valuechanged_cb(self,value)
        
    self.text:SetText(formatV(value))
    end

    local 
    function healthbar_show_cb(self)
        
    self.text:SetText(formatV(self:GetValue()))
    end

    local 
    function nameplate_update_cb(self)
        
    self:SetAlpha(1)
    end

    local 
    function InitNamePlate(frame)
        
    local healthbar frame:GetChildren()
        
    healthbar.text healthbar:CreateFontString(nil,"ARTWORK")
        
    healthbar.text:SetFont("Fonts\\FRIZQT__.TTF",11,"OUTLINE")
        
    healthbar.text:SetPoint("CENTER")

        
    healthbar_show_cb(healthbar)
        
    healthbar:SetScript("OnValueChanged",healthbar_valuechanged_cb)
        
    healthbar:SetScript("OnShow",healthbar_show_cb)
        
    frame:SetScript("OnUpdate",nameplate_update_cb)
    end

    local 
    function IdentifyFrame(self)
        if 
    self:GetName() then return end
        
    if self.GetRegions then
            local region 
    self:GetRegions()
            if 
    region.GetTexture then
                local texturePath 
    region:GetTexture()
                if 
    texturePath == "Interface\\TargetingFrame\\UI-TargetingFrame-Flash" then
                    
    return "NamePlate"
                
    elseif texturePath == "Interface\\Tooltips\\ChatBubble-Background" then
                    
    return "ChatBubble"
                
    end
            end
        end
    end

    local 
    function iterateChildrens(object,...)
        if 
    not object then return end

        local type 
    IdentifyFrame(object)
        if 
    type == "NamePlate" then
            InitNamePlate
    (object)
        elseif 
    type == "ChatBubble" then
            
    --InitChatBubble(object)
        
    end

        
    return iterateChildrens(...)
    end


    local select
    ,WorldFrame select,WorldFrame
    local lastWorldFrameChildsCount 
    0
    CreateFrame
    ("frame"):SetScript("OnUpdate",function()
        
    local worldFrameChildsCount WorldFrame:GetNumChildren()
        if 
    worldFrameChildsCount ~= lastWorldFrameChildsCount then
            iterateChildrens
    (select(lastWorldFrameChildsCount+1,WorldFrame:GetChildren()))
            
    lastWorldFrameChildsCount worldFrameChildsCount
        end
    end


  3. #3
    Старожил
    Регистрация
    07.02.2014
    Сообщений
    253
    Поблагодарил(а)
    45
    Получено благодарностей: 5 (сообщений: 5).
    Репутация: 5
    Цитата Сообщение от Sproody Посмотреть сообщение
    PHP код:
    local function formatV(v)
        if 
    0 then
            
    if 1e3 then
                
    return v
            
    elseif 1e6 then
                
    return ("%.1fk"):format(v/1e3)
            else
                return (
    "%.1fm"):format(v/1e6)
            
    end
        end
    end

    local 
    function healthbar_valuechanged_cb(self,value)
        
    self.text:SetText(formatV(value))
    end

    local 
    function healthbar_show_cb(self)
        
    self.text:SetText(formatV(self:GetValue()))
    end

    local 
    function nameplate_update_cb(self)
        
    self:SetAlpha(1)
    end

    local 
    function InitNamePlate(frame)
        
    local healthbar frame:GetChildren()
        
    healthbar.text healthbar:CreateFontString(nil,"ARTWORK")
        
    healthbar.text:SetFont("Fonts\\FRIZQT__.TTF",11,"OUTLINE")
        
    healthbar.text:SetPoint("CENTER")

        
    healthbar_show_cb(healthbar)
        
    healthbar:SetScript("OnValueChanged",healthbar_valuechanged_cb)
        
    healthbar:SetScript("OnShow",healthbar_show_cb)
        
    frame:SetScript("OnUpdate",nameplate_update_cb)
    end

    local 
    function IdentifyFrame(self)
        if 
    self:GetName() then return end
        
    if self.GetRegions then
            local region 
    self:GetRegions()
            if 
    region.GetTexture then
                local texturePath 
    region:GetTexture()
                if 
    texturePath == "Interface\\TargetingFrame\\UI-TargetingFrame-Flash" then
                    
    return "NamePlate"
                
    elseif texturePath == "Interface\\Tooltips\\ChatBubble-Background" then
                    
    return "ChatBubble"
                
    end
            end
        end
    end

    local 
    function iterateChildrens(object,...)
        if 
    not object then return end

        local type 
    IdentifyFrame(object)
        if 
    type == "NamePlate" then
            InitNamePlate
    (object)
        elseif 
    type == "ChatBubble" then
            
    --InitChatBubble(object)
        
    end

        
    return iterateChildrens(...)
    end


    local select
    ,WorldFrame select,WorldFrame
    local lastWorldFrameChildsCount 
    0
    CreateFrame
    ("frame"):SetScript("OnUpdate",function()
        
    local worldFrameChildsCount WorldFrame:GetNumChildren()
        if 
    worldFrameChildsCount ~= lastWorldFrameChildsCount then
            iterateChildrens
    (select(lastWorldFrameChildsCount+1,WorldFrame:GetChildren()))
            
    lastWorldFrameChildsCount worldFrameChildsCount
        end
    end

    а что убрать, чтобы без чисел было?)

  4. #4
    Старожил Аватар для ida
    Регистрация
    24.04.2020
    Сообщений
    154
    Поблагодарил(а)
    33
    Получено благодарностей: 60 (сообщений: 31).
    Репутация: 60
    Цитата Сообщение от Sproody Посмотреть сообщение
    PHP код:
    local function formatV(v)
        if 
    0 then
            
    if 1e3 then
                
    return v
            
    elseif 1e6 then
                
    return ("%.1fk"):format(v/1e3)
            else
                return (
    "%.1fm"):format(v/1e6)
            
    end
        end
    end

    local 
    function healthbar_valuechanged_cb(self,value)
        
    self.text:SetText(formatV(value))
    end

    local 
    function healthbar_show_cb(self)
        
    self.text:SetText(formatV(self:GetValue()))
    end

    local 
    function nameplate_update_cb(self)
        
    self:SetAlpha(1)
    end

    local 
    function InitNamePlate(frame)
        
    local healthbar frame:GetChildren()
        
    healthbar.text healthbar:CreateFontString(nil,"ARTWORK")
        
    healthbar.text:SetFont("Fonts\\FRIZQT__.TTF",11,"OUTLINE")
        
    healthbar.text:SetPoint("CENTER")

        
    healthbar_show_cb(healthbar)
        
    healthbar:SetScript("OnValueChanged",healthbar_valuechanged_cb)
        
    healthbar:SetScript("OnShow",healthbar_show_cb)
        
    frame:SetScript("OnUpdate",nameplate_update_cb)
    end

    local 
    function IdentifyFrame(self)
        if 
    self:GetName() then return end
        
    if self.GetRegions then
            local region 
    self:GetRegions()
            if 
    region.GetTexture then
                local texturePath 
    region:GetTexture()
                if 
    texturePath == "Interface\\TargetingFrame\\UI-TargetingFrame-Flash" then
                    
    return "NamePlate"
                
    elseif texturePath == "Interface\\Tooltips\\ChatBubble-Background" then
                    
    return "ChatBubble"
                
    end
            end
        end
    end

    local 
    function iterateChildrens(object,...)
        if 
    not object then return end

        local type 
    IdentifyFrame(object)
        if 
    type == "NamePlate" then
            InitNamePlate
    (object)
        elseif 
    type == "ChatBubble" then
            
    --InitChatBubble(object)
        
    end

        
    return iterateChildrens(...)
    end


    local select
    ,WorldFrame select,WorldFrame
    local lastWorldFrameChildsCount 
    0
    CreateFrame
    ("frame"):SetScript("OnUpdate",function()
        
    local worldFrameChildsCount WorldFrame:GetNumChildren()
        if 
    worldFrameChildsCount ~= lastWorldFrameChildsCount then
            iterateChildrens
    (select(lastWorldFrameChildsCount+1,WorldFrame:GetChildren()))
            
    lastWorldFrameChildsCount worldFrameChildsCount
        end
    end

    Лучший! Спасибо
    П.с. пока не могу ставить лайки, мало постов

  5. #5
    Новичок
    Регистрация
    12.03.2020
    Сообщений
    9
    Поблагодарил(а)
    0
    Получено благодарностей: 0 (сообщений: 0).
    Репутация: 0
    Цитата Сообщение от Sproody Посмотреть сообщение
    PHP код:
    local function formatV(v)
        if 
    0 then
            
    if 1e3 then
                
    return v
            
    elseif 1e6 then
                
    return ("%.1fk"):format(v/1e3)
            else
                return (
    "%.1fm"):format(v/1e6)
            
    end
        end
    end

    local 
    function healthbar_valuechanged_cb(self,value)
        
    self.text:SetText(formatV(value))
    end

    local 
    function healthbar_show_cb(self)
        
    self.text:SetText(formatV(self:GetValue()))
    end

    local 
    function nameplate_update_cb(self)
        
    self:SetAlpha(1)
    end

    local 
    function InitNamePlate(frame)
        
    local healthbar frame:GetChildren()
        
    healthbar.text healthbar:CreateFontString(nil,"ARTWORK")
        
    healthbar.text:SetFont("Fonts\\FRIZQT__.TTF",11,"OUTLINE")
        
    healthbar.text:SetPoint("CENTER")

        
    healthbar_show_cb(healthbar)
        
    healthbar:SetScript("OnValueChanged",healthbar_valuechanged_cb)
        
    healthbar:SetScript("OnShow",healthbar_show_cb)
        
    frame:SetScript("OnUpdate",nameplate_update_cb)
    end

    local 
    function IdentifyFrame(self)
        if 
    self:GetName() then return end
        
    if self.GetRegions then
            local region 
    self:GetRegions()
            if 
    region.GetTexture then
                local texturePath 
    region:GetTexture()
                if 
    texturePath == "Interface\\TargetingFrame\\UI-TargetingFrame-Flash" then
                    
    return "NamePlate"
                
    elseif texturePath == "Interface\\Tooltips\\ChatBubble-Background" then
                    
    return "ChatBubble"
                
    end
            end
        end
    end

    local 
    function iterateChildrens(object,...)
        if 
    not object then return end

        local type 
    IdentifyFrame(object)
        if 
    type == "NamePlate" then
            InitNamePlate
    (object)
        elseif 
    type == "ChatBubble" then
            
    --InitChatBubble(object)
        
    end

        
    return iterateChildrens(...)
    end


    local select
    ,WorldFrame select,WorldFrame
    local lastWorldFrameChildsCount 
    0
    CreateFrame
    ("frame"):SetScript("OnUpdate",function()
        
    local worldFrameChildsCount WorldFrame:GetNumChildren()
        if 
    worldFrameChildsCount ~= lastWorldFrameChildsCount then
            iterateChildrens
    (select(lastWorldFrameChildsCount+1,WorldFrame:GetChildren()))
            
    lastWorldFrameChildsCount worldFrameChildsCount
        end
    end

    а куда вставлять этот код? я просто с села

  6. #6
    Старожил Аватар для ida
    Регистрация
    24.04.2020
    Сообщений
    154
    Поблагодарил(а)
    33
    Получено благодарностей: 60 (сообщений: 31).
    Репутация: 60
    Забыл об еще одном. Возможно убрать смешивание неймплейтов как здесь?
    UMwbxdkQTHg.jpg
    И сделать полное наложение плейта если они пересекаются, как здесь:
    k7cZHpuz6ew.jpg
    Спасибо!

  7. #7
    Старожил Аватар для ida
    Регистрация
    24.04.2020
    Сообщений
    154
    Поблагодарил(а)
    33
    Получено благодарностей: 60 (сообщений: 31).
    Репутация: 60
    @Sproody, ваша помощь все еще актуальна?
    Последний раз редактировалось ida; 05.07.2020 в 17:59.

  8. #8
    Гуру Аватар для Friskes
    Регистрация
    08.10.2013
    Сообщений
    334
    Поблагодарил(а)
    60
    Получено благодарностей: 84 (сообщений: 59).
    Репутация: 84
    Цитата Сообщение от ida Посмотреть сообщение
    Забыл об еще одном. Возможно убрать смешивание неймплейтов как здесь?
    UMwbxdkQTHg.jpg
    И сделать полное наложение плейта если они пересекаются, как здесь:
    k7cZHpuz6ew.jpg
    Спасибо!
    Первое есть в настройках интерфейса игры.
    Второе не совсем понятно, там ведь и так полное наложение.

  9. #9
    Старожил Аватар для ida
    Регистрация
    24.04.2020
    Сообщений
    154
    Поблагодарил(а)
    33
    Получено благодарностей: 60 (сообщений: 31).
    Репутация: 60
    Цитата Сообщение от Friskes Посмотреть сообщение
    Первое есть в настройках интерфейса игры.
    Второе не совсем понятно, там ведь и так полное наложение.
    Я просто на примере ниже показал как мне надо, это одна задача. Где именно этот чекбокс в настройках игры? Все перепробовал, не нашел
    Мне именно надо чтобы они не перемешивались друг с другом, как на 2 скрине (если нажать на таргет, то будет как на 2 скрине), а вне таргета как на скрине выше, это и надо устранить. Короче, надо сделать так, чтобы в любых случаях они не перемешивались, а были как на скрине ниже не зависимо в таргете или нет.
    Последний раз редактировалось ida; 05.07.2020 в 20:56.

  10. #10
    Гуру Аватар для Friskes
    Регистрация
    08.10.2013
    Сообщений
    334
    Поблагодарил(а)
    60
    Получено благодарностей: 84 (сообщений: 59).
    Репутация: 84
    А, ну это уже надо писать какой то скрипт, в близз интерфейсе можно включить, что бы индикаторы никогда не накладовались друг на друга.
    Т.е. Первый индикатор будет автоматически выкидыватся за рамки второго.
    Включается это во вкладке с настройками неймплейт, поймешь по названию, либо же потыкаешь галочки
    Последний раз редактировалось Friskes; 05.07.2020 в 22:14.

  11. #11
    Гуру Аватар для Попкина_Сладость
    Регистрация
    01.02.2018
    Сообщений
    387
    Поблагодарил(а)
    85
    Получено благодарностей: 53 (сообщений: 43).
    Репутация: 53
    Цитата Сообщение от Sproody Посмотреть сообщение
    PHP код:
    local function formatV(v)
        if 
    0 then
            
    if 1e3 then
                
    return v
            
    elseif 1e6 then
                
    return ("%.1fk"):format(v/1e3)
            else
                return (
    "%.1fm"):format(v/1e6)
            
    end
        end
    end

    local 
    function healthbar_valuechanged_cb(self,value)
        
    self.text:SetText(formatV(value))
    end

    local 
    function healthbar_show_cb(self)
        
    self.text:SetText(formatV(self:GetValue()))
    end

    local 
    function nameplate_update_cb(self)
        
    self:SetAlpha(1)
    end

    local 
    function InitNamePlate(frame)
        
    local healthbar frame:GetChildren()
        
    healthbar.text healthbar:CreateFontString(nil,"ARTWORK")
        
    healthbar.text:SetFont("Fonts\\FRIZQT__.TTF",11,"OUTLINE")
        
    healthbar.text:SetPoint("CENTER")

        
    healthbar_show_cb(healthbar)
        
    healthbar:SetScript("OnValueChanged",healthbar_valuechanged_cb)
        
    healthbar:SetScript("OnShow",healthbar_show_cb)
        
    frame:SetScript("OnUpdate",nameplate_update_cb)
    end

    local 
    function IdentifyFrame(self)
        if 
    self:GetName() then return end
        
    if self.GetRegions then
            local region 
    self:GetRegions()
            if 
    region.GetTexture then
                local texturePath 
    region:GetTexture()
                if 
    texturePath == "Interface\\TargetingFrame\\UI-TargetingFrame-Flash" then
                    
    return "NamePlate"
                
    elseif texturePath == "Interface\\Tooltips\\ChatBubble-Background" then
                    
    return "ChatBubble"
                
    end
            end
        end
    end

    local 
    function iterateChildrens(object,...)
        if 
    not object then return end

        local type 
    IdentifyFrame(object)
        if 
    type == "NamePlate" then
            InitNamePlate
    (object)
        elseif 
    type == "ChatBubble" then
            
    --InitChatBubble(object)
        
    end

        
    return iterateChildrens(...)
    end


    local select
    ,WorldFrame select,WorldFrame
    local lastWorldFrameChildsCount 
    0
    CreateFrame
    ("frame"):SetScript("OnUpdate",function()
        
    local worldFrameChildsCount WorldFrame:GetNumChildren()
        if 
    worldFrameChildsCount ~= lastWorldFrameChildsCount then
            iterateChildrens
    (select(lastWorldFrameChildsCount+1,WorldFrame:GetChildren()))
            
    lastWorldFrameChildsCount worldFrameChildsCount
        end
    end

    Подскажи:
    Как добавить только хп в числах без сокращения, а полное ХП!
    Например:
    Не - 30.6k
    А - 30600

  12. #12
    Заблокирован
    Регистрация
    09.06.2016
    Адрес
    Rivne, Ukraine
    Сообщений
    907
    Поблагодарил(а)
    244
    Получено благодарностей: 412 (сообщений: 237).
    Репутация: 412
    Цитата Сообщение от Попкина_Сладость Посмотреть сообщение
    Подскажи:
    Как добавить только хп в числах без сокращения, а полное ХП!
    Например:
    Не - 30.6k
    А - 30600
    PHP код:
    local function healthbar_valuechanged_cb(self,value)
        
    self.text:SetText(value)
    end

    local 
    function healthbar_show_cb(self)
        
    self.text:SetText(self:GetValue())
    end

    local 
    function nameplate_update_cb(self)
        
    self:SetAlpha(1)
    end

    local 
    function InitNamePlate(frame)
        
    local healthbar frame:GetChildren()
        
    healthbar.text healthbar:CreateFontString(nil,"ARTWORK")
        
    healthbar.text:SetFont("Fonts\\FRIZQT__.TTF",11,"OUTLINE")
        
    healthbar.text:SetPoint("CENTER")

        
    healthbar_show_cb(healthbar)
        
    healthbar:SetScript("OnValueChanged",healthbar_valuechanged_cb)
        
    healthbar:SetScript("OnShow",healthbar_show_cb)
        
    frame:SetScript("OnUpdate",nameplate_update_cb)
    end

    local 
    function IdentifyFrame(self)
        if 
    self:GetName() then return end
        
    if self.GetRegions then
            local region 
    self:GetRegions()
            if 
    region.GetTexture then
                local texturePath 
    region:GetTexture()
                if 
    texturePath == "Interface\\TargetingFrame\\UI-TargetingFrame-Flash" then
                    
    return "NamePlate"
                
    elseif texturePath == "Interface\\Tooltips\\ChatBubble-Background" then
                    
    return "ChatBubble"
                
    end
            end
        end
    end

    local 
    function iterateChildrens(object,...)
        if 
    not object then return end

        local type 
    IdentifyFrame(object)
        if 
    type == "NamePlate" then
            InitNamePlate
    (object)
        elseif 
    type == "ChatBubble" then
            
    --InitChatBubble(object)
        
    end

        
    return iterateChildrens(...)
    end


    local select
    ,WorldFrame select,WorldFrame
    local lastWorldFrameChildsCount 
    0
    CreateFrame
    ("frame"):SetScript("OnUpdate",function()
        
    local worldFrameChildsCount WorldFrame:GetNumChildren()
        if 
    worldFrameChildsCount ~= lastWorldFrameChildsCount then
            iterateChildrens
    (select(lastWorldFrameChildsCount+1,WorldFrame:GetChildren()))
            
    lastWorldFrameChildsCount worldFrameChildsCount
        end
    end


Страница 1 из 4 123 ... ПоследняяПоследняя

Похожие темы

  1. Ответов: 43
    Последнее сообщение: 12.12.2016, 09:22
  2. [Wotlk] Кросс ПВП для хай рейтов и лоу рейтов отдельно как раньше
    от rovrnomy в разделе Вопросы Logon, TBC, Legion, BFa, SL
    Ответов: 1
    Последнее сообщение: 02.07.2015, 09:31
  3. вор взлом сейфов
    от neronrex в разделе Корзина
    Ответов: 0
    Последнее сообщение: 13.04.2013, 04:47

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •