- Buttons changed to ToggleButtons
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
package view;
|
||||
|
||||
import control.AppController;
|
||||
import com.adobe.cairngorm.control.CairngormEvent;
|
||||
import com.adobe.cairngorm.control.CairngormEventDispatcher;
|
||||
import components.IconButton;
|
||||
import components.NekoRectangle;
|
||||
import control.AppController;
|
||||
import feathers.controls.Button;
|
||||
import feathers.controls.Label;
|
||||
import feathers.controls.LayoutGroup;
|
||||
@@ -51,7 +52,10 @@ class MainHeader extends LayoutGroup {
|
||||
layout = l;
|
||||
|
||||
// Menu button
|
||||
btn1 = new Button("menu", onMenuButtonPress);
|
||||
var svgIconString:String = Assets.getText("vector/menu_icon_black.svg");
|
||||
btn1 = new IconButton(svgIconString, Constants.MAIN_COLOR3);
|
||||
|
||||
btn1.addEventListener(TriggerEvent.TRIGGER, onMenuButtonPress);
|
||||
addChild(btn1);
|
||||
|
||||
// Title label
|
||||
|
||||
Reference in New Issue
Block a user