Thread: [Galkon's Base]Creating New Interfaces

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32
  1. #1 [Galkon's Base]Creating New Interfaces 
    Retired. Stop PMing me.


    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    17
    Posts
    7,526
    Thanks given
    1,805
    Thanks received
    2,830
    Rep Power
    5000
    Purpose: To create your own interfaces.
    Difficulty: 3/10, if you have common sense and basic client/Java knowledge its easier.
    Assumed Knowledge: Basic client knowledge, basic Java knowledge.
    Classes Modified: RSInterface.java and Sprite.java
    Client Base: My renamed/refactored client base.

    I'm going to teach you guys how to make a basic interface using my client base and the methods in it. I have already added every basic method you will be needing. This tutorial will just teach you how to use them.
    _____________________
    Step 1: Learning the usage of each method.
    Here, I will teach you how to use each method in the interface class. First, you are going to want to make your interface load, so you declare your interface.
    Above "public static void addText", add your interface method:
    Code:
    	public static void interfaceExample() {
    	}
    Now obviously that won't do much, you need to assign the interface ID, and give it features! Well, addTabInterface is the method used for this! So, now you would have a method looking like this:
    Code:
    	public static void interfaceExample() {
    		RSInterface tab = addTabInterface(17000);
    	}
    RSInterface tab is what is used to call the static voids declared. For example, tab.booleanExample = true;. That boolean is being referenced as a static boolean, which is the "tab." part. You can chance the 17000 to any ID you want, but that is the main interface ID. Now lets say you want to add some text onto your interface. Here is what you would use:
    Code:
    	public static void interfaceExample(TextDrawingArea[] tda) {
    		RSInterface tab = addTabInterface(17000);
    		addText(17001, "Text displayer", tda, 1, 0xffffff, true, true);
    	}
    That uses the addText method to display: addText(childID, "Text", tda, font size, color, center text, text shadow);. Also, you have to add TextDrawingArea[] tda in the method so the method can then draw text.

    Now you need the text to actually become a child interface. So the method would look like this:
    Code:
    	public static void interfaceExample(TextDrawingArea[] tda) {
    		RSInterface tab = addTabInterface(17000);
    		addText(17001, "Text displayed", tda, 1, 0xffffff, true, true);
    		tab.totalChildren(1);
    		tab.child(0, 17001, 92, 15);
    	}
    totalChildren(amount); is used to declare the total amount of child interfaces used in the interface. In this case, it is 1. The line below that is used to give the first child interface data, used as child(id, childID, xPosition, yPosition);. The first child interface is always 0, not 1.

    Now to make the interface load with all the others, find "aClass44 = streamLoader;", and below it add:
    Code:
    		interfaceExample(textDrawingAreas);
    I will be going more in depth and releasing more interfaces in time, but for now, play with this and learn more and more .
    Attached image
    Reply With Quote  
     

  2. #2  
    AKA Edvinas
    Ed's Avatar
    Join Date
    Jun 2009
    Age
    31
    Posts
    4,501
    Thanks given
    523
    Thanks received
    512
    Rep Power
    2659
    Nice work... Find out how to add custom interfaces to 508 and you're officially God.
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Feb 2008
    Age
    28
    Posts
    1,080
    Thanks given
    30
    Thanks received
    14
    Rep Power
    574
    Yay! Nice Job Galkon!

    Edit: Djoscar, nice sig but im straight.
    Reply With Quote  
     

  4. #4  
    Retired. Stop PMing me.


    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    17
    Posts
    7,526
    Thanks given
    1,805
    Thanks received
    2,830
    Rep Power
    5000
    No posts
    Attached image
    Reply With Quote  
     

  5. #5  
    I'm Back

    Stewie's Avatar
    Join Date
    Jul 2008
    Age
    29
    Posts
    7,987
    Thanks given
    1,877
    Thanks received
    1,491
    Rep Power
    5000
    They no like good stuff josh.
    Need to add a little more to it and its good


    Reply With Quote  
     

  6. #6  
    Member [Galkon's Base]Creating New Interfaces Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    31
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    hehe what next? =] v.nice also.
    ILY Stewie.
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Oct 2008
    Posts
    1,540
    Thanks given
    27
    Thanks received
    71
    Rep Power
    465
    Nice job.
    Reply With Quote  
     

  8. #8  
    Registered Member

    Join Date
    Feb 2008
    Age
    28
    Posts
    1,080
    Thanks given
    30
    Thanks received
    14
    Rep Power
    574
    Josh, post the addsprite or whatever up there so i can remember it and dont have to keep asking you, Lol.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Pilldom's Avatar
    Join Date
    Sep 2007
    Posts
    1,298
    Thanks given
    24
    Thanks received
    221
    Rep Power
    164
    Ya not bad i guess.
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Jan 2007
    Age
    34
    Posts
    2,947
    Thanks given
    15
    Thanks received
    33
    Rep Power
    1360
    Nice job, i have no fking clue how to work addSprite.
    Reply With Quote  
     

Page 1 of 4 123 ... LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •