Merge origin/main — 해상도 대응 · 그래픽 품질 · 노치 보강 · 충돌 피해(440fe15a 까지) + 영웅 조각 · 완제품 영웅 아이콘(989e0435 · 7be623b5)

이 PC 작업 트리에 다른 작업의 미커밋 파일(BattleHUD 등)이 있어 merge-tree 로 합침(충돌 0 · 합친 트리와 원격 차이 = 이 작업 26 파일만 · 합친 UiKit 에 쓰는 함수 15개 그대로 있음)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
깃 관리자 2026-11-26 11:55:19 +09:00
commit 08104ef726
26 changed files with 1261 additions and 4 deletions

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3ffeb3431282b594a8b92efebcc47cb1
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,18 @@
# 영웅 아이콘 배치(PD 2026-11-26 · 조각 = SB안 · 완제품 = HB안) · 값 = 기준 칸 132 px 일 때 px(실제 크기에 비례)
key,value,note
ref,132,기준 칸 크기(스테이지 팝업 보상 칸)
crop_table,UI/HeroIcon/hero_icon_crop,얼굴 자리 표(Tools/hero_icon_crop.py)
shard_inset,7,조각: 보상 칸 안쪽 얼굴 자리(얼굴 정사각이 칸 안 이 여백 안에 맞춤 · 칸 테두리가 얼굴 위에 다시 그려짐)
shard_clip,2,조각: 얼굴을 자르는 칸 모양(item_bg 둥근 모서리) 여백 — 네모 자르기는 90 px 칸에서 모서리 밖으로 나옴(QA r2 B)
shard_badge,44,조각: 왼쪽 위 금빛 직소 배지 크기(테마 hi_shard_badge · 왼쪽 홈 없음 = PD 「왼쪽 빈 공간 채워」)
shard_badge_off,-6,조각: 배지가 칸 밖으로 나가는 양(왼쪽 · 위)
oct_inset,10,완제품: 팔각 안쪽 얼굴 여백(hi_oct_fill 가 얼굴 마스크)
oct_faction,40,완제품: 왼쪽 위 진영 배지 지름
oct_faction_off,-8,완제품: 진영 배지가 틀 밖으로 나가는 양
oct_class,40,완제품: 오른쪽 위 병종 원 지름(PD 2026-11-26 「우측 상단에 병종 아이콘」 · 진영 배지와 같은 크기)
oct_class_off,-8,완제품: 병종 원이 틀 밖으로 나가는 양(오른쪽 · 위)
oct_class_icon,0.76,완제품: 병종 그림 크기 = 병종 원 지름 × 이 비율(크기와 무관한 비율 값)
oct_star,26,완제품: 아래 별 한 개 크기
oct_star_gap,-4,완제품: 별 사이(음수 = 겹침)
oct_band_h,32,완제품: 별 받침(짙은 둥근 띠 · 테마 chip · chip_dark) 높이
oct_band_y,20,완제품: 받침 위끝이 틀 아래끝에서 올라오는 양
1 # 영웅 아이콘 배치(PD 2026-11-26 · 조각 = SB안 · 완제품 = HB안) · 값 = 기준 칸 132 px 일 때 px(실제 크기에 비례)
2 key,value,note
3 ref,132,기준 칸 크기(스테이지 팝업 보상 칸)
4 crop_table,UI/HeroIcon/hero_icon_crop,얼굴 자리 표(Tools/hero_icon_crop.py)
5 shard_inset,7,조각: 보상 칸 안쪽 얼굴 자리(얼굴 정사각이 칸 안 이 여백 안에 맞춤 · 칸 테두리가 얼굴 위에 다시 그려짐)
6 shard_clip,2,조각: 얼굴을 자르는 칸 모양(item_bg 둥근 모서리) 여백 — 네모 자르기는 90 px 칸에서 모서리 밖으로 나옴(QA r2 B)
7 shard_badge,44,조각: 왼쪽 위 금빛 직소 배지 크기(테마 hi_shard_badge · 왼쪽 홈 없음 = PD 「왼쪽 빈 공간 채워」)
8 shard_badge_off,-6,조각: 배지가 칸 밖으로 나가는 양(왼쪽 · 위)
9 oct_inset,10,완제품: 팔각 안쪽 얼굴 여백(hi_oct_fill 가 얼굴 마스크)
10 oct_faction,40,완제품: 왼쪽 위 진영 배지 지름
11 oct_faction_off,-8,완제품: 진영 배지가 틀 밖으로 나가는 양
12 oct_class,40,완제품: 오른쪽 위 병종 원 지름(PD 2026-11-26 「우측 상단에 병종 아이콘」 · 진영 배지와 같은 크기)
13 oct_class_off,-8,완제품: 병종 원이 틀 밖으로 나가는 양(오른쪽 · 위)
14 oct_class_icon,0.76,완제품: 병종 그림 크기 = 병종 원 지름 × 이 비율(크기와 무관한 비율 값)
15 oct_star,26,완제품: 아래 별 한 개 크기
16 oct_star_gap,-4,완제품: 별 사이(음수 = 겹침)
17 oct_band_h,32,완제품: 별 받침(짙은 둥근 띠 · 테마 chip · chip_dark) 높이
18 oct_band_y,20,완제품: 받침 위끝이 틀 아래끝에서 올라오는 양

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 7e70d4d0391d7104fb986f0b1dd9d7ba
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,75 @@
# 영웅 아이콘 얼굴 자리(Tools/hero_icon_crop.py 가 만듦 · 손으로 고치면 note 에 적고 도구를 다시 돌릴 때 확인) · 그림 = Units/<art>/front_idle/f000 · px · 왼쪽 위 원점 · y 아래로
# x · y = 자를 정사각 왼쪽 위 · side = 변(눈 간격 × 4.2) · w · h = 그림 크기(게임이 스프라이트 크기와 다르면 비율로 맞춤)
art,x,y,side,w,h,note
liubei,85.4,89.3,597.2,797,826,
guanyu,180.3,82.2,515.3,930,793,
zhangfei,214.8,128.3,446.5,883,976,
zhaoyun,199.2,118.5,421.7,851,976,
huangzhong,125.5,107.1,625.0,900,925,
zhugeliang,131.3,146.7,601.4,989,977,
zhoucang,130.1,60.3,727.9,937,948,
guanping,318.9,120.3,558.2,1017,864,
xushu,120.6,70.4,690.9,851,967,
taishici,173.5,127.4,617.0,873,924,
machao,276.2,181.4,359.5,936,975,
weiyan,131.8,132.9,536.3,775,865,
pangtong,102.0,107.7,688.0,839,938,
jiangwei,336.2,168.5,479.6,1001,870,
liufeng,240.8,154.3,402.4,900,976,
jianyong,99.9,26.4,692.2,828,841,
sunqian,89.4,84.4,637.1,796,906,
mizhu,-6.4,69.1,644.7,694,864,
cc_boss_caocao,250.5,152.2,567.0,928,944,
cc_boss_xiahoudun,206.9,145.9,434.3,907,976,
cc_boss_xuchu,82.7,63.7,650.6,950,976,손 보정: 표 눈 높이가 61 px 위(QA M)
dz_boss_zhangliao,253.0,196.5,401.9,933,976,
cc_boss_xuhuang,287.4,140.8,637.1,946,944,
cc_boss_zhanghe,296.2,195.6,471.7,1003,916,
cc_boss_caoren,155.0,163.2,622.0,907,977,
cc_boss_yujin,239.4,164.0,581.3,1009,970,
wei_boss_simayi,41.5,97.1,625.0,771,899,
xiahouyuan,188.2,150.8,527.5,820,896,
guojia,136.9,159.8,618.2,917,977,
jiaxu,122.6,182.2,614.9,948,976,
dianwei,160.5,14.8,703.1,984,935,
xunyu,145.8,101.7,596.4,806,904,
xiahoumao,274.2,178.9,387.7,905,977,
wanglang,101.2,111.5,577.5,804,883,
cc_boss_xiahouen,272.2,164.0,367.5,925,976,
wu_sunjian,212.5,19.3,719.0,972,970,
wu_zhouyu,171.8,112.7,572.5,914,913,
wu_huanggai,130.3,74.0,615.3,1017,872,
wu_ganning,143.5,147.5,617.0,842,976,
wu_chengpu,378.9,140.0,474.2,1016,798,손 보정: 살색 가운데가 얼굴보다 60 px 왼쪽(QA M)
sunce,252.2,153.2,403.6,925,976,
sunquan,26.3,136.1,627.5,763,914,
lusu,130.2,49.5,663.6,899,849,
lvmeng,212.7,141.4,618.7,870,975,
luxun,79.4,57.9,721.1,832,966,
sunshangxiang,129.1,139.4,557.8,726,827,
xiaoqiao,93.8,88.3,572.5,677,797,
lingtong,293.5,122.6,585.1,1017,943,
zhoutai,141.4,38.9,681.2,872,975,
zhugejin,65.6,36.2,672.8,793,922,
dongxi,312.0,175.7,488.0,1015,852,
dz_boss_lvbu,292.8,275.4,318.4,921,976,
hgj_boss_zhangjiao,193.6,136.6,620.8,936,945,
dz_boss_huaxiong,232.9,151.7,490.1,857,897,
ys_boss_yanliang,319.2,143.3,505.7,1017,850,
ys_boss_wenchou,234.6,149.6,370.9,909,977,
ys_gongsunzan,228.0,171.3,359.9,882,977,
dongzhuo,8.9,52.2,726.1,816,975,손 보정: 얼굴이 넓어 눈 간격이 머리 크기를 작게 잼 · 표 눈 높이가 89 px 아래(QA B)
lijue,191.9,162.2,392.3,842,977,
yuanshao,175.2,131.2,553.6,855,899,
yuanshu,2.7,116.7,650.6,774,975,
diaochan,198.0,103.0,520.0,857,812,
zhurong,324.9,148.8,498.1,1015,846,
menghuo,153.8,116.4,620.3,906,946,
dz_boss_gaoshun,102.4,127.9,555.2,769,899,
zhanglu,44.3,68.6,667.4,959,976,
yanbaihu,132.9,46.4,734.2,904,975,
hanxuan,339.6,160.0,476.7,1017,865,
jinxuan,152.8,134.7,538.4,771,876,
zhaofan,115.3,170.4,565.3,766,911,
zhangren,162.1,174.8,539.7,789,932,
chunyuqiong,228.4,130.9,403.2,895,977,
1 # 영웅 아이콘 얼굴 자리(Tools/hero_icon_crop.py 가 만듦 · 손으로 고치면 note 에 적고 도구를 다시 돌릴 때 확인) · 그림 = Units/<art>/front_idle/f000 · px · 왼쪽 위 원점 · y 아래로
2 # x · y = 자를 정사각 왼쪽 위 · side = 변(눈 간격 × 4.2) · w · h = 그림 크기(게임이 스프라이트 크기와 다르면 비율로 맞춤)
3 art,x,y,side,w,h,note
4 liubei,85.4,89.3,597.2,797,826,
5 guanyu,180.3,82.2,515.3,930,793,
6 zhangfei,214.8,128.3,446.5,883,976,
7 zhaoyun,199.2,118.5,421.7,851,976,
8 huangzhong,125.5,107.1,625.0,900,925,
9 zhugeliang,131.3,146.7,601.4,989,977,
10 zhoucang,130.1,60.3,727.9,937,948,
11 guanping,318.9,120.3,558.2,1017,864,
12 xushu,120.6,70.4,690.9,851,967,
13 taishici,173.5,127.4,617.0,873,924,
14 machao,276.2,181.4,359.5,936,975,
15 weiyan,131.8,132.9,536.3,775,865,
16 pangtong,102.0,107.7,688.0,839,938,
17 jiangwei,336.2,168.5,479.6,1001,870,
18 liufeng,240.8,154.3,402.4,900,976,
19 jianyong,99.9,26.4,692.2,828,841,
20 sunqian,89.4,84.4,637.1,796,906,
21 mizhu,-6.4,69.1,644.7,694,864,
22 cc_boss_caocao,250.5,152.2,567.0,928,944,
23 cc_boss_xiahoudun,206.9,145.9,434.3,907,976,
24 cc_boss_xuchu,82.7,63.7,650.6,950,976,손 보정: 표 눈 높이가 61 px 위(QA M)
25 dz_boss_zhangliao,253.0,196.5,401.9,933,976,
26 cc_boss_xuhuang,287.4,140.8,637.1,946,944,
27 cc_boss_zhanghe,296.2,195.6,471.7,1003,916,
28 cc_boss_caoren,155.0,163.2,622.0,907,977,
29 cc_boss_yujin,239.4,164.0,581.3,1009,970,
30 wei_boss_simayi,41.5,97.1,625.0,771,899,
31 xiahouyuan,188.2,150.8,527.5,820,896,
32 guojia,136.9,159.8,618.2,917,977,
33 jiaxu,122.6,182.2,614.9,948,976,
34 dianwei,160.5,14.8,703.1,984,935,
35 xunyu,145.8,101.7,596.4,806,904,
36 xiahoumao,274.2,178.9,387.7,905,977,
37 wanglang,101.2,111.5,577.5,804,883,
38 cc_boss_xiahouen,272.2,164.0,367.5,925,976,
39 wu_sunjian,212.5,19.3,719.0,972,970,
40 wu_zhouyu,171.8,112.7,572.5,914,913,
41 wu_huanggai,130.3,74.0,615.3,1017,872,
42 wu_ganning,143.5,147.5,617.0,842,976,
43 wu_chengpu,378.9,140.0,474.2,1016,798,손 보정: 살색 가운데가 얼굴보다 60 px 왼쪽(QA M)
44 sunce,252.2,153.2,403.6,925,976,
45 sunquan,26.3,136.1,627.5,763,914,
46 lusu,130.2,49.5,663.6,899,849,
47 lvmeng,212.7,141.4,618.7,870,975,
48 luxun,79.4,57.9,721.1,832,966,
49 sunshangxiang,129.1,139.4,557.8,726,827,
50 xiaoqiao,93.8,88.3,572.5,677,797,
51 lingtong,293.5,122.6,585.1,1017,943,
52 zhoutai,141.4,38.9,681.2,872,975,
53 zhugejin,65.6,36.2,672.8,793,922,
54 dongxi,312.0,175.7,488.0,1015,852,
55 dz_boss_lvbu,292.8,275.4,318.4,921,976,
56 hgj_boss_zhangjiao,193.6,136.6,620.8,936,945,
57 dz_boss_huaxiong,232.9,151.7,490.1,857,897,
58 ys_boss_yanliang,319.2,143.3,505.7,1017,850,
59 ys_boss_wenchou,234.6,149.6,370.9,909,977,
60 ys_gongsunzan,228.0,171.3,359.9,882,977,
61 dongzhuo,8.9,52.2,726.1,816,975,손 보정: 얼굴이 넓어 눈 간격이 머리 크기를 작게 잼 · 표 눈 높이가 89 px 아래(QA B)
62 lijue,191.9,162.2,392.3,842,977,
63 yuanshao,175.2,131.2,553.6,855,899,
64 yuanshu,2.7,116.7,650.6,774,975,
65 diaochan,198.0,103.0,520.0,857,812,
66 zhurong,324.9,148.8,498.1,1015,846,
67 menghuo,153.8,116.4,620.3,906,946,
68 dz_boss_gaoshun,102.4,127.9,555.2,769,899,
69 zhanglu,44.3,68.6,667.4,959,976,
70 yanbaihu,132.9,46.4,734.2,904,975,
71 hanxuan,339.6,160.0,476.7,1017,865,
72 jinxuan,152.8,134.7,538.4,771,876,
73 zhaofan,115.3,170.4,565.3,766,911,
74 zhangren,162.1,174.8,539.7,789,932,
75 chunyuqiong,228.4,130.9,403.2,895,977,

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 3102c4f44a036824e8de9d9a971ac349
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -2638,6 +2638,22 @@ MonoBehaviour:
pack: {fileID: 0} pack: {fileID: 0}
samguk: {fileID: 21300000, guid: 6c9d7d2d0d4ab4846a963e7cbe5a9cd8, type: 3} samguk: {fileID: 21300000, guid: 6c9d7d2d0d4ab4846a963e7cbe5a9cd8, type: 3}
tint: {r: 1, g: 1, b: 1, a: 1} tint: {r: 1, g: 1, b: 1, a: 1}
- id: hi_oct_fill
pack: {fileID: 0}
samguk: {fileID: 21300000, guid: 1b70f96cf073fc34bbcac384f3c12a64, type: 3}
tint: {r: 1, g: 1, b: 1, a: 1}
- id: hi_oct_frame
pack: {fileID: 0}
samguk: {fileID: 21300000, guid: d4b24ec39d391e441a5badfc2e70b818, type: 3}
tint: {r: 1, g: 1, b: 1, a: 1}
- id: hi_oct_light
pack: {fileID: 0}
samguk: {fileID: 21300000, guid: d427c5703c6a7d8419796ae0b49ab7df, type: 3}
tint: {r: 1, g: 1, b: 1, a: 1}
- id: hi_shard_badge
pack: {fileID: 0}
samguk: {fileID: 21300000, guid: 096bf23340ee25a489adcf3cdcf7c109, type: 3}
tint: {r: 1, g: 1, b: 1, a: 1}
- id: lobby_camp_card - id: lobby_camp_card
pack: {fileID: 0} pack: {fileID: 0}
samguk: {fileID: 21300000, guid: ed700fecd6c48f04b9f15b85d0ffabca, type: 3} samguk: {fileID: 21300000, guid: ed700fecd6c48f04b9f15b85d0ffabca, type: 3}

View File

@ -569,8 +569,9 @@ namespace TKS.OutGame
if (it != null && it.kind == "hero") if (it != null && it.kind == "hero")
{ {
var h = S.Db.Heroes.Get(it.arg); var h = S.Db.Heroes.Get(it.arg);
if (!bare) return HeroIcons.Badge(p, name, x, y, size, h, 0); // 완제품 영웅 = 팔각 금테(PD 2026-11-26 HB안 · 조각과 구별)
var fz = L("face"); var fz = L("face");
return UiKit.Portrait(name, p, h, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(x, -y), new Vector2(size, size), true, At(fz, 0), bare ? Color.clear : Col(fz, 1)); return UiKit.Portrait(name, p, h, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(x, -y), new Vector2(size, size), true, At(fz, 0), Color.clear);
} }
string icon = it != null ? it.icon : id; string icon = it != null ? it.icon : id;
if (icon.Contains("/")) if (icon.Contains("/"))

View File

@ -0,0 +1,225 @@
using System.Collections.Generic;
using System.Globalization;
using UnityEngine;
using UnityEngine.UI;
namespace TKS.OutGame
{
/// <summary>
/// 영웅 아이콘 2종(PD 2026-11-26 「영웅 조각 = 직소 퍼즐 형태 · 완제품 영웅 아이콘은 조각과 차이가 있도록」 · 목업 선택 = 조각 SB안 · 완제품 HB안).
/// ① 조각(Shard) = 보상 칸(UiKit.ItemSlot · 색 = 태생 ★) 안에 얼굴 가득 + 칸 테두리를 얼굴 위에 다시 + 왼쪽 위 금빛 직소 배지(hi_shard_badge · 왼쪽 홈 없음) + 수량 칩.
/// ② 완제품(Badge) = 팔각 금테(hi_oct_frame) · ★색 바탕(hi_oct_fill × card_star&lt;n&gt;_bg + hi_oct_light × card_star&lt;n&gt;_glow) · 팔각으로 잘린 얼굴 · 왼쪽 위 진영 · 아래 별 받침.
/// 얼굴 = 영웅 그림 f000 의 머리 · 어깨 정사각(표 UI/HeroIcon/hero_icon_crop · Tools/hero_icon_crop.py) · 배치 값 = 표 UI/HeroIcon/hero_icon(C45).
/// 보상 줄에서는 아이콘 id 「hshard:&lt;영웅 id&gt;」 로 부른다(UiKit.RewardTile · UiKit.Icon 이 알아봄 · GoodsUi.Icon 이 영웅 조각에 붙임).
/// </summary>
public static class HeroIcons
{
public const string Table = "UI/HeroIcon/hero_icon";
public const string ShardPrefix = "hshard:";
static Dictionary<string, string> cfg;
static Dictionary<string, float[]> crops;
static HeroDb heroDb;
static string Cfg(string key)
{
if (cfg == null)
{
cfg = new Dictionary<string, string>();
var rows = UiText.Rows(Table);
if (rows == null) Debug.LogWarning("[TKS] 영웅 아이콘 표 없음: " + Table);
else
foreach (var r in rows)
{
string k, v;
if (r.TryGetValue("key", out k) && k.Length > 0 && r.TryGetValue("value", out v)) cfg[k] = v;
}
}
string s;
return cfg.TryGetValue(key, out s) ? s : "";
}
/// <summary>표 값(기준 칸 px) × 지금 크기 ÷ 기준 칸.</summary>
static float V(string key, float size)
{
float v, refSize;
if (!float.TryParse(Cfg(key), NumberStyles.Float, CultureInfo.InvariantCulture, out v)) return 0f;
if (!float.TryParse(Cfg("ref"), NumberStyles.Float, CultureInfo.InvariantCulture, out refSize) || refSize <= 0f) refSize = 132f;
return v * size / refSize;
}
/// <summary>표 값 그대로(비율 등 크기와 무관한 값 · 없으면 d).</summary>
static float R(string key, float d)
{
float v;
return float.TryParse(Cfg(key), NumberStyles.Float, CultureInfo.InvariantCulture, out v) ? v : d;
}
/// <summary>얼굴 자리(그림 px · x · y · side · w · h) — 없으면 null(그림 위쪽 가운데로 대체).</summary>
public static float[] CropOf(string art)
{
if (crops == null)
{
crops = new Dictionary<string, float[]>();
var rows = UiText.Rows(Cfg("crop_table"));
if (rows == null) Debug.LogWarning("[TKS] 영웅 얼굴 자리 표 없음: " + Cfg("crop_table"));
else
foreach (var r in rows)
{
string a;
if (!r.TryGetValue("art", out a) || a.Length == 0) continue;
var f = new float[5];
string[] keys = { "x", "y", "side", "w", "h" };
bool ok = true;
for (int i = 0; i < keys.Length && ok; i++)
{
string s;
ok = r.TryGetValue(keys[i], out s) && float.TryParse(s, NumberStyles.Float, CultureInfo.InvariantCulture, out f[i]);
}
if (ok) crops[a] = f;
}
}
float[] c;
return art != null && crops.TryGetValue(art, out c) ? c : null;
}
public static HeroDb.Hero Hero(string id)
{
if (heroDb == null) heroDb = Resources.Load<HeroDb>("OutGame/HeroDb");
return heroDb != null ? heroDb.Get(id) : null;
}
/// <summary>보상 아이콘 id 가 영웅 조각이면 영웅(아니면 null).</summary>
public static HeroDb.Hero ShardHero(string icon)
{
return !string.IsNullOrEmpty(icon) && icon.StartsWith(ShardPrefix) ? Hero(icon.Substring(ShardPrefix.Length)) : null;
}
/// <summary>★ → 보상 칸 색 묶음(영웅 카드 = 1 녹 · 2 파랑 · 3 보라 · 4 주황 · 5 붉음 · PD 2026-11-19).</summary>
public static string SlotPrefix(int star)
{
switch (Mathf.Clamp(star, 1, 5))
{
case 1: return "gear_green_";
case 2: return "gear_blue_";
case 3: return "gear_purple_";
case 4: return "gear_orange_";
}
return "grade_red_";
}
/// <summary>얼굴(box 를 꽉 채우는 머리 · 어깨 · box 에 RectMask2D 또는 Mask 가 있어야 밖이 잘림).</summary>
public static Image Face(RectTransform box, HeroDb.Hero h, Vector2 boxSize)
{
var sp = h != null ? UiKit.ArtSprite(h.art) : null;
if (sp == null) return null;
var rt = UiKit.Rect("Face", box, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(0f, 0f), Vector2.zero);
rt.pivot = new Vector2(0f, 1f);
var img = rt.gameObject.AddComponent<Image>();
img.sprite = sp;
img.raycastTarget = false;
var c = CropOf(h.art);
float sw = sp.rect.width, sh = sp.rect.height;
float x, y, side;
if (c != null)
{
float k = c[3] > 0f ? sw / c[3] : 1f; // 표 그림 크기 ≠ 스프라이트 크기면 비율로
x = c[0] * k;
y = c[1] * k;
side = c[2] * k;
}
else
{
side = sw * 0.75f;
x = (sw - side) * 0.5f;
y = 0f;
}
float s = boxSize.x / Mathf.Max(1f, side);
rt.sizeDelta = new Vector2(sw * s, sh * s);
rt.anchoredPosition = new Vector2(-x * s, y * s);
return img;
}
/// <summary>
/// ① 영웅 조각(SB안) — cell(정사각 · 칸 크기 size) 안에 보상 칸 + 얼굴 + 칸 테두리 + 직소 배지 + 수량(qty 비면 없음).
/// 칸 색 = 태생 ★(조각은 영웅 종류의 것 · 보유 ★ 와 무관).
/// </summary>
public static void Shard(RectTransform cell, HeroDb.Hero h, float size, string qty, bool lit = true)
{
int star = h != null ? Mathf.Max(1, h.rarity) : 1;
UiKit.ItemSlot(cell, SlotPrefix(star), lit);
// 얼굴 = 칸 바탕(item_bg · 9 분할 둥근 모서리)과 같은 모양으로 자름 — 모서리 반경은 칸 크기와 무관하게 같아서 네모 자르기는 작은 칸(90 px)에서 모서리 밖으로 나옴(QA r2 B)
float clip = V("shard_clip", size), inset = V("shard_inset", size);
var cm = UiKit.Fill("FaceClip", cell, clip, clip, clip, clip);
UiKit.Skin(cm, "item_bg", Color.white);
cm.gameObject.AddComponent<Mask>().showMaskGraphic = false;
float d = inset - clip;
var box = UiKit.Fill("FaceBox", cm, d, d, d, d);
Face(box, h, new Vector2(size - inset * 2f, size - inset * 2f));
UiKit.Layer(cell, "Border2", "item_border", UiKit.Col("gear_border", UiKit.Line)); // 얼굴 위에 칸 테두리(모서리 덮기)
float bs = V("shard_badge", size), bo = V("shard_badge_off", size);
var badge = UiKit.Icon(cell, "hi_shard_badge", new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(bo, -bo), bs);
if (badge != null) badge.raycastTarget = false;
if (!string.IsNullOrEmpty(qty)) UiKit.QtyChip(cell, qty, size >= 120f ? 30 : 24);
}
/// <summary>
/// ② 완제품 영웅(HB안) — 왼쪽 위 (x, y) 정사각 size · star = 보유 ★(없으면 태생 ★) · 팔각 금테 + ★색 바탕 + 얼굴 + 진영 + 별 받침.
/// </summary>
public static RectTransform Badge(Transform p, string name, float x, float y, float size, HeroDb.Hero h, int star)
{
if (star <= 0) star = h != null ? Mathf.Max(1, h.rarity) : 1;
star = Mathf.Clamp(star, 1, 5);
var root = UiKit.At(p, name, x, y, size, size);
var fill = UiKit.Fill("Fill", root);
var fi = fill.gameObject.AddComponent<Image>();
fi.sprite = UISkin.Icon("hi_oct_fill");
fi.color = UiKit.Col("card_star" + star + "_bg", UiKit.Purple);
fi.raycastTarget = false;
var light = UiKit.Fill("Light", root).gameObject.AddComponent<Image>();
light.sprite = UISkin.Icon("hi_oct_light");
light.color = UiKit.Col("card_star" + star + "_glow", Color.white);
light.raycastTarget = false;
// 얼굴 = 팔각 마스크(hi_oct_fill 모양 · 마스크 그림은 그리지 않음)
float inset = V("oct_inset", size);
var mrt = UiKit.Fill("FaceMask", root);
var mimg = mrt.gameObject.AddComponent<Image>();
mimg.sprite = UISkin.Icon("hi_oct_fill");
mimg.raycastTarget = false;
mrt.gameObject.AddComponent<Mask>().showMaskGraphic = false;
var box = UiKit.Fill("FaceBox", mrt, inset, inset, inset, inset);
Face(box, h, new Vector2(size - inset * 2f, size - inset * 2f));
var frame = UiKit.Fill("Frame", root).gameObject.AddComponent<Image>();
frame.sprite = UISkin.Icon("hi_oct_frame");
frame.raycastTarget = false;
// 왼쪽 위 진영
float fd = V("oct_faction", size), fo = V("oct_faction_off", size);
if (h != null) UiKit.DropShadow(UiKit.FactionBadge(root, h.faction, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(fo, -fo), fd), 2f);
// 오른쪽 위 병종(PD 2026-11-26 「영웅 아이콘 우측 상단에 병종 아이콘도 추가」) — 진영 배지와 같은 원 틀(짙은 바탕) + 영웅 카드와 같은 병종 그림(TypeSymbolId)
float cd = V("oct_class", size), co = V("oct_class_off", size);
if (h != null)
{
var ring = UiKit.Skin(UiKit.Rect("Class", root, new Vector2(1f, 1f), new Vector2(1f, 1f), new Vector2(-co, -co), new Vector2(cd, cd)), "circle_frame", UiKit.Col("chip_dark", UiKit.Dark));
ring.preserveAspect = true;
var inner = UiKit.Rect("In", ring.transform, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, new Vector2(cd * 0.72f, cd * 0.72f)).gameObject.AddComponent<Image>();
inner.sprite = UiKit.Circle;
inner.color = UiKit.Col("chip_dark", UiKit.Dark);
inner.raycastTarget = false;
var sym = UiKit.Icon(ring.transform, UiKit.TypeSymbolId(h.type), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, cd * R("oct_class_icon", 0.76f));
if (sym != null) sym.raycastTarget = false;
else UiKit.Title(UiKit.FillLabel(ring.transform, UnitTypeInfo.Mark(h.type), Mathf.RoundToInt(cd * 0.48f), UiKit.White), true);
UiKit.DropShadow(ring, 2f);
}
// 아래 별 받침
float ss = V("oct_star", size), gap = V("oct_star_gap", size), bh = V("oct_band_h", size);
float bw = star * ss + (star - 1) * gap + bh * 0.5f;
var band = UiKit.Rect("Stars", root, new Vector2(0.5f, 0f), new Vector2(0.5f, 1f), new Vector2(0f, V("oct_band_y", size)), new Vector2(bw, bh));
UiKit.Skin(band, "chip", UiKit.Col("chip_dark", UiKit.Dark));
for (int i = 0; i < star; i++)
{
var st = UiKit.Icon(band, "star_on", new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2((i - (star - 1) * 0.5f) * (ss + gap), 1f), ss);
if (st != null) st.raycastTarget = false;
}
return root;
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 29056a705c2988145bfcd883acf0e44a

View File

@ -1119,7 +1119,7 @@ namespace TKS.OutGame
{ {
var names = new List<string>(); var names = new List<string>();
foreach (var hid in sdh.hardShardHeroes) names.Add(Session.Def(hid) != null ? Session.Def(hid).nameKo : hid); foreach (var hid in sdh.hardShardHeroes) names.Add(Session.Def(hid) != null ? Session.Def(hid).nameKo : hid);
tiles.Add(new[] { "cur_shard", Mathf.RoundToInt(hm.bossShardPct) + "%", "gear_purple_", string.Join("·", names.ToArray()) + " 조각", "" }); tiles.Add(new[] { HeroIcons.ShardPrefix + sdh.hardShardHeroes[0], Mathf.RoundToInt(hm.bossShardPct) + "%", "gear_purple_", string.Join("·", names.ToArray()) + " 조각", "" }); // 하드 보스 영웅 조각 = 그 영웅 얼굴 직소 칸(PD 2026-11-26 SB안 · 여럿이면 첫 영웅 · 이름은 아래 글)
} }
} }
// 장비 = 그 장 등급(gear_drop_chapters) · 지정 장비 아이콘 + 「확률 ↑」(2026-11-20 장비 등급 드랍 §2-2-4) // 장비 = 그 장 등급(gear_drop_chapters) · 지정 장비 아이콘 + 「확률 ↑」(2026-11-20 장비 등급 드랍 §2-2-4)

View File

@ -290,7 +290,7 @@ namespace TKS.OutGame
case "tome": return "ic_tome"; case "tome": return "ic_tome";
case "gear": return "cur_gear"; case "gear": return "cur_gear";
case "chest": return "chest_" + g.key; case "chest": return "chest_" + g.key;
case "shard": return "cur_shard"; case "shard": return HeroIcons.Hero(g.key) != null ? HeroIcons.ShardPrefix + g.key : "cur_shard"; // 영웅 조각 = 그 영웅 얼굴 직소 칸(PD 2026-11-26 SB안) · 보물 조각 = 그대로
} }
return IconOfKey(db, g.key); return IconOfKey(db, g.key);
} }

View File

@ -369,6 +369,12 @@ namespace TKS.OutGame
public static RectTransform RewardTile(Transform p, string name, float x, float y, float size, string prefix, string icon, string qty, bool lit) public static RectTransform RewardTile(Transform p, string name, float x, float y, float size, string prefix, string icon, string qty, bool lit)
{ {
var cell = At(p, name, x, y, size, size); var cell = At(p, name, x, y, size, size);
var hero = HeroIcons.ShardHero(icon);
if (hero != null) // 영웅 조각 = 칸 색 태생 ★ + 얼굴 + 직소 배지(PD 2026-11-26 SB안 · prefix 무시)
{
HeroIcons.Shard(cell, hero, size, qty, lit);
return cell;
}
ItemSlot(cell, prefix, lit); ItemSlot(cell, prefix, lit);
var ic = Icon(cell, icon, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0f, 4f), size * 0.68f); var ic = Icon(cell, icon, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0f, 4f), size * 0.68f);
DropShadow(ic, 4f); DropShadow(ic, 4f);
@ -455,6 +461,16 @@ namespace TKS.OutGame
/// <summary>아이콘(테마 id · 없으면 null).</summary> /// <summary>아이콘(테마 id · 없으면 null).</summary>
public static Image Icon(Transform parent, string id, Vector2 anchor, Vector2 pivot, Vector2 pos, float size) public static Image Icon(Transform parent, string id, Vector2 anchor, Vector2 pivot, Vector2 pos, float size)
{ {
var hero = HeroIcons.ShardHero(id);
if (hero != null) // 영웅 조각 아이콘(「hshard:<영웅 id>」 · 보상 칸 밖에서 쓰일 때 = 작은 조각 칸 그대로)
{
var cell = Rect("Icon_" + id, parent, anchor, pivot, pos, new Vector2(size, size));
HeroIcons.Shard(cell, hero, size, null);
var hit = cell.gameObject.AddComponent<Image>();
hit.color = Color.clear;
hit.raycastTarget = false;
return hit;
}
return UISkin.IconImage(parent, id, anchor, pivot, pos, new Vector2(size, size)); return UISkin.IconImage(parent, id, anchor, pivot, pos, new Vector2(size, size));
} }

View File

@ -390,9 +390,55 @@ namespace TKS.OutGame
wm.ModeRequested(); wm.ModeRequested();
yield return Wait(); yield return Wait();
yield return Shot(cam, "worldmap_hard", W, H); yield return Shot(cam, "worldmap_hard", W, H);
if (only == null || Match("worldmap_popup_hard_boss") != null) // 하드 보스 스테이지 팝업 = 영웅 조각 칸(직소 · PD 2026-11-26 SB안)
{
// 하드 조각 영웅이 있는 보스 = 1장 마지막 보스(stage_drop l_hard_shard_hero · 1-10 장각) — 그 장을 잠깐 보여 주고 되돌림
int back = wm.Chapter;
wm.ShowChapter(0);
yield return Wait();
int bossNode = -1;
for (int i = wm.NodesIn(0) - 1; i >= 0 && bossNode < 0; i--)
{
int si = wm.StageIndexOf(0, i);
if (si >= 0 && root.Battle.Config.stages[si].kind == StageKind.Boss) bossNode = i;
}
if (bossNode >= 0)
{
wm.OpenPopup(bossNode);
yield return Wait();
yield return Shot(cam, "worldmap_popup_hard_boss", W, H);
wm.ClosePopup();
yield return Wait();
}
wm.ShowChapter(back);
yield return Wait();
}
wm.ModeRequested(); wm.ModeRequested();
yield return Wait(); yield return Wait();
} }
if (only == null || Match("hero_icons") != null) // 영웅 조각(SB · 직소) · 완제품(HB · 팔각) 아이콘 게임 조립 확인(PD 2026-11-26) — 임시 캔버스 · 찍고 지움
{
var go = new GameObject("HeroIconCheck");
UiLayer.Root(go, cam, 900, 0.4f, new Vector2(W, H), UiRate.Static, false);
var bg = UiKit.Fill("Bg", go.transform).gameObject.AddComponent<UnityEngine.UI.Image>();
bg.color = new Color(0.965f, 0.914f, 0.8f, 1f); // 팝업 양피지 색(목업 바탕과 같음)
string[][] shards = { new[] { "liubei", "12" }, new[] { "guanyu", "7" }, new[] { "guanping", "3" }, new[] { "caocao", "25" }, new[] { "diaochan", "1" } };
for (int i = 0; i < shards.Length; i++)
UiKit.RewardTile(go.transform, "Shard" + i, 60f + i * 196f, 300f, 132f, "gear_white_", HeroIcons.ShardPrefix + shards[i][0], shards[i][1], true);
string[] heroes = { "liubei", "zhaoyun", "lvbu", "guanping", "sunquan" };
int[] stars = { 3, 4, 5, 2, 1 };
for (int i = 0; i < heroes.Length; i++) HeroIcons.Badge(go.transform, "Hero" + i, 60f + i * 196f, 560f, 132f, HeroIcons.Hero(heroes[i]), stars[i]);
// 작은 크기(보상 줄 아이콘 68 % · 이벤트 칸 크기 근처)
for (int i = 0; i < 5; i++)
{
UiKit.Icon(go.transform, HeroIcons.ShardPrefix + shards[i][0], new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(60f + i * 196f, -820f), 90f);
HeroIcons.Badge(go.transform, "HeroS" + i, 60f + i * 196f, 960f, 90f, HeroIcons.Hero(heroes[i]), stars[i]);
}
yield return Wait();
yield return Shot(cam, "hero_icons", W, H);
Object.Destroy(go);
yield return Wait();
}
if (only == null || Match("worldmap_progress") != null) // 장 중간 진행(5칸 깸 · 6칸 = 지금 칸 · 앞 칸 안 보임 · PD 2026-11-26) — 메모리 진행만 바꾸고 세이브로 되돌림 if (only == null || Match("worldmap_progress") != null) // 장 중간 진행(5칸 깸 · 6칸 = 지금 칸 · 앞 칸 안 보임 · PD 2026-11-26) — 메모리 진행만 바꾸고 세이브로 되돌림
{ {
int wch = wm.Chapter; int wch = wm.Chapter;

View File

@ -262,6 +262,10 @@ SpriteAtlasAsset:
- {fileID: 2800000, guid: def91387a43563446bec42d3bb438eec, type: 3} - {fileID: 2800000, guid: def91387a43563446bec42d3bb438eec, type: 3}
- {fileID: 2800000, guid: 31aa975020e0e474da35b078de813def, type: 3} - {fileID: 2800000, guid: 31aa975020e0e474da35b078de813def, type: 3}
- {fileID: 2800000, guid: 1f01d9a0db8614e4e8a3989c563a8be8, type: 3} - {fileID: 2800000, guid: 1f01d9a0db8614e4e8a3989c563a8be8, type: 3}
- {fileID: 2800000, guid: 1b70f96cf073fc34bbcac384f3c12a64, type: 3}
- {fileID: 2800000, guid: d4b24ec39d391e441a5badfc2e70b818, type: 3}
- {fileID: 2800000, guid: d427c5703c6a7d8419796ae0b49ab7df, type: 3}
- {fileID: 2800000, guid: 096bf23340ee25a489adcf3cdcf7c109, type: 3}
- {fileID: 2800000, guid: 5a4f834829d278b45807d4a934c7f77b, type: 3} - {fileID: 2800000, guid: 5a4f834829d278b45807d4a934c7f77b, type: 3}
- {fileID: 2800000, guid: ed700fecd6c48f04b9f15b85d0ffabca, type: 3} - {fileID: 2800000, guid: ed700fecd6c48f04b9f15b85d0ffabca, type: 3}
- {fileID: 2800000, guid: 4c6fb94db47bec645aa70edece90965e, type: 3} - {fileID: 2800000, guid: 4c6fb94db47bec645aa70edece90965e, type: 3}

View File

@ -38,6 +38,6 @@ SpriteAtlasImporter:
secondaryTextureSettings: {} secondaryTextureSettings: {}
variantMultiplier: 1 variantMultiplier: 1
bindAsDefault: 1 bindAsDefault: 1
userData: 52e86b1d2e42769cad79c65a020049e2 userData: 19400179fad1fab49e3cf63dba760c19
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c27b007f9071d3c46a60175577a05e83
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,168 @@
fileFormatVersion: 2
guid: 1b70f96cf073fc34bbcac384f3c12a64
TextureImporter:
internalIDToNameTable:
- first:
213: -1204803339574185988
second: hi_oct_fill_0
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 1024
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: hi_oct_fill_0
rect:
serializedVersion: 2
x: 16
y: 16
width: 232
height: 232
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: cffe978febda74fe0800000000000000
internalID: -1204803339574185988
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -0,0 +1,168 @@
fileFormatVersion: 2
guid: d4b24ec39d391e441a5badfc2e70b818
TextureImporter:
internalIDToNameTable:
- first:
213: 199463803884617991
second: hi_oct_frame_0
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 1024
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: hi_oct_frame_0
rect:
serializedVersion: 2
x: 0
y: 0
width: 264
height: 264
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 7014718d543a4c200800000000000000
internalID: 199463803884617991
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -0,0 +1,168 @@
fileFormatVersion: 2
guid: d427c5703c6a7d8419796ae0b49ab7df
TextureImporter:
internalIDToNameTable:
- first:
213: 3201334475337200589
second: hi_oct_light_0
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 1024
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: hi_oct_light_0
rect:
serializedVersion: 2
x: 17
y: 35
width: 231
height: 211
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: dc37fa17ebc6d6c20800000000000000
internalID: 3201334475337200589
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -0,0 +1,168 @@
fileFormatVersion: 2
guid: 096bf23340ee25a489adcf3cdcf7c109
TextureImporter:
internalIDToNameTable:
- first:
213: -3912066739711492756
second: hi_shard_badge_0
externalObjects: {}
serializedVersion: 13
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 4
buildTarget: DefaultTexturePlatform
maxTextureSize: 1024
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: hi_shard_badge_0
rect:
serializedVersion: 2
x: 10
y: 10
width: 78
height: 78
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: c6d30e9f60c85b9c0800000000000000
internalID: -3912066739711492756
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -64,6 +64,10 @@ gim_thorn,gimmick,Assets/Resources/Gimmicks/Art/gim_thorn.png,bfa135a5a83bb9a283
gim_trap,gimmick,Assets/Resources/Gimmicks/Art/gim_trap.png,75d2afff2f8eb8e024cf9337faa6d7b3,ui_gimmick gim_trap,gimmick,Assets/Resources/Gimmicks/Art/gim_trap.png,75d2afff2f8eb8e024cf9337faa6d7b3,ui_gimmick
gim_trap_open,gimmick,Assets/Resources/Gimmicks/Art/gim_trap_open.png,bb6efc7aea917b4c11a7609012b23cef,ui_gimmick gim_trap_open,gimmick,Assets/Resources/Gimmicks/Art/gim_trap_open.png,bb6efc7aea917b4c11a7609012b23cef,ui_gimmick
gim_wall,gimmick,Assets/Resources/Gimmicks/Art/gim_wall.png,aae64ec2411bb06ac8c1ec452a2fb208,ui_gimmick gim_wall,gimmick,Assets/Resources/Gimmicks/Art/gim_wall.png,aae64ec2411bb06ac8c1ec452a2fb208,ui_gimmick
hi_oct_fill,hero_icon,Assets/UI/Samguk/hero_icon/hi_oct_fill.png,c1b107f67969efb4e46d286ba324b30d,ui_hero_icon
hi_oct_frame,hero_icon,Assets/UI/Samguk/hero_icon/hi_oct_frame.png,ecf09dbe664d8f5977547c3d11baff05,ui_hero_icon
hi_oct_light,hero_icon,Assets/UI/Samguk/hero_icon/hi_oct_light.png,e2ee8ecb53bda82ff09b7dac7e91b8cb,ui_hero_icon
hi_shard_badge,hero_icon,Assets/UI/Samguk/hero_icon/hi_shard_badge.png,fa82d81ce66bca5c0e921035657ef57c,ui_hero_icon
logo_title,logo_skill,Assets/UI/Samguk/logo_skill/logo_title.png,560ab20ce7c41149310f4be21f2cc26e,ui_logo_skill logo_title,logo_skill,Assets/UI/Samguk/logo_skill/logo_title.png,560ab20ce7c41149310f4be21f2cc26e,ui_logo_skill
skill_archer_a,logo_skill,Assets/UI/Samguk/logo_skill/skill_archer_a.png,bc85419f7b1b51a614a1beae08066afd,ui_logo_skill skill_archer_a,logo_skill,Assets/UI/Samguk/logo_skill/skill_archer_a.png,bc85419f7b1b51a614a1beae08066afd,ui_logo_skill
skill_archer_p,logo_skill,Assets/UI/Samguk/logo_skill/skill_archer_p.png,ffa6cb970963ced244febe7ae77eeff0,ui_logo_skill skill_archer_p,logo_skill,Assets/UI/Samguk/logo_skill/skill_archer_p.png,ffa6cb970963ced244febe7ae77eeff0,ui_logo_skill

1 id group path md5 batch
64 gim_trap gimmick Assets/Resources/Gimmicks/Art/gim_trap.png 75d2afff2f8eb8e024cf9337faa6d7b3 ui_gimmick
65 gim_trap_open gimmick Assets/Resources/Gimmicks/Art/gim_trap_open.png bb6efc7aea917b4c11a7609012b23cef ui_gimmick
66 gim_wall gimmick Assets/Resources/Gimmicks/Art/gim_wall.png aae64ec2411bb06ac8c1ec452a2fb208 ui_gimmick
67 hi_oct_fill hero_icon Assets/UI/Samguk/hero_icon/hi_oct_fill.png c1b107f67969efb4e46d286ba324b30d ui_hero_icon
68 hi_oct_frame hero_icon Assets/UI/Samguk/hero_icon/hi_oct_frame.png ecf09dbe664d8f5977547c3d11baff05 ui_hero_icon
69 hi_oct_light hero_icon Assets/UI/Samguk/hero_icon/hi_oct_light.png e2ee8ecb53bda82ff09b7dac7e91b8cb ui_hero_icon
70 hi_shard_badge hero_icon Assets/UI/Samguk/hero_icon/hi_shard_badge.png fa82d81ce66bca5c0e921035657ef57c ui_hero_icon
71 logo_title logo_skill Assets/UI/Samguk/logo_skill/logo_title.png 560ab20ce7c41149310f4be21f2cc26e ui_logo_skill
72 skill_archer_a logo_skill Assets/UI/Samguk/logo_skill/skill_archer_a.png bc85419f7b1b51a614a1beae08066afd ui_logo_skill
73 skill_archer_p logo_skill Assets/UI/Samguk/logo_skill/skill_archer_p.png ffa6cb970963ced244febe7ae77eeff0 ui_logo_skill

148
Tools/hero_icon_crop.py Normal file
View File

@ -0,0 +1,148 @@
# -*- coding: utf-8 -*-
"""영웅 아이콘(조각 · 완제품) 얼굴 자리 표 만들기(PD 2026-11-26 「영웅 조각 = 직소 · 완제품 아이콘」) → Assets/Resources/UI/HeroIcon/hero_icon_crop.csv.
영웅 그림 Units/<art>/front_idle/f000.png 에서 머리 · 어깨 정사각(그림 px · 왼쪽 위 원점 · y 아래로):
- 얼굴 가운데 = 살색(색상 0~35° · 채도 0.1~0.62 · 밝기 > 0.55 · 관우 붉은 얼굴 포함)이 가장 몰린 줄 띠(그림 위쪽 60 %)의 가운데
- 변 = 눈 간격(Units/art_size.csv eye_px · 말 탄 영웅은 그림이 작게 그려져 눈 간격으로 같은 머리 크기) × EYE_K · 얼굴 가운데가 위에서 UP 비율 자리
그림을 바꾸거나 영웅을 더하면 다시 돌린다: python -I Tools/hero_icon_crop.py [--sheet 확인.png]
"""
import csv, io, os, re, sys
from PIL import Image
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
RES = os.path.join(ROOT, "Assets", "Resources")
OUT = os.path.join(RES, "UI", "HeroIcon", "hero_icon_crop.csv")
EYE_K = 4.2
UP = 0.48 # 눈 높이가 위에서 이 비율 자리
# 손 보정(art_size 눈 실측이 어긋난 영웅 · QA 2026-11-26 72명 시트 · 110 px 칸 기준 실측을 그림 px 로 옮김)
# side_k = 변 배율 · eye_dy = 실제 눈 높이 - 표 눈 높이(px · 음수 = 위) · dx = 얼굴 가운데 - 살색 가운데(px)
FIX = {
"dongzhuo": {"side_k": 1.43, "eye_dy": -89.0, "dx": 0.0, "why": "얼굴이 넓어 눈 간격이 머리 크기를 작게 잼 · 표 눈 높이가 89 px 아래(QA B)"},
"cc_boss_xuchu": {"side_k": 1.0, "eye_dy": 61.0, "dx": 0.0, "why": "표 눈 높이가 61 px 위(QA M)"},
"wu_chengpu": {"side_k": 1.0, "eye_dy": 0.0, "dx": 60.0, "why": "살색 가운데가 얼굴보다 60 px 왼쪽(QA M)"},
}
def hero_arts():
t = open(os.path.join(RES, "OutGame", "HeroDb.asset"), encoding="utf-8").read()
arts = []
for blk in re.split(r"\n - id: ", t)[1:]:
m = re.search(r"\n art: (.*)", blk)
s = re.search(r"\n isSoldier: (\d)", blk)
if m and m.group(1).strip() and not (s and s.group(1) == "1"):
a = m.group(1).strip()
if a not in arts:
arts.append(a)
return arts
def eye_table():
"""art → (눈 간격 px, 눈 높이 = 그림 아래에서 px) — Units/art_size.csv eye_px · eye_up_px(게임 크기 맞춤 실측)."""
res = {}
for r in csv.DictReader(io.open(os.path.join(RES, "Units", "art_size.csv"), encoding="utf-8-sig")):
try:
res[r["art"]] = (float(r["eye_px"]), float(r["eye_up_px"]))
except (KeyError, ValueError):
pass
return res
def frame0(art):
p = os.path.join(RES, "Units", art, "front_idle", "f000.png")
if os.path.exists(p):
return p
d = os.path.join(RES, "Units", art)
if os.path.isdir(d):
for sub in sorted(os.listdir(d)):
q = os.path.join(d, sub, "f000.png")
if os.path.exists(q):
return q
return None
def face(png, eye=None):
"""얼굴 가운데(x · y) — 눈 높이를 알면 y = 눈 높이 · x = 그 높이 둘레(눈 간격 ±0.9) 살색의 가운데(말 · 소품의 살색 빼기 · 말 탄 영웅 3명 실측 오검출)."""
im = Image.open(png).convert("RGBA")
if eye:
ep, eu = eye
ey = im.size[1] - eu
hsv = im.convert("RGB").convert("HSV").load()
al = im.split()[3].load()
xs = []
for y in range(int(ey - ep * 0.9), int(ey + ep * 0.9), 2):
for x in range(0, im.size[0], 2):
if 0 <= y < im.size[1] and al[x, y] >= 200:
hh, ss, vv = hsv[x, y]
if (hh <= 25 or hh >= 250) and 25 <= ss <= 158 and vv >= 140:
xs.append(x)
if xs:
xs.sort()
return im.size, xs[len(xs) // 2], ey
a = im.split()[3]
x0, y0, x1, y1 = a.getbbox()
hsv = im.convert("RGB").convert("HSV").load()
al = a.load()
rows = {}
for y in range(y0, int(y0 + (y1 - y0) * 0.6), 2):
xs = []
for x in range(x0, x1, 2):
if al[x, y] < 200:
continue
hh, ss, vv = hsv[x, y]
if (hh <= 25 or hh >= 250) and 25 <= ss <= 158 and vv >= 140:
xs.append(x)
rows[y] = xs
mx = max((len(v) for v in rows.values()), default=0)
if mx == 0:
return im.size, (x0 + x1) / 2, y0 + (y1 - y0) * 0.25
ys = sorted(rows)
yb = max(ys, key=lambda y: len(rows[y]))
band = [y for y in ys if abs(y - yb) < (y1 - y0) * 0.18 and len(rows[y]) >= mx * 0.35]
allx = sorted(x for y in band for x in rows[y])
return im.size, allx[len(allx) // 2], (band[0] + band[-1]) / 2
def main():
sys.stdout.reconfigure(encoding="utf-8")
eyes = eye_table()
out, miss = [], []
for art in hero_arts():
p = frame0(art)
if not p:
miss.append(art)
continue
e = eyes.get(art)
(w, h), cx, cy = face(p, e)
side = (e[0] if e else 142.0) * EYE_K
fx = FIX.get(art)
note = ""
if fx:
side *= fx["side_k"]
cy += fx["eye_dy"]
cx += fx["dx"]
note = "손 보정: " + fx["why"]
out.append((art, round(cx - side / 2, 1), round(cy - side * UP, 1), round(side, 1), w, h, note))
os.makedirs(os.path.dirname(OUT), exist_ok=True)
with open(OUT, "w", encoding="utf-8-sig", newline="\n") as f:
f.write("# 영웅 아이콘 얼굴 자리(Tools/hero_icon_crop.py 가 만듦 · 손으로 고치면 note 에 적고 도구를 다시 돌릴 때 확인) · 그림 = Units/<art>/front_idle/f000 · px · 왼쪽 위 원점 · y 아래로\n")
f.write("# x · y = 자를 정사각 왼쪽 위 · side = 변(눈 간격 × %.1f) · w · h = 그림 크기(게임이 스프라이트 크기와 다르면 비율로 맞춤)\n" % EYE_K)
f.write("art,x,y,side,w,h,note\n")
for r in out:
f.write("%s,%s,%s,%s,%d,%d,%s\n" % r)
print("영웅 %d · 그림 없음 %d %s → %s" % (len(out), len(miss), miss[:8], OUT))
if "--sheet" in sys.argv:
sh_path = sys.argv[sys.argv.index("--sheet") + 1]
n = len(out)
cols = 12
sh = Image.new("RGBA", (cols * 110, ((n + cols - 1) // cols) * 110), (60, 60, 70, 255))
for i, (art, x, y, s, w, h, _) in enumerate(out):
im = Image.open(frame0(art)).convert("RGBA")
c = Image.new("RGBA", (int(s), int(s)), (0, 0, 0, 0))
c.paste(im.crop((max(0, int(x)), max(0, int(y)), min(w, int(x + s)), min(h, int(y + s)))), (max(0, -int(x)), max(0, -int(y))))
sh.alpha_composite(c.resize((100, 100), Image.LANCZOS), ((i % cols) * 110 + 5, (i // cols) * 110 + 5))
sh.convert("RGB").save(sh_path)
if __name__ == "__main__":
main()