Changeset 3252
- Timestamp:
- 02/13/10 13:44:50 (7 months ago)
- Location:
- trunk
- Files:
-
- 5 modified
-
lua/lib.keybinds.lua (modified) (1 diff)
-
lua/lib.mousepick.lua (modified) (1 diff)
-
lua/lib.uodragdrop.lua (modified) (1 diff)
-
plugins/itemcounter.lua (modified) (1 diff)
-
plugins/loot.lua (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lua/lib.keybinds.lua
r3092 r3252 58 58 RegisterListener("keyup", function (key) gCurrentRenderer:CamKeyUp(key) end) 59 59 60 RegisterListener("mouse_left_drag_start", function () IrisDragStart(gLastMouseDownX,gLastMouseDownY) end) 60 61 RegisterListener("mouse_left_click_single", function () IrisSingleClick() end) 61 62 RegisterListener("mouse_left_click_double", function () IrisDoubleClick() end) -
trunk/lua/lib.mousepick.lua
r2955 r3252 168 168 end 169 169 170 function 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 177 end 170 178 function IrisSingleClick () 171 179 ClosePopUpMenu() -
trunk/lua/lib.uodragdrop.lua
r3248 r3252 245 245 else 246 246 MainMousePick() 247 gMouseDragMobile = nil 247 248 if (gMousePickFoundHit) then 248 249 if (gMousePickFoundHit.hittype == kMousePickHitType_ContainerItem) then PrepareDragContainerItem(gMousePickFoundHit.item) end 249 250 if (gMousePickFoundHit.hittype == kMousePickHitType_PaperdollItem) then PrepareDragPaperdollItem(gMousePickFoundHit.item) end 250 251 if (gMousePickFoundHit.hittype == kMousePickHitType_Dynamic) then PrepareDragDynamic(gMousePickFoundHit.dynamic) end 252 if (gMousePickFoundHit.hittype == kMousePickHitType_Mobile ) then gMouseDragMobile = gMousePickFoundHit.mobile end 251 253 end 252 254 end -
trunk/plugins/itemcounter.lua
r3248 r3252 50 50 {{name="bandas" ,artid=0xe21, usagetype=kItemCounterUsageType_Use}}, 51 51 {{name="arrows" ,artid=3903}}, 52 {{name="arrows" ,artid=0x1bfb}}, 52 53 53 54 { -- tailor -
trunk/plugins/loot.lua
r3210 r3252 191 191 local artid = item.artid 192 192 local hue = item.hue 193 print("LootEvaluateItem",item,artid,hue)193 --~ print("LootEvaluateItem",item,artid,hue) 194 194 if (artid == 0x170b) then return true end -- kobold schuhe 195 195 if (artid == 0x2da2) then return true end -- mysticism scroll … … 216 216 if (artid == 0x26b7) then return true end -- fungus 217 217 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) 219 219 --~ if (artid == 0x1079) then return true end -- raw leather 220 220 if (artid == kLootArtID_Gold and item.amount >= gLootPluginMinGoldAmount) then return true end -- gold
