2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-24 11:17:10 +00:00

40 lines
802 B
C
Raw Normal View History

2023-09-12 21:00:39 +04:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
namespace Ui {
class GenericBox;
class VerticalLayout;
2023-09-12 21:00:39 +04:00
struct BoostCounters {
int level = 0;
int boosts = 0;
int thisLevelBoosts = 0;
int nextLevelBoosts = 0; // Zero means no next level is available.
2023-09-15 17:37:34 +04:00
bool mine = false;
2023-09-12 21:00:39 +04:00
};
struct BoostBoxData {
QString name;
BoostCounters boost;
};
void BoostBox(
not_null<GenericBox*> box,
BoostBoxData data,
Fn<void(Fn<void(bool)>)> boost);
void FillBoostLimit(
rpl::producer<> showFinished,
rpl::producer<bool> you,
not_null<VerticalLayout*> container,
BoostBoxData data);
2023-09-12 21:00:39 +04:00
} // namespace Ui