RiderCardDrawer fiddling
This commit is contained in:
@@ -67,14 +67,14 @@ class RiderCardDrawer extends Drawer {
|
||||
|
||||
// profile picture
|
||||
ppal = new AssetLoader();
|
||||
ppal.source = "https://lepetittrot.com/lptcm/assets/profile-pictures/pp512/pp_test_512.jpg";
|
||||
// ppal.addEventListener(Event.COMPLETE, onPPLoaded);
|
||||
//ppal.source = "https://lepetittrot.com/lptcm/assets/profile-pictures/pp512/pp_test_512.jpg";
|
||||
ppal.addEventListener(Event.COMPLETE, onPPLoaded);
|
||||
mainLaytoutGroup.addChild(ppal);
|
||||
|
||||
// ############################################################################################################## FIRSTNAME & NAME TEXT INPUTS
|
||||
|
||||
var lg1:LayoutGroup = new LayoutGroup();
|
||||
lg1.backgroundSkin = new RectangleSkin(SolidColor(Constants.ACCENT_COLOR2, 0.2));
|
||||
lg1.backgroundSkin = new RectangleSkin(SolidColor(Constants.MAIN_COLOR1, 0.1));
|
||||
var vl1:VerticalLayout = new VerticalLayout();
|
||||
vl1.setPadding(spacing);
|
||||
vl1.horizontalAlign = JUSTIFY;
|
||||
@@ -104,10 +104,11 @@ class RiderCardDrawer extends Drawer {
|
||||
|
||||
public function populateAndShow() {
|
||||
// profile picture
|
||||
// ppal.source = "https://lepetittrot.com/lptcm/assets/profile-pictures/pp512/pp_test_512.jpg";
|
||||
ppal.source = "https://lepetittrot.com/lptcm/assets/profile-pictures/pp512/pp_test_512.jpg";
|
||||
|
||||
var rvo:RiderVO = model.selectedRider;
|
||||
|
||||
/*
|
||||
// first name label
|
||||
firstNameTextInput.text = rvo.firstName;
|
||||
if (!firstNameTextInput.hasEventListener(Event.CHANGE)) {
|
||||
@@ -127,16 +128,15 @@ class RiderCardDrawer extends Drawer {
|
||||
}
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
openDrawer();
|
||||
}
|
||||
/*private function onPPLoaded(e:Event):Void {
|
||||
private function onPPLoaded(e:Event):Void {
|
||||
var rvo:RiderVO = model.selectedRider;
|
||||
|
||||
// first name label
|
||||
fnl.text = rvo.firstName;
|
||||
//firstNameTextInput.text = rvo.firstName;
|
||||
|
||||
openDrawer();
|
||||
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user