Localization! Russian/Korean, font updates, and fixes

This commit is contained in:
2025-11-30 22:01:55 -05:00
parent 412d860a7d
commit d0221928aa
4 changed files with 334 additions and 39 deletions

View File

@@ -8,21 +8,21 @@
namespace anm2ed::anm2
{
inline const glm::vec4 ROOT_COLOR = glm::vec4(0.140f, 0.310f, 0.560f, 1.000f);
inline const glm::vec4 ROOT_COLOR_ACTIVE = glm::vec4(0.240f, 0.520f, 0.880f, 1.000f);
inline const glm::vec4 ROOT_COLOR_HOVERED = glm::vec4(0.320f, 0.640f, 1.000f, 1.000f);
extern const glm::vec4 ROOT_COLOR;
extern const glm::vec4 ROOT_COLOR_ACTIVE;
extern const glm::vec4 ROOT_COLOR_HOVERED;
inline const glm::vec4 LAYER_COLOR = glm::vec4(0.640f, 0.320f, 0.110f, 1.000f);
inline const glm::vec4 LAYER_COLOR_ACTIVE = glm::vec4(0.840f, 0.450f, 0.170f, 1.000f);
inline const glm::vec4 LAYER_COLOR_HOVERED = glm::vec4(0.960f, 0.560f, 0.240f, 1.000f);
extern const glm::vec4 LAYER_COLOR;
extern const glm::vec4 LAYER_COLOR_ACTIVE;
extern const glm::vec4 LAYER_COLOR_HOVERED;
inline const glm::vec4 NULL_COLOR = glm::vec4(0.140f, 0.430f, 0.200f, 1.000f);
inline const glm::vec4 NULL_COLOR_ACTIVE = glm::vec4(0.250f, 0.650f, 0.350f, 1.000f);
inline const glm::vec4 NULL_COLOR_HOVERED = glm::vec4(0.350f, 0.800f, 0.480f, 1.000f);
extern const glm::vec4 NULL_COLOR;
extern const glm::vec4 NULL_COLOR_ACTIVE;
extern const glm::vec4 NULL_COLOR_HOVERED;
inline const glm::vec4 TRIGGER_COLOR = glm::vec4(0.620f, 0.150f, 0.260f, 1.000f);
inline const glm::vec4 TRIGGER_COLOR_ACTIVE = glm::vec4(0.820f, 0.250f, 0.380f, 1.000f);
inline const glm::vec4 TRIGGER_COLOR_HOVERED = glm::vec4(0.950f, 0.330f, 0.490f, 1.000f);
extern const glm::vec4 TRIGGER_COLOR;
extern const glm::vec4 TRIGGER_COLOR_ACTIVE;
extern const glm::vec4 TRIGGER_COLOR_HOVERED;
#define TYPE_LIST \
X(NONE, "", "", resource::icon::NONE, glm::vec4(), glm::vec4(), glm::vec4()) \
@@ -57,23 +57,9 @@ namespace anm2ed::anm2
#undef X
};
inline const glm::vec4 TYPE_COLOR[] = {
#define X(symbol, string, itemString, icon, color, colorActive, colorHovered) color,
TYPE_LIST
#undef X
};
inline const glm::vec4 TYPE_COLOR_ACTIVE[] = {
#define X(symbol, string, itemString, icon, color, colorActive, colorHovered) colorActive,
TYPE_LIST
#undef X
};
inline const glm::vec4 TYPE_COLOR_HOVERED[] = {
#define X(symbol, string, itemString, icon, color, colorActive, colorHovered) colorHovered,
TYPE_LIST
#undef X
};
extern const glm::vec4 TYPE_COLOR[];
extern const glm::vec4 TYPE_COLOR_ACTIVE[];
extern const glm::vec4 TYPE_COLOR_HOVERED[];
enum ChangeType
{