Thread: OSRS Make all interface (missing some stuff)

Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11  
    Registered Member Inkk__'s Avatar
    Join Date
    Apr 2021
    Posts
    6
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    Yeah, im a bit stupid in this area, still trying to make it work.

    Hey, if anyone could help me set it up. I use Morytania client. Here is my discord : Inkk#0271
    Reply With Quote  
     

  2. #12  
    Rune-Server Affiliate

    Join Date
    Apr 2014
    Posts
    1,761
    Thanks given
    75
    Thanks received
    714
    Rep Power
    1073
    Here you go. No need for a billion separate sprites.

    Sprites; https://mega.nz/#!A5cERQDJ!dIeMqChaa...3pA84EZh9P68qA

    Code:
        private static void drawBox(int x, int y, int width, int height, boolean hover) {
            // Inner fill
            Raster.drawRoundedRectangle(x, y, width, height, 0xB29D7B, 256, true, false);
    
            // Top
            Raster.drawHorizontalLine(x + 2, y, width - 4, 0x000000); // Black
            Raster.drawHorizontalLine(x + 2, y + 1, width - 4, 0xD3BE9C); // Light
            Raster.drawHorizontalLine(x + 2, y + 2, width - 4, 0xC3AE8C); // Darker
    
            // Bottom
            Raster.drawHorizontalLine(x + 2, y + height - 1, width - 4, 0x000000); // Black
            Raster.drawHorizontalLine(x + 2, y + height - 2, width - 4, 0xD3BE9C); // Light
            Raster.drawHorizontalLine(x + 2, y + height - 3, width - 4, 0xC3AE8C); // Darker
    
            // Left
            Raster.drawVerticalLine(x, y + 2, height - 4, 0x000000); // Black
            Raster.drawVerticalLine(x + 1, y + 2, height - 4, 0xD3BE9C); // Light
            Raster.drawVerticalLine(x + 2, y + 2, height - 4, 0xC3AE8C); // Darker
    
            // Right
            Raster.drawVerticalLine(x + width - 1, y + 2, height - 4, 0x000000); // Black
            Raster.drawVerticalLine(x + width - 2, y + 2, height - 4, 0xD3BE9C); // Light
            Raster.drawVerticalLine(x + width - 3, y + 2, height - 4, 0xC3AE8C); // Darker
    
            // Top left Sprite
            SpriteData.drawSprite(883, x, y);
    
            // Top right Sprite
            SpriteData.drawSprite(884, x + width - 9, y);
    
            // Bottom left Sprite
            SpriteData.drawSprite(885, x, y + height - 9);
    
            // Bottom right Sprite
            SpriteData.drawSprite(887, x + width - 9, y + height - 9);
    
            if (hover) {
                Raster.drawRoundedRectangle(x, y, width, height, 0x000000, 50, true, false);
            }
        }
    Reply With Quote  
     

  3. #13  
    Registered Member
    rebecca's Avatar
    Join Date
    Aug 2017
    Posts
    1,071
    Thanks given
    862
    Thanks received
    915
    Rep Power
    5000
    thx zion, can probs remake this 100x easier than drawing lines with the raster using this https://www.rune-server.ee/runescape...d-sprites.html
    i use it instead of drawing lines for boxes whenever i can for example drawing the scrollbar as this.

    Code:
     imageScrollBackground.stretch(x, y + 16, 16, height - 32);
    less memory usage
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

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. Buying new Make-All interfaces (client side)
    By HeyPewds in forum Buying
    Replies: 0
    Last Post: 03-20-2018, 04:27 AM
  2. OSRS Make-All
    By Owain in forum Old School RS (2007)
    Replies: 12
    Last Post: 10-28-2017, 12:46 PM
  3. Loading some OSRS (Not all) data into my client
    By klaasvaakjes in forum Buying
    Replies: 3
    Last Post: 10-14-2016, 05:00 PM
  4. Skills Interface IDs to Make All Skills 120
    By Dark Venom in forum Help
    Replies: 2
    Last Post: 03-12-2014, 05:12 AM
  5. Replies: 66
    Last Post: 12-04-2010, 06:19 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
  •