설정 팝업(옵션 메뉴) + 전투 중단 버튼 || 아이콘(PD 2026-11-25)

- 본영 톱니 → 설정 팝업(SettingsPopup): 배경음 · 효과음 켜기/끄기 + 음량 / 조작 방식(직접 조준 · 슬링샷, 기본 = 직접 조준) /
  언어(별도 팝업 · 8개 언어) / PID 복사 / 계정 연동 · 로그아웃 / 쿠폰 · 개인정보 보호정책 · 서비스 약관(표 링크) / 버전 / 계정 삭제(게스트)
- 표 = Resources/UI/Settings/settings_screen · settings_text(C45) · 저장 = PlayerPrefs(GameSettings · Sound) · 기기 PID = SaveData.pid
- 슬링샷 조작 = 손가락 자리를 유닛 기준으로 뒤집음(학습 판 안내 중에는 직접 조준)
- 전투 오른쪽 위 버튼: 톱니 → || 아이콘(bt_pause) · 기능 = 중단 팝업 그대로
- PD 「커밋 · 푸시해」

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
깃 관리자 2026-11-25 23:49:37 +09:00
parent 84bb46da14
commit fbd3308d24
21 changed files with 1028 additions and 16 deletions

View File

@ -653,3 +653,8 @@ icon,cls_ico_spear,Assets/UI/Samguk/battle/bt_cls2_spear.png,,,,,,병종 아이
icon,cls_ico_cavalry,Assets/UI/Samguk/battle/bt_cls2_cavalry.png,,,,,,병종 아이콘 기병 말(원판 없는 스티커 · 게임 전체 병종 표시 · PD 2026-11-22 · 아트 battle_ui jobs_r13_cls)
icon,cls_ico_archer,Assets/UI/Samguk/battle/bt_cls2_archer.png,,,,,,병종 아이콘 궁병 활(원판 없는 스티커 · 게임 전체 병종 표시 · PD 2026-11-22 · 아트 battle_ui jobs_r13_cls)
icon,cls_ico_strategist,Assets/UI/Samguk/battle/bt_cls2_strategist.png,,,,,,병종 아이콘 책사 깃털 부채(원판 없는 스티커 · 게임 전체 병종 표시 · PD 2026-11-22 · 아트 battle_ui jobs_r13_cls)
icon,set_sw_bg,UI_Etc/Switch_White_Bg.png,,,,,,설정 팝업 켜기/끄기 스위치 바탕(틴트 = 켜짐 금 · 꺼짐 갈색 · PD 2026-11-25 옵션 메뉴)
icon,set_sw_knob,UI_Etc/Switch_White_Handle.png,,,,,,설정 팝업 스위치 손잡이(흰 · 검은 테)
icon,set_sl_knob,Slider/Slider_Handle_Handle.png,,,,,,설정 팝업 음량 막대 손잡이
icon,set_arrow,IconMisc/Icon_Arrow_Next1.png,,,,,,설정 팝업 언어 버튼 오른쪽 화살표
icon,bt_pause,IconMisc/Icon_Pause.png,,,,,,전투 중단 버튼 || 아이콘(흰 · 검은 테 · PD 2026-11-25 「전투 중 톱니 = 중도 포기 버튼 · || 형태로 아이콘 교체 · 기능 유지」)

1 kind id path overlay ppu inset alpha color note
653 icon cls_ico_cavalry Assets/UI/Samguk/battle/bt_cls2_cavalry.png 병종 아이콘 기병 말(원판 없는 스티커 · 게임 전체 병종 표시 · PD 2026-11-22 · 아트 battle_ui jobs_r13_cls)
654 icon cls_ico_archer Assets/UI/Samguk/battle/bt_cls2_archer.png 병종 아이콘 궁병 활(원판 없는 스티커 · 게임 전체 병종 표시 · PD 2026-11-22 · 아트 battle_ui jobs_r13_cls)
655 icon cls_ico_strategist Assets/UI/Samguk/battle/bt_cls2_strategist.png 병종 아이콘 책사 깃털 부채(원판 없는 스티커 · 게임 전체 병종 표시 · PD 2026-11-22 · 아트 battle_ui jobs_r13_cls)
656 icon set_sw_bg UI_Etc/Switch_White_Bg.png 설정 팝업 켜기/끄기 스위치 바탕(틴트 = 켜짐 금 · 꺼짐 갈색 · PD 2026-11-25 옵션 메뉴)
657 icon set_sw_knob UI_Etc/Switch_White_Handle.png 설정 팝업 스위치 손잡이(흰 · 검은 테)
658 icon set_sl_knob Slider/Slider_Handle_Handle.png 설정 팝업 음량 막대 손잡이
659 icon set_arrow IconMisc/Icon_Arrow_Next1.png 설정 팝업 언어 버튼 오른쪽 화살표
660 icon bt_pause IconMisc/Icon_Pause.png 전투 중단 버튼 || 아이콘(흰 · 검은 테 · PD 2026-11-25 「전투 중 톱니 = 중도 포기 버튼 · || 형태로 아이콘 교체 · 기능 유지」)

View File

@ -75,7 +75,7 @@ pause_continue,560|1030|310|110|btn_l_yellow|#FFFFFF|40,계속 버튼(주 버튼
unit_name_outline,0.012,전장 유닛 이름표 외곽선 두께(월드 · 0 = 없음 · 0.018 → 0.012 PD 2026-11-21 5차 「색감 칙칙 · 인게임 아웃라인 두꺼움」)
cam_hud,210|-32,카메라 여유(화면 px) 위 = 띠 + 턴 현판 밑에 유닛이 안 깔리게|아래 = 탁자 지금 높이 + 이 값(두루마리 종이 윗변이 판 위끝보다 32 아래 · 그 투명한 틈에 전장이 보이게 · 1안)
settings_btn,TR|982|8|96|88,설정 버튼 누름 칸(오른쪽 끝 · PD 2026-11-21 2차 「설정 버튼은 우측 가장자리」 · 누름 = 중단 팝업 계속 / 포기)
settings_btn_art,|#00000000|lobby_option|72,바탕 스킨(비움 = 아이콘만 · 로비 본영 제목 띠 설정 톱니와 같은 모양)|바탕 틴트|아이콘(PD 승인 톱니 lobby_option)|아이콘 크기
settings_btn_art,|#00000000|bt_pause|72,바탕 스킨(비움 = 아이콘만)|바탕 틴트|아이콘(PD 2026-11-25 「톱니 → || 형태 · 기능 = 중단 팝업 그대로」 = 팩 Icon_Pause · 톱니 lobby_option 은 로비 설정 전용)|아이콘 크기
stage_title,TS|36|0|500|104,스테이지 제목 칸(큰 제목 + 회색 부제 = 아웃게임 제목 띠 「임무 일일 · 주간 · 업적」 방식 · 오른쪽 = 수 칩 앞까지)
stage_title_font,52|30|header_text|header_sub|40|22|18,큰 제목 글자|부제 글자|제목 색|부제 색|제목 최소|부제 최소|제목 ↔ 부제 간격
passive_desc,BL|204|1812|536|88,패시브 설명(먹 26 · 3줄 · 넘치면 22)

1 # 전투 HUD 배치 표(PD 2026-11-21 「전투 화면 UI 수정 · 상단 정보 · 언제든 포기할 수 있는 중단 메뉴 · 화풍과 컨셉에 맞는 디자인 · 영웅을 터치하면 스킬 버튼 · 별도 UI 에 스킬 설명」) — 코드 = Runtime/BattleHUD.cs · 기획 = 아트 폴더 battle_ui/design/디자인기획_r1.md(Fable 「군막 지휘판」)
75 unit_name_outline,0.012,전장 유닛 이름표 외곽선 두께(월드 · 0 = 없음 · 0.018 → 0.012 PD 2026-11-21 5차 「색감 칙칙 · 인게임 아웃라인 두꺼움」)
76 cam_hud,210|-32,카메라 여유(화면 px) 위 = 띠 + 턴 현판 밑에 유닛이 안 깔리게|아래 = 탁자 지금 높이 + 이 값(두루마리 종이 윗변이 판 위끝보다 32 아래 · 그 투명한 틈에 전장이 보이게 · 1안)
77 settings_btn,TR|982|8|96|88,설정 버튼 누름 칸(오른쪽 끝 · PD 2026-11-21 2차 「설정 버튼은 우측 가장자리」 · 누름 = 중단 팝업 계속 / 포기)
78 settings_btn_art,|#00000000|lobby_option|72,바탕 스킨(비움 = 아이콘만 · 로비 본영 제목 띠 설정 톱니와 같은 모양)|바탕 틴트|아이콘(PD 승인 톱니 lobby_option)|아이콘 크기 settings_btn_art,|#00000000|bt_pause|72,바탕 스킨(비움 = 아이콘만)|바탕 틴트|아이콘(PD 2026-11-25 「톱니 → || 형태 · 기능 = 중단 팝업 그대로」 = 팩 Icon_Pause · 톱니 lobby_option 은 로비 설정 전용)|아이콘 크기
79 stage_title,TS|36|0|500|104,스테이지 제목 칸(큰 제목 + 회색 부제 = 아웃게임 제목 띠 「임무 일일 · 주간 · 업적」 방식 · 오른쪽 = 수 칩 앞까지)
80 stage_title_font,52|30|header_text|header_sub|40|22|18,큰 제목 글자|부제 글자|제목 색|부제 색|제목 최소|부제 최소|제목 ↔ 부제 간격
81 passive_desc,BL|204|1812|536|88,패시브 설명(먹 26 · 3줄 · 넘치면 22)

View File

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

View File

@ -0,0 +1,55 @@
# 설정 팝업 화면 표(PD 2026-11-25 옵션 메뉴) — 코드 = OutGame/UI/SettingsPopup · 좌표 = 판 왼쪽 위 기준 px(1080×1920 화면) · 색 = #RRGGBB · 그림 id = 테마 아이콘(UISkin.Icon) · 스킨 = 테마 스킨(UiKit.Skin)
# 모양 = 전투 중단 팝업(battle_hud pause_*)과 같은 그림 언어: 붉은 옻칠 현판 머리(ms_plaque) + 어두운 목패 몸통(bt_tag_panel) · 안 = 종이 카드(bt_tag_panel 밝은 틴트)
s_key,s_value,note
dim,0.6,뒤 어둡게(알파)
panel,940|0|10,몸통 판 너비|가운데 x|가운데 y(위 +) · 높이 = 내용에서 계산
body_art,bt_tag_panel|#4B3224|0.7,몸통 그림|틴트|9 분할 배율
head,560|124,머리 현판 너비|높이(가운데 = 판 윗변)
head_art,ms_plaque|2.08|50|#FFFFFF,현판 그림|9 분할 배율|제목 글자|색
close,88|-40|-40,닫기 X 크기|판 오른쪽 위 모서리에서 x|y(가운데)
pad,40|92|36,안쪽 여백 좌우|위(현판 아래)|아래
card_art,bt_tag_panel|#F3E4C4|1,종이 카드 그림|틴트|9 분할 배율
card_title,32|#F6D58A|48|#2A1A10,카드 제목 글자|색|제목 줄 높이|외곽선 색
card_gap,18|10,카드 사이|카드 안 위아래 여백
row_h,104,행 높이
row_x,28,카드 안 좌우 여백
label,32|#4A2C1C|190,행 이름 글자|색|칸 너비
soft,25|#7A5A40,보조 글자|색
line,#D9C29A|2,행 구분선 색|두께
switch,124|64|#E9A93A|#8C7560|8,스위치 너비|높이|켜짐 색|꺼짐 색|손잡이 안쪽 여백
switch_art,set_sw_bg|set_sw_knob|1,스위치 바탕|손잡이 그림|9 분할 배율
slider,44|72|56|#5A4030|#F2B53A|1.5|6,음량 막대 높이|손잡이 너비|높이|바탕 색|채움 색|9 분할 배율|채움 안쪽 여백(가득 차도 바탕 테두리가 보이게)
slider_art,bar_bg|bar_fill|set_sl_knob,막대 바탕 스킨|채움 스킨|손잡이 그림
sound_x,200|356,스위치 x|음량 막대 x(막대 끝 = 카드 오른쪽 여백)
seg,230|80|12|30,조작 방식 버튼 시작 x|높이|사이|글자
seg_on,btn_l_yellow|#FFFFFF|#4A2C1C,고른 버튼 스킨|틴트|글자 색
seg_off,button|#CDB48A|#6B4E36,안 고른 버튼 스킨|틴트|글자 색
desc_h,48,조작 방식 설명 줄 높이(버튼 아래)
lang_btn,330|76|button|#E9D3A6|32,언어 버튼 너비|높이|스킨|틴트|글자(오른쪽 정렬)
lang_arrow,set_arrow|30,언어 버튼 오른쪽 화살표 그림|크기
pid_box,140|64|#E6D3AA|24,PID 칸 x|높이|바탕|글자
copy_btn,132|64|btn_s_green|#FFFFFF|28,복사 버튼 너비|높이|스킨|틴트|글자
acct_btn,260|72|button|#3E78C8|28,계정 연동 · 로그아웃 버튼 너비|높이|스킨|틴트|글자
url_row,84|12|26,쿠폰 · 약관 버튼 줄 높이|사이|글자
url_coupon_btn,button|#8A5FB5,쿠폰 버튼 스킨|틴트
url_privacy_btn,button|#5B6B86,개인정보 보호정책 버튼
url_terms_btn,button|#5B6B86,서비스 약관 버튼
footer,24|80|26|#E8D9BC,바닥 줄 위 여백|높이|버전 글자|색
delete_btn,240|72|button|#C8473A|28,계정 삭제 · 탈퇴 버튼 너비|높이|스킨|틴트|글자
btn_text,#FFFFFF|#3A2416|2,색 버튼 글자|외곽선|두께
# 링크(PD 「추후 URL 링크 제공 예정」) — 비면 누를 때 「준비 중」 안내
url_coupon,,쿠폰 입력 페이지
url_privacy,,개인정보 보호정책
url_terms,,서비스 약관
# 언어(PD 지원 예정 8개 · PD 순서) — 코드 = 글자 표 언어 칸 이름 | 그 언어로 쓴 이름
lang,ko|한국어
lang,ja|日本語
lang,en|English
lang,zh_cn|简体中文
lang,zh_tw|繁體中文
lang,th|ไทย
lang,vi|Tiếng Việt
lang,id|Bahasa Indonesia
lang_font,Malgun Gothic|Microsoft YaHei|Microsoft JhengHei|Yu Gothic UI|Leelawadee UI|Segoe UI|Noto Sans CJK KR|Noto Sans Thai|Apple SD Gothic Neo|Roboto|Arial,언어 이름 글꼴(OS 글꼴 · 첫 글꼴에 없는 글자 = 뒤 글꼴로 · 게임 글꼴에는 한자 · 태국 글자가 없다)
lang_popup,820|2|350|96|20|34,언어 팝업 너비|열 수|버튼 너비|높이|사이|글자
lang_apply,300|100|btn_l_yellow|#FFFFFF|38,변경 버튼 너비|높이|스킨|틴트|글자
1 # 설정 팝업 화면 표(PD 2026-11-25 옵션 메뉴) — 코드 = OutGame/UI/SettingsPopup · 좌표 = 판 왼쪽 위 기준 px(1080×1920 화면) · 색 = #RRGGBB · 그림 id = 테마 아이콘(UISkin.Icon) · 스킨 = 테마 스킨(UiKit.Skin)
2 # 모양 = 전투 중단 팝업(battle_hud pause_*)과 같은 그림 언어: 붉은 옻칠 현판 머리(ms_plaque) + 어두운 목패 몸통(bt_tag_panel) · 안 = 종이 카드(bt_tag_panel 밝은 틴트)
3 s_key,s_value,note
4 dim,0.6,뒤 어둡게(알파)
5 panel,940|0|10,몸통 판 너비|가운데 x|가운데 y(위 +) · 높이 = 내용에서 계산
6 body_art,bt_tag_panel|#4B3224|0.7,몸통 그림|틴트|9 분할 배율
7 head,560|124,머리 현판 너비|높이(가운데 = 판 윗변)
8 head_art,ms_plaque|2.08|50|#FFFFFF,현판 그림|9 분할 배율|제목 글자|색
9 close,88|-40|-40,닫기 X 크기|판 오른쪽 위 모서리에서 x|y(가운데)
10 pad,40|92|36,안쪽 여백 좌우|위(현판 아래)|아래
11 card_art,bt_tag_panel|#F3E4C4|1,종이 카드 그림|틴트|9 분할 배율
12 card_title,32|#F6D58A|48|#2A1A10,카드 제목 글자|색|제목 줄 높이|외곽선 색
13 card_gap,18|10,카드 사이|카드 안 위아래 여백
14 row_h,104,행 높이
15 row_x,28,카드 안 좌우 여백
16 label,32|#4A2C1C|190,행 이름 글자|색|칸 너비
17 soft,25|#7A5A40,보조 글자|색
18 line,#D9C29A|2,행 구분선 색|두께
19 switch,124|64|#E9A93A|#8C7560|8,스위치 너비|높이|켜짐 색|꺼짐 색|손잡이 안쪽 여백
20 switch_art,set_sw_bg|set_sw_knob|1,스위치 바탕|손잡이 그림|9 분할 배율
21 slider,44|72|56|#5A4030|#F2B53A|1.5|6,음량 막대 높이|손잡이 너비|높이|바탕 색|채움 색|9 분할 배율|채움 안쪽 여백(가득 차도 바탕 테두리가 보이게)
22 slider_art,bar_bg|bar_fill|set_sl_knob,막대 바탕 스킨|채움 스킨|손잡이 그림
23 sound_x,200|356,스위치 x|음량 막대 x(막대 끝 = 카드 오른쪽 여백)
24 seg,230|80|12|30,조작 방식 버튼 시작 x|높이|사이|글자
25 seg_on,btn_l_yellow|#FFFFFF|#4A2C1C,고른 버튼 스킨|틴트|글자 색
26 seg_off,button|#CDB48A|#6B4E36,안 고른 버튼 스킨|틴트|글자 색
27 desc_h,48,조작 방식 설명 줄 높이(버튼 아래)
28 lang_btn,330|76|button|#E9D3A6|32,언어 버튼 너비|높이|스킨|틴트|글자(오른쪽 정렬)
29 lang_arrow,set_arrow|30,언어 버튼 오른쪽 화살표 그림|크기
30 pid_box,140|64|#E6D3AA|24,PID 칸 x|높이|바탕|글자
31 copy_btn,132|64|btn_s_green|#FFFFFF|28,복사 버튼 너비|높이|스킨|틴트|글자
32 acct_btn,260|72|button|#3E78C8|28,계정 연동 · 로그아웃 버튼 너비|높이|스킨|틴트|글자
33 url_row,84|12|26,쿠폰 · 약관 버튼 줄 높이|사이|글자
34 url_coupon_btn,button|#8A5FB5,쿠폰 버튼 스킨|틴트
35 url_privacy_btn,button|#5B6B86,개인정보 보호정책 버튼
36 url_terms_btn,button|#5B6B86,서비스 약관 버튼
37 footer,24|80|26|#E8D9BC,바닥 줄 위 여백|높이|버전 글자|색
38 delete_btn,240|72|button|#C8473A|28,계정 삭제 · 탈퇴 버튼 너비|높이|스킨|틴트|글자
39 btn_text,#FFFFFF|#3A2416|2,색 버튼 글자|외곽선|두께
40 # 링크(PD 「추후 URL 링크 제공 예정」) — 비면 누를 때 「준비 중」 안내
41 url_coupon,,쿠폰 입력 페이지
42 url_privacy,,개인정보 보호정책
43 url_terms,,서비스 약관
44 # 언어(PD 지원 예정 8개 · PD 순서) — 코드 = 글자 표 언어 칸 이름 | 그 언어로 쓴 이름
45 lang,ko|한국어
46 lang,ja|日本語
47 lang,en|English
48 lang,zh_cn|简体中文
49 lang,zh_tw|繁體中文
50 lang,th|ไทย
51 lang,vi|Tiếng Việt
52 lang,id|Bahasa Indonesia
53 lang_font,Malgun Gothic|Microsoft YaHei|Microsoft JhengHei|Yu Gothic UI|Leelawadee UI|Segoe UI|Noto Sans CJK KR|Noto Sans Thai|Apple SD Gothic Neo|Roboto|Arial,언어 이름 글꼴(OS 글꼴 · 첫 글꼴에 없는 글자 = 뒤 글꼴로 · 게임 글꼴에는 한자 · 태국 글자가 없다)
54 lang_popup,820|2|350|96|20|34,언어 팝업 너비|열 수|버튼 너비|높이|사이|글자
55 lang_apply,300|100|btn_l_yellow|#FFFFFF|38,변경 버튼 너비|높이|스킨|틴트|글자

View File

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

View File

@ -0,0 +1,43 @@
# 설정 팝업 글자 표(PD 2026-11-25 옵션 메뉴) — 코드 = OutGame/UI/SettingsPopup · 언어 칸 이름 = settings_screen lang 줄의 코드(빈 칸 = 한국어로 보임)
s_key,ko,en,note
set_title,설정,Settings,팝업 제목(붉은 현판)
set_sec_sound,소리,Sound,카드 제목
set_sec_game,게임,Game,카드 제목
set_sec_account,계정,Account,카드 제목
set_bgm,배경음,Music,
set_sfx,효과음,Sound FX,
set_control,조작 방식,Controls,
set_control_direct,직접 조준,Direct Aim,지금 방식(기본) — 가고 싶은 쪽으로 끈다
set_control_sling,슬링샷,Slingshot,당긴 반대쪽으로 날아간다
set_control_direct_desc,끈 쪽으로 이동 · 공격합니다,Units move toward where you drag.,
set_control_sling_desc,새총처럼 당긴 반대쪽으로 날아갑니다,Pull back like a slingshot to launch.,
set_lang,언어,Language,
set_pid,PID,PID,
set_copy,복사,Copy,
set_copied,PID 를 복사했습니다,PID copied,
set_loading,불러오는 중…,Loading…,
set_account,로그인,Sign-in,계정 줄 이름
set_guest,게스트,Guest,
set_linked,{0},{0},소셜 계정 이름(Google Play · Game Center)
set_account_fail,계정 정보를 받지 못했습니다,Could not load account,
set_link,계정 연동,Link Account,
set_logout,로그아웃,Sign Out,
set_logout_body,로그아웃할까요?\n타이틀의 로그인 화면으로 돌아갑니다.,Sign out and return to the title screen?,
set_logout_fail,로그아웃하지 못했습니다 ({0}),Could not sign out ({0}),
set_coupon,쿠폰 입력,Coupon,
set_privacy,개인정보 보호정책,Privacy Policy,
set_terms,서비스 약관,Terms of Service,
set_version,버전 {0},Version {0},
set_delete,계정 삭제,Delete Account,게스트 계정만
set_withdraw,계정 탈퇴,Withdraw,소셜 계정(서버 유예 일수가 있을 때)
set_url_soon,준비 중입니다 (링크 등록 예정),Coming soon,링크 표가 빈 칸일 때
set_link_offline,소셜 계정 연동은 서버에 접속한 상태에서 이용할 수 있습니다,Connect to the server to link an account.,기기 세이브 모드
set_link_none,소셜 계정 연동은 준비 중입니다,Account linking is coming soon.,연동 방법이 없는 기기
set_link_pick,연동할 계정을 골라 주세요,Choose an account to link.,
set_cancel,취소,Cancel,
set_delete_body,계정을 삭제하면 영웅 · 재화 · 진행도 등 모든 데이터가 지워지고 되돌릴 수 없습니다.\n삭제하려면 아래 칸에 「계정 삭제」를 입력해 주세요.,All heroes and progress will be erased and cannot be recovered.\nType 「계정 삭제」 below to confirm.,기기 세이브 모드(서버 모드 = 계정 창의 같은 확인)
set_delete_ok,삭제,Delete,
set_delete_typo,「계정 삭제」를 정확히 입력해 주세요,Please type 「계정 삭제」 exactly.,
set_lang_title,언어,Language,언어 팝업 제목
set_lang_apply,변경,Apply,
set_lang_done,언어를 바꿨습니다 · 아직 번역되지 않은 글자는 한국어로 보입니다,Language changed. Untranslated text stays in Korean.,
1 # 설정 팝업 글자 표(PD 2026-11-25 옵션 메뉴) — 코드 = OutGame/UI/SettingsPopup · 언어 칸 이름 = settings_screen lang 줄의 코드(빈 칸 = 한국어로 보임)
2 s_key,ko,en,note
3 set_title,설정,Settings,팝업 제목(붉은 현판)
4 set_sec_sound,소리,Sound,카드 제목
5 set_sec_game,게임,Game,카드 제목
6 set_sec_account,계정,Account,카드 제목
7 set_bgm,배경음,Music,
8 set_sfx,효과음,Sound FX,
9 set_control,조작 방식,Controls,
10 set_control_direct,직접 조준,Direct Aim,지금 방식(기본) — 가고 싶은 쪽으로 끈다
11 set_control_sling,슬링샷,Slingshot,당긴 반대쪽으로 날아간다
12 set_control_direct_desc,끈 쪽으로 이동 · 공격합니다,Units move toward where you drag.,
13 set_control_sling_desc,새총처럼 당긴 반대쪽으로 날아갑니다,Pull back like a slingshot to launch.,
14 set_lang,언어,Language,
15 set_pid,PID,PID,
16 set_copy,복사,Copy,
17 set_copied,PID 를 복사했습니다,PID copied,
18 set_loading,불러오는 중…,Loading…,
19 set_account,로그인,Sign-in,계정 줄 이름
20 set_guest,게스트,Guest,
21 set_linked,{0},{0},소셜 계정 이름(Google Play · Game Center)
22 set_account_fail,계정 정보를 받지 못했습니다,Could not load account,
23 set_link,계정 연동,Link Account,
24 set_logout,로그아웃,Sign Out,
25 set_logout_body,로그아웃할까요?\n타이틀의 로그인 화면으로 돌아갑니다.,Sign out and return to the title screen?,
26 set_logout_fail,로그아웃하지 못했습니다 ({0}),Could not sign out ({0}),
27 set_coupon,쿠폰 입력,Coupon,
28 set_privacy,개인정보 보호정책,Privacy Policy,
29 set_terms,서비스 약관,Terms of Service,
30 set_version,버전 {0},Version {0},
31 set_delete,계정 삭제,Delete Account,게스트 계정만
32 set_withdraw,계정 탈퇴,Withdraw,소셜 계정(서버 유예 일수가 있을 때)
33 set_url_soon,준비 중입니다 (링크 등록 예정),Coming soon,링크 표가 빈 칸일 때
34 set_link_offline,소셜 계정 연동은 서버에 접속한 상태에서 이용할 수 있습니다,Connect to the server to link an account.,기기 세이브 모드
35 set_link_none,소셜 계정 연동은 준비 중입니다,Account linking is coming soon.,연동 방법이 없는 기기
36 set_link_pick,연동할 계정을 골라 주세요,Choose an account to link.,
37 set_cancel,취소,Cancel,
38 set_delete_body,계정을 삭제하면 영웅 · 재화 · 진행도 등 모든 데이터가 지워지고 되돌릴 수 없습니다.\n삭제하려면 아래 칸에 「계정 삭제」를 입력해 주세요.,All heroes and progress will be erased and cannot be recovered.\nType 「계정 삭제」 below to confirm.,기기 세이브 모드(서버 모드 = 계정 창의 같은 확인)
39 set_delete_ok,삭제,Delete,
40 set_delete_typo,「계정 삭제」를 정확히 입력해 주세요,Please type 「계정 삭제」 exactly.,
41 set_lang_title,언어,Language,언어 팝업 제목
42 set_lang_apply,변경,Apply,
43 set_lang_done,언어를 바꿨습니다 · 아직 번역되지 않은 글자는 한국어로 보입니다,Language changed. Untranslated text stays in Korean.,

View File

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

View File

@ -2226,6 +2226,26 @@ MonoBehaviour:
pack: {fileID: 21300000, guid: 16a2d5724149da1469a5e07ba9e58001, type: 3}
samguk: {fileID: 0}
tint: {r: 1, g: 1, b: 1, a: 1}
- id: set_sw_bg
pack: {fileID: 21300000, guid: 55f8dedbcdd184d0fa87ece74639f2b8, type: 3}
samguk: {fileID: 0}
tint: {r: 1, g: 1, b: 1, a: 1}
- id: set_sw_knob
pack: {fileID: 21300000, guid: 4db1ab1258c2d42bbac11f9f67aa2e21, type: 3}
samguk: {fileID: 0}
tint: {r: 1, g: 1, b: 1, a: 1}
- id: set_sl_knob
pack: {fileID: 21300000, guid: 3431eae1add1a4fe59b88366a9d20397, type: 3}
samguk: {fileID: 0}
tint: {r: 1, g: 1, b: 1, a: 1}
- id: set_arrow
pack: {fileID: 21300000, guid: 84c3adc90c0da4f009a1cfa76fa9363c, type: 3}
samguk: {fileID: 0}
tint: {r: 1, g: 1, b: 1, a: 1}
- id: bt_pause
pack: {fileID: 21300000, guid: e12c291ffd5f8436d8a3f04510189563, type: 3}
samguk: {fileID: 0}
tint: {r: 1, g: 1, b: 1, a: 1}
- id: bt_atk_archer
pack: {fileID: 0}
samguk: {fileID: 21300000, guid: dfb5f16437f2ae149b639a36f4a32ac7, type: 3}

View File

@ -161,7 +161,11 @@ namespace TKS.OutGame.Net
if (r.ok)
{
root.Toast(r.Str("result") == "switched" ? "기존 연동 계정으로 들어갑니다" : SocialSignIn.Label(method) + " 계정에 연동했습니다");
if (r.Str("result") != "switched") Open(root);
if (r.Str("result") != "switched")
{
if (SettingsPopup.IsOpen) SettingsPopup.Open(root); // 설정 팝업에서 연동했으면 그 팝업을 새로 그림(2026-11-25)
else Open(root);
}
return;
}
if (r.status == 409 && r.Message == AlreadyLinked)

View File

@ -202,6 +202,8 @@ namespace TKS.OutGame
public class SaveData
{
public int ver = SaveStore.Version;
[Tooltip("기기 세이브의 플레이어 고유 키(PID · GUID · 설정 팝업이 처음 열 때 만든다 · 서버 모드 = 서버 유저 번호를 대신 보여 줌 · 2026-11-25)")]
public string pid = "";
public int gold;
public int gem;
public int stamina;
@ -345,6 +347,7 @@ namespace TKS.OutGame
memoryOnly = false;
memory = null;
FileOverride = null;
writeBlocked = false;
}
/// <summary>에디터 시험 메뉴 「첫 실행 흐름 — 시험 세이브로 Play」가 쓰는 파일(내 save.json 은 건드리지 않음 · 빌드에서는 쓰지 않음).</summary>
@ -380,8 +383,33 @@ namespace TKS.OutGame
if (fresh) memory = null;
}
/// <summary>계정 삭제 뒤 = 쓰기 막음(씬을 다시 여는 사이에 남은 화면이 Commit 해 지운 세이브가 되살아나지 않게) · 다음 Load 가 푼다.</summary>
static bool writeBlocked;
/// <summary>
/// 기기 세이브 지우기(설정 팝업 「계정 삭제」 · 게스트 = 기기 세이브 모드 · 2026-11-25) — 메모리 전용이면 메모리만 비움 · 지운 뒤 다음 Load 전까지 쓰기 막음.
/// </summary>
public static void DeleteLocal()
{
writeBlocked = true;
if (MemoryOnly)
{
memory = null;
return;
}
try
{
if (File.Exists(FilePath)) File.Delete(FilePath);
}
catch (Exception e)
{
Debug.LogError("[TKS] 세이브 삭제 실패 " + FilePath + ": " + e.Message);
}
}
public static string ReadText()
{
writeBlocked = false;
if (MemoryOnly) return memory;
try
{
@ -416,6 +444,7 @@ namespace TKS.OutGame
public static void Write(SaveData d, DateTime nowUtc)
{
if (writeBlocked) return; // 계정 삭제 뒤(DeleteLocal) — 다음 Load 까지
d.ver = Version;
d.savedAt = Iso(nowUtc);
var json = JsonUtility.ToJson(d, true);

View File

@ -322,11 +322,7 @@ namespace TKS.OutGame
var b = UiKit.Rect("Settings", band, new Vector2(1f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(-ScreenTable.At(st, 1, 60f), ScreenTable.At(st, 2, 0f)), new Vector2(sz + 20f, sz + 20f));
var hit = b.gameObject.AddComponent<Image>();
hit.color = new Color(0f, 0f, 0f, 0f);
b.gameObject.AddComponent<Button>().onClick.AddListener(() =>
{
if (Net.AccountPanel.Available) Net.AccountPanel.Open(Root);
else Root.ComingSoon(UiText.Use("UI/lobby_text") ? UiText.T("lobby_settings") : "설정");
});
b.gameObject.AddComponent<Button>().onClick.AddListener(() => SettingsPopup.Open(Root)); // 설정 팝업(PD 2026-11-25 옵션 메뉴 · 서버 모드 계정 기능 포함)
var ic = UiKit.Icon(b, sideT != null ? sideT.S("settings_icon", "lobby_option") : "lobby_option", new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, sz);
if (ic != null) UiKit.DropShadow(ic, 3f);
}

View File

@ -0,0 +1,729 @@
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
namespace TKS.OutGame
{
/// <summary>
/// 설정 팝업(PD 2026-11-25 「옵션 메뉴 — 본영 우측 톱니 · 배경음 · 효과음 · 볼륨 · 플레이어 정보(PID 복사) · 소셜 계정 연동 · 쿠폰 · 개인정보 보호정책 · 서비스 약관(미리 설정된 링크) ·
/// 버전 · 계정 삭제(게스트) · 전투 조작 방식(지금 방식 ↔ 슬링샷 · 기본 = 지금 방식) · 언어 = 누르면 별도 팝업(8개 언어)」 · 「똑같이 따라하지는 마」).
/// 모양 = 전투 중단 팝업과 같은 그림 언어(붉은 옻칠 현판 머리 + 어두운 목패 몸통) · 안 = 종이 카드 3장(소리 · 게임 · 계정) + 바닥 줄(버전 · 계정 삭제 = 붉은 버튼).
/// 좌표 · 색 · 그림 · 링크 · 언어 목록 = 표 Resources/UI/Settings/settings_screen(C45) · 글자 = settings_text(UiText · 언어 칸).
/// 저장 = 소리 → <see cref="Sound"/> · 조작 · 언어 → <see cref="GameSettings"/>(둘 다 PlayerPrefs) · 기기 PID → SaveData.pid(서버 모드 = 서버 유저 번호).
/// 위에 뜨는 확인 창(계정 삭제 · 연동 고르기)은 OutGameRoot.Modal 이 이 팝업 위에 띄운다(닫으면 이 팝업이 그대로 남음).
/// </summary>
public static class SettingsPopup
{
public const string TablePath = "UI/Settings/settings_screen";
public const string TextPath = "UI/Settings/settings_text";
static GameObject popup;
static GameObject langPopup;
static ScreenTable tb;
static Font langFont;
public static bool IsOpen
{
get { return popup != null; }
}
public static bool LangOpen
{
get { return langPopup != null; }
}
// ---------- 표 ----------
static void LoadTables()
{
if (tb == null) tb = ScreenTable.Load(TablePath);
UiText.Use(TextPath);
}
static string[] L(string k)
{
return tb != null && tb.Has(k) ? tb.L(k) : new string[0];
}
static float N(string k, int i, float d)
{
return ScreenTable.At(L(k), i, d);
}
static string S(string k, int i, string d)
{
var a = L(k);
return i < a.Length && a[i].Trim().Length > 0 ? a[i].Trim() : d;
}
static Color C(string k, int i, Color d)
{
return ScreenTable.Col(L(k), i, d);
}
static string T(string key)
{
return UiText.T(key).Replace("\\n", "\n");
}
/// <summary>표 lang 줄 = (코드, 그 언어로 쓴 이름) 목록(PD 순서).</summary>
public static List<KeyValuePair<string, string>> Languages()
{
LoadTables();
var list = new List<KeyValuePair<string, string>>();
if (tb != null)
foreach (var v in tb.All("lang"))
if (v.Length >= 2 && v[0].Trim().Length > 0) list.Add(new KeyValuePair<string, string>(v[0].Trim(), v[1].Trim()));
return list;
}
/// <summary>지금 언어 코드(저장 값 없음 = 첫 줄 · 한국어).</summary>
public static string CurrentLang
{
get
{
string l = GameSettings.Language;
return l.Length > 0 ? l : UiText.Fallback;
}
}
static string LangName(string code)
{
foreach (var kv in Languages())
if (kv.Key == code) return kv.Value;
return code;
}
/// <summary>언어 이름 글자에 글꼴 넣기 — 한글 · 기본 영문만이면 게임 글꼴 그대로 · 한자 · 가나 · 태국 · 베트남 성조 글자가 있으면 OS 글꼴(LangFont).</summary>
static void UseLangFont(Text t, string name)
{
foreach (char ch in name ?? "")
if (ch > 0x7E && !(ch >= 0xAC00 && ch <= 0xD7A3) && !(ch >= 0x3130 && ch <= 0x318F))
{
t.font = LangFont;
t.fontStyle = FontStyle.Bold;
return;
}
}
/// <summary>언어 이름 글꼴 — 게임 글꼴(한글 · 영문)에는 한자 · 가나 · 태국 글자가 없어 OS 글꼴 여러 개(첫 글꼴에 없는 글자 = 뒤 글꼴)로.</summary>
static Font LangFont
{
get
{
if (langFont != null) return langFont;
var names = L("lang_font");
try
{
if (names.Length > 0) langFont = Font.CreateDynamicFontFromOSFont(names, 32);
}
catch (Exception e)
{
Debug.LogWarning("[TKS] 언어 이름 글꼴 만들기 실패 → 게임 글꼴: " + e.Message);
}
if (langFont == null) langFont = UISkin.TitleFont;
return langFont;
}
}
// ---------- 열기 · 닫기 ----------
public static void Open(OutGameRoot root)
{
if (root == null || root.TopRoot == null) return;
LoadTables();
Close();
Sound.PlayUi(SoundKeys.UiPopup);
Build(root);
}
public static void Close()
{
CloseLang();
if (popup == null) return;
PlayerPrefs.Save(); // 음량 막대는 끄는 동안 값만 바꿔 둠 → 닫을 때 한 번 저장
popup.SetActive(false);
UnityEngine.Object.Destroy(popup);
popup = null;
}
static void CloseWithSound()
{
Sound.PlayUi(SoundKeys.UiClose);
Close();
}
// ---------- 틀 ----------
static RectTransform At(Transform p, string name, float x, float y, float w, float h)
{
return UiKit.Rect(name, p, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(x, -y), new Vector2(w, h));
}
static Image Art(RectTransform rt, string id, float ppu, Color c, bool ray = false)
{
var img = rt.gameObject.AddComponent<Image>();
var sp = string.IsNullOrEmpty(id) ? null : UISkin.Icon(id);
img.sprite = sp != null ? sp : UiKit.Round;
img.color = c;
img.raycastTarget = ray;
if (sp == null || sp.border != Vector4.zero)
{
img.type = Image.Type.Sliced;
img.pixelsPerUnitMultiplier = sp != null ? Mathf.Max(0.01f, ppu) : 1f;
}
else img.preserveAspect = true;
return img;
}
static Text Txt(Transform p, string s, int size, Color c, TextAnchor a)
{
var rt = UiKit.Fill("Text", p);
var t = rt.gameObject.AddComponent<Text>();
UISkin.UseTitle(t);
t.text = s;
t.fontSize = size;
t.color = c;
t.alignment = a;
t.supportRichText = false;
t.horizontalOverflow = HorizontalWrapMode.Wrap;
t.verticalOverflow = VerticalWrapMode.Truncate;
t.resizeTextForBestFit = true; // 긴 번역 글자도 칸 안에
t.resizeTextMinSize = Mathf.Max(14, Mathf.RoundToInt(size * 0.6f));
t.resizeTextMaxSize = size;
t.raycastTarget = false;
return t;
}
static Text TxtAt(Transform p, string s, int size, Color c, TextAnchor a, float x, float y, float w, float h)
{
return Txt(At(p, "Text", x, y, w, h), s, size, c, a);
}
/// <summary>색 버튼 = 테마 스킨 + 흰 글자(얇은 테) · 팩 버튼 아래 두께만큼 글자를 위로.</summary>
static Button Btn(Transform p, string name, float x, float y, float w, float h, string skin, Color tint, string label, int size, Color fg, bool stroke, Action onClick)
{
var rt = At(p, name, x, y, w, h);
var img = UiKit.Skin(rt, skin, tint, true);
var b = rt.gameObject.AddComponent<Button>();
b.targetGraphic = img;
if (onClick != null) b.onClick.AddListener(() => onClick());
var t = Txt(rt, label, size, fg, TextAnchor.MiddleCenter);
t.rectTransform.offsetMin = new Vector2(12f, Mathf.Min(10f, h * 0.12f));
t.rectTransform.offsetMax = new Vector2(-12f, 0f);
if (stroke) UISkin.Stroke(t, C("btn_text", 1, new Color(0.23f, 0.14f, 0.09f)), N("btn_text", 2, 2f));
return b;
}
static Button ColorBtn(Transform p, string name, float x, float y, string key, string label, Action onClick)
{
return Btn(p, name, x, y, N(key, 0, 240f), N(key, 1, 72f), S(key, 2, "button"), C(key, 3, UiKit.Red), label, (int)N(key, 4, 28f), C("btn_text", 0, Color.white), true, onClick);
}
/// <summary>뒤 어둡게 + 목패 몸통 + 붉은 현판(제목) + 닫기 X · 반환 = 몸통(내용 좌표 = 몸통 왼쪽 위 기준).</summary>
static RectTransform Frame(Transform parent, string name, string title, float w, float h, Action onClose, out GameObject root)
{
var dim = UiKit.Fill(name, parent);
root = dim.gameObject;
UiLayer.Nest(root, UiRate.Event, true);
var dimImg = UiKit.Paint(dim, new Color(0f, 0f, 0f, N("dim", 0, 0.6f)), false, true);
dimImg.raycastTarget = true; // 뒤 누름 막기
var body = UiKit.Rect("Panel", dim, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(N("panel", 1, 0f), N("panel", 2, 10f)), new Vector2(w, h));
Art(body, S("body_art", 0, "bt_tag_panel"), N("body_art", 2, 0.7f), C("body_art", 1, new Color(0.29f, 0.2f, 0.14f)), true);
float hw = N("head", 0, 560f), hh = N("head", 1, 124f);
var head = UiKit.Rect("Head", body, new Vector2(0.5f, 1f), new Vector2(0.5f, 0.5f), Vector2.zero, new Vector2(hw, hh));
Art(head, S("head_art", 0, "ms_plaque"), N("head_art", 1, 2.08f), Color.white);
var ht = Txt(head, title, (int)N("head_art", 2, 50f), C("head_art", 3, Color.white), TextAnchor.MiddleCenter);
ht.rectTransform.offsetMin = new Vector2(70f, 4f);
ht.rectTransform.offsetMax = new Vector2(-70f, 0f);
UISkin.Stroke(ht, C("card_title", 3, new Color(0.16f, 0.1f, 0.06f)), 3f);
float cs = N("close", 0, 88f);
var x = UiKit.Rect("Close", body, new Vector2(1f, 1f), new Vector2(0.5f, 0.5f), new Vector2(N("close", 1, -40f), N("close", 2, -40f)), new Vector2(cs, cs));
var ximg = UiKit.Skin(x, "close", Color.white, true);
var xb = x.gameObject.AddComponent<Button>();
xb.targetGraphic = ximg;
xb.onClick.AddListener(() => onClose());
return body;
}
/// <summary>종이 카드 + 위 제목(금 글자) · 반환 = 카드(행 좌표 = 카드 왼쪽 위 기준).</summary>
static RectTransform Card(Transform body, string title, float x, ref float y, float w, float h)
{
float th = N("card_title", 2, 48f);
var tt = TxtAt(body, title, (int)N("card_title", 0, 32f), C("card_title", 1, new Color(0.96f, 0.84f, 0.54f)), TextAnchor.MiddleLeft, x + 12f, y, w - 24f, th);
UISkin.Stroke(tt, C("card_title", 3, new Color(0.16f, 0.1f, 0.06f)), 2f);
y += th;
var card = At(body, "Card_" + title, x, y, w, h);
Art(card, S("card_art", 0, "bt_tag_panel"), N("card_art", 2, 1f), C("card_art", 1, new Color(0.95f, 0.89f, 0.77f)));
y += h + N("card_gap", 0, 18f);
return card;
}
static void Line(Transform card, float y, float w)
{
var rt = At(card, "Line", 18f, y - N("line", 1, 2f) * 0.5f, w - 36f, N("line", 1, 2f));
UiKit.Paint(rt, C("line", 0, new Color(0.85f, 0.76f, 0.6f)), false);
}
static Text RowLabel(Transform card, string s, float y, float rowH)
{
return TxtAt(card, s, (int)N("label", 0, 32f), C("label", 1, new Color(0.29f, 0.17f, 0.11f)), TextAnchor.MiddleLeft, N("row_x", 0, 28f), y, N("label", 2, 190f), rowH);
}
// ---------- 본 팝업 ----------
static void Build(OutGameRoot root)
{
float w = N("panel", 0, 940f);
float padX = N("pad", 0, 40f), padTop = N("pad", 1, 92f), padBottom = N("pad", 2, 36f);
float cw = w - padX * 2f;
float rowH = N("row_h", 0, 104f), inner = N("card_gap", 1, 10f);
float titleH = N("card_title", 2, 48f), gap = N("card_gap", 0, 18f);
float soundH = inner * 2f + rowH * 2f;
float gameH = inner * 2f + rowH + N("desc_h", 0, 48f) + rowH;
float acctH = inner * 2f + rowH * 2f + N("url_row", 0, 84f) + 18f;
float footH = N("footer", 0, 24f) + N("footer", 1, 80f);
float h = padTop + (titleH * 3f) + soundH + gameH + acctH + gap * 2f + footH + padBottom;
GameObject go;
var body = Frame(root.TopRoot, "SettingsPopup", T("set_title"), w, h, CloseWithSound, out go);
popup = go;
float y = padTop;
// ── 소리 ──
var sc = Card(body, T("set_sec_sound"), padX, ref y, cw, soundH);
SoundRow(sc, T("set_bgm"), inner, rowH, cw, Sound.BgmOn, v => Sound.BgmOn = v, Sound.BgmVolume, v => Sound.BgmVolume = v);
Line(sc, inner + rowH, cw);
SoundRow(sc, T("set_sfx"), inner + rowH, rowH, cw, Sound.SfxOn, v => Sound.SfxOn = v, Sound.SfxVolume, v => Sound.SfxVolume = v);
// ── 게임(조작 방식 · 언어) ──
var gc = Card(body, T("set_sec_game"), padX, ref y, cw, gameH);
ControlRow(gc, inner, rowH, cw);
float ly = inner + rowH + N("desc_h", 0, 48f);
Line(gc, ly, cw);
LangRow(root, gc, ly, rowH, cw);
// ── 계정 ──
var ac = Card(body, T("set_sec_account"), padX, ref y, cw, acctH);
y -= gap;
AccountRows(root, ac, inner, rowH, cw, body, y + N("footer", 0, 24f), w);
}
static void SoundRow(Transform card, string label, float y, float rowH, float cw, bool on, Action<bool> setOn, float vol, Action<float> setVol)
{
RowLabel(card, label, y, rowH);
float sh = N("switch", 1, 64f);
Slider slider = null;
Switch(card, N("sound_x", 0, 200f), y + (rowH - sh) * 0.5f, on, v =>
{
setOn(v);
if (slider != null) Dim(slider, v);
});
float sx = N("sound_x", 1, 356f);
slider = Volume(card, sx, y, cw - N("row_x", 0, 28f) - sx, rowH, vol, setVol);
Dim(slider, on);
}
/// <summary>끈 소리의 음량 막대 = 흐리게(값은 그대로 · 만지면 바뀜).</summary>
static void Dim(Slider s, bool on)
{
var cg = s.GetComponent<CanvasGroup>();
if (cg == null) cg = s.gameObject.AddComponent<CanvasGroup>();
cg.alpha = on ? 1f : 0.45f;
}
/// <summary>켜기/끄기 스위치(바탕 틴트 = 켜짐 금 · 꺼짐 갈색 · 손잡이 = 오른쪽 켜짐) · 이름 = Switch.</summary>
static void Switch(Transform p, float x, float y, bool on, Action<bool> changed)
{
float w = N("switch", 0, 124f), h = N("switch", 1, 64f), inset = N("switch", 4, 8f);
var rt = At(p, "Switch", x, y, w, h);
var track = Art(rt, S("switch_art", 0, "set_sw_bg"), N("switch_art", 2, 1f), Color.white, true);
float k = h - inset * 2f;
var knobRt = UiKit.Rect("Knob", rt, new Vector2(0f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, new Vector2(k, k));
Art(knobRt, S("switch_art", 1, "set_sw_knob"), N("switch_art", 2, 1f), Color.white);
bool state = on;
Action paint = () =>
{
track.color = state ? C("switch", 2, new Color(0.91f, 0.66f, 0.23f)) : C("switch", 3, new Color(0.55f, 0.46f, 0.38f));
knobRt.anchoredPosition = new Vector2(state ? w - inset - k * 0.5f : inset + k * 0.5f, 0f);
};
paint();
var b = rt.gameObject.AddComponent<Button>();
b.targetGraphic = track;
b.transition = Selectable.Transition.None;
b.onClick.AddListener(() =>
{
state = !state;
paint();
changed(state);
});
}
/// <summary>음량 막대(uGUI Slider · 바탕 · 채움 = 테마 진행 바 스킨 · 손잡이 = 팩 손잡이) · 이름 = Volume.</summary>
static Slider Volume(Transform p, float x, float y, float w, float rowH, float value, Action<float> changed)
{
float bh = N("slider", 0, 44f), kw = N("slider", 1, 72f), kh = N("slider", 2, 56f), ppu = N("slider", 5, 1.5f);
var rt = At(p, "Volume", x, y, w, rowH);
var bgRt = UiKit.Rect("Bg", rt, new Vector2(0f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, new Vector2(0f, bh));
bgRt.anchorMax = new Vector2(1f, 0.5f);
var bg = UiKit.Skin(bgRt, S("slider_art", 0, "bar_bg"), C("slider", 3, new Color(0.42f, 0.32f, 0.25f)), true);
bg.pixelsPerUnitMultiplier = ppu;
float inset = N("slider", 6, 6f); // 채움을 바탕 안쪽으로(가득 차도 바탕 테두리가 보이게)
var area = UiKit.Rect("FillArea", rt, new Vector2(0f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, new Vector2(-inset * 2f, bh - inset * 2f));
area.anchorMax = new Vector2(1f, 0.5f);
var fillRt = UiKit.Fill("Fill", area);
var fill = UiKit.Skin(fillRt, S("slider_art", 1, "bar_fill"), C("slider", 4, new Color(0.95f, 0.71f, 0.23f)));
fill.pixelsPerUnitMultiplier = ppu;
var handleArea = UiKit.Fill("HandleArea", rt, kw * 0.5f, kw * 0.5f, 0f, 0f);
var handleRt = UiKit.Rect("Handle", handleArea, new Vector2(0f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, new Vector2(kw, kh));
var knob = Art(handleRt, S("slider_art", 2, "set_sl_knob"), 1f, Color.white, true);
var s = rt.gameObject.AddComponent<Slider>();
s.transition = Selectable.Transition.None;
s.direction = Slider.Direction.LeftToRight;
s.minValue = 0f;
s.maxValue = 1f;
s.fillRect = fillRt;
s.handleRect = handleRt;
s.targetGraphic = knob;
s.value = Mathf.Clamp01(value);
// Slider 가 손잡이를 세로로 늘인다(앵커 0~1) → 높이 = 칸 높이 − 여백
handleRt.sizeDelta = new Vector2(kw, kh - rowH);
fill.enabled = s.value > 0.01f;
s.onValueChanged.AddListener(v =>
{
fill.enabled = v > 0.01f;
changed(v);
});
return s;
}
static void ControlRow(Transform card, float y, float rowH, float cw)
{
RowLabel(card, T("set_control"), y, rowH);
float x0 = N("seg", 0, 230f), sh = N("seg", 1, 80f), gapS = N("seg", 2, 12f);
float right = cw - N("row_x", 0, 28f);
float sw = (right - x0 - gapS) / 2f;
int fs = (int)N("seg", 3, 30f);
string[] keys = { "set_control_direct", "set_control_sling" };
int[] modes = { GameSettings.ControlDirect, GameSettings.ControlSlingshot };
var imgs = new Image[2];
var txts = new Text[2];
var desc = TxtAt(card, "", (int)N("soft", 0, 25f), C("soft", 1, new Color(0.48f, 0.35f, 0.25f)), TextAnchor.MiddleCenter, x0, y + rowH - 6f, right - x0, N("desc_h", 0, 48f));
Action paint = () =>
{
int cur = GameSettings.Control;
for (int i = 0; i < 2; i++)
{
bool sel = modes[i] == cur;
string k = sel ? "seg_on" : "seg_off";
UISkin.Apply(imgs[i], S(k, 0, sel ? "btn_l_yellow" : "button"));
imgs[i].color = C(k, 1, sel ? Color.white : new Color(0.8f, 0.71f, 0.54f));
txts[i].color = C(k, 2, sel ? new Color(0.29f, 0.17f, 0.11f) : new Color(0.42f, 0.31f, 0.21f));
}
desc.text = T(cur == GameSettings.ControlSlingshot ? "set_control_sling_desc" : "set_control_direct_desc");
};
for (int i = 0; i < 2; i++)
{
int mode = modes[i];
var b = Btn(card, "Control_" + mode, x0 + i * (sw + gapS), y + (rowH - sh) * 0.5f, sw, sh, "button", Color.white, T(keys[i]), fs, Color.black, false, null);
imgs[i] = (Image)b.targetGraphic;
txts[i] = b.GetComponentInChildren<Text>();
b.onClick.AddListener(() =>
{
if (GameSettings.Control == mode) return;
GameSettings.Control = mode;
paint();
});
}
paint();
}
static void LangRow(OutGameRoot root, Transform card, float y, float rowH, float cw)
{
RowLabel(card, T("set_lang"), y, rowH);
float bw = N("lang_btn", 0, 330f), bh = N("lang_btn", 1, 76f);
float x = cw - N("row_x", 0, 28f) - bw;
var b = Btn(card, "Language", x, y + (rowH - bh) * 0.5f, bw, bh, S("lang_btn", 2, "button"), C("lang_btn", 3, new Color(0.91f, 0.83f, 0.65f)), LangName(CurrentLang),
(int)N("lang_btn", 4, 32f), C("label", 1, new Color(0.29f, 0.17f, 0.11f)), false, () => OpenLang(root));
var t = b.GetComponentInChildren<Text>();
UseLangFont(t, t.text);
float az = N("lang_arrow", 1, 30f);
t.rectTransform.offsetMax = new Vector2(-(az + 24f), 0f);
var ar = UiKit.Rect("Arrow", b.transform, new Vector2(1f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(-(az * 0.5f + 16f), 4f), new Vector2(az, az));
Art(ar, S("lang_arrow", 0, "set_arrow"), 1f, C("label", 1, new Color(0.29f, 0.17f, 0.11f)));
}
// ---------- 계정 ----------
static void AccountRows(OutGameRoot root, Transform card, float y, float rowH, float cw, Transform body, float footY, float w)
{
float rx = N("row_x", 0, 28f), right = cw - rx;
// PID 줄 = 이름 · 값 칸 · 복사
RowLabel(card, T("set_pid"), y, rowH);
float px = N("pid_box", 0, 140f), ph = N("pid_box", 1, 64f), cbw = N("copy_btn", 0, 132f), cbh = N("copy_btn", 1, 64f);
var box = At(card, "PidBox", px, y + (rowH - ph) * 0.5f, right - cbw - 12f - px, ph);
Art(box, "", 1f, C("pid_box", 2, new Color(0.9f, 0.83f, 0.67f)));
var pidText = Txt(box, "", (int)N("pid_box", 3, 24f), C("label", 1, new Color(0.29f, 0.17f, 0.11f)), TextAnchor.MiddleCenter);
pidText.rectTransform.offsetMin = new Vector2(12f, 0f);
pidText.rectTransform.offsetMax = new Vector2(-12f, 0f);
pidText.horizontalOverflow = HorizontalWrapMode.Overflow;
pidText.resizeTextForBestFit = true;
string pid = "";
Btn(card, "CopyPid", right - cbw, y + (rowH - cbh) * 0.5f, cbw, cbh, S("copy_btn", 2, "btn_s_green"), C("copy_btn", 3, Color.white), T("set_copy"), (int)N("copy_btn", 4, 28f),
C("btn_text", 0, Color.white), true, () =>
{
if (string.IsNullOrEmpty(pid)) return;
GUIUtility.systemCopyBuffer = pid;
root.Toast(T("set_copied"));
});
Line(card, y + rowH, cw);
y += rowH;
// 로그인 줄 = 이름 · 상태(게스트 / 소셜 이름) · 버튼(계정 연동 / 로그아웃)
RowLabel(card, T("set_account"), y, rowH);
float abw = N("acct_btn", 0, 260f), abh = N("acct_btn", 1, 72f);
var state = TxtAt(card, "", (int)N("label", 0, 32f) - 2, C("soft", 1, new Color(0.48f, 0.35f, 0.25f)), TextAnchor.MiddleLeft, N("label", 2, 190f), y, right - abw - 12f - N("label", 2, 190f), rowH);
var acctBtn = Btn(card, "AccountBtn", right - abw, y + (rowH - abh) * 0.5f, abw, abh, S("acct_btn", 2, "button"), C("acct_btn", 3, new Color(0.24f, 0.47f, 0.78f)), T("set_link"),
(int)N("acct_btn", 4, 28f), C("btn_text", 0, Color.white), true, null);
var acctLabel = acctBtn.GetComponentInChildren<Text>();
Line(card, y + rowH, cw);
y += rowH;
// 링크 줄 = 쿠폰 입력 · 개인정보 보호정책 · 서비스 약관(표 url_* · 비면 준비 중)
float uh = N("url_row", 0, 84f), ug = N("url_row", 1, 12f);
float uw = (right - rx - ug * 2f) / 3f;
int ufs = (int)N("url_row", 2, 26f);
string[] uk = { "coupon", "privacy", "terms" };
for (int i = 0; i < 3; i++)
{
string k = uk[i];
Btn(card, "Url_" + k, rx + i * (uw + ug), y + 9f, uw, uh, S("url_" + k + "_btn", 0, "button"), C("url_" + k + "_btn", 1, new Color(0.36f, 0.42f, 0.53f)), T("set_" + k), ufs,
C("btn_text", 0, Color.white), true, () => OpenUrl(root, "url_" + k));
}
// 바닥 줄 = 버전(왼쪽) · 계정 삭제(오른쪽 · 게스트만) — 몸통 기준
float padX = N("pad", 0, 40f), fh = N("footer", 1, 80f);
TxtAt(body, UiText.F("set_version", new[] { Application.version }), (int)N("footer", 2, 26f), C("footer", 3, new Color(0.91f, 0.85f, 0.74f)), TextAnchor.MiddleLeft, padX + 12f, footY, 420f, fh);
float dbw = N("delete_btn", 0, 240f), dbh = N("delete_btn", 1, 72f);
var del = ColorBtn(body, "DeleteAccount", w - padX - dbw, footY + (fh - dbh) * 0.5f, "delete_btn", T("set_delete"), null);
var delLabel = del.GetComponentInChildren<Text>();
if (!Net.AccountPanel.Available)
{
// 기기 세이브 모드 = 게스트(이 기기에서만) · PID = 세이브의 고유 키
pid = LocalPid(root);
pidText.text = pid;
state.text = T("set_guest");
acctBtn.onClick.AddListener(() => root.Toast(T("set_link_offline")));
del.onClick.AddListener(() => ConfirmLocalDelete(root));
return;
}
// 서버 모드 = 계정 정보를 받은 뒤 채움(게스트 = 연동 · 삭제 / 소셜 = 로그아웃 · 탈퇴)
var sync = Net.ServerSync.Instance;
pidText.text = T("set_loading");
state.text = "";
acctBtn.gameObject.SetActive(false);
del.gameObject.SetActive(false);
var host = popup;
sync.AccountInfo(r =>
{
if (host == null || popup != host || pidText == null) return; // 받는 사이에 닫았다
if (!r.ok)
{
pidText.text = "-";
state.text = T("set_account_fail");
return;
}
bool guest = r.Str("accountType") == Net.ServerClient.MethodGuest;
pid = r.Str("userId");
pidText.text = pid;
acctBtn.gameObject.SetActive(true);
if (guest)
{
state.text = T("set_guest");
acctLabel.text = T("set_link");
acctBtn.onClick.AddListener(() => Link(root, sync));
del.gameObject.SetActive(true);
del.onClick.AddListener(() => Net.AccountPanel.ConfirmDelete(root, sync));
return;
}
state.text = UiText.F("set_linked", new[] { Net.SocialSignIn.Label(r.Str("provider")) });
acctLabel.text = T("set_logout");
acctBtn.onClick.AddListener(() => root.Modal(T("set_logout"), T("set_logout_body"),
new OutGameRoot.ModalButton(T("set_logout"), UiKit.Red, () => sync.Logout(why => root.Toast(UiText.F("set_logout_fail", new[] { why })))),
new OutGameRoot.ModalButton(T("set_cancel"), UiKit.Dark, null)));
int days = (int)r.Num("withdrawGraceDays");
if (days > 0)
{
del.gameObject.SetActive(true);
delLabel.text = T("set_withdraw");
del.onClick.AddListener(() => Net.AccountPanel.ConfirmWithdraw(root, sync, days));
}
});
}
/// <summary>기기 세이브의 PID(없으면 지금 만들어 저장 · GUID).</summary>
static string LocalPid(OutGameRoot root)
{
var s = root.Session;
if (s == null || s.Save == null) return "";
if (string.IsNullOrEmpty(s.Save.pid))
{
s.Save.pid = Guid.NewGuid().ToString();
s.Commit();
}
return s.Save.pid;
}
static void OpenUrl(OutGameRoot root, string key)
{
string url = S(key, 0, "");
if (url.Length == 0)
{
root.Toast(T("set_url_soon"));
return;
}
Application.OpenURL(url);
}
/// <summary>게스트 소셜 연동(서버 모드) — 연동 방법이 하나면 바로 · 둘이면 고르기 · 개발 모드(시험용 번호 입력) = 기존 계정 창.</summary>
static void Link(OutGameRoot root, Net.ServerSync sync)
{
bool g = Net.SocialSignIn.Available(Net.SocialSignIn.Google), a = Net.SocialSignIn.Available(Net.SocialSignIn.Apple);
if (!g && !a)
{
root.Toast(T("set_link_none"));
return;
}
if (Net.SocialSignIn.DevMode)
{
Close();
Net.AccountPanel.Open(root);
return;
}
if (g && a)
{
root.Modal(T("set_link"), T("set_link_pick"),
new OutGameRoot.ModalButton(Net.SocialSignIn.Label(Net.SocialSignIn.Google), UiKit.Jade, () => Net.AccountPanel.Link(root, sync, Net.SocialSignIn.Google, "", null)),
new OutGameRoot.ModalButton(Net.SocialSignIn.Label(Net.SocialSignIn.Apple), UiKit.Jade, () => Net.AccountPanel.Link(root, sync, Net.SocialSignIn.Apple, "", null)),
new OutGameRoot.ModalButton(T("set_cancel"), UiKit.Dark, null));
return;
}
Net.AccountPanel.Link(root, sync, g ? Net.SocialSignIn.Google : Net.SocialSignIn.Apple, "", null);
}
/// <summary>
/// 기기 세이브 모드의 계정 삭제 — 확인 문구(「계정 삭제」)를 입력해야 지운다(서버 모드의 계정 창과 같은 확인) → 세이브 파일 삭제 → 타이틀부터 다시(신규 유저 흐름).
/// </summary>
static void ConfirmLocalDelete(OutGameRoot root)
{
InputField input = null;
var content = root.ModalCustom(T("set_delete"), 760f,
new OutGameRoot.ModalButton(T("set_delete_ok"), UiKit.Red, () =>
{
if (input == null || !Net.AccountPanel.Typed(input.text))
{
root.Toast(T("set_delete_typo"));
return;
}
root.CloseModal();
Close();
SaveStore.DeleteLocal();
string title = BootScenes.Title;
BootScenes.GoTo(Application.CanStreamedLevelBeLoaded(title) ? title : SceneManager.GetActiveScene().name);
}, true),
new OutGameRoot.ModalButton(T("set_cancel"), UiKit.Dark, null));
var top = new Vector2(0.5f, 1f);
UiKit.Label(content, T("set_delete_body"), 30, UiKit.Ink, TextAnchor.UpperCenter, top, top, new Vector2(0f, -10f), new Vector2(820f, 220f), false)
.horizontalOverflow = HorizontalWrapMode.Wrap;
input = Net.LoginPanel.Field(content, "Phrase", Net.AccountPanel.DeletePhrase, top, new Vector2(0f, -250f), new Vector2(560f, 90f), 20);
}
// ---------- 언어 팝업 ----------
public static void OpenLang(OutGameRoot root)
{
if (root == null || root.TopRoot == null) return;
LoadTables();
CloseLang();
Sound.PlayUi(SoundKeys.UiPopup);
var langs = Languages();
int cols = Mathf.Max(1, (int)N("lang_popup", 1, 2f));
float bw = N("lang_popup", 2, 350f), bh = N("lang_popup", 3, 96f), g = N("lang_popup", 4, 20f);
int rows = (langs.Count + cols - 1) / cols;
float w = N("lang_popup", 0, 820f);
float padTop = N("pad", 1, 92f), padBottom = N("pad", 2, 36f);
float aw = N("lang_apply", 0, 300f), ah = N("lang_apply", 1, 100f);
float gridH = rows * bh + Mathf.Max(0, rows - 1) * g;
float h = padTop + 12f + gridH + 36f + ah + padBottom;
GameObject go;
var body = Frame(root.TopRoot, "LanguagePopup", T("set_lang_title"), w, h, () =>
{
Sound.PlayUi(SoundKeys.UiClose);
CloseLang();
}, out go);
langPopup = go;
string pick = CurrentLang;
float gx = (w - (cols * bw + (cols - 1) * g)) * 0.5f;
var imgs = new List<Image>();
var codes = new List<string>();
Action paint = () =>
{
for (int i = 0; i < imgs.Count; i++)
{
bool sel = codes[i] == pick;
if (sel) UISkin.Apply(imgs[i], S("seg_on", 0, "btn_l_yellow"));
else
{
var sp = UISkin.Icon(S("card_art", 0, "bt_tag_panel"));
var old = imgs[i].transform.Find(UISkin.OverlayName);
if (old != null) UnityEngine.Object.Destroy(old.gameObject);
imgs[i].sprite = sp != null ? sp : UiKit.Round;
imgs[i].type = Image.Type.Sliced;
imgs[i].pixelsPerUnitMultiplier = sp != null ? N("card_art", 2, 1f) : 1f;
}
imgs[i].color = sel ? C("seg_on", 1, Color.white) : C("card_art", 1, new Color(0.95f, 0.89f, 0.77f));
}
};
for (int i = 0; i < langs.Count; i++)
{
string code = langs[i].Key;
int c = i % cols, r = i / cols;
var b = Btn(body, "Lang_" + code, gx + c * (bw + g), padTop + 12f + r * (bh + g), bw, bh, "button", Color.white, langs[i].Value, (int)N("lang_popup", 5, 34f),
C("label", 1, new Color(0.29f, 0.17f, 0.11f)), false, null);
UseLangFont(b.GetComponentInChildren<Text>(), langs[i].Value);
imgs.Add((Image)b.targetGraphic);
codes.Add(code);
b.onClick.AddListener(() =>
{
pick = code;
paint();
});
}
paint();
float ay = padTop + 12f + gridH + 36f;
Btn(body, "Apply", (w - aw) * 0.5f, ay, aw, ah, S("lang_apply", 2, "btn_l_yellow"), C("lang_apply", 3, Color.white), T("set_lang_apply"), (int)N("lang_apply", 4, 38f),
C("btn_text", 0, Color.white), true, () =>
{
bool changed = pick != CurrentLang;
CloseLang();
if (!changed) return;
GameSettings.Language = pick == UiText.Fallback ? "" : pick;
Open(root); // 설정 팝업 글자를 새 언어로 다시 그림
root.Toast(T("set_lang_done"));
});
}
public static void CloseLang()
{
if (langPopup == null) return;
langPopup.SetActive(false);
UnityEngine.Object.Destroy(langPopup);
langPopup = null;
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 19e75be951561f3458c72f88d5ac44f5

View File

@ -16,6 +16,7 @@ namespace TKS
public const string Root = "Audio/";
const string TableFile = "sound_events";
const string PrefSfx = "tks_sound_sfx", PrefBgm = "tks_sound_bgm", PrefMute = "tks_sound_mute";
const string PrefSfxOn = "tks_sound_sfx_on", PrefBgmOn = "tks_sound_bgm_on"; // 설정 팝업 켜기/끄기(2026-11-25 · 음량 값은 그대로 둔다)
public class Ev
{
@ -34,6 +35,7 @@ namespace TKS
static bool prefsLoaded;
static float sfxVol = 1f, bgmVol = 1f;
static bool mute;
static bool sfxOn = true, bgmOn = true;
/// <summary>켜면 실제로 재생한 소리 이름을 <see cref="Traced"/> 에 쌓는다(자동 시험 · 캡처용).</summary>
public static bool Trace;
@ -64,6 +66,34 @@ namespace TKS
sfxVol = PlayerPrefs.GetFloat(PrefSfx, 1f);
bgmVol = PlayerPrefs.GetFloat(PrefBgm, 1f);
mute = PlayerPrefs.GetInt(PrefMute, 0) != 0;
sfxOn = PlayerPrefs.GetInt(PrefSfxOn, 1) != 0;
bgmOn = PlayerPrefs.GetInt(PrefBgmOn, 1) != 0;
}
/// <summary>효과음 켜기/끄기(설정 팝업 · 끄면 음량 값은 남겨 두고 소리만 0).</summary>
public static bool SfxOn
{
get { LoadPrefs(); return sfxOn; }
set { LoadPrefs(); sfxOn = value; PlayerPrefs.SetInt(PrefSfxOn, value ? 1 : 0); }
}
/// <summary>배경음 켜기/끄기(설정 팝업 · 배경음 재생기는 매 프레임 이 값을 읽어 바로 반영).</summary>
public static bool BgmOn
{
get { LoadPrefs(); return bgmOn; }
set { LoadPrefs(); bgmOn = value; PlayerPrefs.SetInt(PrefBgmOn, value ? 1 : 0); }
}
/// <summary>실제로 쓰는 효과음 배율 = 전체 음소거 · 켜기 · 음량.</summary>
public static float SfxLevel
{
get { LoadPrefs(); return mute || !sfxOn ? 0f : sfxVol; }
}
/// <summary>실제로 쓰는 배경음 배율 = 전체 음소거 · 켜기 · 음량.</summary>
public static float BgmLevel
{
get { LoadPrefs(); return mute || !bgmOn ? 0f : bgmVol; }
}
public static float SfxVolume

View File

@ -65,7 +65,7 @@ namespace TKS
src.Stop();
src.clip = clip;
src.pitch = pitch;
src.volume = Sound.Mute ? 0f : vol * Sound.SfxVolume;
src.volume = vol * Sound.SfxLevel; // 음소거 · 효과음 끄기 · 음량(설정 팝업 2026-11-25)
src.Play();
if (duck > 0f) duckUntil = Mathf.Max(duckUntil, Time.unscaledTime + duck / Mathf.Max(0.1f, pitch));
}
@ -109,7 +109,7 @@ namespace TKS
{
fadeT = Mathf.Min(1f, fadeT + Time.unscaledDeltaTime / BgmFade);
float duck = Time.unscaledTime < duckUntil ? DuckLevel : 1f;
float master = Sound.Mute ? 0f : Sound.BgmVolume * duck;
float master = Sound.BgmLevel * duck; // 음소거 · 배경음 끄기 · 음량(설정 팝업 2026-11-25 · 매 프레임 = 슬라이더가 바로 들림)
for (int i = 0; i < 2; i++)
{
var s = bgm[i];

View File

@ -406,11 +406,11 @@ namespace TKS
if (N("top_band", 5, 0f) > 0.5f) bg.localScale = new Vector3(1f, -1f, 1f);
OutGame.UiKit.Skin(bg, S("top_band", 2, "header_bar"), C("top_band", 3, C("top_band", 4, OutGame.UiKit.Header)));
// 설정 버튼(오른쪽 끝 · 로비 본영 제목 띠 톱니와 같은 모양 · PD 2026-11-21 2차) · 누름 = 중단 팝업(SlingshotInput → TryGiveUpTap) · 정적
// 중단 버튼(오른쪽 끝 · PD 2026-11-21 2차 · 2026-11-25 「톱니 → || 형태 아이콘 · 기능 유지」 = 표 settings_btn_art bt_pause) · 누름 = 중단 팝업(SlingshotInput → TryGiveUpTap) · 정적
pauseBtn = Box(transform, "settings_btn", "Settings");
string ps = S("settings_btn_art", 0);
if (ps.Length > 0) OutGame.UiKit.Skin(pauseBtn, ps, C("settings_btn_art", 1, Color.white));
var pi = OutGame.UiKit.Icon(pauseBtn, S("settings_btn_art", 2, "lobby_option"), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, N("settings_btn_art", 3, 72f));
var pi = OutGame.UiKit.Icon(pauseBtn, S("settings_btn_art", 2, "bt_pause"), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), Vector2.zero, N("settings_btn_art", 3, 72f));
if (pi != null) OutGame.UiKit.DropShadow(pi, 3f);
pauseBtn.gameObject.SetActive(false);

View File

@ -0,0 +1,66 @@
using UnityEngine;
namespace TKS
{
/// <summary>
/// 기기 설정(PD 2026-11-25 옵션 메뉴) — 소리 외의 설정 값(PlayerPrefs · 기기마다 · 세이브와 무관). 소리 = <see cref="Sound"/>(같은 PlayerPrefs 방식).
/// · 조작 방식: 0 = 직접 조준(기본 · 지금 방식 = 가고 싶은 쪽으로 끈다) · 1 = 슬링샷(당긴 반대쪽으로 날아간다)
/// · 언어: 글자 표의 언어 칸 이름(빈 값 = 한국어) — 바꾸면 <see cref="OutGame.UiText.Lang"/> 에 바로 넣는다
/// </summary>
public static class GameSettings
{
public const string KeyControl = "tks_set_control";
public const string KeyLang = "tks_set_lang";
public const int ControlDirect = 0;
public const int ControlSlingshot = 1;
public static int Control
{
get { return PlayerPrefs.GetInt(KeyControl, ControlDirect) == ControlSlingshot ? ControlSlingshot : ControlDirect; }
set { PlayerPrefs.SetInt(KeyControl, value == ControlSlingshot ? ControlSlingshot : ControlDirect); PlayerPrefs.Save(); }
}
/// <summary>
/// 슬링샷 조작이 지금 걸리는가 — 학습 판 안내(TutorialDirector.GuideOn · 첫 플레이의 안내 단계가 있는 판)의 끌기 손가락 · 맞춤은 직접 조준 기준이라 그 판 동안은 직접 조준.
/// (TutorialDirector 는 전투 관리자에 늘 붙어 있다 = Current 만으로는 학습 판인지 모른다 · 2026-11-25 실측)
/// </summary>
public static bool SlingshotActive
{
get
{
if (Control != ControlSlingshot) return false;
var tut = TutorialDirector.Current;
return tut == null || !tut.GuideOn;
}
}
/// <summary>
/// 조준 손가락 자리 → 조준 계산에 넘길 자리: 직접 조준 = 그대로 · 슬링샷 = 유닛을 가운데로 뒤집은 자리(같은 거리 · 반대 방향)
/// = 화살표 · 이동 거리 · 판정 게이지 · 취소 반경 계산은 직접 조준과 똑같이 돌고 방향만 반대가 된다.
/// </summary>
public static Vector2 AimFinger(Vector2 unitPos, Vector2 finger)
{
return SlingshotActive ? unitPos * 2f - finger : finger;
}
/// <summary>표시 언어 코드(빈 값 = 기본 한국어).</summary>
public static string Language
{
get { return PlayerPrefs.GetString(KeyLang, ""); }
set
{
PlayerPrefs.SetString(KeyLang, value ?? "");
PlayerPrefs.Save();
OutGame.UiText.Lang = string.IsNullOrEmpty(value) ? OutGame.UiText.Fallback : value;
}
}
/// <summary>Play 진입 · 앱 시작마다 저장된 언어를 글자 표에 건다(도메인 리로드를 끈 에디터 포함).</summary>
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)]
static void ApplyLanguage()
{
string l = PlayerPrefs.GetString(KeyLang, "");
OutGame.UiText.Lang = l.Length > 0 ? l : OutGame.UiText.Fallback;
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 40c640870c3f52843b63ea745c31976b

View File

@ -802,9 +802,15 @@ namespace TKS
/// </summary>
Vector2 AimWorld(Vector2 screen)
{
if (!AimRules.DragMode || selected == null || pullBaseH <= 0f || cam == null) return ScreenToWorld(screen);
Vector2 us = cam.WorldToScreenPoint(new Vector3(selected.Position.x, selected.Position.y, 0f));
return selected.Position + (screen - us) * (pullBaseH / Mathf.Max(1, cam.pixelHeight));
Vector2 w;
if (!AimRules.DragMode || selected == null || pullBaseH <= 0f || cam == null) w = ScreenToWorld(screen);
else
{
Vector2 us = cam.WorldToScreenPoint(new Vector3(selected.Position.x, selected.Position.y, 0f));
w = selected.Position + (screen - us) * (pullBaseH / Mathf.Max(1, cam.pixelHeight));
}
// 설정 「조작 방식」(PD 2026-11-25) — 슬링샷 = 손가락을 유닛 기준으로 뒤집음(당긴 반대쪽으로 발사 · 거리 · 게이지 계산은 그대로)
return selected != null ? GameSettings.AimFinger(selected.Position, w) : w;
}
/// <summary>
@ -843,7 +849,7 @@ namespace TKS
EndArrow();
return;
}
Vector2 d = w - t.Position;
Vector2 d = GameSettings.AimFinger(t.Position, w) - t.Position; // 설정 「조작 방식」 슬링샷 = 반대쪽(일반 조준과 같게 · 2026-11-25)
float mag = d.magnitude;
float pull = mag - t.Radius * battle.Config.aimStartRadiusRatio;
if (mag < 1e-4f || pull <= 0f)

View File

@ -162,6 +162,7 @@ SpriteAtlasAsset:
- {fileID: 2800000, guid: 1dfa4588cbf5d4c8eb9ecaf11c55c88b, type: 3}
- {fileID: 2800000, guid: 3c166fa4e3ee74616b471b7c2332ab9b, type: 3}
- {fileID: 2800000, guid: 26d89dd2d7ae148e4acefd7fb973eb82, type: 3}
- {fileID: 2800000, guid: 3431eae1add1a4fe59b88366a9d20397, type: 3}
- {fileID: 2800000, guid: 4a78cd68f25904d5caedf86f6b56f88b, type: 3}
- {fileID: 2800000, guid: b636bad4f3b654c089e14addd5b292d2, type: 3}
- {fileID: 2800000, guid: e370be6ad4a764625bf14603bdf952bf, type: 3}
@ -176,6 +177,8 @@ SpriteAtlasAsset:
- {fileID: 2800000, guid: 02dc52ac5e8b84189b58ae5a14baa3b5, type: 3}
- {fileID: 2800000, guid: 77db17572c3694c38812470f80f4009b, type: 3}
- {fileID: 2800000, guid: a707b1e1252f042c58519d2882ee2651, type: 3}
- {fileID: 2800000, guid: 55f8dedbcdd184d0fa87ece74639f2b8, type: 3}
- {fileID: 2800000, guid: 4db1ab1258c2d42bbac11f9f67aa2e21, type: 3}
- {fileID: 2800000, guid: c75fde6c7cc1847fcbe1fac91002ce1f, type: 3}
- {fileID: 2800000, guid: 405e1d64d87794698b9e8e1f484bfa2c, type: 3}
- {fileID: 2800000, guid: 50cd2b7880d1c4d1db66bd1a8f2e0d63, type: 3}

View File

@ -38,6 +38,6 @@ SpriteAtlasImporter:
secondaryTextureSettings: {}
variantMultiplier: 1
bindAsDefault: 1
userData: ea3ac8f75c3fdfe8d386855ece43368e
userData: fcc7c2bfcf232b6e6bc91293b1447459
assetBundleName:
assetBundleVariant: