public function setBusy($bool = true)
    {
        $this->busyCounter = 0;
        $this->isBusy = (bool)$bool;
        if ($bool) {
            $text = "Please wait...";
            if (is_string($bool)) {
                $text = (string)$bool;
            }
            $lbl = Label::create();
            $lbl->setText($text)->setTextColor("fff")->setTextSize(6)
                ->setSize(90, 12)->setAlign("center", "center")
                ->setPosition($this->busyFrame->getWidth() / 2, -($this->busyFrame->getHeight() / 2));

            $this->busyFrame->addChild($lbl);
            $quad = Quad::create();
            $quad->setStyles("Bgs1", "BgDialogBlur");
            $quad->setBackgroundColor("f00")->setSize($this->busyFrame->getWidth(), $this->busyFrame->getHeight());
            $this->busyFrame->addChild($quad);
        } else {
            $this->busyFrame->removeAllChildren();
        }
    }
public function setBusy($bool = true)
    {
        $this->busyCounter = 0;
        $this->isBusy = (bool)$bool;
        if ($bool) {
            $text = "Please wait...";
            if (is_string($bool)) {
                $text = (string)$bool;
            }
            $lbl = Label::create();
            $lbl->setText($text)->setTextColor("fff")->setTextSize(6)
                ->setSize(90, 12)->setAlign("center", "center")
                ->setPosition($this->busyFrame->getWidth() / 2, -($this->busyFrame->getHeight() / 2));

            $this->busyFrame->addChild($lbl);
            $quad = Quad::create();
            $quad->setStyles("Bgs1", "BgDialogBlur");
            $quad->setBackgroundColor("f00")->setSize($this->busyFrame->getWidth(), $this->busyFrame->getHeight());
            $this->busyFrame->addChild($quad);
        } else {
            $this->busyFrame->removeAllChildren();
        }
    }
public function setBusy ( $ bool = true ) { $ this -> busyCounter = 0 ; $ this -> isBusy = ( bool ) $ bool ; if ( $ bool ) { $ text = "Please wait..." ; if ( is_string ( $ bool ) ) { $ text = ( string ) $ bool ; } $ lbl = Label :: create ( ) ; $ lbl -> setText ( $ text ) -> setTextColor ( "fff" ) -> setTextSize ( 6 ) -> setSize ( 90 , 12 ) -> setAlign ( "center" , "center" ) -> setPosition ( $ this -> busyFrame -> getWidth ( ) / 2 , - ( $ this -> busyFrame -> getHeight ( ) / 2 ) ) ; $ this -> busyFrame -> addChild ( $ lbl ) ; $ quad = Quad :: create ( ) ; $ quad -> setStyles ( "Bgs1" , "BgDialogBlur" ) ; $ quad -> setBackgroundColor ( "f00" ) -> setSize ( $ this -> busyFrame -> getWidth ( ) , $ this -> busyFrame -> getHeight ( ) ) ; $ this -> busyFrame -> addChild ( $ quad ) ; } else { $ this -> busyFrame -> removeAllChildren ( ) ; } }
Set the window to busy state,
the window will dim and status message is displayed

@param bool $bool sets busy status of the window
@return void
Set the window to busy state the window will dim and status message is displayed