I´m creating a map which includes selecting a hero trough a dialog but i have a little problem.... Everything works fine except that when someone would rappidly press the button for selecting a hero, he gets like 3 or 4... its like a delay the dialog has after pressing the button, i got the trigger below if someone could help mee would be very nice !
EventsGame-MapinitializationLocalVariablesWidth=850<Integer>Height=500<Integer>ActionsDialog-CreateaModaldialogofsize(Width,Height)at(0,200)relativetoTopofscreenVariable-SetHeroSelectDialog=(Lastcreateddialog)Dialog-SetthebackgroundimageofHeroSelectDialogtoAssets\Textures\ui_challenge_iconborder.ddsDialog-CreateanimagefordialogHeroSelectDialogwiththedimensions(200,300)anchoredtoTopLeftwithanoffsetof(50,90)settingthetooltipto""usingtheimageAssets\Textures\raynormarineportrait_static.ddsasaNormaltypewithtiledsettoFalsetintcolorWhiteandblendmodeNormalDialog-CreateanimagefordialogHeroSelectDialogwiththedimensions(200,300)anchoredtoTopLeftwithanoffsetof(325,90)settingthetooltipto""usingtheimageAssets\Textures\kerriganportrait_static.ddsasaNormaltypewithtiledsettoFalsetintcolorWhiteandblendmodeNormalDialog-CreateanimagefordialogHeroSelectDialogwiththedimensions(200,300)anchoredtoTopLeftwithanoffsetof(600,90)settingthetooltipto""usingtheimageAssets\Textures\zeratulportrait_static.ddsasaNormaltypewithtiledsettoFalsetintcolorWhiteandblendmodeNormalDialog-CreatealabelfordialogHeroSelectDialogwiththedimensions(300,50)anchoredtoTopwithanoffsetof(25,25)withthetext"Select your Hero"colorsettoWhitetextwriteoutsettoFalsewithawriteoutdurationof2.0Dialog-CreateabuttonfordialogHeroSelectDialogwiththedimensions(200,50)anchoredtoBottomLeftwithanoffsetof(50,50)settingthetooltipto""withbuttontext"Select"andthehoverimagesetto""Variable-SetSelectRaynor=(Lastcreateddialogitem)Dialog-CreateabuttonfordialogHeroSelectDialogwiththedimensions(200,50)anchoredtoBottomwithanoffsetof(0,50)settingthetooltipto""withbuttontext"Select"andthehoverimagesetto""Variable-SetSelectKerrigan=(Lastcreateddialogitem)Dialog-CreateabuttonfordialogHeroSelectDialogwiththedimensions(200,50)anchoredtoBottomRightwithanoffsetof(50,50)settingthetooltipto""withbuttontext"Select"andthehoverimagesetto""Variable-SetSelectZeratul=(Lastcreateddialogitem)Dialog-ShowHeroSelectDialogfor(Allplayers)
Hey ppl,
I´m creating a map which includes selecting a hero trough a dialog but i have a little problem.... Everything works fine except that when someone would rappidly press the button for selecting a hero, he gets like 3 or 4... its like a delay the dialog has after pressing the button, i got the trigger below if someone could help mee would be very nice !
Its not a bug in your code, its caused by the battle.net delay.
You need to add an additional condition that checks if the dialog is visible.
Example:
@Mille25: Go
Hey, thnx for the reply man this works!