Esempio n. 1
0
	def callback(dialog,result):
		print 'id is: ',id
		action,inputs = dialog_box.fromValues(result)
		if action=='Test':
			print 'test clicked!!!!'
		if action=='Bounty Hunt':
			print 'hunting bounty'
			runBountyMenu(cp)
		if action=='OK' or action=="Exit Menu" or action=="Cancel":
			dialog.undraw()
			custom.respond(['close'],None,id)
			return False
		return True
Esempio n. 2
0
 def callback(dialog, result):
     print 'id is: ', id
     action, inputs = dialog_box.fromValues(result)
     if action == 'Test':
         print 'test clicked!!!!'
     if action == 'Bounty Hunt':
         print 'hunting bounty'
         runBountyMenu(cp)
     if action == 'OK' or action == "Exit Menu" or action == "Cancel":
         dialog.undraw()
         custom.respond(['close'], None, id)
         return False
     return True
Esempio n. 3
0
	def callback(dialog,result):
		print 'id is: ',id
		action,inputs = dialog_box.fromValues(result)
		if action=='Cancel':
			dialog.undraw()
			custom.respond(['close'],None,id)
			return False
		if action=='OK':
			dialog.undraw()
			custom.respond(['close'],None,id)

			callsign = inputs['logged_in_users']
			if callsign=='' or callsign=='OR, Type in a user:'******'callsign']

			print 'I would now place a bounty on '+str(callsign)+' for '+str(float(inputs['credits']))+' credits.'
			print 'User value IS: '+str(inputs['logged_in_users'])
			server_lib.placeBounty(callsign,float(inputs['credits']))
			return False
		return True
Esempio n. 4
0
    def callback(dialog, result):
        print('id is: ', id)
        action, inputs = dialog_box.fromValues(result)
        if action == 'Cancel':
            dialog.undraw()
            custom.respond(['close'], None, id)
            return False
        if action == 'OK':
            dialog.undraw()
            custom.respond(['close'], None, id)

            callsign = inputs['logged_in_users']
            if callsign == '' or callsign == 'OR, Type in a user:'******'callsign']

            print('I would now place a bounty on ' + str(callsign) + ' for ' +
                  str(float(inputs['credits'])) + ' credits.')
            print('User value IS: ' + str(inputs['logged_in_users']))
            server_lib.placeBounty(callsign, float(inputs['credits']))
            return False
        return True