Frame Border Effects

This bundle is marked as pending. It has not been reviewed by a staff member yet.
Thanks to TriggerHappy's idea, we can create sprites from the Steam avatar's borders.


The pack contains 20 animated models for using as Sprites.
From the top-left it is:


Example code that I used in the preview video. Mind that center of models is a bottom-left corner, so you have to attach BOTTOMLEFT to BOTTOMLEFT.

LUA
Code:
function NewFrame(path, pointx, pointy, offsetx, offsety, scale)
        local button = BlzCreateFrame('ScriptDialogButton', BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0)
                BlzFrameSetAbsPoint(button, FRAMEPOINT_CENTER, pointx, pointy)
                BlzFrameSetSize(button, 0.0435, 0.0435)

        local new_Frame = BlzCreateFrameByType('BACKDROP', "PORTRAIT", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "",0)
                BlzFrameSetAllPoints(new_Frame, button)
                BlzFrameSetTexture(new_Frame, "ReplaceableTextures\\CommandButtons\\BTNFootman.blp", 0, true)

        local sprite = BlzCreateFrameByType("SPRITE", "justAName", new_Frame, "WarCraftIIILogo", 0)
            BlzFrameClearAllPoints(sprite)
            BlzFrameSetPoint(sprite, FRAMEPOINT_BOTTOMLEFT, new_Frame, FRAMEPOINT_BOTTOMLEFT, offsetx, offsety)
            BlzFrameSetSize(sprite, 0.00001, 0.00001)
            BlzFrameSetScale(sprite, scale)
            BlzFrameSetModel(sprite, path, 0)
    end
  
    -- call it from somewhere
    NewFrame("war3mapImported\\aganim_sprite.mdx", 0.12, 0.4, -0.0052, -0.0048, 0.8)
    NewFrame("war3mapImported\\blizzard_sprite.mdx", 0.18, 0.4, 0., 0., 0.68)
    NewFrame("war3mapImported\\violet_border_sprite.mdx", 0.24, 0.4, -0.0052, -0.0048, 0.8)
    NewFrame("war3mapImported\\blue_energy_sprite.mdx", 0.30, 0.4, -0.0052, -0.0048, 0.8)
    NewFrame("war3mapImported\\crystallid_sprite.mdx", 0.36, 0.4, -0.0052, -0.0048, 0.8)
    NewFrame("war3mapImported\\cyber_call_sprite.mdx", 0.42, 0.4, -0.0052, -0.0048, 0.8)
    NewFrame("war3mapImported\\damned_sprite.mdx", 0.48, 0.4, -0.0052, -0.0048, 0.8)
    NewFrame("war3mapImported\\exploder_sprite.mdx", 0.54, 0.4, -0.0052, -0.0048, 0.8)
    NewFrame("war3mapImported\\flame_border_sprite.mdx", 0.60, 0.4, -0.0044, -0.001, 0.8)
    NewFrame("war3mapImported\\frozen_sprite.mdx", 0.66, 0.4, -0.0052, -0.0048, 0.8)
    NewFrame("war3mapImported\\gold_sprite.mdx", 0.72, 0.4, 0., 0., 0.68)
    NewFrame("war3mapImported\\hearts_sprite.mdx", 0.12, 0.3, 0., 0., 0.68)
    NewFrame("war3mapImported\\holylight_sprite.mdx", 0.18, 0.3, -0.0052, -0.0048, 0.8)
    NewFrame("war3mapImported\\inner_fire_and_smoke_sprite.mdx", 0.242, 0.3, 0., 0., 0.68)
    NewFrame("war3mapImported\\inner_flame_border_sprite.mdx", 0.30, 0.3, 0., 0., 0.68)
    NewFrame("war3mapImported\\necrotic_circle_sprite.mdx", 0.36, 0.3, -0.004, -0.004, 0.8)
    NewFrame("war3mapImported\\neon_sprite.mdx", 0.42, 0.3, -0.0052, -0.0048, 0.8)
    NewFrame("war3mapImported\\smoke_sprite.mdx", 0.48, 0.3, 0., 0., 0.68)
    NewFrame("war3mapImported\\undead_circle_sprite.mdx", 0.54, 0.3, -0.004, -0.004, 0.8)
    NewFrame("war3mapImported\\vampirism_sprite.mdx", 0.60, 0.3, -0.0052, -0.0052, 0.8)
Contents

Aganim Sprite (Model)

Blizzard Sprite (Model)

Blue Energy Sprite (Model)

Crystallid Sprite (Model)

Cyber Call Sprite (Model)

Damned Sprite (Model)

Exploder Sprite (Model)

Flame Border Sprite (Model)

Frozen Sprite (Model)

Gold Sprite (Model)

Hearts Sprite (Model)

Holy Light Sprite (Model)

Inner Fire And Smoke Sprite (Model)

Inner Flame Border Sprite (Model)

Necrotic Circle Sprite (Model)

Neon Sprite (Model)

Smoke Sprite (Model)

Undead Circle Sprite (Model)

Vampirism Sprite (Model)

Violet Border Sprite (Model)

Uncle

Warcraft Moderator
Level 45
Joined
Aug 10, 2018
Messages
4,455
Amazing, I've been looking for something like this! Well done.
 
Level 5
Joined
May 29, 2013
Messages
110
It's really cool. How can I use this for the unit's icon? Can this also be applied to the icon on the multiboard? Can it be used only for custom ui?
 
Level 10
Joined
May 7, 2008
Messages
295
It's really cool. How can I use this for the unit's icon? Can this also be applied to the icon on the multiboard? Can it be used only for custom ui?

It can be used for pretty much anything as long as you use the right scale for the Sprite Frame.

You'd have to play around with that mostly but yeah, generally speaking it's doable.
 
Top