Author Topic: Axe GUI Library  (Read 21545 times)

0 Members and 1 Guest are viewing this topic.

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Axe GUI Library
« Reply #60 on: June 03, 2011, 03:23:02 pm »
Oh my gosh, soo many updates! :D
Since this project is getting intensely sparked, I'm going to have to get that tokenizer working! :) (Basically, converting Michael_Lee's tokenizer to modular form)
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Axe GUI Library
« Reply #61 on: June 04, 2011, 07:43:55 am »
Here's what I though of for a Loading Bar:

Code: [Select]
LBL DLB
...
DRAW LOADING BAR
r1 is X
r2 is Y
r3 is widht
r4 is height
r5 is percentange
...

Not sure if it's very user-friendly to have 5 arguments, what do you think? The code for drawing it is actually very easy.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe GUI Library
« Reply #62 on: June 04, 2011, 09:04:21 am »
What about one command to set it up (4 args), and another command to update it (1 arg)?




Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: Axe GUI Library
« Reply #63 on: June 04, 2011, 10:43:39 am »
What about one command to set it up (4 args), and another command to update it (1 arg)?
That's actually not a bad idea, and would probably be better for the GUI stack.
Perhaps something like
Code: [Select]
Lbl ALB
...
ADD LOADING BAR TO STACK
r1 is X
r2 is Y
r3 is widht
r4 is height
...
to create a Loading Bar object in the stack, then
Code: [Select]
Lbl ULB
...
UPDATE LOADING BAR X
r1 is loading bar # in stack (1st loading bar is 1, 2nd is 2, and so on, regardless of other items in stack)
r2 is percentange
...

I should be able to render it in as little as 2 rectangles, too, so that's good.
I still need to optimize the library, though.
« Last Edit: June 04, 2011, 10:44:32 am by FinaleTI »


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Axe GUI Library
« Reply #64 on: June 07, 2011, 04:02:02 am »
Wow looks nice! How big is it? (including the scrolling stuff)?

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Axe GUI Library
« Reply #65 on: June 08, 2011, 09:29:03 pm »
One of the concepts I've been working on for Axe GUI Library is this other side of it. I wanted to try something new - offering GUI functions that integrate seemlessly inside the program. Or, if the developer happened to want more control, give them access to some drawing functions, and let the developer handle all the other code. This portion of Axe GUI Library is geared to game developers, but also to any developers wanting a GUI without the full blown GUI. (Mouseless is one aspect.)

That said, no worries - I'm still interested in the regular, window/mouse based Axe GUI Library! :) I'm just adding another side of it to cater to other developers as well.

So what do I have for today? I have the "advanced drawing routine" done and implemented for... MENUS! :D
This routine provides the drawing, all you need to do is provide the input! :)
I've attached BOTH the source and the compiled Axe binary for your convenience.
I strongly suggest opening the source 8Xp inside a PC source editor of some kind. It's very, very, long.
The routine of interest is MNU (line "Lbl MNU" all the way to "Return", as well as routines that are used in routine MNU).
Don't get the code? Thank Runer112 for that extreme optimization that made this routine possible! :D (The original one was very, very slow)

prgmAGMENUD is the binary, which is a significant menu demo program.
prgmAGMENUDS is the source of that program.

This routine can possibly be implemented into actual menus in the regular GUI! (Not sure if actual menubars->menus would work on a calc, but click-button-to-show-menu would work.) Of course, this routine needs more work, esp. to support no animation.

Enjoy! :D

EDIT: Unfortunately, I have no suitable calculator emulator that could record a GIF of the demo program in action. Could someone please record one for me? You just need to run all around using [2nd]/[Enter], the arrow keys, and [Clear]. ;) Thanks!

EDIT 2: Darl181 posted a nice screenie below this post. Thanks Darl181! :D
« Last Edit: June 14, 2011, 06:15:37 pm by alberthrocks »
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Axe GUI Library
« Reply #66 on: June 08, 2011, 11:25:26 pm »
Have a screenie.

Impressive :D
« Last Edit: June 08, 2011, 11:25:52 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Axe GUI Library
« Reply #67 on: November 16, 2011, 07:33:36 am »
Wow, this looks amazingly amazing O.O I wonder how easy it would be to drag objects? Like, if you are pressing enter and you are on an object, moving the mouse would move the object to...
This looks very pretty!

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Axe GUI Library
« Reply #68 on: November 16, 2011, 10:00:01 am »
That looks pretty sweet. The Game Menu leaves a little to be desired, and the level select screen is decent enough, but the thing that really impressed me the most was the iOS like GUI demo. Looks very cool!

EDIT: Wow, pretty bad necro for Xeda and me. Is this project still being updated?
« Last Edit: November 16, 2011, 10:00:40 am by buttsfredkin »
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Axe GUI Library
« Reply #69 on: November 16, 2011, 10:02:13 am »
It's amazing to see the whole community made an effort to continue what I started. I started with a few functions to make windows and buttons, but it is now out of this world! Thanks! :)

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Axe GUI Library
« Reply #70 on: November 16, 2011, 11:42:04 am »
It's great to see some interest in this project! :D However, significant redesign is necessary for making it a truly awesome GUI library.

Currently, it does things through an event loop that is dependent on many of the variables.
(Something like:
Code: [Select]
0->Z
While Z!=1
getKey->Z
If Z=1
Y+1->Y
End
If Z=2
X-1->X
End
If Z=3
X+1->X
End
If Z=4
Y-1->Y
End

sub(MOUSE, X, Y)

If Z=[2nd key]
sub(CLICK, X, Y)
End
End
... something like that. :P The program code should be independent from the GUI library, hence why it needs some reworking. Additional features, like instant GUI loading, can be done with a rewrite.)

I used to do some work with FinaleTI about this (Hey! I didn't forget about it! :D I've sent a reply to you today :P), and I included a draft API. If there is significant interest (we'd love developers!), I can publish the proposed API for a "request for comment" so that I can see what developers would like for a GUI API.
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Axe GUI Library
« Reply #71 on: November 16, 2011, 12:10:55 pm »
I also think that we will move a bit away from the Windows/Gnome-Like GUI and focus on mobile GUIs (Android, iOS-like), because the traditional computer OS GUIs are not adapted for mobile devices (such as calculators).

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Axe GUI Library
« Reply #72 on: November 16, 2011, 03:12:56 pm »
I think in the long run we will keep the mouse GUI, but at the same time develop a more calculator based GUI (see http://ourl.ca/10139/217727).
We will be able to do them both because the rewrite's new structures will support both types of GUI! :D (You'll be able to even mix and match... which isn't the best idea - only for some games, like point and shoot.)
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Axe GUI Library
« Reply #73 on: December 28, 2011, 06:30:19 am »
Is this project still active or is it dead? (It looks sooooo cool! )

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Axe GUI Library
« Reply #74 on: December 28, 2011, 07:03:24 am »
wow, i follow sorunome on this..

the only thing i saw was that in the subsubmenu (the right one) , there is safafi instead of safari xp
« Last Edit: December 28, 2011, 07:24:47 am by Nick »