Search in sources :

Example 1 with WVerticalList

use of meteordevelopment.meteorclient.gui.widgets.containers.WVerticalList in project meteor-client by MeteorDevelopment.

the class ModulesScreen method createSearch.

protected WWindow createSearch(WContainer c) {
    WWindow w = theme.window("Search");
    w.id = "search";
    if (theme.categoryIcons()) {
        w.beforeHeaderInit = wContainer -> wContainer.add(theme.item(Items.COMPASS.getDefaultStack())).pad(2);
    }
    c.add(w);
    w.view.scrollOnlyWhenMouseOver = true;
    w.view.hasScrollBar = false;
    w.view.maxHeight -= 20;
    WVerticalList l = theme.verticalList();
    WTextBox text = w.add(theme.textBox("")).minWidth(140).expandX().widget();
    text.setFocused(true);
    text.action = () -> {
        l.clear();
        createSearchW(l, text.get());
    };
    w.add(l).expandX();
    createSearchW(l, text.get());
    return w;
}
Also used : WWindow(meteordevelopment.meteorclient.gui.widgets.containers.WWindow) WTextBox(meteordevelopment.meteorclient.gui.widgets.input.WTextBox) WVerticalList(meteordevelopment.meteorclient.gui.widgets.containers.WVerticalList)

Example 2 with WVerticalList

use of meteordevelopment.meteorclient.gui.widgets.containers.WVerticalList in project meteor-client by MeteorDevelopment.

the class ModulesScreen method initWidgets.

@Override
public void initWidgets() {
    controller = add(new WCategoryController()).widget();
    // Help
    WVerticalList help = add(theme.verticalList()).pad(4).bottom().widget();
    help.add(theme.label("Left click - Toggle module"));
    help.add(theme.label("Right click - Open module settings"));
}
Also used : WVerticalList(meteordevelopment.meteorclient.gui.widgets.containers.WVerticalList)

Example 3 with WVerticalList

use of meteordevelopment.meteorclient.gui.widgets.containers.WVerticalList in project meteor-client by MeteorDevelopment.

the class Marker method getWidget.

@Override
public WWidget getWidget(GuiTheme theme) {
    WVerticalList list = theme.verticalList();
    fillList(theme, list);
    return list;
}
Also used : WVerticalList(meteordevelopment.meteorclient.gui.widgets.containers.WVerticalList)

Example 4 with WVerticalList

use of meteordevelopment.meteorclient.gui.widgets.containers.WVerticalList in project meteor-client by MeteorDevelopment.

the class Swarm method getWidget.

@Override
public WWidget getWidget(GuiTheme theme) {
    WVerticalList list = theme.verticalList();
    WHorizontalList b = list.add(theme.horizontalList()).expandX().widget();
    WButton start = b.add(theme.button("Start")).expandX().widget();
    start.action = () -> {
        if (!isActive())
            return;
        close();
        if (mode.get() == Mode.Host)
            host = new SwarmHost(serverPort.get());
        else
            worker = new SwarmWorker(ipAddress.get(), serverPort.get());
    };
    WButton stop = b.add(theme.button("Stop")).expandX().widget();
    stop.action = this::close;
    WButton guide = list.add(theme.button("Guide")).expandX().widget();
    guide.action = () -> Util.getOperatingSystem().open("https://github.com/MeteorDevelopment/meteor-client/wiki/Swarm-Guide");
    return list;
}
Also used : WButton(meteordevelopment.meteorclient.gui.widgets.pressable.WButton) WVerticalList(meteordevelopment.meteorclient.gui.widgets.containers.WVerticalList) WHorizontalList(meteordevelopment.meteorclient.gui.widgets.containers.WHorizontalList)

Example 5 with WVerticalList

use of meteordevelopment.meteorclient.gui.widgets.containers.WVerticalList in project meteor-utils by kkllffaa.

the class BetterBookBot method getWidget.

@Override
public WWidget getWidget(GuiTheme theme) {
    WVerticalList list = theme.verticalList();
    calculatewidget(list, theme);
    return list;
}
Also used : WVerticalList(meteordevelopment.meteorclient.gui.widgets.containers.WVerticalList)

Aggregations

WVerticalList (meteordevelopment.meteorclient.gui.widgets.containers.WVerticalList)5 WHorizontalList (meteordevelopment.meteorclient.gui.widgets.containers.WHorizontalList)1 WWindow (meteordevelopment.meteorclient.gui.widgets.containers.WWindow)1 WTextBox (meteordevelopment.meteorclient.gui.widgets.input.WTextBox)1 WButton (meteordevelopment.meteorclient.gui.widgets.pressable.WButton)1