Below you'll find an example project that has 3 different dialogs. It re-uses the same dialog each time a dialog is shown. I haven't changed the style/colours in this example but this page has examples showing how you can change the colours:
https://github.com/KevinCrossDCL/OryUI/wiki/OryUIDialog
It turns out that the DefaultSettings file is reliant on some of the other files being included so I've included them all. That may seem like a lot if you only want dialogs but like I say you're welcome to extract/adapt code from it and create a simpler version for your dialogs if that's all you want from it.
I've not tested this on the latest version of AppGameKit as I can't install it.
SetOrientationAllowed( 0, 0, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 ) // since version 2.0.22 we can use nicer default fonts
SetPrintColor(255, 0, 0)
global dialog as integer
#insert "..\OryUI Framework\OryUI.agc"
#insert "..\OryUI Framework\OryUIButton.agc"
#insert "..\OryUI Framework\OryUIButtonGroup.agc"
#insert "..\OryUI Framework\OryUIDialog.agc"
#insert "..\OryUI Framework\OryUIEditAvatarScreen.agc"
#insert "..\OryUI Framework\OryUIFloatingActionButton.agc"
#insert "..\OryUI Framework\OryUIHTTPSQueue.agc"
#insert "..\OryUI Framework\OryUIInputSpinner.agc"
#insert "..\OryUI Framework\OryUIList.agc"
#insert "..\OryUI Framework\OryUIMedia.agc"
#insert "..\OryUI Framework\OryUIMenu.agc"
#insert "..\OryUI Framework\OryUINavigationDrawer.agc"
#insert "..\OryUI Framework\OryUIPagination.agc"
#insert "..\OryUI Framework\OryUIProgressIndicator.agc"
#insert "..\OryUI Framework\OryUIScrollToTop.agc"
#insert "..\OryUI Framework\OryUISprite.agc"
#insert "..\OryUI Framework\OryUITabs.agc"
#insert "..\OryUI Framework\OryUIText.agc"
#insert "..\OryUI Framework\OryUITextCard.agc"
#insert "..\OryUI Framework\OryUITextfield.agc"
#insert "..\OryUI Framework\OryUITooltip.agc"
#insert "..\OryUI Framework\OryUITopBar.agc"
#insert "..\OryUI Framework\OryUITouch.agc"
#insert "..\OryUI Framework\OryUIDefaultSettings.agc"
dialog = OryUICreateDialog("autoHeight:true")
button1 = OryUICreateButton("size:20,5;text:Button 1;offset:center;position:25,30")
button2 = OryUICreateButton("size:20,5;text:Button 2;offset:center;position:50,30")
button3 = OryUICreateButton("size:20,5;text:Button 3;offset:center;position:75,30")
inGameGold = 0
do
print("Game Gold: " + str(inGameGold))
OryUIStartTrackingTouch()
if (OryUIGetButtonReleased(button1))
OryUIUpdateDialog(dialog, "titleText:Simple Ok Dialog;supportingText:This is a simple Ok dialog. decisionRequired = False so click anywhere outside the dialog to close.;flexButtons:true;decisionRequired:false")
OryUISetDialogButtonCount(dialog, 1)
OryUIUpdateDialogButton(dialog, 1, "name:Ok;text:Ok")
OryUIShowDialog(dialog)
endif
if (OryUIGetButtonReleased(button2))
OryUIUpdateDialog(dialog, "titleText:2 Button Dialog;supportingText:Change background colour?;flexButtons:true;decisionRequired:true")
OryUISetDialogButtonCount(dialog, 2)
OryUIUpdateDialogButton(dialog, 1, "name:Cancel;text:Cancel")
OryUIUpdateDialogButton(dialog, 2, "name:ChangeColour;text:Yes")
OryUIShowDialog(dialog)
endif
if (OryUIGetButtonReleased(button3))
OryUIUpdateDialog(dialog, "titleText:Stacked Button Dialog;supportingText:How much gold do you want to add?;flexButtons:true;stackButtons:true;decisionRequired:true")
OryUISetDialogButtonCount(dialog, 4)
OryUIUpdateDialogButton(dialog, 1, "name:Add100Gold;text:Add 100 Gold")
OryUIUpdateDialogButton(dialog, 2, "name:Add200Gold;text:Add 200 Gold")
OryUIUpdateDialogButton(dialog, 3, "name:Add300Gold;text:Add 300 Gold")
OryUIUpdateDialogButton(dialog, 4, "name:Add400Gold;text:Add 400 Gold")
OryUIShowDialog(dialog)
endif
OryUIInsertDialogListener(dialog)
if (OryUIGetDialogButtonReleasedByName(dialog, "ChangeColour"))
SetClearColor(random(0, 255), random(0, 255), random(0, 255))
endif
if (OryUIGetDialogButtonReleasedByName(dialog, "Add100Gold"))
inGameGold = inGameGold + 100
endif
if (OryUIGetDialogButtonReleasedByName(dialog, "Add200Gold"))
inGameGold = inGameGold + 200
endif
if (OryUIGetDialogButtonReleasedByName(dialog, "Add300Gold"))
inGameGold = inGameGold + 300
endif
if (OryUIGetDialogButtonReleasedByName(dialog, "Add400Gold"))
inGameGold = inGameGold + 400
endif
OryUIEndTrackingTouch()
Sync()
loop
I posted some screenshots where I'm using OryUI in an app on this thread
https://forum.thegamecreators.com/thread/225422OryUI - A WIP AGK2 UI Framework