New Dynamic Menu library for Screen 0

Door cbsfox

Champion (387)

afbeelding van cbsfox

10-02-2017, 12:02

One of the most difficult things for those who are nor familiarized with Assembly: Menus with inverted Bars!

It was never so easy to create your own MENU with options and suboptions in pure assembly.
With this dynamic library you can create it in seconds.

You have just to define this options:

1 - ld hl,TXTSUBMENU (For example, below)
2 - ld d, 'X screen coordinate'
3 - ld e, 'Y screen coordinate'
4 - ld b, 'Initial menu option'
5 - ld c, 'size of the inverted bar'
call MAKEMENU

TXTSUBMENU: db ' MSX1 Games',0,' MSX2 Games',0,' MSX Turbo-R Games',1,' Documents',1,' Settings',0,' Default Settings',1,' Security',1,' Help ',1,' Run',0FFH
TXTORDER: db 1,1,1,1,1,1 (One number for each menu option. It defines the default suboption)

Just that! Enjoy it!

Take a look here: http://msxpen.com/?gist=7687af6b7a330763b9eff4cceda25d8a

PS: Created by Blanco Corp. Assembly is our life.

Aangemeld of registreer om reacties te plaatsen

Van PingPong

Prophet (3889)

afbeelding van PingPong

10-02-2017, 22:16

nice

Van giangiacomo.zaffini

Champion (267)

afbeelding van giangiacomo.zaffini

21-02-2017, 01:17

I like it very much! Well done, and very well presented too!

Van NYYRIKKI

Enlighted (5918)

afbeelding van NYYRIKKI

21-02-2017, 08:41

Deadly boring things made easy, great! I think I'll search up this code when I next time need something like this.
Development idea: Add also possibility to add empty line in middle of menu that will be automatically skipped. This way people can categorize menu items in different boxes. (If they select to draw boxes around their menus)

BTW first time I see MSXPen! Pretty damn cool tool!

Van Daemos

Paragon (1964)

afbeelding van Daemos

21-02-2017, 11:58

Love this one. You should have made this one 5 years earlier it would have saved me alot of pain.

thumbs up.

Van cbsfox

Champion (387)

afbeelding van cbsfox

25-02-2017, 02:08

Kkk. Well, it's never to late to create another software using this library.
Remember that it creates the inverted bar on the fly no matter the alphabet you use.
And Nyyrikki, an empty line is a good idea. I will update it.

Regards
Marcos Daniel Blanco