Release E2 Global Color Table - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Expression 2 (https://teamscm.co.uk/forum-6.html) +--- Thread: Release E2 Global Color Table (/thread-33.html) |
E2 Global Color Table - Veegi - 08-10-2013 E2 Global Color Table
I have created a global table containing some colors, this means that using the lines of code below, you will be able to get a color using its name. If the server restarts, the table is gone, so someone needs to re-add it. If there are problems with the table, tell me, I'll see if I can fix them. I'm not adding to this in some time, but if you need it, I will. Code: Table = gTable("Colors",1) List of current colors:
RE: E2 Global Color Table - Scaryn12 - 29-10-2013 Good work i using that colors every day in holograms ) RE: E2 Global Color Table - Knight - 29-08-2017 Bump. Purely because this is helpful for both SF, E2 and other kinds of development like GLua Addons RE: E2 Global Color Table - Veegi - 29-08-2017 Oh. I could update this at some point if someone wants to use it RE: E2 Global Color Table - Kosmos - 30-08-2017 E2 has libraries, so you can make it into a file which then returns the table, preventing others from altering the colors. I don't know how E2 does this, but starfall deletes global tables you made on disconnect, not only when the server restarts. Maybe E2 uses an actual table though, I don't know. RE: E2 Global Color Table - Knight - 30-08-2017 (30-08-2017, 12:02 AM)Kosmos Wrote: E2 has libraries, so you can make it into a file which then returns the table, preventing others from altering the colors. I don't know how E2 does this, but starfall deletes global tables you made on disconnect, not only when the server restarts. Maybe E2 uses an actual table though, I don't know. When I meant it being helpful for SF. I was talking about the color codes lol |