Tweak Outline Color
This commit is contained in:
parent
631cbc07d0
commit
0be1f4fce8
@ -501,7 +501,7 @@ static unsigned char *ContainerMenu_destructor_injection(unsigned char *containe
|
|||||||
// Custom Outline Color
|
// Custom Outline Color
|
||||||
static void glColor4f_injection(__attribute__((unused)) GLfloat red, __attribute__((unused)) GLfloat green, __attribute__((unused)) GLfloat blue, __attribute__((unused)) GLfloat alpha) {
|
static void glColor4f_injection(__attribute__((unused)) GLfloat red, __attribute__((unused)) GLfloat green, __attribute__((unused)) GLfloat blue, __attribute__((unused)) GLfloat alpha) {
|
||||||
// Set Color
|
// Set Color
|
||||||
glColor4f(0, 0, 0, 1);
|
glColor4f(0, 0, 0, 0.4);
|
||||||
|
|
||||||
// Find Line Width
|
// Find Line Width
|
||||||
char *custom_line_width = getenv("MCPI_BLOCK_OUTLINE_WIDTH");
|
char *custom_line_width = getenv("MCPI_BLOCK_OUTLINE_WIDTH");
|
||||||
@ -511,7 +511,7 @@ static void glColor4f_injection(__attribute__((unused)) GLfloat red, __attribute
|
|||||||
line_width = strtof(custom_line_width, NULL);
|
line_width = strtof(custom_line_width, NULL);
|
||||||
} else {
|
} else {
|
||||||
// Guess
|
// Guess
|
||||||
line_width = 1.75 / (*InvGuiScale);
|
line_width = 2 / (*InvGuiScale);
|
||||||
}
|
}
|
||||||
// Clamp Line Width
|
// Clamp Line Width
|
||||||
float range[2];
|
float range[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user