Raised This Month: $ Target: $400
 0% 

The text with \R in menu.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GarbageBox
Senior Member
Join Date: Feb 2010
Old 07-27-2011 , 14:17   The text with \R in menu.
Reply With Quote #1

I noticed that the text with \R in menu cannot keep tidy.
How to make it become tidy?
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 07-27-2011 , 14:25   Re: The text with \R in menu.
Reply With Quote #2

This would just allign the text to the right.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 07-27-2011 , 14:30   Re: The text with \R in menu.
Reply With Quote #3

Therefore, it cannot tidy up the words?
Are there have any other ways to let the text go to right?
Also, I had some trouble with the voteban menu.
The player name who above on the admin the key will disable.
Code:
		iKeys |= (1 << iCurrPos++);
		if(get_user_flags(iPlayer) & ADMIN_IMMUNITY)
		{
			iKeys++
			iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d%d. %s (%d%%)\R\w%s^n", iCurrPos, szName, get_percent(g_iVotes[iPlayer], g_iNum), szAuthID);
		}
		else
		{
			iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\w%d. %s \d(\r%d%%\d)\R\w%s^n", iCurrPos, szName, get_percent(g_iVotes[iPlayer], g_iNum), szAuthID);
		}
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-27-2011 , 17:40   Re: The text with \R in menu.
Reply With Quote #4

1. What do you mean by "tidy"?
2. Menus are limited in their ability to format text.
3. It's because you are using iKeys for bits then you do a ++ on it (adding 1). You should not do both. Look at the original ban menu to see how it is done in plmenu.sma.
__________________
fysiks is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 07-27-2011 , 22:49   Re: The text with \R in menu.
Reply With Quote #5

Quote:
Originally Posted by GarbageBox View Post
Therefore, it cannot tidy up the words?
Are there have any other ways to let the text go to right?
I don't think it's actually possible to do it in a tidy way, alligning overlaps and overspaces some characters.

Here's a nice long discussion about this and why it can't be done in CS.
https://forums.alliedmods.net/showthread.php?t=150659
hornet 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 00:55.


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