DivinElegy / GrooveNights

ITG Theme
http://divinelegy.com
8 stars 5 forks source link

[Priority 0/2] USB Name-Specific "Theme Colour" Changes #34

Open DivineJayce opened 10 years ago

DivineJayce commented 10 years ago

Create a table of USB names and their corresponding Colour Scheme Presets:

table = { "(-[Jayce]-) | Default" , "Cameron | ITGRetro" , "Brendan | FaggotPink" }

For regular arcade-goers or home users alike they can add a bunch of names and their desired colour schemes prior to adding it onto the machine to affect different people with different tastes.

ghost commented 10 years ago

I might wrap all this up in a bigger thing that lets you register functions to be run when a certain USB name is found, that way we can do callback functions similar to how easter eggs and custom mods work.

ghost commented 10 years ago

Also you can do key/value pairs with lua tables, so no need for the pipe:

    ColorTable = {
        Cameron = "ITGRetro",
        Brendan = "FaggotPink"
    }

Then you can access it with:

    ColorTable.Cameron