- Joined
- Feb 4, 2008
- Messages
- 3,511
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:
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