Custom cvar explanation on tab-completion

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Custom cvar explanation on tab-completion

Postby GreEn`mArine » Sat Jan 10, 2009 11:06 am

Hey there,

I've got a suggestion (or, well first of all I want you to tell me whether the following idea is good) for the DP engine:

when you autocomplete variables, you will very often get "custom variable" as explanation inside the console, which is not really satisfying, as you will have to look up the meaning of the variable in the config files each time.

My suggestion would be that the engine looks for added comments behind a variable and supplies that information when you use autocompletion on that variable.

What would have to be defined is the way how flexible this system is (e.g. only recognizes a comment if it is behind the variable definition, or also if it is above it) and the definition of the character(s) that introduce(s) that comment (e.g. // or ## or something else, as // is probably not good because you sometimes use it to comment why a variable is set to a value (e.g. in server.cfg) and not to comment the meaning of the variable itself)
IRC quote:
[kojn] I've been coming a bit more recently
[kojn] she took it the dirty way
GreEn`mArine
Forum addon
 
Posts: 1509
Joined: Tue Feb 28, 2006 9:33 pm
Location: Germany

Postby morfar » Sat Jan 10, 2009 1:04 pm

I have been thinking the same.
morfar
Site Admin
 
Posts: 938
Joined: Tue Feb 28, 2006 6:08 pm
Location: The Island

Postby LordHavoc » Sun Jan 11, 2009 10:26 pm

The command parser can't do such a thing, but a third parameter could be added.
LordHavoc
Site Admin
 
Posts: 191
Joined: Wed Mar 29, 2006 7:39 am
Location: western Oregon, USA

Postby esteel » Sun Jan 25, 2009 10:18 am

In case some peopled missed it, the current development version has something like this.. and even better :-)
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby GreEn`mArine » Sun Jan 25, 2009 1:15 pm

yeah, I've seen it. Very good job, div :)
IRC quote:
[kojn] I've been coming a bit more recently
[kojn] she took it the dirty way
GreEn`mArine
Forum addon
 
Posts: 1509
Joined: Tue Feb 28, 2006 9:33 pm
Location: Germany


Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron