Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i have a table of string values for different themes. I want to set this up so that i can use
- for -,v in pairs(availableThemes) do
- menuStr = v[1]
- end
- when i go through the menu and select a theme, say Water (the default theme)
- i can then set a variable called theme to refernce the second value of the availableThemes
- which is one of the tables show below.
- I have tried every way i could think of but nothing worked
- -- -------- Themes
- local availableThemes = {
- "Water (Default)", defaultTheme,
- "Fire", fireTheme,
- "Sublime Text 2", st2Theme,
- "Midnight", midnightTheme,
- "TheOriginalBIT", originalBitTheme,
- "Superaxander", superaxanderTheme,
- "Forest", forestTheme,
- "Night", nightTheme,
- "Original", originalTheme
- }
- local defaultTheme = { -- Water Theme
- background = 0xBEBEBE,
- backgroundHighlight = 0xD3D3D3,
- prompt = 0x00FFFF,
- promptHighlight = 0xADD8E6,
- err = 0xFF0000,
- errHighlight = 0xFFC0CB,
- editorBackground = 0xBEBEBE,
- editorLineHightlight = 0xADD8E6,
- editorLineNumbers = 0xBEBEBE,
- editorLineNumbersHighlight = 0xD3D3D3,
- editorError = 0xFFC0CB,
- editorErrorHighlight = 0xFF0000,
- textColor = 0xFFFFFF,
- conditional = 0xFFFF00,
- constant = 0xFFA500,
- ["function"] = 0xFF00FF,
- string = 0xFF0000,
- comment = 0x32CD32
- }
- local fireTheme = { -- Fire Theme
- background=0xBEBEBE,
- backgroundHighlight=0xD3D3D3,
- prompt=0xFF0000,
- promptHighlight=0xFFA500,
- err=0xFF0000,
- errHighlight=0xFFC0CB,
- editorBackground=0xBEBEBE,
- editorLineHightlight=0xFFA500,
- editorLineNumbers=0xBEBEBE,
- editorLineNumbersHighlight=0xD3D3D3,
- editorError=0xFF0000,
- editorErrorHighlight=0xFFC0CB,
- textColor=0xFFFFFF,
- conditional=0xFFFF00,
- constant=0xADD8E6,
- ["function"]=0xFF00FF,
- string=0x0000FF,
- comment=0x32CD32
- }
- local st2Theme = { -- Sublime Text 2
- background=0xBEBEBE,
- backgroundHighlight=0xD3D3D3,
- prompt=0xD3D3D3,
- promptHighlight=0x0000FF,
- err=0xFFA500,
- errHighlight=0xFF0000,
- editorBackground=0xBEBEBE,
- editorLineHightlight=0xBEBEBE,
- editorLineNumbers=0xBEBEBE,
- editorLineNumbersHighlight=0xD3D3D3,
- editorError=0xFF0000,
- editorErrorHighlight=0xFFA500,
- textColor=0xFFFFFF,
- conditional=0xFF00FF,
- constant=0xA020F0,
- ["function"]=0xFF00FF,
- string=0xFFFF00,
- comment=0xD3D3D3
- }
- local midnightTheme = { -- Midnight Theme
- background=0xD3D3D3,
- backgroundHighlight=0xADD8E6,
- prompt=0xADD8E6,
- promptHighlight=0x0000FF,
- err=0xFFA500,
- errHighlight=0xFF0000,
- editorBackground=0x000000,
- editorLineHightlight=0x000000,
- editorLineNumbers=0x000000,
- editorLineNumbersHighlight=0xBEBEBE,
- editorError=0xFFC0CB,
- editorErrorHighlight=0xFF0000,
- textColor=0xFFFFFF,
- conditional=0xFF00FF,
- constant=0xA020F0,
- ["function"]=0xFFA500,
- string=0xFF0000,
- comment=0x32CD32
- }
- local originalBitTheme = { -- The Oringal BIT Theme
- background=0xBEBEBE,
- backgroundHighlight=0xADD8E6,
- prompt=0x0000FF,
- promptHighlight=0xADD8E6,
- err=0xFF0000,
- errHighlight=0xFFA500,
- editorBackground=0xD3D3D3,
- editorLineHightlight=0xADD8E6,
- editorLineNumbers=0xADD8E6,
- editorLineNumbersHighlight=0x0000FF,
- editorError=0xFF0000,
- editorErrorHighlight=0xFFA500,
- textColor=0xFFFFFF,
- conditional=0xA020F0,
- constant=0x0000FF,
- ["function"]=0xA020F0,
- string=0x00FF00,
- comment=0x32CD32
- }
- local superaxanderTheme = { -- Superaxander Theme
- background=0x000000,
- backgroundHighlight=0x32CD32,
- prompt=0x0000FF,
- promptHighlight=0xADD8E6,
- err=0xFFFFFF,
- errHighlight=0xFF0000,
- editorBackground=0xD3D3D3,
- editorLineHightlight=0xADD8E6,
- editorLineNumbers=0xADD8E6,
- editorLineNumbersHighlight=0x0000FF,
- editorError=0xFFFFFF,
- editorErrorHighlight=0xFF0000,
- textColor=0xFFFFFF,
- conditional=0xA020F0,
- constant=0xFF0000,
- ["function"]=0xFFFF00,
- string=0x00FF00,
- comment=0x00FFFF
- }
- local forestTheme = { -- Forest Theme
- background=0xBEBEBE,
- backgroundHighlight=0xD3D3D3,
- prompt=0x00FF00,
- promptHighlight=0x32CD32,
- err=0xFFFF00,
- errHighlight=0xFFA500,
- editorBackground=0xD3D3D3,
- editorLineHightlight=0x32CD32,
- editorLineNumbers=0xBEBEBE,
- editorLineNumbersHighlight=0xD3D3D3,
- editorError=0xFFFF00,
- editorErrorHighlight=0xFFA500,
- textColor=0xFFFFFF,
- conditional=0xFFFF00,
- constant=0xADD8E6,
- ["function"]=0xFF00FF,
- string=0x0000FF,
- comment=0x32CD32
- }
- local nightTheme = { -- Night Theme
- background=0x000000,
- backgroundHighlight=0xBEBEBE,
- prompt=0xBEBEBE,
- promptHighlight=0xD3D3D3,
- err=0xFF0000,
- errHighlight=0xFFA500,
- editorBackground=0x000000,
- editorLineHightlight=0xBEBEBE,
- editorLineNumbers=0xBEBEBE,
- editorLineNumbersHighlight=0xD3D3D3,
- editorError=0xFF0000,
- editorErrorHighlight=0xFFA500,
- textColor=0xFFFFFF,
- conditional=0xFFFF00,
- constant=0xADD8E6,
- ["function"]=0xFF00FF,
- string=0xFF0000,
- comment=0x32CD32
- }
- local originalTheme = { -- Original Theme
- background=0x000000,
- backgroundHighlight=0xBEBEBE,
- prompt=0xBEBEBE,
- promptHighlight=0xD3D3D3,
- err=0xFF0000,
- errHighlight=0xFFA500,
- editorBackground=0x000000,
- editorLineHightlight=0xBEBEBE,
- editorLineNumbers=0xBEBEBE,
- editorLineNumbersHighlight=0xD3D3D3,
- editorError=0xFF0000,
- editorErrorHighlight=0xFFA500,
- textColor=0xFFFFFF,
- conditional=0xFFFF00,
- constant=0xADD8E6,
- ["function"]=0xFF00FF,
- string=0xFF0000,
- comment=0x32CD32
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement