Raised This Month: $ Target: $400
 0% 

Blue text in menu?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Change377
Junior Member
Join Date: Aug 2010
Old 04-17-2011 , 15:00   Blue text in menu?
Reply With Quote #1

[img]http://img192.**************/img192/4650/menutryb.png[/img]

How to place in menu blue text? Red i know, /r - but blue?
Change377 is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 04-17-2011 , 15:03   Re: Blue text in menu?
Reply With Quote #2

i think impossible, maybe thats:

menu only with:
...gry:
1.
2.
---
and 'Deathrun' and 'Freerun' are with 2 hudmessages...
JocAnis is offline
Change377
Junior Member
Join Date: Aug 2010
Old 04-17-2011 , 15:13   Re: Blue text in menu?
Reply With Quote #3

So you think that is precisely placed hudmessage next to the menu? Okey, maybe, but how to do that this hudmessage disappear in the same moment as menu (after click 1 or 2)?
Change377 is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 04-17-2011 , 15:16   Re: Blue text in menu?
Reply With Quote #4

hm maybe:

when key is pressed, set hudmessage (to replace previously) with " " text
JocAnis is offline
Change377
Junior Member
Join Date: Aug 2010
Old 04-17-2011 , 15:17   Re: Blue text in menu?
Reply With Quote #5

I dont know how to do this, could you write me simple code? Menu + hudmsg?
Change377 is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 04-17-2011 , 15:27   Re: Blue text in menu?
Reply With Quote #6

try this:
PHP Code:
public menuvoteid )
{
new 
menu menu_create"Vote for:""vote_keys" )

menu_additemmenu" ""1" )//if this doesnt work try with: menu_additem( menu, "-", "1" )
menu_additemmenu"\rFreeRun""2" )

menu_displaymenu )

set_hudmessage0501700.050.400.08.00.00.0)
show_hudmessageid"DeathRun" )
return 
PLUGIN_HANDLED
}
public 
vote_keysidmenukeys )
{
if( 
item == MENU_EXIT )
{
menu_destroymenu )
return 
PLUGIN_HANDLED
}
switch( 
item )
{
case 
0:vote_for_dr++
case 
1:vote_for_fr++
}
set_hudmessage0000.050.400.00.50.00.0)
show_hudmessageid"-" 
menu_destroymenu )
return 
PLUGIN_HANDLED

JocAnis is offline
Change377
Junior Member
Join Date: Aug 2010
Old 04-17-2011 , 15:49   Re: Blue text in menu?
Reply With Quote #7

Okey, its almost correct color and position - it could be corrected, but this hudmsg dissapear after a few seconds, even i didn't choose any option.
If i choose 1. or 2. the hudmsg dissapear correctly


Color: Now I can see that red and blue in my menu is normal, a bit transparent. And in this screenshot i've placed the text isnt transparent at all. Maybe it's not hudmsg?

Last edited by Change377; 04-17-2011 at 15:52.
Change377 is offline
Change377
Junior Member
Join Date: Aug 2010
Old 05-03-2011 , 05:55   Re: Blue text in menu?
Reply With Quote #8

REFRESH
Change377 is offline
Old 05-03-2011, 07:01
cFG
This message has been deleted by cFG. Reason: stupidity
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-03-2011 , 07:11   Re: Blue text in menu?
Reply With Quote #9

Change377

set_hudmessage( 0, 50, 170, 0.05, 0.4, 0, 0.0, 8.0, 0.0, 0.0, 1 )
show_hudmessage( id, "DeathRun" )

=>

set_hudmessage( 0, 50, 170, 0.05, 0.4, 0, 0.0, 3600.0, 0.0, 0.0, 1 )
show_hudmessage( id, "DeathRun" )


Beware unhandled exceptions, when menu was cancelled by some other plugin, for example.
__________________

SonicSonedit 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 20:10.


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