I "kind" of got the color change to work, but it dose not look good, its like you can see the old color behind it and it will only update when there is some action to the mud.
Can you please give a example of the function with the room
id in it, I am not very good at function, yet :)
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<muclient>
<plugin
name="KillArea"
author="Quit"
id="1257642da6518030a25c93c4"
language="Lua"
purpose="List Area to level in"
date_written="2015-05-03 20:32:36"
requires="4.97"
version="1.0"
>
</plugin>
<aliases>
<alias
match="killlist"
enabled="y"
send_to="12"
sequence="100"
>
<send>
WindowCreate (win,
100, 100, 300, 100,
windowinfo.window_mode,
windowinfo.window_flags,
ColourNameToRGB "#000000")
WindowRectOp (win, 5, 0, 0, 0, 0, 5, 15 + 0x1000) -- draw border
movewindow.add_drag_handler (win, 0, 0, 0, 20) -- add the drag handler
WindowText (win, font, "Kill Areas", 25, 5, 0, 0, ColourNameToRGB "green")
WindowText (win, font, "Jungles of Verume", 25, 25, 0, 0, ColourNameToRGB "yellow")
WindowText (win, font, "Seven Wonders", 25, 35, 0, 0, ColourNameToRGB "yellow")
WindowAddHotspot(win, "Verume",
25, 25, 280, 35, -- rectangle Left, Top, Right, Bottom
"mouseover", "CancelMouseOver", "", "",
"mouseup",
"Goto Jungle of Verume", -- tooltip text
miniwin.cursor_hand, 0) -- hand cursor
WindowAddHotspot(win, "wonders",
25, 35, 280, 45, -- rectangle Left, Top, Right, Bottom
"mouseover1", "CancelMouseOver1", "", "",
"mouseup1",
"Goto Seven Wonders", -- tooltip text
miniwin.cursor_hand, 0) -- hand cursor
function mouseup (flags, Verume)
Execute ("mapper goto 30599")
end -- mouseup
function mouseover (flags, Verume)
WindowText (win, font, "Jungles of Verume", 25, 25, 0, 0, ColourNameToRGB "blue")
end -- mouseover
function CancelMouseOver (flags, Verume)
WindowText (win, font, "Jungles of Verume", 25, 25, 0, 0, ColourNameToRGB "yellow")
end -- CancelMouseOver
function mouseup1 (flags, wonders)
Execute ("mapper goto 32981")
end -- mouseup1
function mouseover1 (flags, wonders)
WindowText (win, font, "Seven Wonders", 25, 35, 0, 0, ColourNameToRGB "blue")
end -- mouseover1
function CancelMouseOver1 (flags, wonders)
WindowText (win, font, "Seven Wonders", 25, 35, 0, 0, ColourNameToRGB "yellow")
end -- CancelMouseOver1
WindowShow (win, true)
</send>
</alias>
</aliases>
<!-- Script -->
<script>
<![CDATA[
require "movewindow" -- load the movewindow.lua module
win = GetPluginID () .. "_KillArea"
font = "f"
function OnPluginInstall ()
-- install the window movement handler, get back the window position
windowinfo = movewindow.install (win, 6) -- default to 6 (on top right)
-- make window so I can grab the font info
WindowCreate (win, 0, 0, 0, 0, 1, 0, 0)
-- add the font
WindowFont (win, font, "Lucida Console", 9)
end -- OnPluginInstall
function OnPluginSaveState ()
-- save window current location for next time
movewindow.save_state (win)
end -- function OnPluginSaveState
]]>
</script>
<include name="constants.lua"/>
</muclient>
|