Example

Gui Designer 1.2

4

SP4CEBAR 2022-07-25 10:17 (Edited)

click here to read about the new features in this version

Drag to define zones
There's not much else at the moment

You may be able to spot the effects of my screen cruncher

The plan is to have three menus in this GUI:


successor: why do we need a tool, can't it just be smarter

predecessor: too complicated file system



SP4CEBAR 2022-07-28 09:48 (Edited)

V0.2


SP4CEBAR 2022-07-28 09:52 (Edited)

I want to share these subprograms which make a number display out of sprites:
Note: my 10 number characters start at character 164 and take one character each

SUB SDIGIT(S,X,Y,N)
  N2=164+N MOD 10
  SPRITE S,X,Y,N2
  SPRITE S SIZE 0
END SUB

SUB SNUM(S,X,Y,N,L,T,SP)
  'N1=INT(N)
  N1=INT(ABS(N))
  X1=X+L*SP
  FOR I=0 TO L
    CALL SDIGIT(S+I,X1-SP*I,Y,N1)
    N1=N1\10
    IF T AND N1=0 THEN
      EXIT
    END IF
  NEXT I
END SUB

The parameters of SNUM are:


SP4CEBAR 2022-07-28 10:09

And... the code is a mess again... even though its fundamentals are great


SP4CEBAR 2022-07-29 15:29 (Edited)

V0.3

Future features:


SP4CEBAR 2022-07-30 10:59 (Edited)

V1 Beta!

these are the menus and their scrollers:

  1. GUI
    • Menu (0 to 255) I forgot, writing multiple menus isn't supported yet...
    • Gui element (0 to 255)
  2. Files
    • GUI file (0 to 15) to load and save, this is the main file
    • BG file (0 to 15) to load so you can draw over it
  3. Background
    • X offset (0 to 255) I should extend these
    • Y offset (0 to 255) they aren't capped off, so you could scroll into the next files


SP4CEBAR 2022-08-01 15:51 (Edited)

V1.1


SP4CEBAR 2022-08-01 19:24

V1.2


Log in to reply.