forked from mindjolt/starling-builder-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
677 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/** | ||
* Starling Builder | ||
* Copyright 2015 SGN Inc. All Rights Reserved. | ||
* | ||
* This program is free software. You can redistribute and/or modify it in | ||
* accordance with the terms of the accompanying license agreement. | ||
*/ | ||
package starlingbuilder.demo { | ||
import feathers.core.PopUpManager; | ||
|
||
import starling.display.Button; | ||
import starling.display.Sprite; | ||
import starling.events.Event; | ||
|
||
import starlingbuilder.extensions.uicomponents.ContainerButton; | ||
|
||
public class ContainerButtonPopup extends Sprite | ||
{ | ||
//auto bind variables | ||
public var _closeButton:Button; | ||
public var _buyButton:ContainerButton; | ||
public var _claimButton:ContainerButton; | ||
|
||
public function ContainerButtonPopup() | ||
{ | ||
super(); | ||
|
||
var sprite:Sprite = UIBuilderDemo.uiBuilder.create(ParsedLayouts.containerbutton_test, true, this) as Sprite; | ||
addChild(sprite); | ||
|
||
_closeButton.addEventListener(Event.TRIGGERED, onExit); | ||
_buyButton.addEventListener(Event.TRIGGERED, onBuy); | ||
_claimButton.addEventListener(Event.TRIGGERED, onClaim); | ||
} | ||
|
||
private function onExit(event:Event):void | ||
{ | ||
PopUpManager.removePopUp(this, true); | ||
} | ||
|
||
private function onBuy(event:Event):void | ||
{ | ||
trace("onBuy"); | ||
} | ||
|
||
private function onClaim(event:Event):void | ||
{ | ||
trace("onClaim"); | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.