If you wish to help support this site please disable your adblock program.


Click here to become a Premium Member : No ads site-wide : Forum privileges : Upgraded services : Giveaway & moreSupport the Site! Support Us!
Tukui » Lua Script Help » Minimap Resize
  1. Challenger Chisu
    offline
    Member

    XP: 
     

    107 / 1337

    Hi there,
    I'm about learning some things for now and i'm editing the v14 atm. Having the latest build.
    My problem is, that i resize the minimap, but the minimap won't size. I'ts hard to explain so i made a screenshot :

    And this is my code so far :

    --------------------------------------------------------------------
    -- Tukui Minimap Script
    --------------------------------------------------------------------
    
    local TukuiMinimap = CreateFrame("Frame", "TukuiMinimap", UIParent)
    TukuiMinimap:CreatePanel("Default", 1, 1, "CENTER", UIParent, "CENTER", 0, 0)
    TukuiMinimap:RegisterEvent("ADDON_LOADED")
    TukuiMinimap:Point("TOPRIGHT", UIParent, "TOPRIGHT", -5, -5)
    TukuiMinimap:Size(147)
    TukuiMinimap:SetClampedToScreen(true)
    TukuiMinimap:SetMovable(true)
    TukuiMinimap.text = T.SetFontString(TukuiMinimap, C.media.pixelfont, 10, "THINOUTLINE")
    TukuiMinimap.text:SetPoint("CENTER")
    TukuiMinimap.text:SetText(L.move_minimap)
    TukuiMinimap:CreateShadow()
    
    -- kill the minimap cluster
    MinimapCluster:Kill()
    
    -- Parent Minimap into our Map frame.
    Minimap:SetParent(TukuiMinimap)
    Minimap:ClearAllPoints()
    Minimap:Point("TOPLEFT", 2, -2)
    Minimap:Point("BOTTOMRIGHT", -2, 2)

    I'm having problems to find the right solution. Normally the minimap mustn't have this offset, when i simply resize it, don't it ?
    Maybe someone can help.
    Thanks in advice.

    Posted 2 years ago - #1
     


  2. If you wish to help support this site please disable your adblock program.


    Rival Nisha
    offline
    VIP

    XP: 
     

    300 / 1337

    Add a line with:

    Minimap:Size(147, 147)

    to ur code.

    Posted 2 years ago - #2
     
  3. Challenger Chisu
    offline
    Member

    XP: 
     

    107 / 1337

    Thanks, it works.

    Posted 2 years ago - #3
     
RSS feed for this topic

Reply

You must log in to post.