button menu

Share your scripts and packages with other Mudlet users.
Post Reply
dracmas
Posts: 5
Joined: Sat Jan 05, 2013 11:30 pm

button menu

Post by dracmas »

Figured someone might find this useful. Exported from my client. Used the guide to get this.
Using aliases for the menu console/show/hide and a button with push down/up to show/hide it.

Gui is messed up somewhat because Im still working on it, but this is to show how it looks. Going
to change the colors but this shows it.
http://troll.ws/image/994db9d2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.0">
<TriggerPackage/>
<TimerPackage/>
<AliasPackage>
<AliasGroup isActive="yes" isFolder="yes">
<name>directions</name>
<script></script>
<command></command>
<packageName></packageName>
<regex></regex>
<Alias isActive="yes" isFolder="no">
<name>^showdirections$</name>
<script>
thedirections = Geyser.MiniConsole:new({
name="thedirections",
x="0%", y="0%",
width="40c", height="20c",
})
thedirections:setColor("red")
clearWindow("thedirections")

thedirections:cecho("<blue:red>Where would you like to go :\n")
echoLink("thedirections", "Abyss", [[send("n;n;n;n;n;n;e;e;e;e;e;e;e;e;e;e")]], "Abyss 80-95")
thedirections:echo("\n")
echoLink("thedirections", "Alcatraz", [[send("e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;open east;e;e;e;e;e;e;e;e;n;n;e;n;s;e;e;n;e;n;e")]], "Alcatraz 80-94")
thedirections:echo("\n")
echoLink("thedirections", "Bloodfest 98", [[send("w;w;w;w;s;s;sw;e")]], "Bloodfest 98 5-30")
thedirections:echo("\n")
echoLink("thedirections", "Bryn Cail", [[send("w;w;w;w;w;w;w;n")]], "Bryn Cail 40-60")
thedirections:echo("\n")
echoLink("thedirections", "Cable", [[send("s;s;s;s;s;s;s;s;se;s;s;e;e;n;down")]], "Cable 25-50")
thedirections:echo("\n")
echoLink("thedirections", "Crystal Palace", [[send("n;n;n;n;n;n;w;n;u")]], "Crystal Palace 50-70")
thedirections:echo("\n")
echoLink("thedirections", "Ctuaoc Warren", [[send("s;s;s;s;s;s;s;s;s;e;e;s;s;e;d")]], "Ctuaoc Warren 10-45")
thedirections:echo("\n")
echoLink("thedirections", "Dreamscape", [[send("w;w;w;w;w;w;w;w;w;w;s;s;w;n")]], "Dreamscape 30-60")
thedirections:echo("\n")
echoLink("thedirections", "Kalmara Mountain", [[send("e;e;e;e;e;n;n;n")]], "Kalmara Mountain 10-50")
thedirections:echo("\n")
echoLink("thedirections", "Luferacims Castle", [[send("s;s;s;s;s;s;s;s;s;e;e;s;s;e;d;nw;n;n;n;n;nw;w;w;nw;nw;sw;w;w;n;nw;n")]], "Luferacims Castle 50-90")
thedirections:echo("\n")
echoLink("thedirections", "Sivas Lament", [[send("s;s;w;n;w;enter vortex")]], "Sivas Lament 25-60 (detect invis+fly)")
thedirections:echo("\n")
echoLink("thedirections", "Slums", [[send("e;e;e;e;e;s;s;s;s;e;e;s;e;e;d;n;n;n;e;e;n")]], "Slums 90-93")
thedirections:echo("\n")
echoLink("thedirections", "Soneji Mansion", [[send("e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;e;n;n;n;n;n;n;open north;n;n;n;n;n")]], "Soneji Mansion 70-90")
thedirections:echo("\n")


setFgColor("thedirections", 255,255,255)
setBgColor("thedirections", 255,0,0)



resetFormat()
</script>
<command></command>
<packageName></packageName>
<regex>^showdirections$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>^hidedirections$</name>
<script>thedirections:hide()</script>
<command></command>
<packageName></packageName>
<regex>^hidedirections$</regex>
</Alias>
<Alias isActive="yes" isFolder="no">
<name>^Goto Abyss$</name>
<script></script>
<command>n;n;n;n;n;n;e;e;e;e;e;e;e;e;e;e</command>
<packageName></packageName>
<regex>^goto abyss$</regex>
</Alias>
</AliasGroup>
</AliasPackage>
<ActionPackage>
<ActionGroup isActive="yes" isFolder="yes" isPushButton="no" isFlatButton="no" useCustomLayout="no">
<name>buttons</name>
<packageName></packageName>
<script></script>
<css></css>
<commandButtonUp></commandButtonUp>
<commandButtonDown></commandButtonDown>
<icon></icon>
<orientation>1</orientation>
<location>0</location>
<posX>0</posX>
<posY>0</posY>
<mButtonState>1</mButtonState>
<sizeX>983040</sizeX>
<sizeY>0</sizeY>
<buttonColumn>1</buttonColumn>
<buttonRotation>-1</buttonRotation>
<buttonColor>#ffffff</buttonColor>
<Action isActive="yes" isFolder="no" isPushButton="yes" isFlatButton="yes" useCustomLayout="no">
<name>Directions</name>
<packageName></packageName>
<script></script>
<css></css>
<commandButtonUp>hidedirections</commandButtonUp>
<commandButtonDown>showdirections</commandButtonDown>
<icon></icon>
<orientation>1</orientation>
<location>0</location>
<posX>0</posX>
<posY>0</posY>
<mButtonState>1</mButtonState>
<sizeX>231296912</sizeX>
<sizeY>231296912</sizeY>
<buttonColumn>1</buttonColumn>
<buttonRotation>0</buttonRotation>
<buttonColor>#ffffff</buttonColor>
</Action>
</ActionGroup>
</ActionPackage>
<ScriptPackage/>
<KeyPackage/>
</MudletPackage>

Post Reply