Raised This Month: $51 Target: $400
 12% 

SM Super Menu


Post New Thread Reply   
 
Thread Tools Display Modes
pRED*
Join Date: Dec 2006
Old 12-25-2007 , 20:20   Re: SM Super Menu
Reply With Quote #351

And 3.

Last edited by pRED*; 12-25-2007 at 21:42.
pRED* is offline
pRED*
Join Date: Dec 2006
Old 12-25-2007 , 21:41   Re: SM Super Menu
Reply With Quote #352

I will get there eventually.
Attached Files
File Type: zip dynamicmenu.zip (17.5 KB, 187 views)
pRED* is offline
PrefeX
Member
Join Date: Apr 2006
Location: Norway
Old 12-25-2007 , 22:57   Re: SM Super Menu
Reply With Quote #353

Quote:
Originally Posted by pRED* View Post
Supposedly it should support unicode.. Not sure why it doesn't. I'll try figure it out but you might just have to make do with standard characters.
when this is fixed, please let me know
__________________
Life would be a lot easier if I had the source code.
PrefeX is offline
ottobohn
Senior Member
Join Date: Sep 2007
Old 12-27-2007 , 17:27   Re: SM Super Menu
Reply With Quote #354

Awesome. I'll give this a try and tell you how it works out. You save my life!

otto
ottobohn is offline
pRED*
Join Date: Dec 2006
Old 12-27-2007 , 21:43   Re: SM Super Menu
Reply With Quote #355

Just a note. You need to delete/remove the old sm_super_menu.smx file.

Manni:
Attached Files
File Type: zip dynamicmenu.zip (17.5 KB, 158 views)
pRED* is offline
Manni
Senior Member
Join Date: Nov 2007
Location: Germany
Old 12-27-2007 , 21:44   Re: SM Super Menu
Reply With Quote #356

thx again pRED*

for the fast updates

Last edited by Manni; 12-27-2007 at 21:55.
Manni is offline
Send a message via ICQ to Manni
BehaartesEtwas
Senior Member
Join Date: Dec 2007
Old 12-29-2007 , 09:19   Re: SM Super Menu
Reply With Quote #357

I would suggest the following change ("diff -i -b -Naur" relative to the current sm_super_menu.sp):

Code:
--- /opt/halflife/downloads/sm_super_menu.sp    2007-12-01 03:19:18.000000000 +0100
+++ sm_super_menu.sp    2007-12-29 15:04:48.000000000 +0100
@@ -616,9 +616,15 @@
         new String:execute[7];
         KvGetString(kv, "execute", execute, sizeof(execute), "player");
         
+        //added by BehaartesEtwas: option to close the menu after command execution (instead of displaying the TopMenu again)
+        new String:oneshot[11];
+        KvGetString(kv, "oneshot", oneshot, sizeof(oneshot), "persistant");
+
         KvGoBack(kv);
         
+        if (oneshot[0]=='p') {
         DisplayTopMenu(hTopMenu, client, TopMenuPosition_LastCategory);
+        }
         
         if (execute[0]=='p')
         {
This will allow an option "oneshot" for a menu item which causes the super menu to disapper after executing the command, instead of showing the main menu again. This is usefull, if the command displays a menu itself (e.g. a vote), which results in very confusing situations else...

Last edited by BehaartesEtwas; 12-29-2007 at 09:20. Reason: wrong direction of diff...
BehaartesEtwas is offline
pRED*
Join Date: Dec 2006
Old 01-04-2008 , 19:48   Re: SM Super Menu
Reply With Quote #358

Removed some debug messages.

BehaartesEtwas : I'll think about it. It should currently work because it redisplays the menu before firing the command so the new vote menu or whatever should overwrite it. Reading from kv's is not particularly fast and this doesn't seem to have much gain.
Attached Files
File Type: zip dynamicmenu.zip (17.4 KB, 223 views)
pRED* is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 01-14-2008 , 14:04   Re: SM Super Menu
Reply With Quote #359

Quote:
Originally Posted by pRED* View Post
Removed some debug messages.

BehaartesEtwas : I'll think about it. It should currently work because it redisplays the menu before firing the command so the new vote menu or whatever should overwrite it. Reading from kv's is not particularly fast and this doesn't seem to have much gain.
heya pRED*

Been using the latest version you included on the thread above and it works quite happily (linux & SM version 1.0.0.1732), obviously there is debug messages being printed out in the console, plus not a sniff of an error in the SM error files.

Stunning integration, 2 points to note:

1. Add sv_alltalk pls by default
2. When in 3rd level menu, having the option 8 to go back woudl be nice

Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
SixSicSix
Senior Member
Join Date: Jan 2008
Old 01-31-2008 , 14:07   Re: SM Super Menu
Reply With Quote #360

I'm trying to modify the addon to do CVars.

This is what I want the mod to do:

sm_color NAMEGOESHERE 0 0 0 0

This is what it does:

sm_color NAMEGOESHERE" "0 0 0 0

The quotes are causing a problem.


I figured out that it was adding quotes by changing the cmd name to "say #1 #2"

PLEASE help me out here.

EDIT:

To rectify this issue, instead of having #1 #2 in the cmd line, type @1 @2.



Here's the fix in its entirety in cane someone else uses sm_colour:

"Set Player Color"
{
"cmd" "sm_color #1 @2"
"admin" "sm_kick"
"execute" "server"
"1"
{
"type" "player"
"method" "name"

}
"2"
{
"type" "list"
"title" "Color"
"1" "255 255 255 255"
"1." "Normal"
"2" "0 0 0 0"
"2." "Black"
"3" "0 255 0 255"
"3." "Green"
"4" "200 200 200 200"
"4." "Dark"
"5" "150 150 150 150"
"5." "Extra Dark"
}

}

Last edited by SixSicSix; 01-31-2008 at 14:22.
SixSicSix is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode