use of mathax.client.gui.screens.music.PlaylistViewScreen in project Client by MatHax.
the class WSearchBar method add.
@Override
public void add(WTable parent, MusicTab.MusicScreen screen, GuiTheme theme) {
WTextBox box = parent.add(theme.textBox("")).expandX().widget();
parent.add(theme.button("Search")).widget().action = () -> SearchUtils.search(box.get(), playlist -> mc.setScreen(new PlaylistViewScreen(theme, playlist, screen)));
super.add(parent, screen, theme);
}
Aggregations