Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / UI Functions Project

Author
Message
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 1st Dec 2013 13:34 Edited at: 9th Dec 2013 13:13
Hi guys,

** Cancelled due to lack of interest **
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 3rd Dec 2013 05:05 Edited at: 3rd Dec 2013 17:54
Good idea.
Here's a rotating digit counter like an old analogue clock
It could definitely use to be cleaned up and modulized(is that a word?)



After my current game is done and before the next game I will be making a set of UI elements that are very modular so that I can easily reuse them. I spent way too many lines of code creating UI for Wordspionage because I used arrays to store every UI element for each UI. Long story short - I should have used mostly types instead.

EDIT: Made a correction to the above snippet - I had SetTextVisible called to make the numbers invisible...

Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 3rd Dec 2013 05:17
Here's a function to create a window on your screen. You can use it for popups, messages, etc.



Attached is a project that demonstrates how it works.

Attachments

Login to view attachments
easter bunny
12
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 3rd Dec 2013 06:36 Edited at: 3rd Dec 2013 06:38
Here's my button API:

gui.agc

main.agc

The buttons are fixed to the screen, It's also fully multi-touch (meaning that it won't work on a computer , re-wire it to use Pointer commands)
You can access the raw sprite likewise:
buts[ButtonID].id `SpriteID

Hope that works, it's copied from one of my projects.
If there's any errors, PM me and I'll edit and fix it (love that new Forum feature )

Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 3rd Dec 2013 20:34
This thread:

http://forum.thegamecreators.com/?m=forum_view&t=189645&b=41

showcases a gui for getting player initials for a high scoring game result. It's a full project, with graphics, so I didn't list the code here.

Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 3rd Dec 2013 20:55
@Rich - that's pretty nice looking. Wish I'd seen that for dFenz!

Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 4th Dec 2013 11:31 Edited at: 4th Dec 2013 11:34
This is a quick demo of Rich Dersheimer's awesome Window function, all I've done is create a very short main loop, and type up the parameters for quick reference ready for documentation. This code will create a dos style window at the click of a mouse.



I had some problems getting Easter bunnies code to run, this code only shows a white box after I included some extra parameters in the type. This is probably because it relies on an image rather than native AppGameKit commands. As I'm just using Image 0 to get the code to compile that's most likely the reason.



So here's a single click version of a button function which will work on mobiles and computers. I'll go back over easter bunnies code later when I get a chance and see if I missed anything, or just plain misunderstood.



There's absolutely nothing I need to do with Rich Dersheimer's Initial input system, the projects all packed up and ready to go. It's a great example, I'd never have thought of entering it in this way. But it really does make sense for touch screen devices.

Thanks for the contributions guys!
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 4th Dec 2013 22:24 Edited at: 4th Dec 2013 22:26
This is a really quick and dirty compass HUD element for 3D heading info. Use the left and right arrows to turn the camera.



It has a little hitch in the "North" display when the heading goes from 0 to 360, but my brain hurts whenever I try to fix it

Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 6th Dec 2013 07:56 Edited at: 6th Dec 2013 08:07
Nice, this would go great in any 3D RPG or dungeon crawler game.

That's 4 unique UI features so far. Can anyone else going to help out so we can get another 16?

Some UI element ideas:

Clock,
Radar,
Scroll box,
Drop down list,
On-screen keyboard,
On-Screen number pad,
Check boxes,
Radio buttons,
Media control panel,
Swipe gestures,
Multi-touch gestures,
Login box,
Scrolling Text,
Progress bars,
Drawing tools,
Colour dialogue box,
Drawing tools,
Health bars,
Score cards,
Waveform display,
Search Box,
Map display,
A juggling goat,
etc...

If you don't have any functions to submit, feel free to make requests!
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 9th Dec 2013 13:15 Edited at: 9th Dec 2013 13:28
** This project has been cancelled due to lack of interest **

Thank you Naphier, Rich Dersheimer, easter bunny, you guys are brilliant. But there was nothing submitted for 5 days including a weekend. I don't think this project is going to progress very far.

The overall intent of this, in the long term was to produce a free community FORMS style editor based on these functions. Something that would have allowed the community to visually design HUD's and Apps much in the same way Visual Basic creates it's own forms. Drop a gadget on and see it work.

But this isn't progressing as fast as I'd hoped so I'll shelve this project for sometime 2014/ 2015, and write the functions in my own time.
fog
21
Years of Service
User Offline
Joined: 5th Oct 2003
Location: Newcastle, England
Posted: 9th Dec 2013 14:11
Man you're way too quick at cancelling all your little "community projects" for lack of interest. After 5 days?

The vast majority of people on here code as a hobby, either holding down a full-time job or in education, grabbing a little coding time when possible, sometimes weeks apart.

And we are all working on our own projects. People aren't going to just drop those to do this, but they might, due to their own needs, code functions that could be added to this over time. It could take months for that to happen.

Would it work? I've no idea, but as soon as you slap "cancelled" on it you've effectively killed any chance it had yourself.

No offense Daniel. It's great that someone is motivated to try these community projects, I just think you need to be a bit more patient and realistic.

Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 9th Dec 2013 15:25
I'm one of those people with a job! You don't need to explain the limitations on peoples time.

However I'm using the Useful Community Functions project as a baseline for this. On the first day 19 posts were made, both making submissions and just discussing what they want. On the second day 8 posts where made, on the third 5 posts were made. Then it dropped to a few posts a week. This is an example of a healthy project that in the medium to long term will produce good results.

Competitively speaking, the progress of this project is negligible. The original goal was 20 functions, right now I honestly don't see that being achieved within any reasonable timeframe therefore it'll be faster, and more efficient to spend a weekend or two writing common form functions myself.
Rich Dersheimer
AGK Developer
15
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 9th Dec 2013 17:22
A bit disappointing sure, I had a couple more ready to post.

But...

Even though Daniel is dropping the project, that doesn't mean we can't still post our code!

Quote: "The overall intent of this, in the long term was to produce a free community FORMS style editor based on these functions. Something that would have allowed the community to visually design HUD's and Apps much in the same way Visual Basic creates it's own forms. Drop a gadget on and see it work."


Now that is really a cool concept. Remember Diggsey's immediate mode GUI elements for DBPro?

http://forum.thegamecreators.com/?m=forum_view&t=186847&b=8

Something like that, but drag-and-drop like the placement editor, man I'd like to do that project!

Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 10th Dec 2013 04:17
Absolutely Rich, I had envisaged something like TopGUI, but instead based on a percentage resolution model, using the common UI elements found in most touch interfaces. It's a low priority project for me at the moment, I'm still working to further improve the App Game Kit Industry Certification Course with Et Tu Create, and have begun working on other courses for them as well. So if anyone wants to take the lead on that project or develop the idea themselves they are more than welcome to. If not I'll get around to it eventually, perhaps this might be something for AppGameKit v2.0?

Again you are right Rich, my leaving this project doesn't stop anyone else posting to this thread. I'll check back after January 1st, if there's been enough movement then I'll keep my word and document everything posted here. I'll form it into a new HTML plugin for the main documentation along with any associated project and media required. Once I pack it up with NSIS users will be able to install it and access it just like any other AppGameKit Documentation.

In addition to this, if there's enough UI functions, the the aforementioned AppGameKit Visual UI Project will be produced as a free community project. If I end up doing the work on my own, then the project will most likely be a commercial app.

One other plan I have for this project is an iPad/ Android Tablet App that allows you to design a screen layout or multiple screen layouts (menu, options, main game screen, win screen, lose screen, high score screen, etc) and then export an AGC file back to your PC complete with functions and required assets. You can then start editing that framework, inserting your game and replacing the placeholder graphics.

It's a lot of work, and again if I end up doing it all myself then it will be something I charge for.
Rknight
21
Years of Service
User Offline
Joined: 25th Sep 2003
Location: NJ
Posted: 10th Dec 2013 23:39
Quote: "Even though Daniel is dropping the project, that doesn't mean we can't still post our code!"


What Rich said!

Quote: "I'll check back after January 1st, if there's been enough movement then I'll keep my word and document everything posted here. "


Glad to hear it!

Login to post a reply

Server time is: 2024-11-24 23:58:28
Your offset time is: 2024-11-24 23:58:28