Hi
Can I have Hyperlink in miniwindows ?
When I try it, it writes in the main window and not in the miniwindow
Can I have Hyperlink in miniwindows ?
When I try it, it writes in the main window and not in the miniwindow
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<muclient>
<plugin
name="killlist"
author="Me"
id="c1c2a2e0907cd424a56863be"
language="Lua"
purpose="Shows area to level in"
save_state="y"
date_written="2010-05-02 15:35:51"
requires="4.51"
version="1.0"
>
<description trim="y">
<![CDATA[
Type "killlist" to a miniwindow with areas.
]]>
</description>
</plugin>
<!-- Aliases -->
<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")
Hyperlink ("runto Elemental Chaos", "Elemental Chaos", "Elemental Chaos", "ligthblue", "black", 0)
WindowShow (win, true)
</send>
</alias>
</aliases>
<!-- Script -->
<script>
<![CDATA[
require "movewindow" -- load the movewindow.lua module
win = GetPluginID () .. "_inventory"
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>
</muclient>