2015-05-15, 09:16
Code:
dialog = xbmcgui.Dialog()
ret = dialog.select('Select A Color', ['[COLOR white]This Is A Message With The Color[/COLOR]', '[COLOR yellow]This Is A Message With The Color[/COLOR]', '[COLOR green]This Is A Message With The Color[/COLOR]', '[COLOR red]This Is A Message With The Color[/COLOR]','[COLOR aliceblue]This Is A Message With The Color[/COLOR]','[COLOR antiquewhite]This Is A Message With The Color[/COLOR]', '[COLOR aqua]This Is A Message With The Color[/COLOR]', '[COLOR aquamarine]This Is A Message With The Color[/COLOR]', '[COLOR azure]This Is A Message With The Color[/COLOR]', '[COLOR beige]This Is A Message With The Color[/COLOR]', '[COLOR bisque]This Is A Message With The Color[/COLOR]', '[COLOR black]This Is A Message With The Color[/COLOR]', '[COLOR blanchedalmond]This Is A Message With The Color[/COLOR]', '[COLOR blue]This Is A Message With The Color[/COLOR]', '[COLOR blueviolet]This Is A Message With The Color[/COLOR]', '[COLOR brown]This Is A Message With The Color[/COLOR]', '[COLOR burlywood]This Is A Message With The Color[/COLOR]', '[COLOR cadetblue]This Is A Message With The Color[/COLOR]', '[COLOR chartreuse]This Is A Message With The Color[/COLOR]', '[COLOR chocolate]This Is A Message With The Color[/COLOR]', '[COLOR coral]This Is A Message With The Color[/COLOR]', '[COLOR cornflowerblue]This Is A Message With The Color[/COLOR]', '[COLOR cornsilk]This Is A Message With The Color[/COLOR]', '[COLOR crimson]This Is A Message With The Color[/COLOR]', '[COLOR cyan]This Is A Message With The Color[/COLOR]', '[COLOR darkblue]This Is A Message With The Color[/COLOR]', '[COLOR darkcyan]This Is A Message With The Color[/COLOR]', '[COLOR darkgoldenrod]This Is A Message With The Color[/COLOR]', '[COLOR darkgray]This Is A Message With The Color[/COLOR]', '[COLOR darkgreen]This Is A Message With The Color[/COLOR]', '[COLOR darkkhaki]This Is A Message With The Color[/COLOR]', '[COLOR darkmagenta]This Is A Message With The Color[/COLOR]', '[COLOR darkolivegreen]This Is A Message With The Color[/COLOR]', '[COLOR darkorange]This Is A Message With The Color[/COLOR]', '[COLOR darkorchid]This Is A Message With The Color[/COLOR]', '[COLOR darkred]This Is A Message With The Color[/COLOR]', '[COLOR darksalmon]This Is A Message With The Color[/COLOR]', '[COLOR darkseagreen]This Is A Message With The Color[/COLOR]', '[COLOR darkslateblue]This Is A Message With The Color[/COLOR]', '[COLOR darkslategray]This Is A Message With The Color[/COLOR]', '[COLOR darkturquoise]This Is A Message With The Color[/COLOR]', '[COLOR darkviolet]This Is A Message With The Color[/COLOR]', '[COLOR deeppink]This Is A Message With The Color[/COLOR]', '[COLOR deepskyblue]This Is A Message With The Color[/COLOR]', '[COLOR dimgray]This Is A Message With The Color[/COLOR]', '[COLOR dodgerblue]This Is A Message With The Color[/COLOR]', '[COLOR gainsboro]This Is A Message With The Color[/COLOR]', '[COLOR ghostwhite]This Is A Message With The Color[/COLOR]', '[COLOR gold]This Is A Message With The Color[/COLOR]', '[COLOR goldenrod]This Is A Message With The Color[/COLOR]', '[COLOR gray]This Is A Message With The Color[/COLOR]', '[COLOR green]This Is A Message With The Color[/COLOR]', '[COLOR greenyellow]This Is A Message With The Color[/COLOR]', '[COLOR honeydew]This Is A Message With The Color[/COLOR]', '[COLOR hotpink]This Is A Message With The Color[/COLOR]', '[COLOR indianred]This Is A Message With The Color[/COLOR]', '[COLOR indigo]This Is A Message With The Color[/COLOR]', '[COLOR ivory]This Is A Message With The Color[/COLOR]', '[COLOR khaki]This Is A Message With The Color[/COLOR]', '[COLOR lavender]This Is A Message With The Color[/COLOR]', '[COLOR lavenderblush]This Is A Message With The Color[/COLOR]', '[COLOR lawngreen]This Is A Message With The Color[/COLOR]', '[COLOR lightblue]This Is A Message With The Color[/COLOR]', '[COLOR lightcoral]This Is A Message With The Color[/COLOR]', '[COLOR lightcyan]This Is A Message With The Color[/COLOR]', '[COLOR lightgoldenrodyellow]This Is A Message With The Color[/COLOR]', '[COLOR lightgrey]This Is A Message With The Color[/COLOR]', '[COLOR lightgreen]This Is A Message With The Color[/COLOR]', '[COLOR lightpink]This Is A Message With The Color[/COLOR]', '[COLOR lightsalmon]This Is A Message With The Color[/COLOR]', '[COLOR lightseagreen]This Is A Message With The Color[/COLOR]', '[COLOR lightskyblue]This Is A Message With The Color[/COLOR]', '[COLOR lightslategray]This Is A Message With The Color[/COLOR]', '[COLOR lightsteelblue]This Is A Message With The Color[/COLOR]', '[COLOR lightyellow]This Is A Message With The Color[/COLOR]', '[COLOR lime]This Is A Message With The Color[/COLOR]', '[COLOR limegreen]This Is A Message With The Color[/COLOR]', '[COLOR linen]This Is A Message With The Color[/COLOR]', '[COLOR magenta]This Is A Message With The Color[/COLOR]', '[COLOR maroon]This Is A Message With The Color[/COLOR]', '[COLOR mediumaquamarine]This Is A Message With The Color[/COLOR]', '[COLOR mediumblue]This Is A Message With The Color[/COLOR]', '[COLOR mediumorchid]This Is A Message With The Color[/COLOR]', '[COLOR mediumpurple]This Is A Message With The Color[/COLOR]', '[COLOR mediumseagreen]This Is A Message With The Color[/COLOR]', '[COLOR mediumslateblue]This Is A Message With The Color[/COLOR]', '[COLOR mediumspringgreen]This Is A Message With The Color[/COLOR]', '[COLOR mediumturquoise]This Is A Message With The Color[/COLOR]', '[COLOR mediumvioletred]This Is A Message With The Color[/COLOR]', '[COLOR midnightblue]This Is A Message With The Color[/COLOR]', '[COLOR mintcream]This Is A Message With The Color[/COLOR]', '[COLOR mistyrose]This Is A Message With The Color[/COLOR]', '[COLOR moccasin]This Is A Message With The Color[/COLOR]', '[COLOR navajowhite]This Is A Message With The Color[/COLOR]', '[COLOR navy]This Is A Message With The Color[/COLOR]', '[COLOR oldlace]This Is A Message With The Color[/COLOR]', '[COLOR olive]This Is A Message With The Color[/COLOR]', '[COLOR olivedrab]This Is A Message With The Color[/COLOR]', '[COLOR orange]This Is A Message With The Color[/COLOR]', '[COLOR orangered]This Is A Message With The Color[/COLOR]', '[COLOR orchid]This Is A Message With The Color[/COLOR]', '[COLOR palegoldenrod]This Is A Message With The Color[/COLOR]', '[COLOR palegreen]This Is A Message With The Color[/COLOR]', '[COLOR paleturquoise]This Is A Message With The Color[/COLOR]', '[COLOR palevioletred]This Is A Message With The Color[/COLOR]', '[COLOR papayawhip]This Is A Message With The Color[/COLOR]', '[COLOR peru]This Is A Message With The Color[/COLOR]', '[COLOR pink]This Is A Message With The Color[/COLOR]', '[COLOR plum]This Is A Message With The Color[/COLOR]', '[COLOR powderblue]This Is A Message With The Color[/COLOR]', '[COLOR purple]This Is A Message With The Color[/COLOR]', '[COLOR red]This Is A Message With The Color[/COLOR]', '[COLOR rosybrown]This Is A Message With The Color[/COLOR]', '[COLOR royalblue]This Is A Message With The Color[/COLOR]', '[COLOR saddlebrown]This Is A Message With The Color[/COLOR]', '[COLOR salmon]This Is A Message With The Color[/COLOR]', '[COLOR sandybrown]This Is A Message With The Color[/COLOR]', '[COLOR seagreen]This Is A Message With The Color[/COLOR]', '[COLOR seashell]This Is A Message With The Color[/COLOR]', '[COLOR sienna]This Is A Message With The Color[/COLOR]', '[COLOR silver]This Is A Message With The Color[/COLOR]', '[COLOR skyblue]This Is A Message With The Color[/COLOR]', '[COLOR slateblue]This Is A Message With The Color[/COLOR]', '[COLOR slategray]This Is A Message With The Color[/COLOR]', '[COLOR snow]This Is A Message With The Color[/COLOR]', '[COLOR springgreen]This Is A Message With The Color[/COLOR]', '[COLOR steelblue]This Is A Message With The Color[/COLOR]', '[COLOR tan]This Is A Message With The Color[/COLOR]', '[COLOR teal]This Is A Message With The Color[/COLOR]', '[COLOR thistle]This Is A Message With The Color[/COLOR]', '[COLOR tomato]This Is A Message With The Color[/COLOR]', '[COLOR turquoise]This Is A Message With The Color[/COLOR]', '[COLOR violet]This Is A Message With The Color[/COLOR]', '[COLOR wheat]This Is A Message With The Color[/COLOR]', '[COLOR white]This Is A Message With The Color[/COLOR]', '[COLOR whitesmoke]This Is A Message With The Color[/COLOR]'])
if ret == 0:
addDir('[COLOR yellow]News:[/COLOR] [I][/I]','/testing/news.php?color=yellow&text=',55,'%s%sedit.png'%(BASE,icondir))
dialog.notification('Message', 'Changed', xbmcgui.NOTIFICATION_INFO, 5000)
is there a easy way to change this n the code
Code:
if ret == 0:
addDir('[COLOR yellow]News:[/COLOR] [I][/I]','/testing/news.php?color=yellow&text=',55,'%s%sedit.png'%(BASE,icondir))
to
Code:
if ret == 0:
addDir('[COLOR Selected COLOR]News:[/COLOR] [I][/I]','/testing/news.php?color=Selected COLOR&text=',55,'%s%sedit.png'%(BASE,icondir))
dialog.notification('Message', 'Changed', xbmcgui.NOTIFICATION_INFO, 5000)[/
so were SELECTED COLOR To grab it from the selected menu item