forked from RepoMirrors/kami-blue
color > colour v2
This commit is contained in:
parent
1279cd5c7a
commit
c559268b16
|
@ -5,7 +5,7 @@ import me.zeroeightsix.kami.gui.kami.component.SettingsPanel;
|
|||
import me.zeroeightsix.kami.gui.rgui.render.AbstractComponentUI;
|
||||
import me.zeroeightsix.kami.gui.rgui.render.font.FontRenderer;
|
||||
import me.zeroeightsix.kami.module.ModuleManager;
|
||||
import me.zeroeightsix.kami.module.modules.bewwawho.experimental.GUIColor;
|
||||
import me.zeroeightsix.kami.module.modules.bewwawho.experimental.GUIColour;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
/**
|
||||
|
@ -18,10 +18,10 @@ public class KamiSettingsPanelUI extends AbstractComponentUI<SettingsPanel> {
|
|||
super.renderComponent(component, fontRenderer);
|
||||
|
||||
GL11.glLineWidth(2.0F);
|
||||
float red = (float) (Integer) ((GUIColor) ModuleManager.getModuleByName("GUI Color")).red.getValue() / 255.0F;
|
||||
float green = (float) (Integer) ((GUIColor) ModuleManager.getModuleByName("GUI Color")).green.getValue() / 255.0F;
|
||||
float blue = (float) (Integer) ((GUIColor) ModuleManager.getModuleByName("GUI Color")).blue.getValue() / 255.0F;
|
||||
float alpha = (float) (Integer) ((GUIColor) ModuleManager.getModuleByName("GUI Color")).alpha.getValue() / 255.0F;
|
||||
float red = (float) (Integer) ((GUIColour) ModuleManager.getModuleByName("GUI Colour")).red.getValue() / 255.0F;
|
||||
float green = (float) (Integer) ((GUIColour) ModuleManager.getModuleByName("GUI Colour")).green.getValue() / 255.0F;
|
||||
float blue = (float) (Integer) ((GUIColour) ModuleManager.getModuleByName("GUI Colour")).blue.getValue() / 255.0F;
|
||||
float alpha = (float) (Integer) ((GUIColour) ModuleManager.getModuleByName("GUI Colour")).alpha.getValue() / 255.0F;
|
||||
if (ModuleManager.getModuleByName("GUI Color").isEnabled()) {
|
||||
GL11.glColor4f(red, green, blue, alpha);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue