Hi,
I'm trying my hand at making miniwindows, but I'm having trouble implementing hotspots.
The following code is in a plugin (and passes when used inside check())
WindowAddHotspot("shipNav", "North",
171, 10, 213, 53,
"", -- mouseover
"", -- cancelmouseover
"", -- mousedown
"", -- cancelmousedown
"mouseup", -- mouseup
"Hrm", -- hint text if they hover over it
0, 0))
however it doesn't actually seem to do anything.
If I use WindowHotspotInfo("shipNav", "North", <number>) then it returns the correct infomation about the hotspot, however WindowHotspotList("ShipNav") returns nil.
Is there anything extra I need to do to attach the hotspot to the window and enable it?
Thanks
I'm trying my hand at making miniwindows, but I'm having trouble implementing hotspots.
The following code is in a plugin (and passes when used inside check())
WindowAddHotspot("shipNav", "North",
171, 10, 213, 53,
"", -- mouseover
"", -- cancelmouseover
"", -- mousedown
"", -- cancelmousedown
"mouseup", -- mouseup
"Hrm", -- hint text if they hover over it
0, 0))
however it doesn't actually seem to do anything.
If I use WindowHotspotInfo("shipNav", "North", <number>) then it returns the correct infomation about the hotspot, however WindowHotspotList("ShipNav") returns nil.
Is there anything extra I need to do to attach the hotspot to the window and enable it?
Thanks