Custom cvar explanation on tab-completion

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators


  • 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

Sat Jan 10, 2009 1:04 pm

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

Sun Jan 25, 2009 10:18 am

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




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest