1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Add GE dialogs to EnterAmountDialog

Discussion in 'Developer Support' started by Guru, Apr 18, 2017.

  1. Guru

    Joined:
    Dec 31, 2015
    Messages:
    602
    Likes Received:
    175
    Code (Text):
    1.  
    2. private Pattern[] patterns = new Pattern[] {
    3.  
    4.   Regex.getPatternForExactString("Enter amount:"),
    5.  
    6.   Pattern.compile( "How many do you wish to buy?" ),
    7.  
    8.   Regex.getPatternForExactString( "Set a price for each item:" )
    9. }
    10.  
    The second one will need changing I don't know exactly how but its something along the lines of "^How many do you wish to (buy|sell)\?$" I guess, but im shit at regex so ya know ill let you sort that out

    @Party
     
    #1 Guru, Apr 18, 2017
    Last edited: Apr 18, 2017
  2. Best Answer:
    Post #2 by Party, May 3, 2017
  3. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,708
    Likes Received:
    1,606
    donezo
     
    Guru and Swatarinaess like this.

Share This Page

Loading...