Add back shader picker

- somehow, i removed it before the pr and didn't notice
This commit is contained in:
rafern 2021-08-31 14:12:55 +01:00
parent d541d3958d
commit 6348fe7c20
No known key found for this signature in database
GPG Key ID: FE8BE3E64992D5CF
1 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import me.rigamortis.seppuku.api.module.Module;
import me.rigamortis.seppuku.api.texture.Texture;
import me.rigamortis.seppuku.api.util.RenderUtil;
import me.rigamortis.seppuku.api.value.Regex;
import me.rigamortis.seppuku.api.value.Shader;
import me.rigamortis.seppuku.api.value.Value;
import me.rigamortis.seppuku.impl.config.ModuleConfig;
import me.rigamortis.seppuku.impl.gui.hud.GuiHudEditor;
@ -649,6 +650,11 @@ public final class ModuleListComponent extends ResizableHudComponent {
};
components.add(valueText);
this.addComponentToButtons(valueText);
} else if (value.getValue() instanceof Shader) {
CarouselComponent carouselComponent = new CarouselComponent(value.getName(), value);
carouselComponent.setTooltipText(value.getDesc());
components.add(carouselComponent);
this.addComponentToButtons(carouselComponent);
}
}
}