void LLFloaterBuyCurrency::buyCurrency(const std::string& name, S32 price) { LLFloaterBuyCurrencyUI* ui = LLFloaterBuyCurrencyUI::soleInstance(true); ui->target(name, price); ui->updateUI(); ui->open(); }
// static void LLFloaterBuyCurrency::buyCurrency() { LLFloaterBuyCurrencyUI* ui = LLFloaterBuyCurrencyUI::soleInstance(true); ui->noTarget(); ui->updateUI(); ui->open(); }
// static void LLFloaterBuyCurrency::buyCurrency() { if (gHideLinks) { return; } LLFloaterBuyCurrencyUI* ui = LLFloaterBuyCurrencyUI::soleInstance(true); ui->noTarget(); ui->updateUI(); ui->open(); }
// static void LLFloaterBuyCurrencyUI::onClickBuy(void* data) { LLFloaterBuyCurrencyUI* self = LLFloaterBuyCurrencyUI::soleInstance(false); if (self) { self->mManager.buy(self->getString("buy_currency")); self->updateUI(); // JC: updateUI() doesn't get called again until progress is made // with transaction processing, so the "Purchase" button would be // left enabled for some time. Pre-emptively disable. self->childSetEnabled("buy_btn", false); } }
void LLFloaterBuyCurrency::buyCurrency(const std::string& name, S32 price) { if (gHideLinks) { LLStringUtil::format_map_t args; args["[NAME]"] = name; args["[PRICE]"] = llformat("%d", price); gViewerWindow->alertXml("NotEnoughCurrency", args); return; } LLFloaterBuyCurrencyUI* ui = LLFloaterBuyCurrencyUI::soleInstance(true); ui->target(name, price); ui->updateUI(); ui->open(); }
// static void LLFloaterBuyCurrency::buyCurrency(const std::string& name, S32 price) { LLFloaterBuyCurrencyUI* ui = LLFloaterReg::showTypedInstance<LLFloaterBuyCurrencyUI>("buy_currency"); ui->target(name, price); ui->updateUI(); }
// static void LLFloaterBuyCurrency::buyCurrency() { LLFloaterBuyCurrencyUI* ui = LLFloaterReg::showTypedInstance<LLFloaterBuyCurrencyUI>("buy_currency"); ui->noTarget(); ui->updateUI(); }