-
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).