Author Topic: How do I get full game name in ListBox instead of short form name?  (Read 2862 times)

chijb55

  • Newbie
  • *
  • Posts: 7
    • View Profile
I can't figure out how (or where) Squirrel pulls filenames to fill the ListBox.  But my add.listbox command only fills it with the filename minus the  .zip  (ex: "joust").

How do I get my listbox to show the full game name instead (ex:  "Joust (Green Label)").

I only make one call to the listbox, and AM does seem to pull some default data to fill it.  Can't find where to change this.
     local lb = fs.add_listbox( 10*xs, 83*ys, 245*xs, 335*ys );
     lb.rows = 18;
     lb.charsize = 12*ys;

Any help, appreciated.

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: How do I get full game name in ListBox instead of short form name?
« Reply #1 on: June 11, 2022, 12:19:41 PM »


listbox.format_string = "[Title]"

listbox.format_string = "[Name]"

listbox.format_string = "[Year]"

magic tokins from romlist :)
help a friend....

chijb55

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: How do I get full game name in ListBox instead of short form name?
« Reply #2 on: June 11, 2022, 02:02:17 PM »
Solved.  Thank you.

The issue wasn't my Squirrel code, as it turns out.  I had a typo in the main setup file for the AM scraper.  It didn't give me an error when I ran it, but it didn't output any data either.  So none of the "Magic Words" got populated.  Without any data, the program just defaults to things like the short filename format.

An error message would have been nice <grin>.  But the Silent But Deadly Error was making me mad.

Appreciate the feedback.
« Last Edit: June 11, 2022, 02:59:59 PM by chijb55 »