Skip to content
MSN

Creating menus...

A TG007 community discussion started by lostboyjoey.

Discussion 5 posts
Page 1 of 1
Open
Topic #4604 · 5 published posts · 767 views

I was wondering is there a cheat or an easy way to make menus? I have put together one hell of a protection script with ALOT of help from ALOT of people all of whom are listed in the bot with credit given to them. The only thing I need now is menus. I have all the options in the menu bar with a sub menu(click yes/no). Its not real user friendly unless you know somewhat of what you are doing. So I am trying to dumb it down alot. My beta testers say its an awesome script but it needs menus and I need 3 more peoples permission cause I am using some of their coding as well.

You could try something like this:

Protections
.Channel Protections
..$prot(#tlock) Topic lock:{ $gc(#tlock) }
..$prot(#mlock) Mode lock:{ $gc(#mlock) }
.Own Protections
..$prot(#qprot) Owner protection:{ $gc(#qprot) }

-----

alias prot { return $iif($group($1) == on,$style(1)) }
alias gc { $iif ($group($1) == on,.disable $1,.enable $1) }

Edit it to suit

 

Thanx boss, I am using something similar to that for the options in the menu, click commands and the menu drops down you see the Protections button click on that then the rest of the options pop up. Well not pop up sorta shoot out the side of the menu, lol. I would do a screen shot for ya but everytime I do one using printscreen it looks like crap when ya open it. All tiny and cant read the words. I am looking for a way to do maybe a dialog menu like ya see in alot of other scripts. But I have to admit the way you coded your menu is alot less typing then the way I coded mine. lol I am gonna try yours and see the difference. Boss if I decide to redo my menus with your coding, can I add your name to the credits list and use your coding when I release?

Up to you; I don't really mind if someone adds me to their script's credits as "the idea for the menus" or not.

 

I add everyone now to the credits, cause I heavily coded/re-coded a flawed snippet and lost the original snippet with the creator's name. Well long story short I posted the new coding for someone that asked for the fix and I caught heat for not adding the credit to the original creator.