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 Studio Chat / MessageBox Function in AGK

Author
Message
DannyD
6
Years of Service
User Offline
Joined: 29th Aug 2017
Location:
Posted: 13th Jan 2020 00:05
Hi Guys
Search but couldn't find anything
Is there a response Message Box function in AGK.

Example:
return = messagebox("This is a Message","No","Yes")
if return = "No"
// do no
elseif Return = "Yes"
// do Yes
endif

or
return = messagebox("this is a message",Continue", "Cancel")
if return = 0
// do no
elseif Return = 1
// do Yes
endif



blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 13th Jan 2020 01:11
no message box as such but there is
https://www.appgamekit.com/documentation/Reference/Input/GetEditBoxText.htm
which does work across all platforms
MerryChristmas Everyone
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
vennis73
7
Years of Service
User Offline
Joined: 12th Sep 2016
Location:
Posted: 13th Jan 2020 08:08
Kevin Cross' OryUI might be an option?

https://forum.thegamecreators.com/thread/223719


i'm planning to use it myself in my own project.
I played a bit with it and looks great, very complete.

PHeMoX
6
Years of Service
User Offline
Joined: 9th Jan 2018
Location:
Posted: 21st Jan 2020 20:09
It depends on what you want to accomplish. You can send Push Notifications on Android, which end up in your smartphone a similar way something like WhatsApp would notify you of the latest message you've received. I'm not sure how successful this works if you want an app to run in the background and actually do stuff. For example, you've made a Tamagotchi style app and the push notification tells you it is hungry, so you need to open the app etc.

Honestly, there are some fun applications for this...
Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 18th Feb 2020 12:55
Message( "Hello World" )

Have you tried that?
Kevin Cross
20
Years of Service
User Offline
Joined: 15th Nov 2003
Location: London, UK
Posted: 18th Feb 2020 15:28
@Raven, the OP wants a dialog/message box that allows for multiple buttons/responses. MessageBox just has the one 'Ok' button.

OryUI does have a dialog system, and you may be able to get away with using just a couple of the framework include files if a dialog with options is all that you want. Or if anything you could probably look at how it was done and just create a mini simpler version for your own projects.
OryUI - A WIP AGK2 UI Framework

Login to post a reply

Server time is: 2024-04-19 12:00:05
Your offset time is: 2024-04-19 12:00:05