Warning: session_start(): open(/var/lib/php/sessions/sess_2jm93v6grqa0md86v9nc70llin, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
//static double showYesToAcceptPopup_hideAfter = 10.0;
sS showYesToAcceptPopup_imageID = #1101458; // #1101459 for "ok" instead of "yes" (wit.ai is bad at recognizing "yes")
static YesPopup showYesToAcceptPopup(final Component c, fO... _) {
ret swing(func -> YesPopup {
final JDesktopPane desktop = parentOfType(c, JDesktopPane.class);
if (desktop == null) null;
S imageID = optPar(_, imageID := showYesToAcceptPopup_imageID);
int height = optPar(_, height := 114);
final YesPopup popup = setSizeToPreferredSize(YesPopup(c, imageID, width));
fO mover = optPar(_, 'mover); // voidfunc(Component c, Component popup)
Runnable moveIt = r {
if (mover != null)
callF(mover, c, popup);
else {
Rect r = boundsInParent(c, desktop);
setLocation(popup, r.x+r.w/2, r.y-popup.getHeight()-5);
}
};
desktop.add(popup, JLayeredPane.POPUP_LAYER);
onClick(popup, r { removeFromParent(popup) });
callF(moveIt);
awtEvery(popup, 100, moveIt);
//removeFromParentAfter(showYesToAcceptPopup_hideAfter, popup);
ret popup;
});
}