• 0

    posted a message on ScaleMyBags! replacement/update?
    Quote from Morgalm
    Good start would be to search through all scalebags files for 'this' and replace it with 'self'


    Tested and i get the exact same error but with "self" instead of "this".

    The entire code for the original addon is:

    LUA
    ScaleBags_updateContainerFrameAnchorsOld = updateContainerFrameAnchors
    scalebags = CreateFrame("Frame","ScaleMyBags",UIParent)
    scalebags:RegisterEvent("VARIABLES_LOADED")
    scalebags:SetScript("OnEvent",function () ScaleBags_OnEvent() end)
    
    
    
    function ScaleBags_SlashCommand(scale)
    scale = tonumber(scale)
    ScaleBags_ContainerScale = scale
    end
    
    
    function ScaleBags_OnEvent()
    
    if (not ScaleBags_ContainerScale) then
       ScaleBags_ContainerScale = .75
    end
    function updateContainerFrameAnchors()
    local frame, xOffset, yOffset, screenHeight, freeScreenHeight, leftMostPoint, column;
    local screenWidth = GetScreenWidth();
    local containerScale = ScaleBags_ContainerScale;
    local leftLimit = 0;
    if ( BankFrame:IsShown() ) then
    leftLimit = BankFrame:GetRight() - 25;
    end
    while ( containerScale > CONTAINER_SCALE ) do
    screenHeight = GetScreenHeight() / containerScale;
    -- Adjust the start anchor for bags depending on the multibars
    xOffset = CONTAINER_OFFSET_X / containerScale;
    yOffset = CONTAINER_OFFSET_Y / containerScale;
    -- freeScreenHeight determines when to start a new column of bags
    freeScreenHeight = screenHeight - yOffset;
    leftMostPoint = screenWidth - xOffset;
    column = 1;
    local frameHeight;
    for index, frameName in ipairs(ContainerFrame1.bags) do
    frameHeight = getglobal(frameName):GetHeight();
    if ( freeScreenHeight < frameHeight ) then
    -- Start a new column
    column = column + 1;
    leftMostPoint = screenWidth - ( column * CONTAINER_WIDTH * containerScale ) - xOffset;
    freeScreenHeight = screenHeight - yOffset;
    end
    freeScreenHeight = freeScreenHeight - frameHeight - VISIBLE_CONTAINER_SPACING;
    end
    if ( leftMostPoint < leftLimit ) then
    containerScale = containerScale - 0.01;
    else
    break;
    end
    end
    
    if ( containerScale < CONTAINER_SCALE ) then
    
    containerScale = CONTAINER_SCALE;
    end
    screenHeight = GetScreenHeight() / containerScale;
    
    -- Adjust the start anchor for bags depending on the multibars
    xOffset = CONTAINER_OFFSET_X / containerScale;
    yOffset = CONTAINER_OFFSET_Y / containerScale;
    -- freeScreenHeight determines when to start a new column of bags
    freeScreenHeight = screenHeight - yOffset;
    column = 0;
    for index, frameName in ipairs(ContainerFrame1.bags) do
    frame = getglobal(frameName);
    frame:SetScale(containerScale);
    if ( index == 1 ) then
    -- First bag
    frame:SetPoint("BOTTOMRIGHT", frame:GetParent(), "BOTTOMRIGHT", -xOffset, yOffset );
    elseif ( freeScreenHeight < frame:GetHeight() ) then
    -- Start a new column
    column = column + 1;
    freeScreenHeight = screenHeight - yOffset;
    frame:SetPoint("BOTTOMRIGHT", frame:GetParent(), "BOTTOMRIGHT", -(column * CONTAINER_WIDTH) - xOffset, yOffset );
    else
    -- Anchor to the previous bag
    frame:SetPoint("BOTTOMRIGHT", ContainerFrame1.bags[index - 1], "TOPRIGHT", 0, CONTAINER_SPACING);
    end
    freeScreenHeight = freeScreenHeight - frame:GetHeight() - VISIBLE_CONTAINER_SPACING;
    end
    end
     
     
    function ContainerFrameItemButton_OnLoad()
    this:RegisterForClicks("LeftButtonUp", "RightButtonUp");
    this:RegisterForDrag("LeftButton");
    this:RegisterEvent("CURSOR_UPDATE");
    this:RegisterEvent("BAG_UPDATE_COOLDOWN");
    this:RegisterEvent("MODIFIER_STATE_CHANGED");
     
    this.SplitStack = function(button, split)
    SplitContainerItem(button:GetParent():GetID(), button:GetID(), split);
    end
    end
    end
    SLASH_SCALEBAGS1 = "/smb"
    SlashCmdList["SCALEBAGS"] = ScaleBags_SlashCommand


    TOC
    ## Interface: 20100
    ## Title: Scale My Bags!
    ## SavedVariables: ScaleBags_ContainerScale
    scalebags.lua
    Posted in: Addon Ideas
  • 0

    posted a message on ScaleMyBags! replacement/update?
    Getting OneBag just for that would be kinda overkill since i use baggins for all other bag needs (only one that has consolidated stacks AND option to NOT use onebag view).

    I can scale the bags using visor2 but that messes with the natural placement of the bags making them not move properly depending on how many bags i have open.
    Posted in: Addon Ideas
  • 0

    posted a message on ScaleMyBags! replacement/update?
    I have been using this little addon "scalemybags" that simply lets me set a scale for the default blizzard bags to make them smaller/bigger (i use default bags to sort stuff into specific bags to be able to fast and easy swap between profession bags and bags holding additional raid gear and similar) but after the 4.0 patch its causing errors with Baggins. Running either on its own is fine, but with both enabled opening baggins bags will toss some errors.

    More precisely about 35-40 copies of

    Using Ace2 baggins
    1x ScaleBags\scalebags.lua:87: attempt to index global 'this' (a nil value)
    <string>:"*:OnLoad":1: in function <[string "*:OnLoad"]:1>
    <in C code>: ?
    <in C code>: ?
    <in C code>: in function `CreateFrame'
    Baggins-440\Baggins.lua:1650: in function `CreateItemButton'
    Baggins-440\Baggins.lua:1359: in function `ReallyLayoutSection'
    Baggins-440\Baggins.lua:383: in function <Baggins\Baggins.lua:374>
    <in C code>: ?
    AceEvent-2.0-91097 (Ace2):298: in function `TriggerEvent'
    AceEvent-2.0-91097 (Ace2):372: in function <Ace2\AceEvent-2.0\AceEvent-2.0.lua:345>
    
    Locals:
    self = BagginsBag1Section2Item1 {
     0 = <userdata>
    }
    
      ---


    Using ace3 Baggins
    1x ScaleBags\scalebags.lua:87: attempt to index global 'this' (a nil value)
    <string>:"*:OnLoad":1: in function <[string "*:OnLoad"]:1>
    <in C code>: ?
    <in C code>: ?
    <in C code>: in function `CreateFrame'
    Baggins-486\Baggins.lua:1658: in function `CreateItemButton'
    Baggins-486\Baggins.lua:1381: in function `ReallyLayoutSection'
    Baggins-486\Baggins.lua:405: in function `?'
    Baggins-486\Baggins.lua:89: in function <Baggins\Baggins.lua:81>
    
    Locals:
    self = BagginsBag1Section11Item9 {
     0 = <userdata>
    }
    
      ---


    only difference is different Itemx numbers in the locals section.

    The error causes items in the blizzard bags to become non-interactive

    I went to look for updates but can't find the addon anywhere nor can i seem to find any other addons that does the same so i was wondering if anyone know if there is any update anywhere, have a local copy thats updated or know of an addon that does nothing but let you scale the blizzard bags.
    Posted in: Addon Ideas
  • 0

    posted a message on Skinner
    A few errors still popping.

    1x Skinner-b4.13164.8\Skinner.lua:934: attempt to index local 'obj' (a nil value)
    Skinner-b4.13164.8\SkinMe\Altoholic.lua:40: in function <Skinner\SkinMe\Altoholic.lua:3>
    (tail call): ?:
    <in C code>: in function `xpcall'
    Skinner-b4.13164.8\UtilFuncs.lua:88: in function <Skinner\UtilFuncs.lua:86>
    Skinner-b4.13164.8\UtilFuncs.lua:151: in function `checkAndRunAddOn'
    Skinner-b4.13164.8\AddonFrames.lua:146: in function <Skinner\AddonFrames.lua:101>
    (tail call): ?:
    <in C code>: ?
    <string>:"safecall Dispatcher[2]":9: in function <[string "safecall Dispatcher[2]"]:5>
    (tail call): ?:
    AceTimer-3.0-5 (Ace3):164: in function <Ace3\AceTimer-3.0\AceTimer-3.0.lua:138>
    
      ---




    1x Skinner-b4.13164.8\SkinMe\tomQuest2.lua:36: attempt to index field 'WatchFrame' (a boolean value)
    (tail call): ?:
    <in C code>: in function `xpcall'
    Skinner-b4.13164.8\UtilFuncs.lua:88: in function <Skinner\UtilFuncs.lua:86>
    Skinner-b4.13164.8\UtilFuncs.lua:151: in function `checkAndRunAddOn'
    Skinner-b4.13164.8\AddonFrames.lua:146: in function <Skinner\AddonFrames.lua:101>
    (tail call): ?:
    <in C code>: ?
    <string>:"safecall Dispatcher[2]":9: in function <[string "safecall Dispatcher[2]"]:5>
    (tail call): ?:
    AceTimer-3.0-5 (Ace3):164: in function <Ace3\AceTimer-3.0\AceTimer-3.0.lua:138>
    
      ---



    1x Skinner-b4.13164.8\Skinner.lua:1119: attempt to perform arithmetic on local 'yOfs' (a nil value)
    Skinner-b4.13164.8\SkinMe\UrbanAchiever.lua:74: in function <Skinner\SkinMe\UrbanAchiever.lua:3>
    (tail call): ?:
    <in C code>: in function `xpcall'
    Skinner-b4.13164.8\UtilFuncs.lua:88: in function <Skinner\UtilFuncs.lua:86>
    Skinner-b4.13164.8\UtilFuncs.lua:151: in function `checkAndRunAddOn'
    Skinner-b4.13164.8\AddonFrames.lua:146: in function <Skinner\AddonFrames.lua:101>
    (tail call): ?:
    <in C code>: ?
    <string>:"safecall Dispatcher[2]":9: in function <[string "safecall Dispatcher[2]"]:5>
    (tail call): ?:
    AceTimer-3.0-5 (Ace3):164: in function <Ace3\AceTimer-3.0\AceTimer-3.0.lua:138>
    
      ---



    1x Skinner-b4.13164.8\CharacterFrames2.lua:441: attempt to index field 'WatchFrame' (a boolean value)
    (tail call): ?:
    <in C code>: in function `xpcall'
    Skinner-b4.13164.8\UtilFuncs.lua:88: in function <Skinner\UtilFuncs.lua:86>
    (tail call): ?:
    Skinner-b4.13164.8\AddonFrames.lua:18: in function <Skinner\AddonFrames.lua:2>
    (tail call): ?:
    <in C code>: ?
    <string>:"safecall Dispatcher[2]":9: in function <[string "safecall Dispatcher[2]"]:5>
    (tail call): ?:
    AceTimer-3.0-5 (Ace3):164: in function <Ace3\AceTimer-3.0\AceTimer-3.0.lua:138>
    
      ---
    Posted in: General AddOns
  • 0

    posted a message on ElkBuffBars v2 (finally Ace3 version)
    Quote from Elkano
    well, but that would still allow for intelligent removal by using eg movement as trigger...


    Not sure whats possible or not, but wouldn't it be possible for blizz to force it to be a mouseclick? And enforce the mouse has to be on a valid frame?

    (Yeah, know its kinda OT but sometimes i just dun understand what the problem is...)
    Posted in: General AddOns
  • 0

    posted a message on ElkBuffBars v2 (finally Ace3 version)
    Quote from Elkano
    also Blizzard failed when they added temporary enchants for ranged weapons... neither the SecureAuraHeader nor the cancelaura type for secureActionButtons allows you to remove them :P


    Well, blizzard messing up stuff when they add it isn't that rare of an event :p

    Hopefully they will sort it to allow removal of buffs by active clicking (im all for blocking automatic removal without active input)
    Posted in: General AddOns
  • 0

    posted a message on Skinner
    Quote from Decabah
    I'm noticing a bit of a small problem, not a bug exactly, when scaling windows that are skinned. The border on one side, sometimes multiple sides, disappears when scaled below 100%.

    For example. I have my Baggins scaled to 80% and the top border disappears. At 70%, the right and left borders disappear.


    Thats scaling error with the resolution of your screen (basicly the boreder becomes less than 1 pixel wide)
    Posted in: General AddOns
  • 0

    posted a message on ElkBuffBars v2 (finally Ace3 version)
    Quote from Litvan
    Don't know if you've already read the tread on wowinterface regarding clicking off buffs but I thought I'd throw it in here in hopes of this addon just getting that "tad" better ^^

    http://www.wowinterface.com/forums/showthread.php?t=36117


    The problem is that method don't work with the custom sorting and filtering EBB uses.
    Posted in: General AddOns
  • 0

    posted a message on ElkBuffBars v2 (finally Ace3 version)
    Quote from Rudaman
    EBB is a great addon. It replaced Sorren's Timers in my heart but... Is it possible to change the color of every single bar? I want to know at a glance whether a specifical buff/debuff is up without confusing it with all others of the same color.


    Give the specific buff/debuff its own grp and anchor that grp to the normal grp and you can set the colors as you please
    Posted in: General AddOns
  • 0

    posted a message on Skinner
    Quote from Aznamir
    I wonder, why do you guys insist on skinning PallyPower?
    I'd understand you doing it 3 years ago, but there were custom backgrounds for some time and recently the addon fully supports LibSharedMedia and even custom colors.

    I just tried the latest version of Skinner with PallyPower and it looks simply awfull. I don't get it.


    Its simple, I use skinner for PP cause i feel it looks better then the way PP skins itself, for instance PP's way of displaying borders looks horrible i want my sharp solid black borders not the faint greyish smudge PP displays my border as i also don't like how PP handles my texture. Its simplay a matter of taste for me.

    And for others it might just be simplicity, not having to sort out and removethe PP skin every time they update skinner, and not having to go into PP's settings to change things when they can just change skinners settings and change it for all addons.
    Posted in: General AddOns
  • 0

    posted a message on LuaTexts Official Thread
    Quote from gamemaster128
    local role = UnitGroupRolesAssigned(unit)
    if role == "TANK" then
        return "T"
    elseif role == "HEALER" then
        return "H"
    elseif role == "DAMAGER" then
        return "D"
    end



    works like a charm, thanks!
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    Quote from Nevcairiel
    Thats because the return values changed. It no longer produces those boolean flags, it now returns strings.

    "TANK"
    "DAMAGER"
    "HEALER"


    Okay, how would i go about to change the text to do what i need it to again? (i kinda suck at lua :/ )
    Posted in: Unit Frames
  • 0

    posted a message on LuaTexts Official Thread
    I need some help getting this role text to work again. (Atm it says everyone is a tank).

    local isTank, isHealer, isDamage = UnitGroupRolesAssigned(unit);
    if ( isTank ) then
        return "T";
    elseif ( isHealer ) then
        return "H";
    elseif ( isDamage ) then
        return "D";
    end
    Posted in: Unit Frames
  • 0

    posted a message on Post cool PitBull layouts here!
    Quote from saltorio
    Will do, too.

    I really like some of the layouts I've seen here. I've been able to come up with one that works well for me (I'll post a pic when I get home if I remember), but my biggest problem is modifying LuaTexts. Is there a thorough syntax manual available somewhere?

    Also, is there a way to force texts to fit in their parent bar? I sometimes have long names stretch beyond my layout.


    There is a tread about lua texts with lots of goodies, and i think there is a wiki post on it aswell
    Posted in: Unit Frames
  • 0

    posted a message on PitBull 4.0
    Quote from intersi
    Thanks, but that's not where you saw it, Zeelian. It was in the Elitistjerks thread :p

    http://elitistjerks.com/f32/t63351-luatexts_new_dogtags/p8/#post1486467

    Posting it here for curious people, thanks to Shot on EJ:

    local isTank, isHealer, isDamage = UnitGroupRolesAssigned(unit);
    if ( isTank ) then
    return "Tank";
    elseif ( isHealer ) then
    return "Healer";
    elseif ( isDamage ) then
    return "DPS";
    end


    Hehe, just me mixing up threads then, but it was the lua text thread, just wrong forum :p
    Posted in: Unit Frames
  • To post a comment, please or register a new account.