Removed mousedrag&drop for actionbar

This was wrongly introduced some commits ago
Maikel de Vries 2012-01-31 23:26:51 +01:00
parent ca6f25b785
commit 8a02a17d44
1 changed files with 4 additions and 2 deletions

View File

@ -50,8 +50,6 @@ protected func Construction()
this.Parallaxity = [0,0]; this.Parallaxity = [0,0];
// visibility // visibility
this.Visibility = VIS_None; this.Visibility = VIS_None;
// mouse drag
this.MouseDrag = MD_DragSource | MD_DropTarget;
} }
protected func Destruction() protected func Destruction()
@ -286,6 +284,10 @@ public func SetObject(object obj, int type, int pos, int hot)
myobject = obj; myobject = obj;
hotkey = hot; hotkey = hot;
// Set mousedrag for inventory objects
if (actiontype == ACTIONTYPE_INVENTORY)
this.MouseDrag = MD_DragSource | MD_DropTarget;
if(!myobject) if(!myobject)
{ {
SetGraphics("None"); SetGraphics("None");