RenderInfo amb tres estats (off/dalt/baix), temps de joc i persistència; ombra, mono-dígits i easing compartits (v0.14.0)
This commit is contained in:
1 parent
46a578fd86
commit
6f3fafbfff
17 files changed
+376
-97
No files matched your search
@@ -42,6 +42,7 @@ class Notifier {
|
||||
static constexpr int PADDING_V = 3;
|
||||
static constexpr int TEXT_SIZE = 8;
|
||||
static constexpr int HEIGHT = TEXT_SIZE + (2 * PADDING_V);
|
||||
static constexpr int MARGIN_TOP = 2; // Separació amb la vora superior del canvas.
|
||||
static constexpr float SLIDE_SPEED = 120.0F;
|
||||
|
||||
private:
|
||||
@@ -55,7 +56,7 @@ class Notifier {
|
||||
|
||||
std::unique_ptr<Text> text_;
|
||||
Status status_{Status::HIDDEN};
|
||||
float y_{static_cast<float>(-HEIGHT)};
|
||||
float y_{static_cast<float>(-HEIGHT - MARGIN_TOP)};
|
||||
std::string current_text_;
|
||||
Uint8 current_text_color_{0};
|
||||
Uint8 current_bg_color_{0};
|
||||
|
||||
Reference in new issue
Block a user