Post your drawchat method should be in your client class
|
Hello, I've looked through the whole server files and can't figure out how to fix this.
I looked at all the code containing the owner / developer player rights and still can't figure it out why it's grouping the owner chat icon with the developers.
And then when you talk in the chat the text isn't aligned properly
Any help is much appreciated
Post your drawchat method should be in your client class
is that the correct method?
[SPOIL]private void drawChatArea() {
int yOffset = frameMode == ScreenMode.FIXED ? 0 : frameHeight - 165;
if (frameMode == ScreenMode.FIXED) {
chatboxImageProducer.initDrawingArea();
}
Rasterizer3D.scanOffsets = anIntArray1180;
if (chatStateCheck()) {
showChatComponents = true;
cacheSprite[20].drawSprite(0, yOffset);
}
if (showChatComponents) {
if (changeChatArea && !chatStateCheck()) {
Rasterizer2D.drawHorizontalLine(7, 7 + yOffset, 506, 0x575757);
Rasterizer2D.drawTransparentGradientBox(7, 7 + yOffset, 506, 135, 0, 0xFFFFFF, 20);
} else {
cacheSprite[20].drawSprite(0, yOffset);
}
}
if (!showChatComponents || changeChatArea) {
Rasterizer2D.drawTransparentBox(7, frameHeight - 23, 506, 24, 0, 100);
}
drawChannelButtons();
GameFont font = regularText;
if (messagePromptRaised) {
newBoldFont.drawCenteredString(aString1121, 259, 60 + yOffset, 0, -1);
newBoldFont.drawCenteredString(promptInput + "*", 259, 80 + yOffset, 128, -1);
} else if (inputDialogState == 1) {
newBoldFont.drawCenteredString(enter_amount_title, 259, yOffset + 60, 0, -1);
newBoldFont.drawCenteredString(amountOrNameInput + "*", 259, 80 + yOffset, 128,
-1);
} else if (inputDialogState == 2) {
newBoldFont.drawCenteredString(enter_name_title, 259, 60 + yOffset, 0, -1);
newBoldFont.drawCenteredString(amountOrNameInput + "*", 259, 80 + yOffset, 128,
-1);
} else if (clickToContinueString != null) {
newBoldFont.drawCenteredString(clickToContinueStri ng, 259, 60 + yOffset, 0, -1);
newBoldFont.drawCenteredString("Click to continue", 259, 80 + yOffset, 128, -1);
} else if (backDialogueId != -1) {
try {
drawInterface(0, 20, Widget.interfaceCache[backDialogueId], 20 + yOffset);
} catch (Exception ex) {
}
} else if (dialogueId != -1) {
try {
drawInterface(0, 20, Widget.interfaceCache[dialogueId], 20 + yOffset);
} catch (Exception ex) {
}
} else if (showChatComponents) {
int j77 = -3;
int j = 0;
int shadow = changeChatArea ? 0 : -1;
Rasterizer2D.setDrawingArea(122 + yOffset, 8, 497, 7 + yOffset);
for (int k = 0; k < 500; k++) {
if (chatMessages[k] != null) {
int chatType = chatTypes[k];
int yPos = (70 - j77 * 14) + anInt1089 + 5;
String s1 = chatNames[k];
byte data = 0;
if (s1 != null && s1.startsWith("@cr1@")) {
s1 = s1.substring(5);
data = 1;
} else if (s1 != null && s1.startsWith("@cr2@")) {
s1 = s1.substring(5);
data = 2;
} else if (s1 != null && s1.startsWith("@cr4@")) {
s1 = s1.substring(5);
data = 4;
} else if (s1 != null && s1.startsWith("@cr5@")) {
s1 = s1.substring(5);
data = 5;
} else if (s1 != null && s1.startsWith("@cr6@")) {
s1 = s1.substring(5);
data = 6;
} else if (s1 != null && s1.startsWith("@cr7@")) {
s1 = s1.substring(5);
data = 7;
} else if (s1 != null && s1.startsWith("@cr8@")) {
s1 = s1.substring(5);
data = 8;
} else if (s1 != null && s1.startsWith("@cr9@")) {
s1 = s1.substring(5);
data = 9;
} else if (s1 != null && s1.startsWith("@cr10@")) {
s1 = s1.substring(6);
data = 10;
}
if (chatType == 0) {
if (chatTypeView == 5 || chatTypeView == 0) {
newRegularFont.drawBasicString(chatMessages[k], 11,
yPos + yOffset, changeChatArea ? 0xFFFFFF : 0,
shadow);
j++;
j77++;
}
}[/SPOIL]
Yes, thats not all though.
https://pastebin.com/g4M26Zt0
That's enough? I added a lot more over the Draw Chat Area method.
bump still need help
Discord id? or add mine; ipkmills
#4507
It's probably this
remove the - 1Code:modIcons[myPrivilege - 1].drawSprite(10, 122 + yOffset);
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |