Changeset 3252

Show
Ignore:
Timestamp:
02/13/10 13:44:50 (7 months ago)
Author:
ghoulsblade
Message:
gui : leftclick+drag opens status gumps of mobiles
Location:
trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/lua/lib.keybinds.lua

    r3092 r3252  
    5858        RegisterListener("keyup",       function (key) gCurrentRenderer:CamKeyUp(key) end) 
    5959         
     60        RegisterListener("mouse_left_drag_start",       function () IrisDragStart(gLastMouseDownX,gLastMouseDownY) end) 
    6061        RegisterListener("mouse_left_click_single", function () IrisSingleClick() end) 
    6162        RegisterListener("mouse_left_click_double", function () IrisDoubleClick() end) 
  • trunk/lua/lib.mousepick.lua

    r2955 r3252  
    168168end 
    169169 
     170function IrisDragStart () 
     171        local mobile = gMouseDragMobile -- from MouseDownUODragDrop kMousePickHitType_Mobile 
     172        if (not mobile) then return end 
     173        local iMouseX,iMouseY = GetMousePos() 
     174        -- -50,-30 to place the dialog beneath the mouse 
     175        local widget = OpenHealthbar(mobile,iMouseX - 50,iMouseY - 30) 
     176        if (widget) then widget:BringToFront() widget:StartMouseMove() end 
     177end 
    170178function IrisSingleClick () 
    171179        ClosePopUpMenu() 
  • trunk/lua/lib.uodragdrop.lua

    r3248 r3252  
    245245        else  
    246246                MainMousePick() 
     247                gMouseDragMobile = nil 
    247248                if (gMousePickFoundHit) then 
    248249                        if (gMousePickFoundHit.hittype == kMousePickHitType_ContainerItem)      then PrepareDragContainerItem(gMousePickFoundHit.item) end 
    249250                        if (gMousePickFoundHit.hittype == kMousePickHitType_PaperdollItem)      then PrepareDragPaperdollItem(gMousePickFoundHit.item) end 
    250251                        if (gMousePickFoundHit.hittype == kMousePickHitType_Dynamic)            then PrepareDragDynamic(gMousePickFoundHit.dynamic) end 
     252                        if (gMousePickFoundHit.hittype == kMousePickHitType_Mobile      )               then gMouseDragMobile = gMousePickFoundHit.mobile end 
    251253                end 
    252254        end 
  • trunk/plugins/itemcounter.lua

    r3248 r3252  
    5050        {{name="bandas"         ,artid=0xe21,   usagetype=kItemCounterUsageType_Use}}, 
    5151        {{name="arrows"         ,artid=3903}}, 
     52        {{name="arrows"         ,artid=0x1bfb}}, 
    5253         
    5354        { -- tailor 
  • trunk/plugins/loot.lua

    r3210 r3252  
    191191        local artid     = item.artid 
    192192        local hue       = item.hue 
    193         print("LootEvaluateItem",item,artid,hue) 
     193        --~ print("LootEvaluateItem",item,artid,hue) 
    194194        if (artid == 0x170b) then return true end -- kobold schuhe 
    195195        if (artid == 0x2da2) then return true end -- mysticism scroll 
     
    216216        if (artid == 0x26b7) then return true end -- fungus 
    217217        if (artid == 0x0e2e) then return true end -- petball 
    218         print("LootEvaluateItem2",item,artid,hue,artid == kLootArtID_Gold,item.amount,gLootPluginMinGoldAmount) 
     218        --~ print("LootEvaluateItem2",item,artid,hue,artid == kLootArtID_Gold,item.amount,gLootPluginMinGoldAmount) 
    219219        --~ if (artid == 0x1079) then return true end -- raw leather 
    220220        if (artid == kLootArtID_Gold and item.amount >= gLootPluginMinGoldAmount) then return true end -- gold