No menu dialog tint
This commit is contained in:
@@ -561,11 +561,15 @@ public class UI implements ApplicationListener, Loadable{
|
|||||||
|
|
||||||
/** Shows a menu that fires a callback when an option is selected. If nothing is selected, -1 is returned. */
|
/** Shows a menu that fires a callback when an option is selected. If nothing is selected, -1 is returned. */
|
||||||
public void showMenu(String title, String message, String[][] options, Intc callback){
|
public void showMenu(String title, String message, String[][] options, Intc callback){
|
||||||
new Dialog(title){{
|
new Dialog("[accent]" + title){{
|
||||||
setFillParent(true);
|
setFillParent(true);
|
||||||
removeChild(titleTable);
|
removeChild(titleTable);
|
||||||
cont.add(titleTable).width(400f);
|
cont.add(titleTable).width(400f);
|
||||||
|
|
||||||
|
getStyle().titleFontColor = Color.white;
|
||||||
|
title.getStyle().fontColor = Color.white;
|
||||||
|
title.setStyle(title.getStyle());
|
||||||
|
|
||||||
cont.row();
|
cont.row();
|
||||||
cont.image().width(400f).pad(2).colspan(2).height(4f).color(Pal.accent).bottom();
|
cont.image().width(400f).pad(2).colspan(2).height(4f).color(Pal.accent).bottom();
|
||||||
cont.row();
|
cont.row();
|
||||||
|
|||||||
Reference in New Issue
Block a user