Menu description
How would you make a little sub-descriptive menu? You know how you see the item and the cost of the item on war3, that's what I'm trying to do.
Example: Code:
[War3] Shopmenu: $ Cost: |
Just do:
Code:
\R makes it align it to the right. |
If I remember correctly, it would go on the formatted line. Since you have to format the lines of your menu, you would add the cost of the item displayed on that line as well. :lol: :lol: :lol:
EDIT: v3x beat me to it :oops: |
Thanks. Just out of curiosity, would this work as well?
Code:
Also, is [new len = format(menu,sizeof(menu), "Menu: /R Cost:^n")] required? Would it still work if I just used format alone without the new statement? |
Your way should be fine.
Btw it's \R not /R |
No, the menu keys are a problem:
Quote:
|
Quote:
Just use; Quote:
Each #<<0 is counted as which key the user pushes. Like it states above... "#define MENU_KEY_1 (1<<0)" It's the same concept as using what I've shown above. |
Oh okay, thanks :)
|
Wait. My mistake. They don't all end with zeros.
(1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|1<<7|1<<8|1<<8 ) etc. 1<<0 is the last key. Mostly used for the exit key. |
@ v3x: I guess it only works for counter-strike?
http://i3.photobucket.com/albums/y82.../2fort0000.jpg |
| All times are GMT -4. The time now is 16:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.