스테이지 입장 팝업 정리 + 보스 정보(스킬 · 툴팁) · 두루마리 명패 · 아래 닫기 · 판 크게 + 완제품 아이콘 병종 뺌 + 캡처 고른 장면만(PD 2026-11-26)
- 팝업(OutGameRoot.PopupFill 다시 씀): 불필요한 글 제거(장소 · 보스 칩 · 보상 제목 · 보상 칸 이름 · 장비 안내 · 소탕 안내) · 맨 위 = 단계 칩 + 제목(가운데) + BOSS 도장 · 전장 설명 · 적 구성(보스 = 얼굴 칸 + 액티브 · 패시브 스킬 칸 · 누르면 툴팁) · 「전리품」 소제목 · 별 조건 · 짧으면 세로 가운데 · 배치 표 UI/Popup/stage_popup
- 보스 스킬 = 전투와 같은 규칙(SkillSystem.EnemySkillIds 로 AttachEnemy 에서 뺌 · 동작 그대로) · HeroIcons.Boss(칸 색 = 영웅 보스 태생 ★) · SkillTile · 얼굴 자리 표에 보스 그림 38
- 판(WorldMapScreen.PaperPopup): 명패 = 위 두루마리 축 위 · 오른쪽 위 X 없앰 → 아래 축 「닫기」 명패 단추 · 판 높이 +40 · 1.04 배
- 완제품 영웅 아이콘: 병종 원 뺌(PD 정정 「병종 아이콘은 빼는 게 좋겠어」 · 7be623b5 되돌림)
- 캡처 드라이버: -uiOnly 목록에 앞쪽 화면이 없으면 로비 ~ 공방 채굴 · 투기장 구간을 열지 않음(SkipEarly · PD 「지시한 수정사항만 테스트」) · worldmap_popup_boss_tip 장면
- 확인: 캡처 worldmap_popup · worldmap_popup_hard_boss · 툴팁 · QA opus r1(B1 BOSS 도장 가림 → 고침) · 시험 WorldMap 5/5 · Boss 11/11 · GearTests 11/11 · 컴파일 error 0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
08104ef726
commit
5dfae5c64d
|
|
@ -9,10 +9,10 @@ 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,완제품: 받침 위끝이 틀 아래끝에서 올라오는 양
|
||||
boss_slot,gear_purple_,보스 얼굴 칸 색 — 영웅이 아닌 적 보스만(영웅 보스 = 태생 ★ 색 · 값 = 보상 칸 색 묶음 이름 · grade_red_ 는 장식 층 색이 없어 흰 칸)
|
||||
skill_slot_active,gear_purple_,보스 액티브 스킬 칸 색
|
||||
skill_slot_passive,gear_orange_,보스 패시브 스킬 칸 색
|
||||
|
|
|
|||
|
|
|
@ -73,3 +73,41 @@ 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,
|
||||
cc_boss_bianxi,218.6,69.5,722.8,979,977,
|
||||
cc_boss_caiyang,230.7,151.3,382.6,897,976,
|
||||
cc_boss_caohong,193.7,134.0,652.7,810,961,
|
||||
cc_boss_chezhou,122.5,125.1,559.0,776,884,
|
||||
cc_boss_chunyudao,300.2,165.1,527.5,987,902,
|
||||
cc_boss_gaolan,315.3,140.4,501.5,1016,839,
|
||||
cc_boss_hanfu,61.2,90.4,553.6,749,882,
|
||||
cc_boss_kongxiu,182.1,140.5,667.8,795,976,
|
||||
cc_boss_lidian,244.1,165.5,523.7,1015,870,
|
||||
cc_boss_liudai,325.6,121.7,496.9,1017,822,
|
||||
cc_boss_lvkuang,252.4,160.4,387.2,944,976,
|
||||
cc_boss_lvxiang,221.6,166.7,376.7,875,976,
|
||||
cc_boss_maojie,55.5,83.3,585.1,671,850,
|
||||
cc_boss_mengtan,199.2,139.6,401.5,862,976,
|
||||
cc_boss_qinqi,232.8,159.0,514.5,1015,863,
|
||||
cc_boss_wangzhi,69.9,127.2,568.3,758,904,
|
||||
cc_boss_wangzhong,163.1,123.6,525.8,754,856,
|
||||
cc_boss_xiahoujie,242.2,169.4,395.6,922,977,
|
||||
cc_boss_yanming,264.8,183.8,470.4,1015,864,
|
||||
dz_boss_caoxing,126.5,208.8,590.9,820,975,
|
||||
dz_boss_chengong,-13.4,96.3,662.8,718,961,
|
||||
dz_boss_huzhen,252.2,161.3,367.5,912,977,
|
||||
hgj_boss_chengyuanzhi,173.9,73.2,576.2,893,831,
|
||||
hgj_boss_dengmao,277.2,88.3,613.6,1016,884,
|
||||
hgj_boss_guanhai,197.2,45.9,605.6,1015,910,
|
||||
hgj_boss_peiyuanshao,164.0,71.4,564.1,815,804,
|
||||
hgj_boss_zhangbao,13.0,104.7,653.9,771,911,
|
||||
hgj_boss_zhangliang,131.8,49.8,672.4,954,976,
|
||||
jz_boss_caimao,118.7,127.0,550.6,735,894,
|
||||
jz_boss_caixun,133.3,153.9,601.4,784,935,
|
||||
jz_boss_caizhong,101.3,117.4,585.5,856,976,
|
||||
jz_boss_chensun,258.1,119.6,467.9,1015,793,
|
||||
jz_boss_wenpin,248.1,142.8,491.8,1015,871,
|
||||
jz_boss_zhangwu,222.1,139.8,355.7,887,975,
|
||||
jz_boss_zhangyun,139.1,141.4,585.9,909,976,
|
||||
ys_boss_quyi,195.8,150.8,536.3,851,913,
|
||||
ysu_boss_jiling,244.5,156.6,467.0,1016,845,
|
||||
ysu_boss_xunzheng,330.0,131.2,488.0,1017,827,
|
||||
|
|
|
|||
|
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4e9e44834f803124481d6722f33e02cd
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
# 스테이지 입장 정보 팝업 배치(PD 2026-11-26 「불필요한 텍스트 정보 제거 · 타이틀 위치 조정 · 보스 스테이지 = 보스 정보(스킬 아이콘 · 툴팁)」) · 값 = 본문 칸 px(폭 860)
|
||||
key,value,note
|
||||
w,860,본문 칸 폭
|
||||
pad,24,좌우 여백
|
||||
tile,138,보상 칸 크기(PD 「UI 크게」 132 → 138)
|
||||
title_y,12,맨 위 줄(단계 칩 + 제목) 위치
|
||||
title_h,64,맨 위 줄 높이
|
||||
code_w,150,단계 칩 폭(1-10)
|
||||
code_h,58,단계 칩 높이
|
||||
code_font,36,단계 칩 글자
|
||||
title_gap,22,칩과 제목 사이
|
||||
title_font,48,스테이지 제목 글자
|
||||
stamp_gap,18,제목 뒤 BOSS 도장 사이
|
||||
stamp_font,44,제목 줄 BOSS 도장 글자
|
||||
after_title,14,제목 줄 아래 여백
|
||||
desc_h,104,전장 설명 칸 높이
|
||||
desc_font,28,전장 설명 글자
|
||||
after_desc,10,설명 칸 아래 여백
|
||||
after_sub,60,소제목(적 구성 · 전리품) 아래
|
||||
boss_tile,126,보스 얼굴 · 스킬 칸 크기(120 → 126)
|
||||
boss_gap,44,보스 얼굴과 첫 스킬 칸 사이(떼어 놓음 · 예시)
|
||||
skill_gap,16,스킬 칸 사이(붙임)
|
||||
boss_stamp_x,30,보스 얼굴 칸 BOSS 도장 가운데(칸 오른쪽 끝에서 왼쪽으로)
|
||||
boss_stamp_y,8,보스 얼굴 칸 BOSS 도장 가운데(칸 위에서)
|
||||
boss_stamp_font,26,보스 얼굴 칸 BOSS 도장 글자
|
||||
after_boss,18,보스 줄 아래 여백
|
||||
tip_gap,10,스킬 툴팁 = 보스 줄 아래 이만큼
|
||||
tip_h,104,스킬 툴팁 최소 높이(설명 줄 수에 맞춰 늘어남)
|
||||
tip_font,26,스킬 툴팁 설명 글자
|
||||
type_mid,40,병종 줄 가운데(줄 위에서)
|
||||
after_types,14,병종 줄 아래 여백
|
||||
after_rewards,30,보상 칸 아래 여백
|
||||
center_k,0.5,내용이 판보다 짧을 때 남는 높이 중 위에 두는 비율(0.5 = 세로 가운데)
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5eea6eb4fd96270479a7634a410ed58d
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -47,13 +47,6 @@ namespace TKS.OutGame
|
|||
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)
|
||||
{
|
||||
|
|
@ -110,14 +103,20 @@ namespace TKS.OutGame
|
|||
/// <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;
|
||||
return h != null ? FaceOfArt(box, h.art, boxSize) : null;
|
||||
}
|
||||
|
||||
/// <summary>그림 폴더(art) 로 얼굴 — 영웅이 아닌 적 보스도(표 hero_icon_crop 에 보스 그림 포함).</summary>
|
||||
public static Image FaceOfArt(RectTransform box, string art, Vector2 boxSize)
|
||||
{
|
||||
var sp = UiKit.ArtSprite(art);
|
||||
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);
|
||||
var c = CropOf(art);
|
||||
float sw = sp.rect.width, sh = sp.rect.height;
|
||||
float x, y, side;
|
||||
if (c != null)
|
||||
|
|
@ -162,6 +161,46 @@ namespace TKS.OutGame
|
|||
if (!string.IsNullOrEmpty(qty)) UiKit.QtyChip(cell, qty, size >= 120f ? 30 : 24);
|
||||
}
|
||||
|
||||
/// <summary>칸 모양(item_bg 둥근 모서리)으로 자른 안쪽 상자 — 얼굴 · 스킬 그림이 칸 밖으로 나오지 않게(조각과 같은 방식).</summary>
|
||||
static RectTransform ClipBox(RectTransform cell, float size)
|
||||
{
|
||||
float clip = V("shard_clip", size), inset = V("shard_inset", size);
|
||||
var cm = UiKit.Fill("Clip", cell, clip, clip, clip, clip);
|
||||
UiKit.Skin(cm, "item_bg", Color.white);
|
||||
cm.gameObject.AddComponent<Mask>().showMaskGraphic = false;
|
||||
float d = inset - clip;
|
||||
return UiKit.Fill("Box", cm, d, d, d, d);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ③ 스테이지 팝업 보스 얼굴(PD 2026-11-26 「보스 스테이지 = 보스 정보」) — 보상 칸(색 = 표 boss_slot · 기본 붉음) + 그림 폴더 art 의 얼굴 + 칸 테두리 · 직소 배지 · 수량 없음.
|
||||
/// </summary>
|
||||
public static void Boss(RectTransform cell, string art, float size, int star = 0)
|
||||
{
|
||||
// 칸 색 = 그 보스가 영웅이면 태생 ★ 색(조각 칸과 같음 · PD 예시 = 장각 파랑) · 아니면 표 boss_slot(QA U2 · grade_red_ 는 장식 층 색이 없어 흰 칸으로 보임)
|
||||
string pre = star > 0 ? SlotPrefix(star) : Cfg("boss_slot");
|
||||
UiKit.ItemSlot(cell, pre.Length > 0 ? pre : "gear_purple_", true);
|
||||
float inset = V("shard_inset", size);
|
||||
FaceOfArt(ClipBox(cell, size), art, new Vector2(size - inset * 2f, size - inset * 2f));
|
||||
UiKit.Layer(cell, "Border2", "item_border", UiKit.Col("gear_border", UiKit.Line));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ④ 스킬 칸(보스 스킬 · 누르면 툴팁은 호출 쪽) — 보상 칸(액티브 = 표 skill_slot_active · 패시브 = skill_slot_passive) + 스킬 그림(테마 skill_<id> · 영웅 정보 화면과 같은 그림) ·
|
||||
/// 그림이 없는 스킬 = 병종 기호(영웅 정보 화면과 같은 대체).
|
||||
/// </summary>
|
||||
public static void SkillTile(RectTransform cell, string skillId, bool active, UnitType type, float size)
|
||||
{
|
||||
string pre = Cfg(active ? "skill_slot_active" : "skill_slot_passive");
|
||||
UiKit.ItemSlot(cell, pre.Length > 0 ? pre : active ? "gear_purple_" : "gear_orange_", true);
|
||||
string iconId = "skill_" + skillId;
|
||||
bool has = UISkin.Theme != null && UISkin.Theme.IconEntryOf(iconId) != null;
|
||||
var box = ClipBox(cell, size);
|
||||
var ic = UiKit.Icon(box, has ? iconId : UiKit.TypeSymbolId(type), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, has ? size - V("shard_inset", size) * 2f : size * 0.62f);
|
||||
if (ic != null) ic.raycastTarget = false;
|
||||
UiKit.Layer(cell, "Border2", "item_border", UiKit.Col("gear_border", UiKit.Line));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ② 완제품 영웅(HB안) — 왼쪽 위 (x, y) 정사각 size · star = 보유 ★(없으면 태생 ★) · 팔각 금테 + ★색 바탕 + 얼굴 + 진영 + 별 받침.
|
||||
/// </summary>
|
||||
|
|
@ -194,21 +233,6 @@ namespace TKS.OutGame
|
|||
// 왼쪽 위 진영
|
||||
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;
|
||||
|
|
|
|||
|
|
@ -1029,133 +1029,144 @@ namespace TKS.OutGame
|
|||
|
||||
void PopupFill(int si, bool locked, RectTransform field)
|
||||
{
|
||||
// 스테이지 입장 정보(PD 2026-11-26 「불필요한 텍스트 정보를 모두 제거 · 타이틀 위치 조정 · 보스 스테이지는 보스 정보(액티브 · 패시브 스킬 아이콘 · 터치 = 툴팁)」 · 예시 그림)
|
||||
// 위 명패 = 장 이름만(WorldMapScreen) · 맨 위 줄 = 단계 칩(1-10) + 스테이지 제목 + BOSS 도장 · 전장 설명 · 적 구성(보스 = 얼굴 + 스킬 2) · 보상 칸(이름 · 안내 글 없음) · 별 조건
|
||||
var s = Battle.Config.stages[si];
|
||||
var db = Session.Db;
|
||||
var d = Session.Save;
|
||||
var e = db.Economy;
|
||||
var row = db.Rewards.For(s.chapter);
|
||||
const float W = 860f, Pad = 24f, Tile = 132f;
|
||||
var soft = UiKit.Col("text_soft", UiKit.InkSoft);
|
||||
var head = UiKit.Title(UiKit.Label(field, s.title, 38, UiKit.White, TextAnchor.MiddleCenter, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(Pad, -18f), new Vector2(W - Pad * 2f, 56f)), true);
|
||||
head.horizontalOverflow = HorizontalWrapMode.Overflow;
|
||||
if (!string.IsNullOrEmpty(s.place))
|
||||
UiKit.Label(field, s.place + (string.IsNullOrEmpty(s.bgTheme) ? "" : " · " + s.bgTheme), 26, soft, TextAnchor.MiddleCenter, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(Pad, -76f), new Vector2(W - Pad * 2f, 34f), false);
|
||||
float W = PopupLayout("w", 860f), Pad = PopupLayout("pad", 24f), Tile = PopupLayout("tile", 132f);
|
||||
bool boss = s.kind == StageKind.Boss;
|
||||
|
||||
// 전장 설명(2026-11-12 시나리오 이벤트 C1 · Resources/Scenario/stage_story.csv) — 장소 줄 아래 · 짙은 칸 + 금색 테두리 · 2줄 이내 · 잠긴 판·다시 출정에도
|
||||
float y = 124f;
|
||||
// 맨 위 줄 = 단계 칩 + 제목 + (보스) BOSS 도장
|
||||
float y = PopupLayout("title_y", 12f), th = PopupLayout("title_h", 64f);
|
||||
float cw = PopupLayout("code_w", 150f), ch = PopupLayout("code_h", 58f), tg = PopupLayout("title_gap", 22f);
|
||||
// 스테이지 명칭 = 가운데 정렬(PD 2026-11-26) — 제목 글자가 본문 가운데 · 단계 칩은 바로 왼쪽 · BOSS 도장은 바로 오른쪽(칩이 여백 밖으로 나가면 묶음째 오른쪽으로)
|
||||
var title = UiKit.Title(UiKit.Label(field, s.title, (int)PopupLayout("title_font", 46f), UiKit.White, TextAnchor.MiddleLeft, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(0f, -y), new Vector2(W, th)), true);
|
||||
title.horizontalOverflow = HorizontalWrapMode.Overflow;
|
||||
float tw = title.preferredWidth;
|
||||
float tx = (W - tw) * 0.5f;
|
||||
if (tx - tg - cw < Pad) tx = Pad + cw + tg;
|
||||
title.rectTransform.anchoredPosition = new Vector2(tx, -y);
|
||||
title.rectTransform.sizeDelta = new Vector2(tw + 4f, th);
|
||||
UiKit.InfoChip(field, "Code", tx - tg - cw, y + (th - ch) * 0.5f, cw, ch, null, s.chapter + "-" + s.stage, (int)PopupLayout("code_font", 36f));
|
||||
if (boss) BossStamp(field, tx + tw + PopupLayout("stamp_gap", 18f), y + th * 0.5f, PopupLayout("stamp_font", 44f), "Stamp");
|
||||
y += th + PopupLayout("after_title", 14f);
|
||||
|
||||
// 전장 설명(stage_story.csv · 짙은 칸 + 금 테두리)
|
||||
string desc = ScenarioData.Desc(s.chapter, s.stage);
|
||||
if (!string.IsNullOrEmpty(desc))
|
||||
{
|
||||
const float DescH = 84f;
|
||||
var box = UiKit.Rect("Desc", field, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(Pad, -118f), new Vector2(W - Pad * 2f, DescH));
|
||||
var bg = UiKit.Skin(box, "panel12", UiKit.Col("row_on_field", UiKit.Dark)); // 별 조건 행과 같은 짙은 칸
|
||||
float DescH = PopupLayout("desc_h", 104f);
|
||||
var box = UiKit.Rect("Desc", field, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(Pad, -y), new Vector2(W - Pad * 2f, DescH));
|
||||
var bg = UiKit.Skin(box, "panel12", UiKit.Col("row_on_field", UiKit.Dark));
|
||||
bg.raycastTarget = false;
|
||||
var rim = box.gameObject.AddComponent<Outline>();
|
||||
rim.effectColor = UiKit.Col("gold", new Color(0.91f, 0.66f, 0.23f));
|
||||
rim.effectDistance = new Vector2(2f, -2f);
|
||||
var dt = UiKit.Label(box, desc, 26, UiKit.Col("text_cream", new Color(1f, 0.95f, 0.84f)), TextAnchor.MiddleCenter, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(18f, -4f), new Vector2(W - Pad * 2f - 36f, DescH - 8f), false);
|
||||
var dt = UiKit.Label(box, desc, (int)PopupLayout("desc_font", 28f), UiKit.Col("text_cream", new Color(1f, 0.95f, 0.84f)), TextAnchor.MiddleCenter, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(18f, -4f), new Vector2(W - Pad * 2f - 36f, DescH - 8f), false);
|
||||
dt.horizontalOverflow = HorizontalWrapMode.Wrap;
|
||||
y += DescH + 8f;
|
||||
y += DescH + PopupLayout("after_desc", 10f);
|
||||
}
|
||||
|
||||
// 적 구성 = 병종 원(type 색 Circle78 68 + 병종 아이콘 40) + 「×n」 · 가운데 정렬
|
||||
// 적 구성 — 보스 판 = 보스 얼굴 + 액티브 · 패시브 스킬 칸(누르면 툴팁) · 그 아래 병종 원 + 「×n」
|
||||
UiKit.SubTitle(field, "적 구성", Pad, y, W - Pad * 2f);
|
||||
var counts = new int[UnitTypeInfo.Count];
|
||||
var lead = new List<string>();
|
||||
foreach (var en in s.enemies)
|
||||
y += PopupLayout("after_sub", 56f);
|
||||
var bossE = boss ? s.enemies.Find(en => en.isBoss) : null;
|
||||
if (bossE != null)
|
||||
{
|
||||
counts[(int)en.type]++;
|
||||
if (en.isBoss || en.isGeneral) lead.Add((en.isBoss ? "보스 " : "") + en.name);
|
||||
string act, pas;
|
||||
var bossHero = SkillSystem.EnemySkillIds(bossE, s.chapter, TacticalAI.BossUsesActive(s, bossE), true, out act, out pas); // 전투(AttachEnemy)와 같은 규칙
|
||||
float bt = PopupLayout("boss_tile", 120f), bgap = PopupLayout("boss_gap", 44f), sgap = PopupLayout("skill_gap", 16f);
|
||||
var ids = new List<string>();
|
||||
if (!string.IsNullOrEmpty(act)) ids.Add(act);
|
||||
if (!string.IsNullOrEmpty(pas)) ids.Add(pas);
|
||||
// 보스 얼굴은 떼어 놓고 스킬 칸끼리 붙임(예시 · QA M1) — 보스와 첫 스킬 사이 = boss_gap · 스킬 사이 = skill_gap
|
||||
float rw = bt + (ids.Count > 0 ? bgap + ids.Count * bt + (ids.Count - 1) * sgap : 0f);
|
||||
float bx = (W - rw) * 0.5f;
|
||||
var face = UiKit.At(field, "Boss", bx, y, bt, bt);
|
||||
HeroIcons.Boss(face, bossE.art, bt, bossHero != null ? bossHero.rarity : 0);
|
||||
RectTransform tip = null;
|
||||
float tipY = y + bt + PopupLayout("tip_gap", 10f);
|
||||
for (int i = 0; i < ids.Count; i++)
|
||||
{
|
||||
string id = ids[i];
|
||||
bool isAct = id == act;
|
||||
var cell = UiKit.At(field, "Skill" + i, bx + bt + bgap + i * (bt + sgap), y, bt, bt);
|
||||
HeroIcons.SkillTile(cell, id, isAct, bossE.type, bt);
|
||||
var hit = cell.gameObject.AddComponent<Image>();
|
||||
hit.color = Color.clear;
|
||||
var btn = cell.gameObject.AddComponent<Button>();
|
||||
btn.transition = Selectable.Transition.None;
|
||||
btn.onClick.AddListener(() => { tip = SkillTip(field, tip, db.Skills.Get(id), isAct, Pad, tipY + popupShift, W - Pad * 2f); }); // 세로 가운데로 민 만큼
|
||||
}
|
||||
// 작은 BOSS 도장 = 스킬 칸보다 뒤에 그림(옆 칸에 가려 잘리지 않게 · QA B1)
|
||||
BossStamp(field, bx + bt - PopupLayout("boss_stamp_x", 30f), y + PopupLayout("boss_stamp_y", 8f), PopupLayout("boss_stamp_font", 26f), "BossStamp");
|
||||
y += bt + PopupLayout("after_boss", 18f);
|
||||
}
|
||||
var counts = new int[UnitTypeInfo.Count];
|
||||
foreach (var en in s.enemies) counts[(int)en.type]++;
|
||||
var kinds = new List<int>();
|
||||
for (int t = 0; t < counts.Length; t++)
|
||||
if (counts[t] > 0) kinds.Add(t);
|
||||
const float Ew = 172f;
|
||||
float ex = (W - kinds.Count * Ew) * 0.5f;
|
||||
float mid = PopupLayout("type_mid", 40f);
|
||||
for (int k = 0; k < kinds.Count; k++)
|
||||
{
|
||||
var ut = (UnitType)kinds[k];
|
||||
float cx = ex + k * Ew + 44f;
|
||||
var circ = UiKit.Rect("Type" + k, field, new Vector2(0f, 1f), new Vector2(0.5f, 0.5f), new Vector2(cx, -y - 94f), new Vector2(80f, 80f));
|
||||
var ti = UiKit.Icon(circ, UiKit.TypeSymbolId(ut), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, 76f); // 병과 = 단색 심볼만(배경 틀 없음 · PD 2026-11-09)
|
||||
var n = UiKit.Title(UiKit.Label(field, "x" + counts[kinds[k]], 36, UiKit.White, TextAnchor.MiddleLeft, new Vector2(0f, 1f), new Vector2(0f, 0.5f), new Vector2(cx + 50f, -y - 94f), new Vector2(100f, 50f)), true);
|
||||
var circ = UiKit.Rect("Type" + k, field, new Vector2(0f, 1f), new Vector2(0.5f, 0.5f), new Vector2(cx, -y - mid), new Vector2(80f, 80f));
|
||||
UiKit.Icon(circ, UiKit.TypeSymbolId(ut), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, 76f); // 병과 = 단색 심볼만(배경 틀 없음 · PD 2026-11-09)
|
||||
var n = UiKit.Title(UiKit.Label(field, "x" + counts[kinds[k]], 36, UiKit.White, TextAnchor.MiddleLeft, new Vector2(0f, 1f), new Vector2(0f, 0.5f), new Vector2(cx + 50f, -y - mid), new Vector2(100f, 50f)), true);
|
||||
n.horizontalOverflow = HorizontalWrapMode.Overflow;
|
||||
}
|
||||
y += 128f;
|
||||
if (lead.Count > 0)
|
||||
{
|
||||
string names = string.Join(" · ", lead.ToArray());
|
||||
float cw = Mathf.Min(W - Pad * 2f, 120f + names.Length * 26f);
|
||||
UiKit.InfoChip(field, "Lead", (W - cw) * 0.5f, y, cw, 48f, "badge_hot", names, 26);
|
||||
y += 64f;
|
||||
}
|
||||
y += mid * 2f + PopupLayout("after_types", 14f);
|
||||
|
||||
// 보상 타일
|
||||
string region = EconomyRules.RegionLine(db, d, s); // 지역 특화(골드 · 경험치 · 장비 · 2026-11-23)
|
||||
bool hard = Session.Hard && EconomyRules.HardRow(db, s.chapter) != null; // 월드맵에서 고른 난이도(2026-11-24) — 하드 = 오늘 남은 횟수를 제목에
|
||||
string rewardHead = hard ? "하드 보상 · 오늘 남은 " + EconomyRules.HardLeft(db, d, s, Session.Now) + "회" : "보상";
|
||||
var rewardTitle = UiKit.SubTitle(field, region.Length > 0 ? rewardHead + " · " + region : rewardHead, Pad, y, W - Pad * 2f);
|
||||
rewardTitle.name = "RewardTitle";
|
||||
y += 56f;
|
||||
// 전리품 = 「적 구성」 과 같은 소제목 띠로 따로(PD 2026-11-26 「적 구성과 전리품 간격이 너무 좁아 · 전리품이라는 별도 프레임으로 구분」)
|
||||
UiKit.SubTitle(field, "전리품", Pad, y, W - Pad * 2f);
|
||||
y += PopupLayout("after_sub", 56f);
|
||||
// 보상 칸(이름 · 장비 안내 글 없음 — PD 2026-11-26) — 골드 · 경험 · (첫 보옥) · (하드 보스 영웅 조각) · 지정 장비 / 장비
|
||||
bool hard = Session.Hard && EconomyRules.HardRow(db, s.chapter) != null;
|
||||
var st = d.Stage(s.chapter, s.stage, false, hard);
|
||||
bool first = st == null || st.clears == 0;
|
||||
bool boss = s.kind == StageKind.Boss;
|
||||
string gearNote = "";
|
||||
if (row != null)
|
||||
{
|
||||
int gold, exp;
|
||||
EconomyRules.StageGoldExp(db, d, s, first, out gold, out exp, hard); // 지역 배율(stage_drop) · 하드 배율 포함
|
||||
var tiles = new List<string[]>(); // 아이콘 · 수량 · 칸 색 · 이름 · 첫 뱃지
|
||||
tiles.Add(new[] { "cur_gold", gold.ToString("N0"), "gear_white_", first ? "골드" : "골드 ×" + e.RepeatRewardMult, first ? "1" : "" });
|
||||
tiles.Add(new[] { "cur_exp", exp.ToString("N0"), "gear_white_", "경험 · 전원", "" });
|
||||
var tiles = new List<string[]>(); // 아이콘 · 수량 · 칸 색 · 첫 뱃지
|
||||
tiles.Add(new[] { "cur_gold", gold.ToString("N0"), "gear_white_", first ? "1" : "" });
|
||||
tiles.Add(new[] { "cur_exp", exp.ToString("N0"), "gear_white_", "" });
|
||||
int firstGem = row.gemFirst + (boss ? row.gemBoss : 0); // 표 값 0 = 보옥 칸을 그리지 않는다(PD 2026-11-24 ⑦)
|
||||
if (!hard && first && firstGem > 0) tiles.Add(new[] { "cur_gem", firstGem.ToString(), "gear_blue_", "보옥", "1" });
|
||||
if (!hard && first && firstGem > 0) tiles.Add(new[] { "cur_gem", firstGem.ToString(), "gear_blue_", "1" });
|
||||
if (hard && boss)
|
||||
{
|
||||
// 하드 보스 = 그 보스 영웅 조각 1개(확률 · stage_drop l_hard_shard_hero · 비어 있으면 없음)
|
||||
// 하드 보스 = 그 보스 영웅 조각(확률 · stage_drop l_hard_shard_hero · 여럿이면 첫 영웅)
|
||||
var sdh = EconomyRules.StageDropOf(db, s);
|
||||
var hm = EconomyRules.HardRow(db, s.chapter);
|
||||
if (sdh != null && sdh.hardShardHeroes.Length > 0)
|
||||
{
|
||||
var names = new List<string>();
|
||||
foreach (var hid in sdh.hardShardHeroes) names.Add(Session.Def(hid) != null ? Session.Def(hid).nameKo : hid);
|
||||
tiles.Add(new[] { HeroIcons.ShardPrefix + sdh.hardShardHeroes[0], Mathf.RoundToInt(hm.bossShardPct) + "%", "gear_purple_", string.Join("·", names.ToArray()) + " 조각", "" }); // 하드 보스 영웅 조각 = 그 영웅 얼굴 직소 칸(PD 2026-11-26 SB안 · 여럿이면 첫 영웅 · 이름은 아래 글)
|
||||
}
|
||||
tiles.Add(new[] { HeroIcons.ShardPrefix + sdh.hardShardHeroes[0], Mathf.RoundToInt(hm.bossShardPct) + "%", "gear_purple_", "" });
|
||||
}
|
||||
// 장비 = 그 장 등급(gear_drop_chapters) · 지정 장비 아이콘 + 「확률 ↑」(2026-11-20 장비 등급 드랍 §2-2-4)
|
||||
string gg;
|
||||
string gradesText = EconomyRules.DropGradesText(db, s.chapter, out gg, hard);
|
||||
// 지정 장비 = 한 병종의 부위 2개(stage_drop l_kind) → 칸 2개 · 지정이 없으면 등급 칸 1개
|
||||
EconomyRules.DropGradesText(db, s.chapter, out gg, hard);
|
||||
var focusKinds = EconomyRules.FocusKinds(db, s.chapter, s.stage);
|
||||
int chestPct = Mathf.RoundToInt(EconomyRules.ChestAnyPct(db, d, s) * 100f);
|
||||
foreach (var fk in focusKinds) tiles.Add(new[] { fk.icon.Length > 0 ? fk.icon : "cur_gear", "", "gear_" + gg + "_", fk.nameKo + " 확률↑", "" });
|
||||
if (focusKinds.Count == 0) tiles.Add(new[] { "cur_gear", chestPct + "%", "gear_" + gg + "_", "장비 " + gradesText, "" });
|
||||
// 한 줄에 들어가게 짧게(지정 장비 이름 · 병종은 위 칸이 보여 준다)
|
||||
gearNote = (hard ? "지정 장비 1개 확정 + " : "") + "장비 상자 " + chestPct + "% · " + gradesText + " 등급" + (!hard && boss && first && db.Gear.rules.bossFirstChest > 0 ? " · 첫 클리어 확정 " + db.Gear.rules.bossFirstChest : "")
|
||||
+ (focusKinds.Count > 0 ? " · 다른 장비도 나옴" : "");
|
||||
foreach (var fk in focusKinds) tiles.Add(new[] { fk.icon.Length > 0 ? fk.icon : "cur_gear", "", "gear_" + gg + "_", "" });
|
||||
if (focusKinds.Count == 0) tiles.Add(new[] { "cur_gear", chestPct + "%", "gear_" + gg + "_", "" });
|
||||
float Gap = tiles.Count >= 5 ? 22f : 30f;
|
||||
float tx0 = (W - tiles.Count * Tile - (tiles.Count - 1) * Gap) * 0.5f;
|
||||
for (int i = 0; i < tiles.Count; i++)
|
||||
{
|
||||
var tl = tiles[i];
|
||||
float tx = tx0 + i * (Tile + Gap);
|
||||
var cell = UiKit.RewardTile(field, "Tile" + i, tx, y, Tile, tl[2], tl[0], tl[1], tl[2] != "gear_white_");
|
||||
if (tl[4] == "1")
|
||||
var cell = UiKit.RewardTile(field, "Tile" + i, tx0 + i * (Tile + Gap), y, Tile, tl[2], tl[0], tl[1], tl[2] != "gear_white_");
|
||||
if (tl[3] == "1")
|
||||
{
|
||||
var b = UiKit.Icon(cell, "badge_first", new Vector2(1f, 1f), new Vector2(0.5f, 0.5f), new Vector2(-8f, -6f), 58f);
|
||||
if (b != null) UiKit.Title(UiKit.FillLabel(b.transform, "첫", 24, UiKit.White), true);
|
||||
}
|
||||
var nm = UiKit.Label(field, tl[3], 24, soft, TextAnchor.UpperCenter, new Vector2(0f, 1f), new Vector2(0.5f, 1f), new Vector2(tx + Tile * 0.5f, -y - Tile - 10f), new Vector2(Tile + Gap, 34f), false);
|
||||
nm.horizontalOverflow = HorizontalWrapMode.Overflow;
|
||||
}
|
||||
}
|
||||
y += Tile + 64f;
|
||||
if (gearNote.Length > 0)
|
||||
{
|
||||
var gn = UiKit.Label(field, gearNote, 22, soft, TextAnchor.MiddleCenter, new Vector2(0f, 1f), new Vector2(0.5f, 1f), new Vector2(W * 0.5f, -y + 14f), new Vector2(W - Pad * 2f, 32f), false);
|
||||
gn.name = "GearNote";
|
||||
y += 30f;
|
||||
}
|
||||
y += Tile + PopupLayout("after_rewards", 30f);
|
||||
|
||||
// 별 조건 3행(별 아이콘 = 지금까지 받은 별 수만큼 켜짐)
|
||||
UiKit.SubTitle(field, "별 조건", Pad, y, W - Pad * 2f);
|
||||
|
|
@ -1166,9 +1177,90 @@ namespace TKS.OutGame
|
|||
UiKit.CondRow(field, "Star" + i, Pad, y + i * 64f, W - Pad * 2f, 58f, i < stars ? "star_on" : "star_off", i < stars, cond[i], 28, false, "row_on_field");
|
||||
y += 3 * 64f;
|
||||
if (locked)
|
||||
{
|
||||
UiKit.Label(field, "앞 스테이지를 먼저 깨세요", 28, UiKit.Col("alert_red", UiKit.Red), TextAnchor.MiddleCenter, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(Pad, -y), new Vector2(W - Pad * 2f, 40f));
|
||||
else if (stars >= 3)
|
||||
UiKit.Label(field, "별 3 = 소탕 가능(군량만 · 전투 없음)", 26, UiKit.Col("ok", UiKit.Ok), TextAnchor.MiddleCenter, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(Pad, -y), new Vector2(W - Pad * 2f, 40f), false);
|
||||
y += 44f;
|
||||
}
|
||||
// 내용이 판보다 짧으면 묶음째 세로 가운데(PD 2026-11-26 「UI 크게」 뒤 일반 판 아래가 비어 보임) — 툴팁도 같은 만큼(popupShift)
|
||||
float extra = field.rect.height - y;
|
||||
popupShift = extra > 0f ? extra * PopupLayout("center_k", 0.5f) : 0f;
|
||||
if (popupShift > 0f)
|
||||
foreach (RectTransform c in field) c.anchoredPosition -= new Vector2(0f, popupShift);
|
||||
}
|
||||
|
||||
/// <summary>본문 묶음을 아래로 민 양(세로 가운데 · 툴팁 자리 보정).</summary>
|
||||
float popupShift;
|
||||
|
||||
// ---------- 스테이지 입장 정보 배치 표(UI/Popup/stage_popup · C45) ----------
|
||||
public const string PopupTable = "UI/Popup/stage_popup";
|
||||
Dictionary<string, float> popupLayout;
|
||||
|
||||
float PopupLayout(string key, float d)
|
||||
{
|
||||
if (popupLayout == null)
|
||||
{
|
||||
popupLayout = new Dictionary<string, float>();
|
||||
var rows = UiText.Rows(PopupTable);
|
||||
if (rows == null) Debug.LogWarning("[TKS] 스테이지 팝업 표 없음: " + PopupTable);
|
||||
else
|
||||
foreach (var r in rows)
|
||||
{
|
||||
string k, v;
|
||||
float f;
|
||||
if (r.TryGetValue("key", out k) && r.TryGetValue("value", out v) && float.TryParse(v, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture, out f)) popupLayout[k] = f;
|
||||
}
|
||||
}
|
||||
float x;
|
||||
return popupLayout.TryGetValue(key, out x) ? x : d;
|
||||
}
|
||||
|
||||
/// <summary>BOSS 도장(붉은 기울인 글자 · 흰 외곽선) — 가운데 (x, y) · 부모 왼쪽 위 기준.</summary>
|
||||
static Text BossStamp(Transform p, float x, float y, float size, string name)
|
||||
{
|
||||
var t = UiKit.Title(UiKit.Label(p, "BOSS", Mathf.RoundToInt(size), UiKit.Col("boss_stamp", new Color(0.93f, 0.2f, 0.22f)), TextAnchor.MiddleCenter, new Vector2(0f, 1f), new Vector2(0.5f, 0.5f), new Vector2(x + size * 1.3f, -y), new Vector2(size * 3f, size * 1.3f)), true);
|
||||
t.name = name;
|
||||
t.horizontalOverflow = HorizontalWrapMode.Overflow;
|
||||
t.raycastTarget = false;
|
||||
var o = t.GetComponent<Outline>();
|
||||
if (o == null) o = t.gameObject.AddComponent<Outline>();
|
||||
o.effectColor = Color.white;
|
||||
o.effectDistance = new Vector2(3f, -3f);
|
||||
t.rectTransform.localRotation = Quaternion.Euler(0f, 0f, -12f);
|
||||
return t;
|
||||
}
|
||||
|
||||
/// <summary>스킬 툴팁(짙은 칸 · 이름 · 액티브(쿨) / 패시브 · 설명) — 같은 스킬을 다시 누르면 닫힘 · 툴팁을 눌러도 닫힘 · 다른 스킬 = 바꿔 보여 줌.</summary>
|
||||
RectTransform SkillTip(RectTransform field, RectTransform tip, SkillInfoDb.Skill sk, bool active, float x, float y, float w)
|
||||
{
|
||||
string key = sk != null ? sk.id : "";
|
||||
if (tip != null)
|
||||
{
|
||||
bool same = tip.name == "Tip_" + key;
|
||||
Destroy(tip.gameObject);
|
||||
if (same) return null;
|
||||
}
|
||||
if (sk == null) return null;
|
||||
float h = PopupLayout("tip_h", 150f);
|
||||
var rt = UiKit.Rect("Tip_" + key, field, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(x, -y), new Vector2(w, h));
|
||||
rt.pivot = new Vector2(0f, 1f);
|
||||
rt.anchoredPosition = new Vector2(x, -y);
|
||||
UiKit.Skin(rt, "panel12", UiKit.Col("tip_bg", new Color(0.13f, 0.11f, 0.12f, 0.96f)), true);
|
||||
var close = rt.gameObject.AddComponent<Button>();
|
||||
close.transition = Selectable.Transition.None;
|
||||
close.onClick.AddListener(() => Destroy(rt.gameObject));
|
||||
var rim = rt.gameObject.AddComponent<Outline>();
|
||||
rim.effectColor = UiKit.Col("gold", new Color(0.91f, 0.66f, 0.23f));
|
||||
rim.effectDistance = new Vector2(2f, -2f);
|
||||
var nm = UiKit.Title(UiKit.Label(rt, sk.nameKo, 34, UiKit.Col("text_gold", new Color(1f, 0.85f, 0.4f)), TextAnchor.MiddleLeft, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(22f, -10f), new Vector2(w - 44f, 44f)), true);
|
||||
nm.horizontalOverflow = HorizontalWrapMode.Overflow;
|
||||
string kind = active ? "액티브" + (sk.cooldown > 0 ? " · 쿨 " + sk.cooldown + "턴" : "") : "패시브";
|
||||
var kt = UiKit.Label(rt, kind, 24, UiKit.Col("text_soft_light", new Color(0.85f, 0.8f, 0.72f)), TextAnchor.MiddleRight, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(22f, -10f), new Vector2(w - 44f, 44f), false);
|
||||
kt.horizontalOverflow = HorizontalWrapMode.Overflow;
|
||||
var dt = UiKit.Label(rt, SkillInfoDb.DisplayDesc(sk), (int)PopupLayout("tip_font", 26f), UiKit.Col("text_cream", new Color(1f, 0.95f, 0.84f)), TextAnchor.UpperLeft, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(22f, -58f), new Vector2(w - 44f, h - 66f), false);
|
||||
dt.horizontalOverflow = HorizontalWrapMode.Wrap;
|
||||
rt.sizeDelta = new Vector2(w, Mathf.Max(h, 66f + dt.preferredHeight + 16f)); // 높이 = 설명에 맞춤(최소 tip_h · QA M2)
|
||||
rt.SetAsLastSibling();
|
||||
return rt;
|
||||
}
|
||||
|
||||
/// <summary>군량 구매 줄의 안내 = 「오늘 n / 8 · 다음 보옥 n」(살수록 비싸짐 · 마지막 구매 뒤에는 다음 값 없음).</summary>
|
||||
|
|
|
|||
|
|
@ -99,6 +99,8 @@ namespace TKS.OutGame
|
|||
|
||||
yield return LoadingShots(cam); // 로딩 화면(PD 2026-11-13 · -uiOnly loading* 일 때만)
|
||||
yield return BootShots(cam, root); // 시작 흐름 다운로드 → 페이드 → 로비(PD 2026-11-13 · -uiOnly boot_anim 일 때만)
|
||||
// 고른 장면만 찍을 때(-uiOnly) 앞쪽 화면(로비 · 영웅 · 편성 · 보물 · 공방 채굴 · 내정 · 투기장)이 목록에 없으면 그 구간을 열지 않고 월드맵으로(PD 2026-11-26 「지시한 수정사항만 테스트」)
|
||||
if (SkipEarly()) goto WorldMap;
|
||||
root.ShowLobby();
|
||||
yield return Shot(cam, "lobby", W, H);
|
||||
yield return LobbyAnim(cam);
|
||||
|
|
@ -381,6 +383,7 @@ namespace TKS.OutGame
|
|||
root.ShowLobby();
|
||||
yield return Shot(cam, "lobby_1536x2048", W2, H2);
|
||||
|
||||
WorldMap:
|
||||
root.OpenWorldMap();
|
||||
yield return Wait();
|
||||
var wm = root.Map;
|
||||
|
|
@ -407,6 +410,17 @@ namespace TKS.OutGame
|
|||
wm.OpenPopup(bossNode);
|
||||
yield return Wait();
|
||||
yield return Shot(cam, "worldmap_popup_hard_boss", W, H);
|
||||
if (only == null || Match("worldmap_popup_boss_tip") != null) // 보스 스킬 칸 누름 = 툴팁(PD 2026-11-26)
|
||||
{
|
||||
foreach (var b in Object.FindObjectsByType<UnityEngine.UI.Button>(FindObjectsSortMode.None))
|
||||
if (b.name == "Skill0" && b.gameObject.activeInHierarchy)
|
||||
{
|
||||
b.onClick.Invoke();
|
||||
break;
|
||||
}
|
||||
yield return Wait();
|
||||
yield return Shot(cam, "worldmap_popup_boss_tip", W, H);
|
||||
}
|
||||
wm.ClosePopup();
|
||||
yield return Wait();
|
||||
}
|
||||
|
|
@ -1133,6 +1147,21 @@ namespace TKS.OutGame
|
|||
}
|
||||
|
||||
/// <summary>지정 목록에 맞는 토큰(없으면 null).</summary>
|
||||
/// <summary>고른 장면 목록에 앞쪽 화면(로비 ~ 투기장 · 2048 로비)이 하나도 없으면 true — 그 구간을 열지도 않음.</summary>
|
||||
bool SkipEarly()
|
||||
{
|
||||
if (only == null) return false;
|
||||
string[] early = { "lobby", "hero_list", "hero_detail", "formation", "trade_", "treasure_", "workshop_", "domestic_", "arena", "popup_stamina" };
|
||||
foreach (var t in only)
|
||||
{
|
||||
string k = t.Trim();
|
||||
string pre = k.EndsWith("*") ? k.Substring(0, k.Length - 1) : k;
|
||||
foreach (var e in early)
|
||||
if (pre.StartsWith(e) || e.StartsWith(pre)) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
string Match(string name)
|
||||
{
|
||||
foreach (var t in only)
|
||||
|
|
|
|||
|
|
@ -433,23 +433,24 @@ namespace TKS
|
|||
/// 2(B) = 영웅 패시브 + 영웅 액티브(보스·무장 · 예약형만 · 아니면 병종 기본) · 3(C · 권고) = 보스는 B(withActive = 1부 보스 · PD #1098) · 보스 아닌 무장은 A).
|
||||
/// 기본 스킬을 붙이지 않는 전투 = 예전대로(무장 = 영웅 패시브 · withActive 보스 = 영웅 예약형 액티브 · 병사 = 없음).
|
||||
/// </summary>
|
||||
public UnitSkills AttachEnemy(Unit u, BalanceConfig.EnemySpawn e, bool withActive = false)
|
||||
/// <summary>
|
||||
/// 적 한 명이 갖는 스킬 id(액티브 · 패시브) — AttachEnemy 와 스테이지 팝업 보스 정보(PD 2026-11-26)가 같은 규칙을 쓰게 뺀 것(동작 그대로).
|
||||
/// basicOn = 병종 기본 스킬(enemy_skills.csv)을 붙이는 전투인가(EnemyBasicOn) · 돌려주는 값 = 같은 아트 · 이름의 영웅(없으면 null).
|
||||
/// </summary>
|
||||
public static OutGame.HeroDb.Hero EnemySkillIds(BalanceConfig.EnemySpawn e, int chapter, bool withActive, bool basicOn, out string act, out string pas)
|
||||
{
|
||||
if (u == null || e == null) return null;
|
||||
act = pas = null;
|
||||
if (e == null) return null;
|
||||
bool general = e.isBoss || e.isGeneral;
|
||||
var db = OutGame.OutGameData.Default;
|
||||
var sdb = db != null ? db.Skills : null;
|
||||
var stage = battle != null ? battle.Stage : null;
|
||||
string rank = e.isBoss ? OutGame.SkillInfoDb.RankBoss : e.isGeneral ? OutGame.SkillInfoDb.RankGeneral : OutGame.SkillInfoDb.RankSoldier;
|
||||
var row = sdb != null && EnemyBasicOn(rank) ? sdb.EnemyFor(UnitTypeInfo.Key(e.type), rank, stage != null ? stage.chapter : 0) : null;
|
||||
string act = row != null ? row.skillActive : null;
|
||||
string pas = row != null ? row.skillPassive : null;
|
||||
var row = sdb != null && basicOn ? sdb.EnemyFor(UnitTypeInfo.Key(e.type), rank, chapter) : null;
|
||||
act = row != null ? row.skillActive : null;
|
||||
pas = row != null ? row.skillPassive : null;
|
||||
var h = general ? SkillCatalog.HeroForEnemy(e.art, e.name) : null;
|
||||
if (h != null)
|
||||
{
|
||||
u.Camp = h.faction ?? "";
|
||||
u.Female = h.Female;
|
||||
u.HeroId = h.id;
|
||||
var w = AiWeights.Load();
|
||||
int mode = row == null ? -1 : w != null ? Mathf.RoundToInt(w["enemy_hero_skill"]) : 3;
|
||||
var ha = SkillCatalog.Get(h.skillActive);
|
||||
|
|
@ -458,6 +459,23 @@ namespace TKS
|
|||
bool heroActive = mode == -1 ? withActive : mode == 2 ? true : mode == 3 ? e.isBoss && withActive : false;
|
||||
if (heroActiveOk && heroActive) act = h.skillActive;
|
||||
}
|
||||
return h;
|
||||
}
|
||||
|
||||
public UnitSkills AttachEnemy(Unit u, BalanceConfig.EnemySpawn e, bool withActive = false)
|
||||
{
|
||||
if (u == null || e == null) return null;
|
||||
bool general = e.isBoss || e.isGeneral;
|
||||
var stage = battle != null ? battle.Stage : null;
|
||||
string rank = e.isBoss ? OutGame.SkillInfoDb.RankBoss : e.isGeneral ? OutGame.SkillInfoDb.RankGeneral : OutGame.SkillInfoDb.RankSoldier;
|
||||
string act, pas;
|
||||
var h = EnemySkillIds(e, stage != null ? stage.chapter : 0, withActive, EnemyBasicOn(rank), out act, out pas);
|
||||
if (h != null)
|
||||
{
|
||||
u.Camp = h.faction ?? "";
|
||||
u.Female = h.Female;
|
||||
u.HeroId = h.id;
|
||||
}
|
||||
if (string.IsNullOrEmpty(act) && string.IsNullOrEmpty(pas))
|
||||
{
|
||||
if (!general) return null;
|
||||
|
|
|
|||
|
|
@ -1066,7 +1066,11 @@ namespace TKS
|
|||
const float PopupH = 1252f; // 1160 + 전장 설명 칸 92(2026-11-12 시나리오 이벤트 C1)
|
||||
const float PopupBtnY = PopupH - 52f - 104f;
|
||||
// 출정 군령장(PD 2026-11-25 「인게임 전투 입장 팝업 UI 를 우리 게임의 컨셉과 화풍에 맞게」) = 양피지 두루마리 판(공방 제작 주문서와 같은 판) + 붉은 칠 명패 제목 · 본문 = 종이 위 색
|
||||
const float PaperW = 1000f, PaperExtraH = 160f, PaperBtnShift = 60f, PaperHeadH = 104f;
|
||||
// 판 = 폭 1000 · 높이 = 팝업 + PaperExtraH(PD 2026-11-26 「크게」 160 → 200 · 단추도 같이 아래로 PaperBtnShift 60 → 100) · 전체 배율 PaperScale(폭 1040 = 좌우 여백 20)
|
||||
const float PaperW = 1000f, PaperExtraH = 200f, PaperBtnShift = 100f, PaperHeadH = 104f, PaperScale = 1.04f;
|
||||
// 위 두루마리 축 가운데 = 판 위 + (TopInset - PaperRollUp)(캡처 실측 2026-11-26 · 명패 세로 가운데) · 본문 시작 = 축 아래 PaperFieldTop ·
|
||||
// 아래 축 가운데 = 판 아래 + (BottomInset - PaperRollDown) · 「닫기」 명패 단추 크기
|
||||
const float PaperRollUp = 65f, PaperFieldTop = 14f, PaperRollDown = 56f, PaperCloseW = 300f, PaperCloseH = 92f;
|
||||
bool paperPopup;
|
||||
float popupBtnY = PopupBtnY, popupGoX;
|
||||
|
||||
|
|
@ -1158,14 +1162,17 @@ namespace TKS
|
|||
float top = TKS.OutGame.PaperScroll.TopInset;
|
||||
field.color = Color.clear;
|
||||
field.rectTransform.offsetMin = new Vector2((PaperW - 860f) * 0.5f, ph - popupBtnY + 16f);
|
||||
field.rectTransform.offsetMax = new Vector2(-(PaperW - 860f) * 0.5f, -(top + PaperHeadH * 0.5f + 8f));
|
||||
// 명패 = 위 두루마리 축 위 가운데(PD 2026-11-26 「제목 타이틀 UI 가 상단 두루마리에 배치되지 않고 애매하게 겹쳐 보임」 · 축 가운데 = 판 위에서 top - PaperRollUp 실측) →
|
||||
// 본문은 축 바로 아래 종이부터(명패 몫을 비우지 않음)
|
||||
float roll = -top + PaperRollUp;
|
||||
field.rectTransform.offsetMax = new Vector2(-(PaperW - 860f) * 0.5f, -(top + PaperFieldTop));
|
||||
var head = panel.transform.Find("Head") as RectTransform;
|
||||
var plaque = UISkin.Icon("tre_plaque");
|
||||
if (head != null && plaque != null)
|
||||
{
|
||||
head.anchorMin = head.anchorMax = new Vector2(0.5f, 1f);
|
||||
head.pivot = new Vector2(0.5f, 0.5f);
|
||||
head.anchoredPosition = new Vector2(0f, -top + 8f);
|
||||
head.anchoredPosition = new Vector2(0f, roll);
|
||||
head.sizeDelta = new Vector2(PaperW - 260f, PaperHeadH);
|
||||
var hi = head.GetComponent<Image>();
|
||||
var gl = head.Find(UISkin.OverlayName);
|
||||
|
|
@ -1174,11 +1181,26 @@ namespace TKS
|
|||
hi.type = Image.Type.Sliced;
|
||||
hi.pixelsPerUnitMultiplier = plaque.rect.height / PaperHeadH;
|
||||
hi.color = Color.white;
|
||||
if (popupCode != null) { var cr = popupCode.transform.parent as RectTransform; if (cr != null) cr.anchoredPosition += new Vector2(40f, 0f); }
|
||||
if (popupTitle != null) popupTitle.rectTransform.anchoredPosition += new Vector2(90f, 0f); // 왼쪽 단계 칩과 겹치지 않게
|
||||
// 명패 = 장 이름만 가운데(PD 2026-11-26 「타이틀 위치 조정」 · 단계 칩 1-10 은 본문 맨 위 줄로 내려감 = OutGameRoot.PopupFill)
|
||||
if (popupCode != null && popupCode.transform.parent != null) popupCode.transform.parent.gameObject.SetActive(false);
|
||||
}
|
||||
// 닫기 = 오른쪽 위 X 없앰 → 아래 두루마리 축 위 「닫기」 명패 단추(PD 2026-11-26 「X 버튼은 제거하고 스크롤 UI 하단(두루마리 하단)에 닫기 버튼」)
|
||||
var x = panel.transform.Find("Close") as RectTransform;
|
||||
if (x != null) x.anchoredPosition = new Vector2(-34f, -top + 8f);
|
||||
if (x != null) x.gameObject.SetActive(false);
|
||||
if (plaque != null)
|
||||
{
|
||||
var cb = Img("CloseBottom", panel.transform, plaque, new Vector2(0.5f, 0f), new Vector2(0.5f, 0f), new Vector2(0.5f, 0.5f),
|
||||
new Vector2(0f, TKS.OutGame.PaperScroll.BottomInset - PaperRollDown), new Vector2(PaperCloseW, PaperCloseH));
|
||||
cb.type = Image.Type.Sliced;
|
||||
cb.pixelsPerUnitMultiplier = plaque.rect.height / PaperCloseH;
|
||||
cb.raycastTarget = true;
|
||||
cb.gameObject.AddComponent<Button>().onClick.AddListener(ClosePopup);
|
||||
var cl = Label(cb.transform, "닫기", 40, Paper, new Vector2(0.5f, 0.5f));
|
||||
UISkin.UseTitle(cl);
|
||||
cl.GetComponent<Outline>().effectColor = UISkin.Col("stroke", Ink);
|
||||
}
|
||||
// 판 크게(PD 2026-11-26 「스테이지 입장 UI 크기를 좀 더 키워 · 상하좌우 여백 고려」) — 본문은 위(PaperExtraH)에서 늘리고 전체를 PaperScale 배
|
||||
panel.rectTransform.localScale = new Vector3(PaperScale, PaperScale, 1f);
|
||||
foreach (var b in new[] { popupGo, popupSweep })
|
||||
{
|
||||
var r = (RectTransform)b.transform;
|
||||
|
|
|
|||
|
|
@ -34,6 +34,10 @@ def hero_arts():
|
|||
a = m.group(1).strip()
|
||||
if a not in arts:
|
||||
arts.append(a)
|
||||
# 적 보스 그림(스테이지 팝업 보스 얼굴 · PD 2026-11-26) — Units 아래 이름에 boss 가 든 폴더
|
||||
for d in sorted(os.listdir(os.path.join(RES, "Units"))):
|
||||
if "boss" in d and os.path.isdir(os.path.join(RES, "Units", d)) and d not in arts:
|
||||
arts.append(d)
|
||||
return arts
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue