client: DeckBuilder — крупные карты, 5 в ряд
CI / test (push) Successful in 3m34s
Details
CI / test (push) Successful in 3m34s
Details
- Ячейка 270×440: арт 270×394 (пропорция 350:511), количество 46 px. - При 1920 px помещаются 5 колонок, карты крупнее без искажений. - Проверки: EditMode 69/69, standalone собран.
This commit is contained in:
parent
92f03b91a1
commit
d6c4133277
|
|
@ -207,7 +207,7 @@ namespace Vanguard.UI
|
||||||
var scroll = UiKit.CreateGridScrollView(
|
var scroll = UiKit.CreateGridScrollView(
|
||||||
collectionArea,
|
collectionArea,
|
||||||
"CollectionGrid",
|
"CollectionGrid",
|
||||||
new Vector2(216f, 360f),
|
new Vector2(270f, 440f),
|
||||||
new Vector2(14f, 14f),
|
new Vector2(14f, 14f),
|
||||||
out _collectionContent);
|
out _collectionContent);
|
||||||
var scrollElement = scroll.gameObject.AddComponent<LayoutElement>();
|
var scrollElement = scroll.gameObject.AddComponent<LayoutElement>();
|
||||||
|
|
@ -904,7 +904,7 @@ namespace Vanguard.UI
|
||||||
}
|
}
|
||||||
|
|
||||||
var art = UiKit.CreatePanel(cell, "Art", Color.white);
|
var art = UiKit.CreatePanel(cell, "Art", Color.white);
|
||||||
UiKit.SetPreferredHeight(art, 315f);
|
UiKit.SetPreferredHeight(art, 394f);
|
||||||
var artImage = art.GetComponent<Image>();
|
var artImage = art.GetComponent<Image>();
|
||||||
CardImageService.Apply(
|
CardImageService.Apply(
|
||||||
artImage,
|
artImage,
|
||||||
|
|
@ -913,13 +913,13 @@ namespace Vanguard.UI
|
||||||
artImage.preserveAspect = true;
|
artImage.preserveAspect = true;
|
||||||
|
|
||||||
var qty = UiKit.CreatePanel(cell, "Qty", new Color(0.02f, 0.05f, 0.12f, 0.95f));
|
var qty = UiKit.CreatePanel(cell, "Qty", new Color(0.02f, 0.05f, 0.12f, 0.95f));
|
||||||
UiKit.SetPreferredHeight(qty, 45f);
|
UiKit.SetPreferredHeight(qty, 46f);
|
||||||
|
|
||||||
var counts = UiKit.CreateText(
|
var counts = UiKit.CreateText(
|
||||||
qty,
|
qty,
|
||||||
"Counts",
|
"Counts",
|
||||||
CountText(item),
|
CountText(item),
|
||||||
13,
|
14,
|
||||||
new Color(0.90f, 0.86f, 0.70f),
|
new Color(0.90f, 0.86f, 0.70f),
|
||||||
TextAnchor.MiddleCenter);
|
TextAnchor.MiddleCenter);
|
||||||
UiKit.Stretch(counts.rectTransform);
|
UiKit.Stretch(counts.rectTransform);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue