Author Topic: How do I make a variable selection menu?  (Read 2319 times)

0 Members and 1 Guest are viewing this topic.

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
How do I make a variable selection menu?
« on: August 30, 2013, 10:58:16 am »
Hey guys!

I'm trying to make a program in axe to display 8 level gray images. However, I need to know a routine.

I would like to make a menu routine to detect and then have the user select prgm variables that start with a specific two byte sequence (tbd). I know this is possible (at least with appvars, and you can use prgm variables with nothing but data for the same purpose) because I've seen it in other axe applications, such as builderboy's portal prelude level editor.

How is this done?

Thanks for the help in advance!
I am Bach.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: How do I make a variable selection menu?
« Reply #1 on: August 30, 2013, 11:08:38 am »
Take a look at the MemLit Axiom that ships in Axe's zip. It has what you need to list programs then just filter them based on first two bytes. Also I recommend using 3 or 4 bytes instead of two. ;)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: How do I make a variable selection menu?
« Reply #2 on: August 30, 2013, 11:21:03 am »
If you want a "better" MemKit Axiom, Jacobly made one here that sorts the list by alphabetical order. You use it the same way you would use the "normal" MemKit.
Also, instead of putting "bytes" at the beginning, put a string (which is bytes at the end) and test it with Equ>String.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: How do I make a variable selection menu?
« Reply #3 on: August 30, 2013, 02:32:50 pm »
Thanks, guys, I'll look into that!
I am Bach.