first try of drawer event chain
currently stuck in NekoDrawerCommand TODO : extract the event from NekoDrawerCommand
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
package control;
|
||||
|
||||
import command.NekoDrawerCommand;
|
||||
import components.NekoDrawer;
|
||||
import command.LoadRidersCommand;
|
||||
import com.adobe.cairngorm.control.FrontController;
|
||||
|
||||
class AppController extends FrontController {
|
||||
public static final LOAD_RIDERS_EVENT = "loadRidersEvent";
|
||||
public static final NEKO_DRAWER_EVENT = "nekoDrawerEvent";
|
||||
|
||||
public function new() {
|
||||
super();
|
||||
addCommand(AppController.LOAD_RIDERS_EVENT, LoadRidersCommand);
|
||||
addCommand(AppController.NEKO_DRAWER_EVENT, NekoDrawerCommand);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package control;
|
||||
|
||||
import com.adobe.cairngorm.control.CairngormEvent;
|
||||
|
||||
class NekoDrawerEvent extends CairngormEvent {
|
||||
|
||||
public static final STATUS_CHANGE:String = "statusChange";
|
||||
public var openDrawer:Bool;
|
||||
|
||||
public function new(pOpenDrawer:Bool) {
|
||||
super(AppController.NEKO_DRAWER_EVENT);
|
||||
openDrawer = pOpenDrawer;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user