Thread: Prompting the user to input data

Results 1 to 2 of 2
  1. #1 Prompting the user to input data 
    Donator

    Join Date
    Mar 2015
    Posts
    456
    Thanks given
    45
    Thanks received
    49
    Rep Power
    58
    Such as X amount of lobsters from your bank.

    Code:
    private void drawChatArea() {
    		aRSImageProducer_1166.initDrawingArea();
    		Texture.anIntArray1472 = anIntArray1180;
    		chatArea.drawSprite(0, 0);
    		drawChannelButtons();
    		TextDrawingArea textDrawingArea = normalFont;
    		if (messagePromptRaised) {
    			boldFont.drawText(0, aString1121, 60, 259);
    			boldFont.drawText(128, promptInput + "*", 80, 259);
    		} else if (inputDialogState == 1) {
    			boldFont.drawText(0, "Enter amount:", 60, 259);
    			boldFont.drawText(128, amountOrNameInput + "*", 80, 259);
    		} else if (inputDialogState == 2) {
    			boldFont.drawText(0, "Enter name:", 60, 259);
    			boldFont.drawText(128, amountOrNameInput + "*", 80, 259);
    		} else if (aString844 != null) {
    			boldFont.drawText(0, aString844, 60, 259);
    			boldFont.drawText(128, "Click to continue", 80, 259);
    		} else if (backDialogID != -1) {
    			drawInterface(0, 20, RSInterface.interfaceCache[backDialogID], 20);
    		} else if (dialogID != -1) {
    			drawInterface(0, 20, RSInterface.interfaceCache[dialogID], 20);
    		} else {


    Yes I know this is server side code. I just need to be able to prompt the user to finish up my player owned shops. I need to call it from the packet handler as shown below. The underline code is that of which I need to access.

    Code:
    case 125003:// search item
    			c.sendMessage("Search Button");
    			for(int i = 0; i < 10; i++){
    				c.getPA().sendFrame126("test", 32011+i);
    			}
    			c.getPA().showInterface(32000);
    			break;
    Thanks in advance
    Reply With Quote  
     

  2. #2  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    I was just working on a program last night that uses this. You can utilize the Scanner class in java, and read it through the client.

    Reference
    www.wikihow.com/Get-Input-from-a-User-in-Java
    Attached image
    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. Replies: 1
    Last Post: 01-12-2014, 04:26 AM
  2. [PI] Prompt user for input
    By iDominic in forum Requests
    Replies: 0
    Last Post: 09-08-2013, 12:00 PM
  3. Replies: 7
    Last Post: 01-02-2013, 08:51 AM
  4. [Renamed] basic text input prompt tut [how to use]
    By Robin Spud in forum Tutorials
    Replies: 9
    Last Post: 08-18-2011, 07:45 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
  •