• 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.

[Spell] Change and move minimap

Status
Not open for further replies.
So I'm playing around with the new UI natives for the editor. But no matter what I do, i don't seem to be able to change the visual part of the minimap significantly.

What i want is to rescale it, and to move it to somewhere else on the screen. But the thing that changes is only the interactive part, while the visual part stays put.

I've tried everything I can think off. Have anyone been successful doing this?

Here is the script I've been playing around with:
JASS:
function SetupMinimap takes nothing returns nothing
    local framehandle minimap = BlzGetOriginFrame(ORIGIN_FRAME_MINIMAP, 0)
    local framehandle minimapb = BlzGetOriginFrame(ORIGIN_FRAME_MINIMAP_BUTTON, 0)
    //local integer i = -5
    call BlzFrameSetScale(BlzFrameGetParent(minimap), 0.3)
    call BlzFrameSetScale(BlzFrameGetParent(minimapb ), 0.3)
    call BlzFrameSetVisible(minimap, true)
    //call BlzFrameSetAlpha(minimap, 255)
    //loop
    //   set minimap = BlzGetOriginFrame(ORIGIN_FRAME_MINIMAP, i)
    //   set minimapb = BlzGetOriginFrame(ORIGIN_FRAME_MINIMAP_BUTTON, i)
    //   call BlzFrameClearAllPoints(minimap)
    //   call BlzFrameClearAllPoints(minimapb)
    //   call BlzFrameSetVisible(minimap, true)
    //   call BlzFrameSetScale(minimap, 0.3)
    //   call BlzFrameSetVisible(minimapb, true)
    //   call BlzFrameSetScale(minimapb, 0.3)
    //   exitwhen i == 25
    //   set i = i + 1
    //endloop
endfunction
 
Status
Not open for further replies.
Top