Jump to content
Eternal Lands Official Forums
Sign in to follow this  
Cajs

small edit to add [All] button to chat filtering

Recommended Posts

This addds [All] as a tab in the channel filters to see the unfiltered channel (you get all the text just as you would see in console)

 

(all my edits are marked with a comments with ~C in it - sorry - I'm working on windows so not that easy to make a patch against CVS for me so only got the 4 changed files here)

 

they can be d/led here -> {edit - remvoed outdated link - see post below for patch]

 

el_all_btn_1.jpg

 

any commetns/suggestions are welcome

 

~C

Edited by Cajs

Share this post


Link to post
Share on other sites

Uh... do you have it in patch form anywhere? Because those are bulky, and require each individual to merge them (diff, then patch), themselves. :)

 

All it takes is diff -Naur, or cvs diff -Nau (which you should have, if you have the CVS).

Edited by crusadingknight

Share this post


Link to post
Share on other sites

will this do it?

Index: chat.c
===================================================================
RCS file: /cvsroot/elc/elc/chat.c,v
retrieving revision 1.38
diff -w -b -i -r1.38 chat.c
672a673
>  	case CHAT_ALL: return tab_all;
758a760
>  add_tab_button (CHAT_ALL); // added ~C
Index: chat.h
===================================================================
RCS file: /cvsroot/elc/elc/chat.h,v
retrieving revision 1.18
diff -w -b -i -r1.18 chat.h
10c10
< #define MAX_CHAT_TABS  7 /*!< Size of the \see channels array */
---
> #define MAX_CHAT_TABS  8 /*!< Size of the \see channels array */ // 7 changes to 8 ~C
Index: translate.c
===================================================================
RCS file: /cvsroot/elc/elc/translate.c,v
retrieving revision 1.52
diff -w -b -i -r1.52 translate.c
352a353
>  tab_all[10], // added ~C
359a361
> 
898a901
>  add_xml_identifier (titles_str, "t_all", tab_all, "All", sizeof(tab_all)); // added ~C
Index: translate.h
===================================================================
RCS file: /cvsroot/elc/elc/translate.h,v
retrieving revision 1.34
diff -w -b -i -r1.34 translate.h
448a449
>  	tab_all[10], // added ~C

Share this post


Link to post
Share on other sites

It's a good patch, and there seems to be a popular demand for it, I just don't really understand why. If you don't like the tabs, you can turn them off, and if you need to page back, you'll have to use the console anyway (in which everything is printed).

Share this post


Link to post
Share on other sites

Because the console typing is teh b0rked, so that removes that option. :P

Share this post


Link to post
Share on other sites

yep its borked allright.

it starts 3 lines up from the bottom (the normal starts at the bottom line) and dont wrap at end of line (the normal wraps at end of line and push the existing text up one line).

 

strange, i would have thought that they would use the same basic system...

Edited by duran

Share this post


Link to post
Share on other sites

NVM.

 

I fixed the console text not wrapping in the console.

Edited by Wytter

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×