Ejemplo n.º 1
0
  public void cardUpdated_oobTL() {
    parent = Card.getTL(parent.getId()); // refresh in case markings have changed
    parent.getMarking(); // make sure it's retrieved

    // This would close the drawer (edit drop-down) of ANYBODY who is playing off this card at the
    // moment, losing their work
    // if (drawerComponent.isVisible())
    //  closeDrawer();
  }
Ejemplo n.º 2
0
      @Override
      @HibernateUserRead
      public void step2() {
        CardType ct = CardType.getTL(ctId);
        Date dt = new Date();
        Card c = new Card(txt, ct, dt);
        c.setCreatedInMove(Move.getCurrentMoveTL());
        c.setAuthor(User.getTL(author.getId())); // fresh
        if (newCardListener != null) newCardListener.cardCreatedTL(c);

        content.setValue("");
        content.setInputPrompt("Enter text for another card.");
        closeDrawer();

        resetCoroutine(); // for another click
      }
Ejemplo n.º 3
0
 private boolean checkNoCreateBecauseHiddenTL(Card c) {
   if (c == null) return false; // ok to create
   User me = Mmowgli2UI.getGlobals().getUserTL();
   return c.isHidden() && !me.isGameMaster();
 }