<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.visionaire-tracker.net/index.php?action=history&amp;feed=atom&amp;title=Custom_Item-Dragging_System</id>
		<title>Custom Item-Dragging System - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.visionaire-tracker.net/index.php?action=history&amp;feed=atom&amp;title=Custom_Item-Dragging_System"/>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Custom_Item-Dragging_System&amp;action=history"/>
		<updated>2026-05-26T04:46:02Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.visionaire-tracker.net/index.php?title=Custom_Item-Dragging_System&amp;diff=12172&amp;oldid=prev</id>
		<title>EK at 16:57, 12 August 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Custom_Item-Dragging_System&amp;diff=12172&amp;oldid=prev"/>
				<updated>2023-08-12T16:57:19Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 16:57, 12 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot; &gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This script is an alternative for the default item-dragging in Visionaire Studio. It allows the item cursor to react to object hotspots in various ways.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This script is an alternative for the default item-dragging in Visionaire Studio. It &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;renders a clicked item next to the cursor and &lt;/ins&gt;allows the item cursor to react to object hotspots in various ways &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(scale, rotate etc.). You can adjust the parameters at the top of the script to customize the behaviour&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikiVisionaire:diff:version:1.11a:oldid:12171:newid:12172 --&gt;
&lt;/table&gt;</summary>
		<author><name>EK</name></author>	</entry>

	<entry>
		<id>https://wiki.visionaire-tracker.net/index.php?title=Custom_Item-Dragging_System&amp;diff=12171&amp;oldid=prev</id>
		<title>EK at 16:49, 12 August 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Custom_Item-Dragging_System&amp;diff=12171&amp;oldid=prev"/>
				<updated>2023-08-12T16:49:37Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 16:49, 12 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l82&quot; &gt;Line 82:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 82:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;game.DraggableItems = false&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;game.DraggableItems = false&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function Unuse(eventType) if eventType==eEvtMouseRightButtonUp then game.UsedItem=emptyObject end end&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function Unuse(eventType)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &lt;/ins&gt;if eventType == eEvtMouseRightButtonUp then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &lt;/ins&gt;game.UsedItem = emptyObject&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &lt;/ins&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;registerEventHandler(&amp;quot;mouseEvent&amp;quot;, &amp;quot;Unuse&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;registerEventHandler(&amp;quot;mouseEvent&amp;quot;, &amp;quot;Unuse&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;{{toc}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;{{toc}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikiVisionaire:diff:version:1.11a:oldid:12169:newid:12171 --&gt;
&lt;/table&gt;</summary>
		<author><name>EK</name></author>	</entry>

	<entry>
		<id>https://wiki.visionaire-tracker.net/index.php?title=Custom_Item-Dragging_System&amp;diff=12169&amp;oldid=prev</id>
		<title>EK: Created page with &quot;{| class=&quot;ts&quot; style=&quot;width:100%&quot; |- ! style=&quot;text-align:left&quot; | Name !! style=&quot;text-align:left&quot; | Type !! style=&quot;text-align:left&quot; | By |- | Custom Item-Dragging System || Defi...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Custom_Item-Dragging_System&amp;diff=12169&amp;oldid=prev"/>
				<updated>2023-08-12T16:35:48Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| class=&amp;quot;ts&amp;quot; style=&amp;quot;width:100%&amp;quot; |- ! style=&amp;quot;text-align:left&amp;quot; | Name !! style=&amp;quot;text-align:left&amp;quot; | Type !! style=&amp;quot;text-align:left&amp;quot; | By |- | Custom Item-Dragging System || Defi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| class=&amp;quot;ts&amp;quot; style=&amp;quot;width:100%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;text-align:left&amp;quot; | Name !! style=&amp;quot;text-align:left&amp;quot; | Type !! style=&amp;quot;text-align:left&amp;quot; | By&lt;br /&gt;
|-&lt;br /&gt;
| Custom Item-Dragging System || Definition || Christopher A. Summer&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This script is an alternative for the default item-dragging in Visionaire Studio. It allows the item cursor to react to object hotspots in various ways.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
# Add the [[#Main_Script|main script]] to the Visionaire Studio Script editor &amp;amp; set the script as a definition script.&lt;br /&gt;
# Disable the default item-dragging by unchecking &amp;lt;span class=&amp;quot;inlinecode&amp;quot;&amp;gt;Allow dragging of items from inventory&amp;lt;/span&amp;gt; in the game properties and/or unchecking &amp;lt;span class=&amp;quot;inlinecode&amp;quot;&amp;gt;Items can be dragged with this command&amp;lt;/span&amp;gt; for all command buttons.&lt;br /&gt;
# Choose &amp;quot;Combined command&amp;quot; as the command type for the command button you wish to drag items with.&lt;br /&gt;
# In your actions for combining an item with an object/character/item do not use the execution type &amp;quot;Item dropped&amp;quot; but instead choose &amp;quot;Executed command&amp;quot; and select the item (combined command).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Main Script ==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;button class=&amp;quot;copybtn&amp;quot; onclick=&amp;quot;CopyToClipboard('main_script')&amp;quot;&amp;gt;&amp;lt;/button&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot; id=&amp;quot;main_script&amp;quot;&amp;gt;&lt;br /&gt;
local ItemSprite&lt;br /&gt;
-- SET OFFSET NEXT TO MOUSE-CURSOR:&lt;br /&gt;
local X_Offset = 32&lt;br /&gt;
local Y_Offset = -16&lt;br /&gt;
-- SET GENERAL SCALE AND SCALE-WOBBLE WHEN ACTIVE:&lt;br /&gt;
local ItemScale&lt;br /&gt;
local ItemScaleGeneral   = 0.75&lt;br /&gt;
local ItemScaleFactor    = 0.025  -- 0.0 to deactivate scale-wobble&lt;br /&gt;
local ItemScaleSpeed     = 0.0125 -- 0.0 to deactivate scale-wobble&lt;br /&gt;
-- SET ROTATION-WOBBLE WHEN ACTIVE:&lt;br /&gt;
local ItemRot&lt;br /&gt;
local ItemRotationFactor = 0.2    -- 0.0 to deactivate rotation-wobble&lt;br /&gt;
local ItemRotationSpeed  = 0.5    -- 0.0 to deactivate rotation-wobble&lt;br /&gt;
-- SET ALPHA WHEN INACTIVE AND ACTIVE:&lt;br /&gt;
local ItemAlpha&lt;br /&gt;
local ItemAlphaInactive  = 0.75&lt;br /&gt;
local ItemAlphaActive    = 1.0&lt;br /&gt;
-- SET COLOR WHEN INACTIVE AND ACTIVE:&lt;br /&gt;
local ItemColor&lt;br /&gt;
local ItemColorInactive  = 0xdddddd&lt;br /&gt;
local ItemColorActive    = 0xffffff&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
graphics.addDrawFunc(&amp;quot;ItemDragCustom()&amp;quot;,1)&lt;br /&gt;
&lt;br /&gt;
function ItemDragCustom()&lt;br /&gt;
 &lt;br /&gt;
 --if game.UsedItem then&lt;br /&gt;
 if not game.UsedItem:isEmpty() then&lt;br /&gt;
  &lt;br /&gt;
  ItemScale = ItemScaleGeneral&lt;br /&gt;
  &lt;br /&gt;
  --&lt;br /&gt;
  if game.CurrentObject:isEmpty() then&lt;br /&gt;
   ItemScale = ItemScaleGeneral&lt;br /&gt;
   ItemRot   = 0.0&lt;br /&gt;
   ItemAlpha = ItemAlphaInactive&lt;br /&gt;
   ItemColor = ItemColorInactive&lt;br /&gt;
  else&lt;br /&gt;
   ItemScale = ItemScaleGeneral + (ItemScaleFactor * math.sin(getTime() * (ItemScaleSpeed) ))&lt;br /&gt;
   ItemRot   = ItemRotationFactor * math.sin(getTime() * (ItemRotationSpeed*0.01) )&lt;br /&gt;
   ItemAlpha = ItemAlphaActive&lt;br /&gt;
   ItemColor = ItemColorActive&lt;br /&gt;
  end&lt;br /&gt;
  --&lt;br /&gt;
  &lt;br /&gt;
  ItemSprite = graphics.loadFromFile( game.UsedItem.Sprite.Sprite:getPath() )&lt;br /&gt;
  ItemSprite.position = {&lt;br /&gt;
   x = (getCursorPos().x + X_Offset),&lt;br /&gt;
   y = (getCursorPos().y + Y_Offset)&lt;br /&gt;
  }&lt;br /&gt;
  ItemSprite.rotationCenter = {&lt;br /&gt;
   x=ItemSprite.position.x + (ItemSprite.width/2),&lt;br /&gt;
   y=ItemSprite.position.y+(ItemSprite.height/2)&lt;br /&gt;
  }&lt;br /&gt;
  ItemSprite.scale = ItemScale&lt;br /&gt;
  ItemSprite.rotation = ItemRot&lt;br /&gt;
  graphics.drawSprite( ItemSprite , ItemAlpha , ItemColor)&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
game.DraggableItems = false&lt;br /&gt;
function Unuse(eventType) if eventType==eEvtMouseRightButtonUp then game.UsedItem=emptyObject end end&lt;br /&gt;
registerEventHandler(&amp;quot;mouseEvent&amp;quot;, &amp;quot;Unuse&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;{{toc}}&lt;/div&gt;</summary>
		<author><name>EK</name></author>	</entry>

	</feed>