Dropdown popup background is mostly transparent, so the options behind it show through
まだ誰も着手していません。
評価
調査の方向性
ポップアップがScreen.MENU_BACKGROUNDを使用するDropdownWidget#extractRenderStateから始め、他のオプションの上に向かって開くDropdownStringControllerBuilderで問題を再現します。背景がどのように塗りつぶされるかを確認し、dropdownが不透明になって背後のオプションを完全に覆うことを検証してください。
索引モデルが issue の本文から書いたものです。
説明
When a dropdown (DropdownStringControllerBuilder) opens, its list is drawn over the options above it, but its background is mostly see-through. The text, checkboxes and outlines of those options show through the list, which makes the suggestions hard to read.
Environment
- Minecraft: 26.2
- YACL: 3.9.7+26.2-fabric
- Fabric Loader: 0.19.5
Steps to reproduce
- Put a
ListOption<String>usingDropdownStringControllerBuilderbelow a few other options in a category (the list opens upwards, over them). For example:ListOption.<String>createBuilder() .name(Component.literal("Blocks")) .binding(List.of(), () -> list, v -> list = v) .controller(opt -> DropdownStringControllerBuilder.create(opt) .values(BuiltInRegistries.BLOCK.keySet().stream().map(Object::toString).toList()) .allowAnyValue(true)) .initial("minecraft:") .build() - Open the config screen and click into one of the list's entries so the dropdown opens.
Expected
The dropdown list has an opaque background and covers the options behind it.
Actual
The options behind the list are visible through it, and their text overlaps the
Possible cause
DropdownWidget#extractRenderState fills the background with `Screen.MENU_BACK
graphics.blit(RenderPipelines.GUI_TEXTURED, Screen.MENU_BACKGROUND, x, y1, 0.0f
textureWidth, textureHeight, 32, 32, 0xFF3F3F3F);
Vanilla's textures/gui/menu_background.png has an alpha of 64/255 in every pint jar), and the tint only darkens the color, so the popup ends up about 25%opaque. Drawing an opaque fill first (e.g. graphics.fill(..., 0xFF000000)), ould probably fix it.
Related: the last line of #276 asks for a less transparent background for the same reason.
- 主要言語
- Java
- スター
- 161
- フォーク
- 70
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
isXander/YetAnotherConfigLib のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
isXander/YetAnotherConfigLib#376 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
isXander/YetAnotherConfigLib#361 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
isXander/YetAnotherConfigLib#332 ·
-
Custom ⟲ glyph affects other GUIs対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
isXander/YetAnotherConfigLib#373 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
isXander/YetAnotherConfigLib#372 · コメント 1 件 ·
isXander/YetAnotherConfigLib の issue をすべて見る
似ている issue
-
area-integrations
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
? - Needs Triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NVIDIA/cudf-spark-jni#5598 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
oracle/graalvm-reachability-metadata#12264 ·
メンテナーはふだん 1 日以内に返信
-
[source-facebook-pages] post stream never returns attachments.media_type対応中かも @v-k-data が今日担当しました。 オープンarea/connectors needs-triage type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
[BUG] AppSync: GetIntrospectionSchema wraps the schema in JSON instead of returning the raw SDL bodyオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
floci-io/floci#10107 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信