Мои старые кейбины | exp 2.0

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
21 Фев 2024
Сообщения
102
Реакции
2
данные бинды писались для не существующего, моего "клиента". я знал что он не релизнется и т.д..
10 минут назад я открыл свой старый сурс, и вспомнил как днями над ним работал(
Java:
Expand Collapse Copy
 private void onKeyBindsRender(MatrixStack stack) {
float posX = keyBinds.getX();
float posY = keyBinds.getY();

int roundDegree = 5;
int headerHeight = 14;
int width = 65;
int padding = 5;
int offset = 10;

int headerColor = new Color(22, 22, 22, 255).getRGB();
int backgroundColor = new Color(33, 33, 33, 255).getRGB();

int oneColor;
int twoColor;
int threeColor;
int fourColor;
oneColor = ColorUtil.getColorStyle(0);
twoColor = ColorUtil.getColorStyle(90);
threeColor = ColorUtil.getColorStyle(180);
fourColor = ColorUtil.getColorStyle(270);

float height = activeModules * offset; //41, 41, 41

this.heightDynamic = AnimationMath.fast(this.heightDynamic, height, 10);

GaussianBlur.startBlur();
RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight + 4, new Vector4f(roundDegree, 0, roundDegree, 0), headerColor);
GaussianBlur.endBlur(7, 1);
RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight + 4, new Vector4f(roundDegree, 0, roundDegree, 0), rgba(30, 30, 30, 200));
RenderUtil.Render2D.drawRoundedCorner(posX, posY + headerHeight + 2, width, heightDynamic + padding / 2f + 2, new Vector4f(0, roundDegree, 0, roundDegree), rgba(29, 32, 47, 255));
BloomHelper.registerRenderCall(() -> {
Fonts.gilroyBold[16].drawString(stack, ClientUtil.gradient("Хот-кей", oneColor, twoColor), keyBinds.getX() + 16, posY + 6f, -1);
});
Fonts.gilroyBold[16].drawString(stack, ClientUtil.gradient("Хот-кей", oneColor, twoColor), keyBinds.getX() + 16, posY + 6f, -1);
SmartScissor.push();
SmartScissor.setFromComponentCoordinates(posX, posY - 3, width, headerHeight + heightDynamic + padding / 2f + 12);
int index = 0;

for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
if (f.bind != 0 && f.state) {

String text = ClientUtil.getKey(f.bind);

if (text == null) {
continue;
}


String bindText = text.toUpperCase();
float bindWidth = Fonts.msRegular[12].getWidth(bindText);


Fonts.msRegular[12].drawString(stack, f.name, posX + padding - 1, posY + headerHeight + padding + (index * offset) + 3.5, -1);
Fonts.msRegular[12].drawString(stack, "[вкл]", posX + width - bindWidth - padding - 9, posY + headerHeight + padding + (index * offset) + 3.5, -1);

index++;
}
}
SmartScissor.unset();
SmartScissor.pop();
activeModules = index;

keyBinds.setWidth(width);
keyBinds.setHeight(activeModules * offset + headerHeight);
}
ss:
1714065309142.png

1714065728499.png

1714065744928.png
 
Последнее редактирование:
нет, правильна гарачиии клавешы
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
можно глаза мне вырвать? пжж
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
данные бинды писались для не существующего, моего "клиента". я знал что он не релизнется и т.д..
10 минут назад я открыл свой старый сурс, и вспомнил как днями над ним работал(
Java:
Expand Collapse Copy
 private void onKeyBindsRender(MatrixStack stack) {
float posX = keyBinds.getX();
float posY = keyBinds.getY();

int roundDegree = 5;
int headerHeight = 14;
int width = 65;
int padding = 5;
int offset = 10;

int headerColor = new Color(22, 22, 22, 255).getRGB();
int backgroundColor = new Color(33, 33, 33, 255).getRGB();

int oneColor;
int twoColor;
int threeColor;
int fourColor;
oneColor = ColorUtil.getColorStyle(0);
twoColor = ColorUtil.getColorStyle(90);
threeColor = ColorUtil.getColorStyle(180);
fourColor = ColorUtil.getColorStyle(270);

float height = activeModules * offset; //41, 41, 41

this.heightDynamic = AnimationMath.fast(this.heightDynamic, height, 10);

GaussianBlur.startBlur();
RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight + 4, new Vector4f(roundDegree, 0, roundDegree, 0), headerColor);
GaussianBlur.endBlur(7, 1);
RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight + 4, new Vector4f(roundDegree, 0, roundDegree, 0), rgba(30, 30, 30, 200));
RenderUtil.Render2D.drawRoundedCorner(posX, posY + headerHeight + 2, width, heightDynamic + padding / 2f + 2, new Vector4f(0, roundDegree, 0, roundDegree), rgba(29, 32, 47, 255));
BloomHelper.registerRenderCall(() -> {
Fonts.gilroyBold[16].drawString(stack, ClientUtil.gradient("Хот-кей", oneColor, twoColor), keyBinds.getX() + 16, posY + 6f, -1);
});
Fonts.gilroyBold[16].drawString(stack, ClientUtil.gradient("Хот-кей", oneColor, twoColor), keyBinds.getX() + 16, posY + 6f, -1);
SmartScissor.push();
SmartScissor.setFromComponentCoordinates(posX, posY - 3, width, headerHeight + heightDynamic + padding / 2f + 12);
int index = 0;

for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
if (f.bind != 0 && f.state) {

String text = ClientUtil.getKey(f.bind);

if (text == null) {
continue;
}


String bindText = text.toUpperCase();
float bindWidth = Fonts.msRegular[12].getWidth(bindText);


Fonts.msRegular[12].drawString(stack, f.name, posX + padding - 1, posY + headerHeight + padding + (index * offset) + 3.5, -1);
Fonts.msRegular[12].drawString(stack, "[вкл]", posX + width - bindWidth - padding - 9, posY + headerHeight + padding + (index * offset) + 3.5, -1);

index++;
}
}
SmartScissor.unset();
SmartScissor.pop();
activeModules = index;

keyBinds.setWidth(width);
keyBinds.setHeight(activeModules * offset + headerHeight);
}
ss:
Посмотреть вложение 275502
Посмотреть вложение 275503
Посмотреть вложение 275504
ебучие говно снеси с форума это нахуй
 
Последнее редактирование:
Под энергетик пойдёт, ну моё мнение норм
 
данные бинды писались для не существующего, моего "клиента". я знал что он не релизнется и т.д..
10 минут назад я открыл свой старый сурс, и вспомнил как днями над ним работал(
Java:
Expand Collapse Copy
 private void onKeyBindsRender(MatrixStack stack) {
float posX = keyBinds.getX();
float posY = keyBinds.getY();

int roundDegree = 5;
int headerHeight = 14;
int width = 65;
int padding = 5;
int offset = 10;

int headerColor = new Color(22, 22, 22, 255).getRGB();
int backgroundColor = new Color(33, 33, 33, 255).getRGB();

int oneColor;
int twoColor;
int threeColor;
int fourColor;
oneColor = ColorUtil.getColorStyle(0);
twoColor = ColorUtil.getColorStyle(90);
threeColor = ColorUtil.getColorStyle(180);
fourColor = ColorUtil.getColorStyle(270);

float height = activeModules * offset; //41, 41, 41

this.heightDynamic = AnimationMath.fast(this.heightDynamic, height, 10);

GaussianBlur.startBlur();
RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight + 4, new Vector4f(roundDegree, 0, roundDegree, 0), headerColor);
GaussianBlur.endBlur(7, 1);
RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight + 4, new Vector4f(roundDegree, 0, roundDegree, 0), rgba(30, 30, 30, 200));
RenderUtil.Render2D.drawRoundedCorner(posX, posY + headerHeight + 2, width, heightDynamic + padding / 2f + 2, new Vector4f(0, roundDegree, 0, roundDegree), rgba(29, 32, 47, 255));
BloomHelper.registerRenderCall(() -> {
Fonts.gilroyBold[16].drawString(stack, ClientUtil.gradient("Хот-кей", oneColor, twoColor), keyBinds.getX() + 16, posY + 6f, -1);
});
Fonts.gilroyBold[16].drawString(stack, ClientUtil.gradient("Хот-кей", oneColor, twoColor), keyBinds.getX() + 16, posY + 6f, -1);
SmartScissor.push();
SmartScissor.setFromComponentCoordinates(posX, posY - 3, width, headerHeight + heightDynamic + padding / 2f + 12);
int index = 0;

for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
if (f.bind != 0 && f.state) {

String text = ClientUtil.getKey(f.bind);

if (text == null) {
continue;
}


String bindText = text.toUpperCase();
float bindWidth = Fonts.msRegular[12].getWidth(bindText);


Fonts.msRegular[12].drawString(stack, f.name, posX + padding - 1, posY + headerHeight + padding + (index * offset) + 3.5, -1);
Fonts.msRegular[12].drawString(stack, "[вкл]", posX + width - bindWidth - padding - 9, posY + headerHeight + padding + (index * offset) + 3.5, -1);

index++;
}
}
SmartScissor.unset();
SmartScissor.pop();
activeModules = index;

keyBinds.setWidth(width);
keyBinds.setHeight(activeModules * offset + headerHeight);
}
ss:
Посмотреть вложение 275502
Посмотреть вложение 275503
Посмотреть вложение 275504
человек №2 имеющий нормальные отступы. +реп, но тире между Хот и кей смотрится не очень
 
не полохая идея самих хоткев но реализовано не очень
 
человек №2 имеющий нормальные отступы. +реп, но тире между Хот и кей смотрится не очень
ну я делал на уникальность, поэтому сделал "Хот-кей", а на счет отступов скажу одно: я перфекционист :orehus:
еб

ебучие говно снеси с форума это нахуй
1714100744129.png

1714100767306.png

можно глаза мне вырвать? пжж
напоминаю
1714101032322.png
 
Последнее редактирование:
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
можно глаза мне вырвать? пжж
Смотря на то, что делаеш ты, тут тип сделал богоподобные HotKeys. Единственный на моей памяти, кто сделал адекватные отступы, а не так как у большинства типов, у которых HotKeys сука вылезает за рект
можно глаза мне вырвать? пжж
А ты я так понимаю способен только на то чтобы обсирать чужой труд ииии... Добавлять блять второй сеттинг в сурс экспенсива :roflanPominki:
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Смотря на то, что делаеш ты, тут тип сделал богоподобные HotKeys. Единственный на моей памяти, кто сделал адекватные отступы, а не так как у большинства типов, у которых HotKeys сука вылезает за рект

А ты я так понимаю способен только на то чтобы обсирать чужой труд ииии... Добавлять блять второй сеттинг в сурс экспенсива :roflanPominki:
а вот скажи мне,а зачем мне сливать что то годное если тут сидят одни пастеры которые не пытаются даже думать?
 
хз чё вам не понравилось, вроде пойдёт, но тире лучше убрать (Хоткей)
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
ну я делал на уникальность, поэтому сделал "Хот-кей", а на счет отступов скажу одно: я перфекционист :orehus:

Посмотреть вложение 275530
Посмотреть вложение 275531

напоминаю
Посмотреть вложение 275532
xd
Под энергетик пойдёт, ну моё мнение норм
ценитель говна прибыл
 
данные бинды писались для не существующего, моего "клиента". я знал что он не релизнется и т.д..
10 минут назад я открыл свой старый сурс, и вспомнил как днями над ним работал(
Java:
Expand Collapse Copy
 private void onKeyBindsRender(MatrixStack stack) {
float posX = keyBinds.getX();
float posY = keyBinds.getY();

int roundDegree = 5;
int headerHeight = 14;
int width = 65;
int padding = 5;
int offset = 10;

int headerColor = new Color(22, 22, 22, 255).getRGB();
int backgroundColor = new Color(33, 33, 33, 255).getRGB();

int oneColor;
int twoColor;
int threeColor;
int fourColor;
oneColor = ColorUtil.getColorStyle(0);
twoColor = ColorUtil.getColorStyle(90);
threeColor = ColorUtil.getColorStyle(180);
fourColor = ColorUtil.getColorStyle(270);

float height = activeModules * offset; //41, 41, 41

this.heightDynamic = AnimationMath.fast(this.heightDynamic, height, 10);

GaussianBlur.startBlur();
RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight + 4, new Vector4f(roundDegree, 0, roundDegree, 0), headerColor);
GaussianBlur.endBlur(7, 1);
RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight + 4, new Vector4f(roundDegree, 0, roundDegree, 0), rgba(30, 30, 30, 200));
RenderUtil.Render2D.drawRoundedCorner(posX, posY + headerHeight + 2, width, heightDynamic + padding / 2f + 2, new Vector4f(0, roundDegree, 0, roundDegree), rgba(29, 32, 47, 255));
BloomHelper.registerRenderCall(() -> {
Fonts.gilroyBold[16].drawString(stack, ClientUtil.gradient("Хот-кей", oneColor, twoColor), keyBinds.getX() + 16, posY + 6f, -1);
});
Fonts.gilroyBold[16].drawString(stack, ClientUtil.gradient("Хот-кей", oneColor, twoColor), keyBinds.getX() + 16, posY + 6f, -1);
SmartScissor.push();
SmartScissor.setFromComponentCoordinates(posX, posY - 3, width, headerHeight + heightDynamic + padding / 2f + 12);
int index = 0;

for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
if (f.bind != 0 && f.state) {

String text = ClientUtil.getKey(f.bind);

if (text == null) {
continue;
}


String bindText = text.toUpperCase();
float bindWidth = Fonts.msRegular[12].getWidth(bindText);


Fonts.msRegular[12].drawString(stack, f.name, posX + padding - 1, posY + headerHeight + padding + (index * offset) + 3.5, -1);
Fonts.msRegular[12].drawString(stack, "[вкл]", posX + width - bindWidth - padding - 9, posY + headerHeight + padding + (index * offset) + 3.5, -1);

index++;
}
}
SmartScissor.unset();
SmartScissor.pop();
activeModules = index;

keyBinds.setWidth(width);
keyBinds.setHeight(activeModules * offset + headerHeight);
}
ss:
Посмотреть вложение 275502
Посмотреть вложение 275503
Посмотреть вложение 275504
Оченб отлично
 
данные бинды писались для не существующего, моего "клиента". я знал что он не релизнется и т.д..
10 минут назад я открыл свой старый сурс, и вспомнил как днями над ним работал(
Java:
Expand Collapse Copy
 private void onKeyBindsRender(MatrixStack stack) {
float posX = keyBinds.getX();
float posY = keyBinds.getY();

int roundDegree = 5;
int headerHeight = 14;
int width = 65;
int padding = 5;
int offset = 10;

int headerColor = new Color(22, 22, 22, 255).getRGB();
int backgroundColor = new Color(33, 33, 33, 255).getRGB();

int oneColor;
int twoColor;
int threeColor;
int fourColor;
oneColor = ColorUtil.getColorStyle(0);
twoColor = ColorUtil.getColorStyle(90);
threeColor = ColorUtil.getColorStyle(180);
fourColor = ColorUtil.getColorStyle(270);

float height = activeModules * offset; //41, 41, 41

this.heightDynamic = AnimationMath.fast(this.heightDynamic, height, 10);

GaussianBlur.startBlur();
RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight + 4, new Vector4f(roundDegree, 0, roundDegree, 0), headerColor);
GaussianBlur.endBlur(7, 1);
RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight + 4, new Vector4f(roundDegree, 0, roundDegree, 0), rgba(30, 30, 30, 200));
RenderUtil.Render2D.drawRoundedCorner(posX, posY + headerHeight + 2, width, heightDynamic + padding / 2f + 2, new Vector4f(0, roundDegree, 0, roundDegree), rgba(29, 32, 47, 255));
BloomHelper.registerRenderCall(() -> {
Fonts.gilroyBold[16].drawString(stack, ClientUtil.gradient("Хот-кей", oneColor, twoColor), keyBinds.getX() + 16, posY + 6f, -1);
});
Fonts.gilroyBold[16].drawString(stack, ClientUtil.gradient("Хот-кей", oneColor, twoColor), keyBinds.getX() + 16, posY + 6f, -1);
SmartScissor.push();
SmartScissor.setFromComponentCoordinates(posX, posY - 3, width, headerHeight + heightDynamic + padding / 2f + 12);
int index = 0;

for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
if (f.bind != 0 && f.state) {

String text = ClientUtil.getKey(f.bind);

if (text == null) {
continue;
}


String bindText = text.toUpperCase();
float bindWidth = Fonts.msRegular[12].getWidth(bindText);


Fonts.msRegular[12].drawString(stack, f.name, posX + padding - 1, posY + headerHeight + padding + (index * offset) + 3.5, -1);
Fonts.msRegular[12].drawString(stack, "[вкл]", posX + width - bindWidth - padding - 9, posY + headerHeight + padding + (index * offset) + 3.5, -1);

index++;
}
}
SmartScissor.unset();
SmartScissor.pop();
activeModules = index;

keyBinds.setWidth(width);
keyBinds.setHeight(activeModules * offset + headerHeight);
}
ss:
Посмотреть вложение 275502
Посмотреть вложение 275503
Посмотреть вложение 275504
красиво
 
данные бинды писались для не существующего, моего "клиента". я знал что он не релизнется и т.д..
10 минут назад я открыл свой старый сурс, и вспомнил как днями над ним работал(
Java:
Expand Collapse Copy
 private void onKeyBindsRender(MatrixStack stack) {
float posX = keyBinds.getX();
float posY = keyBinds.getY();

int roundDegree = 5;
int headerHeight = 14;
int width = 65;
int padding = 5;
int offset = 10;

int headerColor = new Color(22, 22, 22, 255).getRGB();
int backgroundColor = new Color(33, 33, 33, 255).getRGB();

int oneColor;
int twoColor;
int threeColor;
int fourColor;
oneColor = ColorUtil.getColorStyle(0);
twoColor = ColorUtil.getColorStyle(90);
threeColor = ColorUtil.getColorStyle(180);
fourColor = ColorUtil.getColorStyle(270);

float height = activeModules * offset; //41, 41, 41

this.heightDynamic = AnimationMath.fast(this.heightDynamic, height, 10);

GaussianBlur.startBlur();
RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight + 4, new Vector4f(roundDegree, 0, roundDegree, 0), headerColor);
GaussianBlur.endBlur(7, 1);
RenderUtil.Render2D.drawRoundedCorner(keyBinds.getX(), posY, width, headerHeight + 4, new Vector4f(roundDegree, 0, roundDegree, 0), rgba(30, 30, 30, 200));
RenderUtil.Render2D.drawRoundedCorner(posX, posY + headerHeight + 2, width, heightDynamic + padding / 2f + 2, new Vector4f(0, roundDegree, 0, roundDegree), rgba(29, 32, 47, 255));
BloomHelper.registerRenderCall(() -> {
Fonts.gilroyBold[16].drawString(stack, ClientUtil.gradient("Хот-кей", oneColor, twoColor), keyBinds.getX() + 16, posY + 6f, -1);
});
Fonts.gilroyBold[16].drawString(stack, ClientUtil.gradient("Хот-кей", oneColor, twoColor), keyBinds.getX() + 16, posY + 6f, -1);
SmartScissor.push();
SmartScissor.setFromComponentCoordinates(posX, posY - 3, width, headerHeight + heightDynamic + padding / 2f + 12);
int index = 0;

for (Function f : Managment.FUNCTION_MANAGER.getFunctions()) {
if (f.bind != 0 && f.state) {

String text = ClientUtil.getKey(f.bind);

if (text == null) {
continue;
}


String bindText = text.toUpperCase();
float bindWidth = Fonts.msRegular[12].getWidth(bindText);


Fonts.msRegular[12].drawString(stack, f.name, posX + padding - 1, posY + headerHeight + padding + (index * offset) + 3.5, -1);
Fonts.msRegular[12].drawString(stack, "[вкл]", posX + width - bindWidth - padding - 9, posY + headerHeight + padding + (index * offset) + 3.5, -1);

index++;
}
}
SmartScissor.unset();
SmartScissor.pop();
activeModules = index;

keyBinds.setWidth(width);
keyBinds.setHeight(activeModules * offset + headerHeight);
}
ss:
Посмотреть вложение 275502
Посмотреть вложение 275503
Посмотреть вложение 275504
не слушай никого выглядит ахуенно.
 
Назад
Сверху Снизу