View Single Post
  #9  
Unread 07-09-2011, 01:32 AM
MrJackdaw's Avatar
MrJackdaw MrJackdaw is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2009
Location: Lancaster, England
Posts: 249
Don't know if this is any use, but this comes from when I was fooling around trying to understand the MouseWheel event;
Code:
NewQuickslot=class (Turbine.UI.Lotro.Quickslot)
function NewQuickslot:Constructor (size)
	Turbine.UI.Lotro.Quickslot.Constructor(self)
	self.size=size
	self.ShortcutChanged=function()
		if self.size~=36 then self:SetStretchMode(1) end
		self:SetSize(self.size,self.size)
	end
end

Window={}
Window=Turbine.UI.Window()
Window:SetVisible(true)
Window:SetSize(100,100)
Window:SetPosition(0,0)

Window.Quickslot=NewQuickslot(36)
Window.Quickslot:SetPosition(0,0)
Window.Quickslot:SetParent(Window)

Window.Quickslot.MouseWheel=function(sender, args)
Turbine.Debug.Table.Dump(args)
Turbine.Shell.WriteLine(args.Direction)
end
__________________
************************************************** ************************************************** **
"Our ideals may never be realised, But they indicate what we are trying to do." Dick Tahta
Reply With Quote