Dedicated large inspection art for graphics cards
192x128 drawings made for the magnifier tray instead of enlarging the 48x32 item sprite: nine-blade fans, fin stack, heat pipes, power connector, PCB parts, per-contact gold fingers; back with brushed backplate, QR and barcode sticker, seal. Appearance overlays share coordinates with the base. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c05fe41ca9
commit
dd95aad7aa
37 files changed
+450
-2
No files matched your search
@@ -94,15 +94,17 @@ namespace Decentralized
|
||||
var keys = new List<string>();
|
||||
string baseKey = Items.LookKeys(item, keys);
|
||||
keys.Insert(0, baseKey);
|
||||
foreach (var k in keys)
|
||||
foreach (var small in keys)
|
||||
{
|
||||
// 检视用大图:键名对应小图(gpu_probidia_f → gpu_big_probidia_f,gpu_ov_fan1 → gpu_big_ov_fan1)
|
||||
string k = small.StartsWith("gpu_ov_") ? "gpu_big_ov_" + small.Substring("gpu_ov_".Length) : "gpu_big_" + small.Substring("gpu_".Length);
|
||||
var sprite = Items.ModSprite(k);
|
||||
if (sprite == null) continue;
|
||||
var go = new GameObject(k, typeof(RectTransform), typeof(Image));
|
||||
var rt = go.GetComponent<RectTransform>();
|
||||
rt.SetParent(cardRoot, false);
|
||||
rt.sizeDelta = new Vector2(sprite.rect.width, sprite.rect.height);
|
||||
rt.localScale = Vector3.one * 14f;
|
||||
rt.localScale = Vector3.one * 4f;
|
||||
var img = go.GetComponent<Image>();
|
||||
img.sprite = sprite;
|
||||
img.raycastTarget = false;
|
||||
|
||||
Reference in new issue
Block a user