This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package { | |
import constants.ScreenType; | |
import events.GameEvent; | |
import flash.desktop.NativeApplication; | |
import flash.display.Sprite; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.events.Event; | |
import flash.events.TouchEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package screens { | |
import com.adobe.nativeExtensions.Vibration; | |
import constants.ItemType; | |
import elements.Button; | |
import elements.Item; | |
import elements.Platform; | |
import events.GameEvent; | |
import flash.display.Sprite; | |
import flash.events.Event; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package { | |
import constants.ScreenType; | |
import events.GameEvent; | |
import flash.desktop.NativeApplication; | |
import flash.display.Sprite; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.events.Event; | |
import flash.events.TouchEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DialogManager.backgroundColor = 0xFF00FF; // color uint | |
DialogManager.backgroundAlpha = 0.5 // Number 0-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DialogManager.removeDialog(); | |
// удаляет текущий диалог из списка отображения. | |
DialogManager.removeAllDialogs(); | |
// удаляет текущий диалог из списка отображения и очищает всю очередь диалогов |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DialogManager.addDialog("Just simple message"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
DialogManager.addDialog("Do you want to do it?", [ {label:"YES", func:yesFunction}, {label:"NO", func:noFunction} ] ); | |
//... | |
private function yesFunction():void { | |
trace("YES pressed"); | |
} | |
private function noFunction():void { | |
trace("NO pressed"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.illuzor.dialog.DialogManager; | |
DialogManager.init(stage); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gist .gist-file .gist-data { | |
overflow: auto; | |
word-wrap: normal; | |
background-color: #f8f8ff; | |
border-bottom: 1px solid #ddd; | |
font-size: 100%; | |
width: auto; | |
} |