Drawer related refactoring :
- removed NekoDrawerEvent Button related refactoring : - removed NekoIconButton
This commit is contained in:
@@ -1,20 +1,19 @@
|
||||
package model;
|
||||
|
||||
import components.NekoDrawer;
|
||||
import control.NekoDrawerEvent;
|
||||
import vo.Rider;
|
||||
import feathers.data.ArrayCollection;
|
||||
import openfl.errors.Error;
|
||||
import openfl.events.Event;
|
||||
import com.adobe.cairngorm.model.IModelLocator;
|
||||
import openfl.events.EventDispatcher;
|
||||
import t9.util.ColorTraces.*;
|
||||
|
||||
class AppModelLocator extends EventDispatcher implements IModelLocator {
|
||||
|
||||
// events constants
|
||||
public static final VIEWING_CHANGE:String = "viewingChange";
|
||||
public static final RIDERS_LIST_DP_CHANGE:String = "ridersListDPChange";
|
||||
//public static final DRAWER_STATE_CHANGE:String = "drawerStateChange";
|
||||
public static final DRAWER_STATE_CHANGE:String = "drawerStateChange";
|
||||
|
||||
|
||||
// this instance stores a static reference to itself
|
||||
@@ -36,12 +35,12 @@ class AppModelLocator extends EventDispatcher implements IModelLocator {
|
||||
}
|
||||
|
||||
// at startup, the drawer is closed
|
||||
public var drawerState(default, set):String = NekoDrawer.CLOSE;
|
||||
public var drawerIsOpen(default, set):Bool = false;
|
||||
|
||||
private function set_drawerState(pState:String):String {
|
||||
drawerState = pState;
|
||||
dispatchEvent(new Event(NekoDrawerEvent.DRAWER_STATE_CHANGE));
|
||||
return drawerState;
|
||||
private function set_drawerIsOpen(pIsOpen:Bool):Bool {
|
||||
drawerIsOpen = pIsOpen;
|
||||
dispatchEvent(new Event(AppModelLocator.DRAWER_STATE_CHANGE));
|
||||
return drawerIsOpen;
|
||||
}
|
||||
|
||||
// rider object contains uid/passwd
|
||||
|
||||
@@ -21,10 +21,15 @@ class Constants {
|
||||
public static final MONTSERRAT_MEDIUM_500:String = "MontserratMedium500";
|
||||
public static final MONTSERRAT_BOLD_700:String = "MontserratBold700";
|
||||
|
||||
// UI Proportions against satge dimmentions
|
||||
// UI Proportions against stage dimmensions
|
||||
public static final MAIN_HEADER_WIDTH_RATIO:Float = 1;
|
||||
public static final MAIN_HEADER_HEIGHT_RATIO:Float = 0.1;
|
||||
|
||||
// Event strings
|
||||
public static final OPEN_DRAWER:String = "openDrawer";
|
||||
public static final CLOSE_DRAWER:String = "closeDrawer";
|
||||
public static final DRAWER_IS_OPEN:Bool = false;
|
||||
|
||||
// Strings
|
||||
public static final MENU_ITEM_0_STRING:String = "Cavalier·e·s";
|
||||
public static final MENU_ITEM_1_STRING:String = "Licences FFE";
|
||||
|
||||
Reference in New Issue
Block a user