void LLFloaterBuyCurrencyUI::draw() { if (mManager.process()) { if (mManager.bought()) { close(); return; } updateUI(); } LLFloater::draw(); }
void LLFloaterBuyCurrencyUI::draw() { if (mManager.process()) { if (mManager.bought()) { LLNotificationsUtil::add("BuyLindenDollarSuccess"); closeFloater(); return; } updateUI(); } // disable the Buy button when we are not able to buy getChildView("buy_btn")->setEnabled(mManager.canBuy()); LLFloater::draw(); }
void LLFloaterBuyCurrencyUI::draw() { if (mManager.process()) { if (mManager.bought()) { std::string type_currency = LLGridManager::getInstance()->getCurrency(); LLSD args; args["CUR"] = type_currency; LLNotificationsUtil::add("BuyLindenDollarSuccess", args); closeFloater(); return; } updateUI(); } // disable the Buy button when we are not able to buy getChildView("buy_btn")->setEnabled(mManager.canBuy()); LLFloater::draw(); }