dan7886 / gta2-game-hunter

Automatically exported from code.google.com/p/gta2-game-hunter
0 stars 0 forks source link

Right-align nicks in chat window #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Here is a sample of a highly intelligent conversation on nihilism as seen 
through WeeChat. Notice how the nicks are aligned to the right and so the chat 
log is clear to follow:

13:18:38   [Alberto] | felipe?
13:42:00         --> | BenMillard (1C659D9907F8@gtanet-iv4.mp7.112.87.IP) has 
joined #gta2gh
13:23:16       @DAFE | ...    
13:23:27       @DAFE | ...    
13:33:40 @Salamander | ...    
13:36:13   [Alberto] | ?      

Now compare that to what a lengthy discussion on morality in medicine and 
science with a christian theologian in GameHunter-1.537j looks like:

1:42:38 PM <Salamander> stem cells, fuck yeah
1:42:39 PM --> slim (41.225.163.15) has joined #gta2gh
1:42:48 PM <LoveChristOrElse> blaaargh yada yada fukkk u
1:42:54 PM <LoveChristOrElse> you will burn in hell
1:42:56 PM <LoveChristOrElse> praise jesus amen
1:43:02 PM <Salamander> ...
1:43:02 PM <LoveChristOrElse> ..
1:43:09 PM <[Alberto]> Amen
1:43:29 PM <[Alberto]> ^^

Feature request for right-aligned nicks in GH.

Original issue reported on code.google.com by entertheyoni on 28 Mar 2012 at 12:46

GoogleCodeExporter commented 9 years ago
To do that properly requires tables with columns and rows. Tables are a pain to 
add but I could align most "nicks" by padding short "nicks" to a sensible 
length. That should look nicer and give certain player's more confidence.

Original comment by gtamulti on 30 Mar 2012 at 12:30

GoogleCodeExporter commented 9 years ago
It will look nice when they all align uniformly.
ie. not like this: http://i.imgur.com/SGSSG.png
but like this: http://i.imgur.com/FcJLo.png

Original comment by entertheyoni on 5 Apr 2012 at 9:40

GoogleCodeExporter commented 9 years ago
Nicks align if you use a monospaced font.

Original comment by gtamulti on 6 Apr 2012 at 2:24

GoogleCodeExporter commented 9 years ago
Here's a VB6 sample which makes adding table codes look strangely easy:

http://www.vbforums.com/showthread.php?t=355994#post2131031

* Not sure how to set widths.
* One long name and you'd have big gaps for the whole chat history.
* The table could be destroyed and recreated every n lines? (Where n=20 or 
n=100, as examples.)
* The example seems to pre-compile the table, rather than adding to an existing 
one. So a different sample may be needed for columns to be shared by several 
messages.
* This would stop text wrapping back under each user's name, so even if columns 
don't align it would make message start and end points clearer. Especially in 
window widths where messages often wrap.

Original comment by aa22c...@gmail.com on 22 Apr 2012 at 1:24

GoogleCodeExporter commented 9 years ago
Oh, I just saw it has this:

* Column(i).xWidth - Width of the 'ith' column

Original comment by aa22c...@gmail.com on 22 Apr 2012 at 1:28