Search in sources :

Example 1 with ActionWidgetVariable

use of pneumaticCraft.common.remote.ActionWidgetVariable in project PneumaticCraft by MineMaarten.

the class GuiRemote method onGlobalVariableChange.

public void onGlobalVariableChange(String variable) {
    widgets.clear();
    initGui();
    for (ActionWidget actionWidget : remoteLayout.getActionWidgets()) {
        if (actionWidget instanceof ActionWidgetVariable) {
            ((ActionWidgetVariable) actionWidget).onVariableChange();
        }
    }
}
Also used : ActionWidget(pneumaticCraft.common.remote.ActionWidget) ActionWidgetVariable(pneumaticCraft.common.remote.ActionWidgetVariable)

Aggregations

ActionWidget (pneumaticCraft.common.remote.ActionWidget)1 ActionWidgetVariable (pneumaticCraft.common.remote.ActionWidgetVariable)1