• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

HIVE

ThompZon
ThompZon
JASS:
function uiInit takes nothing returns nothing
    local framehandle tmp
    set ui_mainBackDrop = BlzCreateFrameByType("BACKDROP", "ui_mainBackDrop", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), "", 1)
    call BlzFrameSetAbsPoint(ui_mainBackDrop, FRAMEPOINT_TOPLEFT, 0.25, 0.12)
    call BlzFrameSetAbsPoint(ui_mainBackDrop, FRAMEPOINT_BOTTOMRIGHT, 0.55, 0.0)
    call BlzFrameSetTexture(ui_mainBackDrop, "UI\\ScifiCardX2Rot.blp", 0, true)
//HP BAR
    set ui_hpBarEmpty = BlzCreateFrameByType("BACKDROP", "", ui_mainBackDrop, "", 1)
    call BlzFrameSetAbsPoint(ui_hpBarEmpty, FRAMEPOINT_TOPLEFT, UI_BAR_LEFT, UI_BAR_HP_TOP)
    call BlzFrameSetAbsPoint(ui_hpBarEmpty, FRAMEPOINT_BOTTOMRIGHT, UI_BAR_RIGHT, UI_BAR_HP_BOT)
    call BlzFrameSetTexture(ui_hpBarEmpty, "UI\\ScifiBarEmpty.blp", 0, true)
    set ui_hpBarFull = BlzCreateFrameByType("SIMPLESTATUSBAR", "", ui_hpBarEmpty, "", 0)
    call BlzFrameSetTexture(ui_hpBarFull, "UI\\ScifiBarFull.blp", 0, true)
    //Same position. Char-count...
    call BlzFrameSetValue(ui_hpBarFull, 65)
    set ui_hpBarText = BlzCreateFrameByType("TEXT", "hpBarText", ui_mainBackDrop, "", 0)
    //Same position. Char-count...
    call BlzFrameSetText(ui_hpBarText, "|cffffffff100/100|r")
    call BlzFrameSetEnable(ui_hpBarText, false)
endfunction
Top