Skip to content

Commit aff5440

Browse files
authored
Merge pull request #17 from kwan3854/16-v040
v0.4.0
2 parents eaa5f2e + 6823a65 commit aff5440

File tree

4 files changed

+230
-263
lines changed

4 files changed

+230
-263
lines changed
591 KB
Loading

Editor/FontBatchChanger.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private class FoundTMP
5252
private readonly Dictionary<object, bool> _foldoutStates = new();
5353
private Scene _initialActiveScene;
5454

55-
[MenuItem("Tools/TMP Font Batch Changer")]
55+
[MenuItem("Tools/TextMeshPro Max/TMP Font Batch Changer")]
5656
public static void ShowWindow()
5757
{
5858
GetWindow<FontBatchChanger>("TMP Font Batch Changer").Show();
@@ -346,20 +346,20 @@ private void DrawTMPTextEntry(FoundTMP f)
346346
var rect = EditorGUILayout.GetControlRect(GUILayout.Height(20));
347347
var bgColor = GetFontColor(f.TMPText.font);
348348

349-
// 전체 라인에 배경색 적용
349+
// Alternate row background color (pastel)
350350
EditorGUI.DrawRect(rect, bgColor);
351351

352-
// 체크박스 표시
352+
// Show checkbox
353353
Rect toggleRect = new Rect(rect.x, rect.y, 20, rect.height);
354354
f.Selected = EditorGUI.Toggle(toggleRect, f.Selected);
355355

356-
// 텍스트(검은색)
356+
// Black text for contrast
357357
GUI.contentColor = Color.black;
358358
EditorGUI.LabelField(new Rect(rect.x + 25, rect.y, rect.width - 100, rect.height),
359359
$"{f.RelativePath} (Font: {(f.TMPText.font ? f.TMPText.font.name : "None")})");
360360
GUI.contentColor = Color.white;
361361

362-
// Select 버튼
362+
// Select button
363363
var selectButtonRect = new Rect(rect.x + rect.width - 60, rect.y, 60, rect.height);
364364
if (GUI.Button(selectButtonRect, "Select"))
365365
{
@@ -371,13 +371,13 @@ private void SelectObjectInProjectOrScene(FoundTMP f)
371371
{
372372
if (f.IsPrefab)
373373
{
374-
// Prefab 오브젝트를 프로젝트에서 하이라이트
374+
// Highlight prefab in project window
375375
Selection.activeObject = f.GameObject;
376376
EditorGUIUtility.PingObject(f.GameObject);
377377
}
378378
else
379379
{
380-
// 씬 오브젝트를 씬에서 하이라이트
380+
// Highlight object in scene view
381381
Selection.activeGameObject = f.GameObject;
382382
EditorGUIUtility.PingObject(f.GameObject);
383383
}
@@ -387,7 +387,7 @@ private Color GetFontColor(TMP_FontAsset font)
387387
{
388388
if (!_fontColors.ContainsKey(font))
389389
{
390-
// Hue 기반 파스텔 톤 색상 생성
390+
// Hue based on font index
391391
float hue = (_colorIndex * 0.113f) % 1f;
392392
float saturation = 0.2f;
393393
float value = 0.95f;

Editor/TextBakerProMax.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class TextBakerProMax : EditorWindow
8383
{ "CJK Radicals Supplement", (0x2E80, 0x2EFF) }
8484
};
8585

86-
[MenuItem("Tools/CJK Font Atlas Generator")]
86+
[MenuItem("Tools/TextMeshPro Max/CJK Font Atlas Generator")]
8787
public static void ShowWindow()
8888
{
8989
GetWindow<TextBakerProMax>("Font Atlas Generator");
@@ -104,7 +104,7 @@ private void OnGUI()
104104
// CJK
105105
if (_includeChinese || _includeJapanese || _includeKorean)
106106
{
107-
DrawCJKOptions();
107+
DrawCjkOptions();
108108
}
109109

110110
// Korean
@@ -230,7 +230,7 @@ private void DrawKoreanOptions()
230230
EditorGUILayout.EndHorizontal();
231231
}
232232

233-
private void DrawCJKOptions()
233+
private void DrawCjkOptions()
234234
{
235235
GUILayout.Space(10);
236236
GUILayout.Label("CJK Options", EditorStyles.boldLabel);

0 commit comments

Comments
 (0)