}}.build(nifty);
return screen;
}
private static void registerMenuButtonHintStyle(final Nifty nifty) {
new StyleBuilder() {{
id("special-hint");
base("nifty-panel-bright");
childLayoutCenter();
onShowEffect(new EffectBuilder("fade") {{
length(150);
effectParameter("start", "#0");
effectParameter("end", "#d");
inherit();
neverStopRendering(true);
}});
onShowEffect(new EffectBuilder("move") {{
length(150);
inherit();
neverStopRendering(true);
effectParameter("mode", "fromOffset");
effectParameter("offsetY", "-15");
}});
onCustomEffect(new EffectBuilder("fade") {{
length(150);
effectParameter("start", "#d");
effectParameter("end", "#0");
inherit();
neverStopRendering(true);
}});
onCustomEffect(new EffectBuilder("move") {{
length(150);
inherit();
neverStopRendering(true);
effectParameter("mode", "toOffset");
effectParameter("offsetY", "-15");
}});
}}.build(nifty);
new StyleBuilder() {{
id("special-hint#hint-text");
base("base-font");
alignLeft();
valignCenter();
textHAlignLeft();