-
-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Mana dialog text and default Exp value display
- Loading branch information
1 parent
5325e10
commit d03bafe
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/*************************************************************************** | ||
* fheroes2: https://github.com/ihhub/fheroes2 * | ||
* Copyright (C) 2019 - 2023 * | ||
* Copyright (C) 2019 - 2024 * | ||
* * | ||
* Free Heroes2 Engine: http://sourceforge.net/projects/fheroes2 * | ||
* Copyright (C) 2009 by Andrey Afletdinov <[email protected]> * | ||
|
@@ -110,6 +110,16 @@ class ExperienceIndicator : public HeroesIndicator | |
|
||
void Redraw() const; | ||
void QueueEventProcessing() const; | ||
|
||
// Set if default value is used. Use this method only in Editor! | ||
void setDefaultState( const bool isDefault ) | ||
{ | ||
_isDefault = isDefault; | ||
} | ||
|
||
private: | ||
// This state is used in Editor to show that default value is used. | ||
bool _isDefault{ false }; | ||
}; | ||
|
||
class SpellPointsIndicator : public HeroesIndicator | ||
|
@@ -119,6 +129,16 @@ class SpellPointsIndicator : public HeroesIndicator | |
|
||
void Redraw() const; | ||
void QueueEventProcessing() const; | ||
|
||
// Set if default value is used. Use this method only in Editor! | ||
void setDefaultState( const bool isDefault ) | ||
{ | ||
_isDefault = isDefault; | ||
} | ||
|
||
private: | ||
// This state is used in Editor to show that default value is used. | ||
bool _isDefault{ false }; | ||
}; | ||
|
||
#endif |