• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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)

Level 6
Joined
May 29, 2013
Messages
126
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 11
Joined
May 7, 2008
Messages
300
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.
 
Level 13
Joined
Oct 18, 2013
Messages
690
Really nice aesthetic on these. However, the part of the screen you can draw to excludes the hero icons at the top left, right?
 
Top