Exemplo n.º 1
0
/* Returns 0 to stop listing, 1 to continue. */
int AddToList(const char *text, uint32 id, const char* second_text = NULL)
{
 if(listcount==10)
 {
  int t=ListChoice(0);
  mordoe=0;

  if(t==-1) return(0);  // Stop listing.
  else if(t>0 && t<11)
  {
   listsel=listids[t-1];
   return(0);
  }
  listcount=0;
 }
 mordoe = 1;
 listids[listcount] = id;
 CHEAT_printf("%2d) %s",listcount+1,text);

 if(second_text != NULL)
  CHEAT_printf("  %s", second_text);

 listcount++; 
 return(1);
}
Exemplo n.º 2
0
int EndListShow(void) {
	if (mordoe) {
		int r = ListChoice(1);
		if (r > 0 && r <= listcount)
			listsel = listids[r - 1];
	}
	return(listsel);
}
Exemplo n.º 3
0
/* Returns 0 to stop listing, 1 to continue. */
int AddToList(char *text, uint32 id) {
	if (listcount == 16) {
		int t = ListChoice(0);
		mordoe = 0;
		if (t == -1) return(0);	// Stop listing.
		else if (t > 0 && t < 17) {
			listsel = listids[t - 1];
			return(0);
		}
		listcount = 0;
	}
	mordoe = 1;
	listids[listcount] = id;
	printf("%2d) %s\n", listcount + 1, text);
	listcount++;
	return(1);
}