Working more on translations, fixing tree bugs
This commit is contained in:
1 parent
e7dc3279ae
commit
cdaebc3c0c
23 files changed
+542
-487
No files matched your search
+11
-3
@@ -108,9 +108,15 @@ namespace ZL {
|
||||
void loadSettings();
|
||||
|
||||
// Toast notification system
|
||||
void showToast(const std::string& iconPath, const std::string& text);
|
||||
void showToast(std::shared_ptr<Texture> toastTexture, const std::string& text);
|
||||
void update(float deltaMs);
|
||||
|
||||
std::shared_ptr<Texture> toastTextureQuestNew;
|
||||
std::shared_ptr<Texture> toastTextureQuestCompleted;
|
||||
std::shared_ptr<Texture> toastTextureQuestFailed;
|
||||
std::shared_ptr<Texture> toastTextureItemAdded;
|
||||
std::shared_ptr<Texture> toastTextureItemRemoved;
|
||||
|
||||
protected:
|
||||
Renderer& renderer;
|
||||
|
||||
@@ -123,6 +129,7 @@ namespace ZL {
|
||||
void refreshQuestJournalUi();
|
||||
void reloadLocalizedGameContent();
|
||||
std::shared_ptr<UiNode> loadLocalizedUi(const std::string& basePath, const std::string& zipFile);
|
||||
std::shared_ptr<Texture> loadLocalizedTexture(const std::string& basePath, const std::string& zipFile);
|
||||
void loadUiRoots(const std::string& zipFile);
|
||||
void selectQuestByIndex(int index);
|
||||
void refreshItemPickupHud();
|
||||
@@ -157,13 +164,13 @@ namespace ZL {
|
||||
|
||||
// Toast internals
|
||||
struct ToastEntry {
|
||||
std::string iconPath;
|
||||
std::shared_ptr<Texture> toastTexture;
|
||||
std::string text;
|
||||
float timer = 0.0f;
|
||||
enum class State { FadeIn, Visible, FadeOut } state = State::FadeIn;
|
||||
float currentAlpha() const;
|
||||
};
|
||||
struct ToastMessage { std::string iconPath; std::string text; };
|
||||
struct ToastMessage { std::shared_ptr<Texture> toastTexture; std::string text; };
|
||||
|
||||
void updateToasts(float deltaMs);
|
||||
void applyToastsToUi();
|
||||
@@ -257,6 +264,7 @@ namespace ZL {
|
||||
std::shared_ptr<Texture> texItemSelected_;
|
||||
std::shared_ptr<Texture> texItemTransparent_;
|
||||
|
||||
|
||||
void applyCurrentHealthBar();
|
||||
|
||||
bool isPortraitMode() const;
|
||||
|
||||
Reference in new issue
Block a user