Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     top.tell(new Render("root"));
  2.     top.ask(new AddComponent(horizontal))
  3.         .map((_) => {
  4.             horizontal.ask(HorizontalLayout.AddComponent(plainA, 33, null))
  5.                 .map((_) => {
  6.                     plainA.tell(PlainLayout.AddComponent(labelA));
  7.                 });
  8.             horizontal.ask(HorizontalLayout.AddComponent(plainB, 33, null))
  9.                 .map((_) => {
  10.                     plainB.tell(PlainLayout.AddComponent(labelB));
  11.                 });
  12.             horizontal.ask(HorizontalLayout.AddComponent(plainC, 33, null))
  13.                 .map((_) => {
  14.                     plainC.tell(PlainLayout.AddComponent(labelC));
  15.                 });
  16.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement