client: DeckBuilder — 8 карт в ряд
CI / test (push) Successful in 2m17s
Details
CI / test (push) Successful in 2m17s
Details
- Ячейка 160×280: арт 160×234 (пропорция 350:511) + количество 46. - При 1920 px помещаются 8 колонок; шаг колеса — одна полоса (294 px). - Проверки: EditMode 69/69, standalone собран.
This commit is contained in:
parent
55f57beed5
commit
c7f2c51fec
|
|
@ -206,7 +206,7 @@ namespace Vanguard.UI
|
|||
var scroll = UiKit.CreateGridScrollView(
|
||||
collectionArea,
|
||||
"CollectionGrid",
|
||||
new Vector2(266f, 434f),
|
||||
new Vector2(160f, 280f),
|
||||
new Vector2(14f, 14f),
|
||||
out _collectionContent);
|
||||
var scrollElement = scroll.gameObject.AddComponent<LayoutElement>();
|
||||
|
|
@ -215,7 +215,7 @@ namespace Vanguard.UI
|
|||
|
||||
var smooth = scroll.GetComponent<SmoothScrollRect>();
|
||||
if (smooth != null)
|
||||
smooth.WheelStep = 448f;
|
||||
smooth.WheelStep = 294f;
|
||||
|
||||
var grid = _collectionContent.GetComponent<GridLayoutGroup>();
|
||||
if (grid != null)
|
||||
|
|
@ -907,7 +907,7 @@ namespace Vanguard.UI
|
|||
}
|
||||
|
||||
var art = UiKit.CreatePanel(cell, "Art", Color.white);
|
||||
UiKit.SetPreferredHeight(art, 388f);
|
||||
UiKit.SetPreferredHeight(art, 234f);
|
||||
CardImageService.Apply(
|
||||
art.GetComponent<Image>(),
|
||||
meta.ImageKey,
|
||||
|
|
@ -920,12 +920,12 @@ namespace Vanguard.UI
|
|||
qty,
|
||||
"Counts",
|
||||
CountText(item),
|
||||
14,
|
||||
12,
|
||||
new Color(0.90f, 0.86f, 0.70f),
|
||||
TextAnchor.MiddleCenter);
|
||||
UiKit.Stretch(counts.rectTransform);
|
||||
counts.rectTransform.offsetMin = new Vector2(8f, 0f);
|
||||
counts.rectTransform.offsetMax = new Vector2(-8f, 0f);
|
||||
counts.rectTransform.offsetMin = new Vector2(4f, 0f);
|
||||
counts.rectTransform.offsetMax = new Vector2(-4f, 0f);
|
||||
_countTexts[item.PrintingId] = counts;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue