Column constraints not working under certain circumstances
まだ誰も着手していません。
評価
調査の方向性
Start with the referenced layout in overrides/engine/ui/ingame/deathScreen.ui, especially the two MigLayout sections and the row containing the team image and label. Trace how MigLayout handles ColumnConstrains, cell sizing, and UISpace sizing in TeraNUI, then reproduce the reported layout with a focused test or example. Done means column widths can be constrained as intended without using repeated UISpaces.
索引モデルが issue の本文から書いたものです。
説明
Description
The issue appeared while I was trying to set column constrains for the row with the team names at the Game Over Screen. My goal was to set widths for each of the two columns (the first column contains the UIImage and second the UILabel), reaching the following result:
What worked
I pilled up many UISpaces in the same line, which ended up squishing the rest of the elements to the side.
https://github.com/Terasology/LightAndShadow/blob/develop/overrides/engine/ui/ingame/deathScreen.ui#L131-L162
{
"type": "UISpace",
"cc": ""
},
{
"type": "UISpace",
"cc": ""
},
{
"type": "UISpace",
"cc": ""
},
{
"type": "UISpace",
"cc": ""
},
{
"type": "UISpace",
"cc": ""
},
{
"type": "UISpace",
"cc": ""
},
{
"type": "UISpace",
"cc": ""
},
{
"type": "UISpace",
"cc": ""
},

What didn't work
- Set a "width" at the UISpace
- Set
ColumnConstrainsat the MigLayout - Place them in a RowLayout, and tried to modify that RowLayout
- Use "span 8" at the UISpace to span it 8 cells
- Use "cell [column] [row] [width] [height]" where the "[ ]" contain numbers, the cells were arranged correctly, but the width and height didn't change
- Removed the "dock south" from the second MigLayout (L167) and placed it at the bottom with a width 3 and re-done the above methods, all failed
Failed result:

- 主要言語
- Java
- スター
- 4
- フォーク
- 11
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MovingBlocks/TeraNUI のほかの issue
-
Type: Improvement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
MovingBlocks/TeraNUI#84 ·
-
Good First Issue Revive: Keep Type: Refactoring
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
MovingBlocks/TeraNUI#45 ·
-
Revive: Keep Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
MovingBlocks/TeraNUI#41 ·
-
Revive: Keep Type: Bug
難易度 3/5 1〜2日 初心者へのやさしさ 43/100
MovingBlocks/TeraNUI#37 ·
-
Revive: Keep Type: Improvement
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
MovingBlocks/TeraNUI#31 · コメント 1 件 ·
MovingBlocks/TeraNUI の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
spAnser/reacharound#38 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
MovingBlocks/Terasology#5415 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100