Repository navigation
feat: Gray out disabled chapters, show DISABLED tooltip - #1632
Conversation
Disabled chapters draw icons at 0.5 alpha and replace hover description with DISABLED.
|
/oc Address these points (implement, unless they introduce regressions and I'm wrong): 1. Unless I'm wrong, I think |
Cache slate4 / 30 in _base_alpha once per draw, and chap.disabled factor in _disabled_alpha per chapter, removing repeated expressions.
|
Changes pushed to branch |
|
/review |
There was a problem hiding this comment.
LGTM - small, focused change. Alpha caching (_base_alpha) and static DISABLED_ALPHA clean up repeated slate4 / 30 math, icon dimming is correctly scoped with restore after each draw, and click guards already prevent selecting disabled chapters. One i18n nit below.
Disabled chapters draw icons at 0.5 alpha and replace hover description with DISABLED.
Summary by cubic
Disabled chapters now render at 50% opacity and show a "DISABLED" tooltip on hover instead of their usual description, so locked chapters are immediately identifiable in the creation menu.
Written for commit 4cdeabc. Summary will update on new commits.