Thread: Chat Icon Help Elvarg

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 Chat Icon Help Elvarg 
    #13

    Join Date
    Jan 2014
    Posts
    148
    Thanks given
    32
    Thanks received
    22
    Rep Power
    49
    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
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Feb 2016
    Posts
    224
    Thanks given
    177
    Thanks received
    51
    Rep Power
    119
    Post your drawchat method should be in your client class
    Reply With Quote  
     

  3. #3  
    #13

    Join Date
    Jan 2014
    Posts
    148
    Thanks given
    32
    Thanks received
    22
    Rep Power
    49
    Quote Originally Posted by Sluggy View Post
    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]
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Yes, thats not all though.
    Reply With Quote  
     

  5. #5  
    #13

    Join Date
    Jan 2014
    Posts
    148
    Thanks given
    32
    Thanks received
    22
    Rep Power
    49
    Quote Originally Posted by _Patrick_ View Post
    Yes, thats not all though.
    https://pastebin.com/g4M26Zt0

    That's enough? I added a lot more over the Draw Chat Area method.
    Reply With Quote  
     

  6. #6  
    #13

    Join Date
    Jan 2014
    Posts
    148
    Thanks given
    32
    Thanks received
    22
    Rep Power
    49
    bump still need help
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Discord id? or add mine; ipkmills
    #4507
    Reply With Quote  
     

  8. #8  
    ᗪ乇尺乇乙乙乇ᗪ

    lumplum's Avatar
    Join Date
    Nov 2015
    Posts
    1,145
    Thanks given
    529
    Thanks received
    1,463
    Rep Power
    5000
    bump
    Attached image
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Feb 2016
    Posts
    224
    Thanks given
    177
    Thanks received
    51
    Rep Power
    119
    It's probably this
    Code:
    modIcons[myPrivilege - 1].drawSprite(10, 122 + yOffset);
    remove the - 1
    Reply With Quote  
     

  10. #10  
    Donator
    Bananastreet's Avatar
    Join Date
    Jul 2011
    Posts
    102
    Thanks given
    81
    Thanks received
    24
    Rep Power
    23
    Quote Originally Posted by Sluggy View Post
    It's probably this
    Code:
    modIcons[myPrivilege - 1].drawSprite(10, 122 + yOffset);
    remove the - 1
    So... Mod crown will be put on players with 0 rank.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Help with chat icons
    By AchillesTheDev in forum Help
    Replies: 4
    Last Post: 03-08-2014, 01:45 PM
  2. 718 Chat Icons - Help
    By drrrage in forum Help
    Replies: 5
    Last Post: 12-12-2013, 01:05 PM
  3. Replies: 0
    Last Post: 12-07-2010, 05:09 AM
  4. Icon help on Bluurs.
    By myK- in forum Help
    Replies: 0
    Last Post: 12-02-2008, 06:39 PM
  5. Icon help?
    By Ryan™ in forum Help
    Replies: 21
    Last Post: 10-23-2008, 04:51 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •