• 🏆 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!

[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