mirror of
https://github.com/xiaozhou233/OrangeX-Client.git
synced 2026-12-05 13:05:52 +08:00
Fix: Add brighter background to option components to distinguish from modules
This commit is contained in:
1 parent
a9930b3d23
commit
bd998b2a92
6 files changed
+6
No files matched your search
+1
@@ -21,6 +21,7 @@ public class BooleanComponent extends OptionComponent{
|
||||
|
||||
@Override
|
||||
public void drawScreen(int mouseX,int mouseY,float partialTicks) {
|
||||
drawRect(getX(), getY(), getX() + width, getY() + height, 0xff252525);
|
||||
|
||||
drawString(
|
||||
option.getName(),
|
||||
|
||||
+1
@@ -23,6 +23,7 @@ public class ColorComponent extends OptionComponent {
|
||||
|
||||
@Override
|
||||
public void drawScreen(int mouseX,int mouseY,float partialTicks) {
|
||||
drawRect(getX(), getY(), getX() + width, getY() + height, 0xff252525);
|
||||
|
||||
drawString(
|
||||
option.getName(),
|
||||
|
||||
+1
@@ -17,6 +17,7 @@ public class KeybindComponent extends OptionComponent {
|
||||
|
||||
@Override
|
||||
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
|
||||
drawRect(getX(), getY(), getX() + width, getY() + height, 0xff252525);
|
||||
drawString("Keybind", getX() + 4, getY() + 4, 0xffffffff);
|
||||
|
||||
String keyName;
|
||||
|
||||
+1
@@ -21,6 +21,7 @@ public class ModeComponent extends OptionComponent {
|
||||
|
||||
@Override
|
||||
public void drawScreen(int mouseX,int mouseY,float partialTicks) {
|
||||
drawRect(getX(), getY(), getX() + width, getY() + height, 0xff252525);
|
||||
|
||||
drawString(
|
||||
option.getName(),
|
||||
|
||||
+1
@@ -39,6 +39,7 @@ public class SliderComponent extends OptionComponent {
|
||||
|
||||
@Override
|
||||
public void drawScreen(int mouseX,int mouseY,float partialTicks) {
|
||||
drawRect(getX(), getY(), getX() + width, getY() + height, 0xff252525);
|
||||
|
||||
double value = getValue();
|
||||
|
||||
|
||||
+1
@@ -25,6 +25,7 @@ public class StringComponent extends OptionComponent {
|
||||
|
||||
@Override
|
||||
public void drawScreen(int mouseX,int mouseY,float partialTicks) {
|
||||
drawRect(getX(), getY(), getX() + width, getY() + height, 0xff252525);
|
||||
|
||||
drawString(
|
||||
option.getName(),
|
||||
|
||||
Reference in new issue
Block a user