Thread: Small dicing interface

Results 1 to 5 of 5
  1. #1 Small dicing interface 
    Registered Member
    rebecca's Avatar
    Join Date
    Aug 2017
    Posts
    1,071
    Thanks given
    862
    Thanks received
    915
    Rep Power
    5000
    Made this a while ago, client and server sided radio button support not included but really easy to do, code is probs bad bc its oldddddddddddd

    Attached image

    Code:
     private static void diceInterface(TextDrawingArea[] tda) {
        	RSInterface interface_ = addTabInterface(30000); 
        	RSInterface stakeInterface = addTabInterface(30150); 
        	RSInterface yourOffer = addTabInterface(30050); 
        	RSInterface theirOffer = addTabInterface(30100); 
        	RSInterface statCompare = addTabInterface(30185); 
        	stakeInterface.isMouseoverTriggered = true;
        	yourOffer.width = 131;
        	yourOffer.height = 101;
        	yourOffer.scrollMax = 146;
        	theirOffer.width = 131;
        	theirOffer.height = 101;
        	theirOffer.scrollMax = 146;
        	statCompare.width = 85;
        	statCompare.height = 90;
        	statCompare.scrollMax = 145;
        	 addSprite(30001, 889);
        	 addText(30002, "Gambling with:", 0xff991f, false, true, -1, tda, 2);
        	 addButton(30003, 890, "Accept");
        	 addButton(30004, 890, "Decline");
        	 addText(30005, "", 0xffffff, true, true, -1, tda, 0);
        	 addText(30006, "Accept", 0x00a600, true, true, -1, tda, 0);
        	 addText(30007, "Decline", 0xa60000, true, true, -1, tda, 0);
        	 addText(30008, "You", 0xffffff, true, true, -1, tda, 0);
        	 addText(30009, "Them", 0xffffff, true, true, -1, tda, 0);
        	 addText(30010, "Select gamemode:", 0xff991f, true, true, -1, tda, 2);
        	 addRadioButton(30011, 891, "Select", 1);
        	 addRadioButton(30012, 891, "Select", 1);
        	 addRadioButton(30013, 891, "Select", 1);
        	 addRadioButton(30014, 891, "Select", 1);
        	 addText(30015, "55x2", 0xff991f, false, true, -1, tda, 0);
        	 addText(30016, "Blackjack", 0xff991f, false, true, -1, tda, 0);
        	 addText(30017, "Flower poker", 0xff991f, false, true, -1, tda, 0);
        	 addText(30018, "Stake", 0xff991f, false, true, -1, tda, 0);
        	 addRadioButton(30151, 891, "Select", 2);
        	 addRadioButton(30152, 891, "Select", 2);
        	 addRadioButton(30153, 891, "Select", 2);
        	 addRadioButton(30154, 891, "Select", 2);
        	 addText(30155, "Whip", 0xff991f, false, true, -1, tda, 0);
        	 addText(30156, "Dds + Whip", 0xff991f, false, true, -1, tda, 0);
        	 addText(30157, "Boxing", 0xff991f, false, true, -1, tda, 0);
        	 addText(30158, "No restriction", 0xff991f, false, true, -1, tda, 0);
        	 addText(30159, "Restriction:", 0xff991f, true, true, -1, tda, 2);
        	 addText(30160, "You:", 0xffffff, true, true, -1, tda, 0);
        	 addText(30161, "Them:", 0xffffff, true, true, -1, tda, 0);
        	 addSprite(30162, 893);
        	 addSprite(30163, 894);
        	 addSprite(30164, 895);
        	 addSprite(30165, 896);
        	 addSprite(30166, 897);
        	 addSprite(30167, 898);
        	 addSprite(30168, 899);
        	addText(30169, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30170, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30171, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30172, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30173, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30174, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30175, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30176, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30177, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30178, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30179, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30180, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30181, "1", 0xf4c242, true, true, -1, tda, 0);
        	 addText(30182, "1", 0xf4c242, true, true, -1, tda, 0);
        	 int statChild = 0;
        	 statCompare.totalChildren(21);
        	 statCompare.child(statChild++, 30162, 5, 5);
        	 statCompare.child(statChild++, 30163, 5, 25);
        	 statCompare.child(statChild++, 30164, 5, 45);
        	 statCompare.child(statChild++, 30165, 5, 65);
        	 statCompare.child(statChild++, 30166, 5, 85);
        	 statCompare.child(statChild++, 30167, 5, 105);
        	 statCompare.child(statChild++, 30168, 5, 125);
        	 statCompare.child(statChild++, 30169, 35, 5);
        	 statCompare.child(statChild++, 30170, 35, 25);
        	 statCompare.child(statChild++, 30171, 35, 45);
        	 statCompare.child(statChild++, 30172, 35, 65);
        	 statCompare.child(statChild++, 30173, 35, 85);
        	 statCompare.child(statChild++, 30174, 35, 105);
        	 statCompare.child(statChild++, 30175, 35, 125);
        	 statCompare.child(statChild++, 30176, 65, 5);
        	 statCompare.child(statChild++, 30177, 65, 25);
        	 statCompare.child(statChild++, 30178, 65, 45);
        	 statCompare.child(statChild++, 30179, 65, 65);
        	 statCompare.child(statChild++, 30180, 65, 85);
        	 statCompare.child(statChild++, 30181, 65, 105);
        	 statCompare.child(statChild++, 30182, 65, 125);
        	 
        	 int stakeChild = 0;
        	 stakeInterface.totalChildren(12);
        	 stakeInterface.child(stakeChild++, 30151, 35, 27);
        	 stakeInterface.child(stakeChild++, 30152, 35, 47);
        	 stakeInterface.child(stakeChild++, 30153, 35, 67);
        	 stakeInterface.child(stakeChild++, 30154, 35, 87);
        	 stakeInterface.child(stakeChild++, 30155, 55, 30);
        	 stakeInterface.child(stakeChild++, 30156, 55, 50);
        	 stakeInterface.child(stakeChild++, 30157, 55, 70);
        	 stakeInterface.child(stakeChild++, 30158, 55, 90);
        	 stakeInterface.child(stakeChild++, 30159, 75, 5);
        	 stakeInterface.child(stakeChild++, 30160, 385, 2);
        	 stakeInterface.child(stakeChild++, 30161, 415, 2);
        	 stakeInterface.child(stakeChild++, 30185, 350, 17);
        	
        	 theirOffer.totalChildren(0);
        	 yourOffer.totalChildren(0);
        	 int diceChild = 0;
        	 interface_.totalChildren(21);
        	 interface_.child(diceChild++, 30001, 7, 12);
        	 interface_.child(diceChild++, 30002, 38, 21);
        	 interface_.child(diceChild++, 30003, 207, 179);
        	 interface_.child(diceChild++, 30004, 207, 229);
        	 interface_.child(diceChild++, 30005, 250, 275);
        	 interface_.child(diceChild++, 30006, 250, 192);
        	 interface_.child(diceChild++, 30007, 250, 242);
        	 interface_.child(diceChild++, 30008, 87, 50);
        	 interface_.child(diceChild++, 30009, 412, 50);
        	 interface_.child(diceChild++, 30050, 15, 68);
        	 interface_.child(diceChild++, 30100, 341, 68);
        	 interface_.child(diceChild++, 30010, 250, 55);
        	 interface_.child(diceChild++, 30011, 206, 82);
        	 interface_.child(diceChild++, 30012, 206, 102);
        	 interface_.child(diceChild++, 30013, 206, 122);
        	 interface_.child(diceChild++, 30014, 206, 142);
        	 interface_.child(diceChild++, 30015, 226, 85);
        	 interface_.child(diceChild++, 30016, 226, 105);
        	 interface_.child(diceChild++, 30017, 226, 125);
        	 interface_.child(diceChild++, 30018, 226, 145);
        	 interface_.child(diceChild++, 30150, 10, 177);
        }
    Code:
    public static void addRadioButton(int id, int sid, String tooltip, int radioId) {
    		RSInterface tab = createInterface(id);
    		tab.interfaceId = id;
    		tab.parentID = id;
    		tab.type = 5;
    		tab.atActionType = 1;
    		tab.contentType = 0;
    		tab.opacity = (byte) 0;
    		tab.hoverType = 52;
    		tab.disabledSprite = Client.spriteCache.get(sid);
    		tab.enabledSprite = Client.spriteCache.get(sid);
    		tab.width = tab.disabledSprite.width;
    		tab.height = tab.enabledSprite.height;
    		tab.radioID = radioId;
    		RSInterface.radioButtons.add(id);
    		tab.tooltip = tooltip;
    		tab.isRadioButton = true;
    	}
    https://mega.nz/#!3PpVHJyA!KRujCRPbF...lfzwH6nWjWolxg
    Reply With Quote  
     

  2. #2  
    Extreme Donator

    Unzy's Avatar
    Join Date
    Feb 2017
    Posts
    1,086
    Thanks given
    0
    Thanks received
    2,881
    Rep Power
    5000
    Nice work!
    Attached image
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Quavo's Avatar
    Join Date
    Mar 2018
    Posts
    255
    Thanks given
    54
    Thanks received
    156
    Rep Power
    2116
    Nice contribution

    Attached image
    Reply With Quote  
     

  5. #4  
    Registered Member

    Join Date
    Oct 2017
    Posts
    649
    Thanks given
    6
    Thanks received
    119
    Rep Power
    161
    not bad
    thanks
    Reply With Quote  
     

  6. #5  
    Registered Member SinsAreNice's Avatar
    Join Date
    Feb 2018
    Posts
    75
    Thanks given
    18
    Thanks received
    8
    Rep Power
    55
    looks good some may put to use keep it up =)
    Reply With Quote  
     


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. Custom Dice Interface with dupes.
    By contentt in forum Help
    Replies: 4
    Last Post: 01-06-2016, 01:53 AM
  2. Replies: 0
    Last Post: 04-16-2015, 03:19 AM
  3. Custom Dicing Interface -Haters Not Welcomed-
    By Assist in forum Graphics
    Replies: 4
    Last Post: 03-06-2012, 07:13 AM
  4. Small chatbox interface
    By Mr.Fontana in forum Help
    Replies: 4
    Last Post: 08-30-2011, 08:16 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •