~swag/armagetronad/0.2.9-sty+ct+ap-fork

« back to all changes in this revision

Viewing changes to src/engine/ePlayer.h

  • Committer: SwagTron
  • Date: 2019-08-06 02:52:56 UTC
  • Revision ID: swagtron-20190806025256-8sruhpbirsa67du8
Planned to wait until I could think of a better way to code /rgb, but I have been asked to add the ability to save and load several times.
Edited /rgb
Current Usuage:
       /rgb with no parameters displays current rgb.
       /rgb 15 3 3 will set player 1's RGB to R15 G3 B3.
       /rgb unique gives all players unique colors.
       /rgb random gives all players random colors.
       /rgb 2 15 3 3 Will change player 2's colors to 15 3 3.
       /rgb save will save your current colors to var/colors.txt
       /rgb save player will save the players current colors to var/colors.txt
       /rgb list will list your current saved colors from var/colors.txt.
       /rgb load 1 will load from line #1 in the list.
       /rgb clear will clear your current list of saved colors.
       /rgb help displays the usuage in-game.
Added RGB_COLORS_FILE which can be configured to change the name of the colors.txt file to another name within /var/ where user.cfg is. This can be used to use new files when your old list is full.
Also made a lot of the text use english_base.txt

Currently no preview other than converting the r,g,b values into a color string or using the color code already in colors.txt. Hopefully I could add a mutli-colored tail preview.

Added ReplaceWhitespace to tString for /rgb.

Also edited the style of other commands (/colors).

Show diffs side-by-side

added added

removed removed

Lines of Context:
449
449
    static void listPlayerInfo(tString s_orig);
450
450
    // Fast way to change / display current RGB
451
451
    static void currentPlayerRGB(tString s_orig);
452
 
    //Grab Stuff (Not totally sure if this is faster than copying the code, but looks nicer)
 
452
    //Grab Stuff
453
453
    static tColoredString gatherPlayerInfo(ePlayerNetID * p);
454
 
    static tColoredString gatherPlayerColor(ePlayerNetID * p);
 
454
    static tColoredString gatherPlayerColor(ePlayerNetID * p, bool showReset = true);
455
455
 
456
456
    static void DisplayScores(); // display scores on the screen
457
457