feat: UI 폰트 시스템 적용 및 HUD 타이포 보정
- 수성바탕체와 마루 부리 기반 UI 폰트 규칙, TMP 에셋 생성, 일괄 적용용 에디터 도구를 추가하고 로비 빌더도 같은 규칙을 따르도록 정리 - 기존 UI 프리팹과 Lobby/Test 씬의 TMP 폰트를 역할별로 교체하고 강조 텍스트와 HUD 계층에 맞는 자간을 반영 - 넥슨 Lv.2 고딕 검토 후 제외하고 액션바, HP/MP, 보스 체력바 숫자와 라벨을 마루 부리 기준으로 재조정 - Assets/_Game/Fonts 경로에 원본 폰트와 TMP 에셋을 정리하고 공유 Obsidian Vault 경로를 AGENTS에 기록 - Unity 리프레시와 HUD 보정 적용 후 콘솔 경고/에러 없는 상태를 확인
This commit is contained in:
8
Assets/_Game/Fonts.meta
Normal file
8
Assets/_Game/Fonts.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: abd35c080e8e3164897384131636d30f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/_Game/Fonts/MaruBuri-Regular.ttf
Normal file
BIN
Assets/_Game/Fonts/MaruBuri-Regular.ttf
Normal file
Binary file not shown.
21
Assets/_Game/Fonts/MaruBuri-Regular.ttf.meta
Normal file
21
Assets/_Game/Fonts/MaruBuri-Regular.ttf.meta
Normal file
@@ -0,0 +1,21 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c8ef714edc9c1ca49b7c466860417030
|
||||
TrueTypeFontImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 4
|
||||
fontSize: 16
|
||||
forceTextureCase: -2
|
||||
characterSpacing: 0
|
||||
characterPadding: 1
|
||||
includeFontData: 1
|
||||
fontNames:
|
||||
- MaruBuri
|
||||
fallbackFontReferences: []
|
||||
customCharacters:
|
||||
fontRenderingMode: 0
|
||||
ascentCalculationMode: 1
|
||||
useLegacyBoundsCalculation: 0
|
||||
shouldRoundAdvanceValue: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/_Game/Fonts/NEXON Lv2 Gothic.ttf
Normal file
BIN
Assets/_Game/Fonts/NEXON Lv2 Gothic.ttf
Normal file
Binary file not shown.
21
Assets/_Game/Fonts/NEXON Lv2 Gothic.ttf.meta
Normal file
21
Assets/_Game/Fonts/NEXON Lv2 Gothic.ttf.meta
Normal file
@@ -0,0 +1,21 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 92b87ffcb3e77ee4e960086335ac337a
|
||||
TrueTypeFontImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 4
|
||||
fontSize: 16
|
||||
forceTextureCase: -2
|
||||
characterSpacing: 0
|
||||
characterPadding: 1
|
||||
includeFontData: 1
|
||||
fontNames:
|
||||
- NEXON Lv2 Gothic
|
||||
fallbackFontReferences: []
|
||||
customCharacters:
|
||||
fontRenderingMode: 0
|
||||
ascentCalculationMode: 1
|
||||
useLegacyBoundsCalculation: 0
|
||||
shouldRoundAdvanceValue: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/_Game/Fonts/SuseongBatang.ttf
Normal file
BIN
Assets/_Game/Fonts/SuseongBatang.ttf
Normal file
Binary file not shown.
21
Assets/_Game/Fonts/SuseongBatang.ttf.meta
Normal file
21
Assets/_Game/Fonts/SuseongBatang.ttf.meta
Normal file
@@ -0,0 +1,21 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b2ea135d82c7dc842bb41c7434349179
|
||||
TrueTypeFontImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 4
|
||||
fontSize: 16
|
||||
forceTextureCase: -2
|
||||
characterSpacing: 0
|
||||
characterPadding: 1
|
||||
includeFontData: 1
|
||||
fontNames:
|
||||
- Suseong Batang
|
||||
fallbackFontReferences: []
|
||||
customCharacters:
|
||||
fontRenderingMode: 0
|
||||
ascentCalculationMode: 1
|
||||
useLegacyBoundsCalculation: 0
|
||||
shouldRoundAdvanceValue: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/_Game/Fonts/TMP.meta
Normal file
8
Assets/_Game/Fonts/TMP.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cc5c1382ed1ed0b42b5c601f747a40af
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24662
Assets/_Game/Fonts/TMP/TMP_MaruBuri.asset
Normal file
24662
Assets/_Game/Fonts/TMP/TMP_MaruBuri.asset
Normal file
File diff suppressed because one or more lines are too long
8
Assets/_Game/Fonts/TMP/TMP_MaruBuri.asset.meta
Normal file
8
Assets/_Game/Fonts/TMP/TMP_MaruBuri.asset.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ef44cbe516f6f9f418375e5b2b73ad8d
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
25547
Assets/_Game/Fonts/TMP/TMP_SuseongBatang.asset
Normal file
25547
Assets/_Game/Fonts/TMP/TMP_SuseongBatang.asset
Normal file
File diff suppressed because one or more lines are too long
8
Assets/_Game/Fonts/TMP/TMP_SuseongBatang.asset.meta
Normal file
8
Assets/_Game/Fonts/TMP/TMP_SuseongBatang.asset.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7e0884bf8d117154792024b547287f9d
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -474,10 +474,22 @@ PrefabInstance:
|
||||
propertyPath: m_margin.z
|
||||
value: -4.115387
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1316615260321933421, guid: 76cc919941c27814fa50c37e4df08f89, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1316615260321933421, guid: 76cc919941c27814fa50c37e4df08f89, type: 3}
|
||||
propertyPath: m_fontSizeBase
|
||||
value: 16
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1316615260321933421, guid: 76cc919941c27814fa50c37e4df08f89, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1316615260321933421, guid: 76cc919941c27814fa50c37e4df08f89, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1316615260321933421, guid: 76cc919941c27814fa50c37e4df08f89, type: 3}
|
||||
propertyPath: m_VerticalAlignment
|
||||
value: 256
|
||||
|
||||
@@ -32,7 +32,7 @@ RectTransform:
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 6345035962906402317}
|
||||
- {fileID: 6742803751755871201}
|
||||
- {fileID: 4181238112051942263}
|
||||
- {fileID: 2379057061630145361}
|
||||
- {fileID: 3523350566323011114}
|
||||
- {fileID: 3939708747385511549}
|
||||
@@ -99,7 +99,7 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier: Colosseum.Game::Colosseum.UI.SkillQuickSlotUI
|
||||
skillSlots:
|
||||
- {fileID: 859183241838430782}
|
||||
- {fileID: 4834941187719370535}
|
||||
- {fileID: 2633713827502438321}
|
||||
- {fileID: 4579724210710386583}
|
||||
- {fileID: 3345925489702591212}
|
||||
- {fileID: 2893212111806593723}
|
||||
@@ -123,6 +123,14 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 1221067101658275850}
|
||||
m_Modifications:
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1078964336793701480, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_Item (5)
|
||||
@@ -143,6 +151,18 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
@@ -252,6 +272,18 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 1221067101658275850}
|
||||
m_Modifications:
|
||||
- target: {fileID: 2372040578334079734, guid: 57e5d30f9d5f9724eba1a18f03be3889, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 2372040578334079734, guid: 57e5d30f9d5f9724eba1a18f03be3889, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 2372040578334079734, guid: 57e5d30f9d5f9724eba1a18f03be3889, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4347625930453929779, guid: 57e5d30f9d5f9724eba1a18f03be3889, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
@@ -268,6 +300,14 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6814497154888711096, guid: 57e5d30f9d5f9724eba1a18f03be3889, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6814497154888711096, guid: 57e5d30f9d5f9724eba1a18f03be3889, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6995259677752282104, guid: 57e5d30f9d5f9724eba1a18f03be3889, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_EvadeItem
|
||||
@@ -381,6 +421,14 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 1221067101658275850}
|
||||
m_Modifications:
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1078964336793701480, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_Item (1)
|
||||
@@ -401,6 +449,18 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
@@ -510,6 +570,14 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 1221067101658275850}
|
||||
m_Modifications:
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1078964336793701480, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_Item (2)
|
||||
@@ -530,6 +598,18 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
@@ -639,6 +719,14 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 1221067101658275850}
|
||||
m_Modifications:
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1078964336793701480, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_Item (3)
|
||||
@@ -659,6 +747,18 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
@@ -768,6 +868,14 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 1221067101658275850}
|
||||
m_Modifications:
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1078964336793701480, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_Item
|
||||
@@ -788,6 +896,18 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
@@ -873,7 +993,7 @@ PrefabInstance:
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
--- !u!114 &4834941187719370535 stripped
|
||||
--- !u!114 &2633713827502438321 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 9208209612841314922, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
m_PrefabInstance: {fileID: 6577213817819717083}
|
||||
@@ -884,7 +1004,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: bad7358e0082af244b16b0a515710fbc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Colosseum.Game::Colosseum.UI.SkillSlotUI
|
||||
--- !u!224 &6742803751755871201 stripped
|
||||
--- !u!224 &4181238112051942263 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
m_PrefabInstance: {fileID: 6577213817819717083}
|
||||
@@ -897,6 +1017,14 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 1221067101658275850}
|
||||
m_Modifications:
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1078964336793701480, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_Item (4)
|
||||
@@ -917,6 +1045,18 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
|
||||
@@ -582,8 +582,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: L-CTRL
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 3cd57b48cb32aa2408ee0460d689be68, type: 2}
|
||||
m_sharedMaterial: {fileID: -7244873375232470608, guid: 3cd57b48cb32aa2408ee0460d689be68, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_sharedMaterial: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -607,13 +607,13 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 16
|
||||
m_fontSizeBase: 16
|
||||
m_fontSize: 20
|
||||
m_fontSizeBase: 20
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 16
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
@@ -1324,8 +1324,8 @@ MonoBehaviour:
|
||||
|
||||
'
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 3cd57b48cb32aa2408ee0460d689be68, type: 2}
|
||||
m_sharedMaterial: {fileID: 2100000, guid: a3063f2d22ae4ba44828c3885272eaf2, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_sharedMaterial: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -1349,17 +1349,17 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 32
|
||||
m_fontSizeBase: 32
|
||||
m_fontSize: 24
|
||||
m_fontSizeBase: 24
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 16
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 4096
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 2
|
||||
m_characterSpacing: -1
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
|
||||
@@ -616,8 +616,8 @@ MonoBehaviour:
|
||||
|
||||
'
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 3cd57b48cb32aa2408ee0460d689be68, type: 2}
|
||||
m_sharedMaterial: {fileID: 2100000, guid: a3063f2d22ae4ba44828c3885272eaf2, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_sharedMaterial: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -641,17 +641,17 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 32
|
||||
m_fontSizeBase: 32
|
||||
m_fontSize: 24
|
||||
m_fontSizeBase: 24
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 16
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 4096
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 2
|
||||
m_characterSpacing: -1
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
@@ -1174,8 +1174,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: F
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 3cd57b48cb32aa2408ee0460d689be68, type: 2}
|
||||
m_sharedMaterial: {fileID: -7244873375232470608, guid: 3cd57b48cb32aa2408ee0460d689be68, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_sharedMaterial: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -1205,7 +1205,7 @@ MonoBehaviour:
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 16
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
|
||||
@@ -351,7 +351,15 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_fontSize
|
||||
value: 42
|
||||
value: 30
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_fontStyle
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_fontSizeMax
|
||||
@@ -359,12 +367,16 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_fontSizeBase
|
||||
value: 42
|
||||
value: 30
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: a3063f2d22ae4ba44828c3885272eaf2, type: 2}
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: -1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_enableAutoSizing
|
||||
value: 0
|
||||
@@ -596,20 +608,28 @@ PrefabInstance:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3420556218193743673, guid: 0ed0a70e5a4682c4c9e105178800133f, type: 3}
|
||||
propertyPath: m_fontSize
|
||||
value: 42
|
||||
value: 34
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3420556218193743673, guid: 0ed0a70e5a4682c4c9e105178800133f, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: 7e0884bf8d117154792024b547287f9d, type: 2}
|
||||
- target: {fileID: 3420556218193743673, guid: 0ed0a70e5a4682c4c9e105178800133f, type: 3}
|
||||
propertyPath: m_fontSizeMax
|
||||
value: 56
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3420556218193743673, guid: 0ed0a70e5a4682c4c9e105178800133f, type: 3}
|
||||
propertyPath: m_fontSizeBase
|
||||
value: 42
|
||||
value: 34
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3420556218193743673, guid: 0ed0a70e5a4682c4c9e105178800133f, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2100000, guid: a3063f2d22ae4ba44828c3885272eaf2, type: 2}
|
||||
objectReference: {fileID: -8395004629330540845, guid: 7e0884bf8d117154792024b547287f9d, type: 2}
|
||||
- target: {fileID: 3420556218193743673, guid: 0ed0a70e5a4682c4c9e105178800133f, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3420556218193743673, guid: 0ed0a70e5a4682c4c9e105178800133f, type: 3}
|
||||
propertyPath: m_enableAutoSizing
|
||||
value: 0
|
||||
|
||||
@@ -142,8 +142,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: 10
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_sharedMaterial: {fileID: 0}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -335,8 +335,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: Game Over
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: 7e0884bf8d117154792024b547287f9d, type: 2}
|
||||
m_sharedMaterial: {fileID: 0}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -370,7 +370,7 @@ MonoBehaviour:
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 256
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_characterSpacing: 5
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
|
||||
@@ -350,8 +350,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: Health Point
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: fcfcd7da3c44c554db6791d28dd79a59, type: 2}
|
||||
m_sharedMaterial: {fileID: -6627135030329028012, guid: fcfcd7da3c44c554db6791d28dd79a59, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_sharedMaterial: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -375,17 +375,17 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 32
|
||||
m_fontSizeBase: 32
|
||||
m_fontSize: 30
|
||||
m_fontSizeBase: 30
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 1024
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_characterSpacing: -1
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
|
||||
@@ -420,8 +420,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: Mana Point
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: fcfcd7da3c44c554db6791d28dd79a59, type: 2}
|
||||
m_sharedMaterial: {fileID: -6627135030329028012, guid: fcfcd7da3c44c554db6791d28dd79a59, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_sharedMaterial: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -445,17 +445,17 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 32
|
||||
m_fontSizeBase: 32
|
||||
m_fontSize: 30
|
||||
m_fontSizeBase: 30
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 1024
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_characterSpacing: -1
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
|
||||
@@ -67,8 +67,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: 999 / 999
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 3cd57b48cb32aa2408ee0460d689be68, type: 2}
|
||||
m_sharedMaterial: {fileID: 2100000, guid: a3063f2d22ae4ba44828c3885272eaf2, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_sharedMaterial: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -92,17 +92,17 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSizeBase: 36
|
||||
m_fontSize: 24
|
||||
m_fontSizeBase: 24
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 4096
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 2
|
||||
m_characterSpacing: -1
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
@@ -204,8 +204,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: 999 / 999
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: fcfcd7da3c44c554db6791d28dd79a59, type: 2}
|
||||
m_sharedMaterial: {fileID: -6627135030329028012, guid: fcfcd7da3c44c554db6791d28dd79a59, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_sharedMaterial: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -229,17 +229,17 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 32
|
||||
m_fontSizeBase: 32
|
||||
m_fontSize: 28
|
||||
m_fontSizeBase: 28
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 4096
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 2
|
||||
m_characterSpacing: -1
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
@@ -1179,8 +1179,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: 999 / 999
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: fcfcd7da3c44c554db6791d28dd79a59, type: 2}
|
||||
m_sharedMaterial: {fileID: -6627135030329028012, guid: fcfcd7da3c44c554db6791d28dd79a59, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_sharedMaterial: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -1204,17 +1204,17 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 32
|
||||
m_fontSizeBase: 32
|
||||
m_fontSize: 28
|
||||
m_fontSizeBase: 28
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 4096
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 2
|
||||
m_characterSpacing: -1
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
@@ -1697,8 +1697,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: 999 / 999
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 3cd57b48cb32aa2408ee0460d689be68, type: 2}
|
||||
m_sharedMaterial: {fileID: 2100000, guid: a3063f2d22ae4ba44828c3885272eaf2, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_sharedMaterial: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -1722,17 +1722,17 @@ MonoBehaviour:
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 36
|
||||
m_fontSizeBase: 36
|
||||
m_fontSize: 24
|
||||
m_fontSizeBase: 24
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_fontStyle: 1
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 4096
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 2
|
||||
m_characterSpacing: -1
|
||||
m_characterHorizontalScale: 1
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
|
||||
@@ -67,8 +67,8 @@ MonoBehaviour:
|
||||
m_Calls: []
|
||||
m_text: Player
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontAsset: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
m_sharedMaterial: {fileID: 0}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
@@ -149,7 +149,7 @@ GameObject:
|
||||
- component: {fileID: 2619735212364195173}
|
||||
- component: {fileID: 5129437633899893877}
|
||||
m_Layer: 0
|
||||
m_Name: PlayerSlot
|
||||
m_Name: UI_PlayerSlot
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
|
||||
@@ -610,6 +610,7 @@ MonoBehaviour:
|
||||
- {fileID: 7830658735294947559}
|
||||
- {fileID: 6568354020171798426}
|
||||
debugMode: 1
|
||||
slotMappings: 000000000100000002000000030000000400000005000000
|
||||
keyLabels:
|
||||
- L
|
||||
- R
|
||||
@@ -973,6 +974,18 @@ PrefabInstance:
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7980170689800973879, guid: 10b369200a4505640bea81594ae56cb8, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 7980170689800973879, guid: 10b369200a4505640bea81594ae56cb8, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 7980170689800973879, guid: 10b369200a4505640bea81594ae56cb8, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7980170689800973879, guid: 10b369200a4505640bea81594ae56cb8, type: 3}
|
||||
propertyPath: 'm_ActiveFontFeatures.Array.data[0]'
|
||||
value: 1801810542
|
||||
@@ -1125,6 +1138,10 @@ PrefabInstance:
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1078964336793701480, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_Item (4)
|
||||
@@ -1157,6 +1174,10 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
@@ -1544,6 +1565,18 @@ PrefabInstance:
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7980170689800973879, guid: 10b369200a4505640bea81594ae56cb8, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 7980170689800973879, guid: 10b369200a4505640bea81594ae56cb8, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 7980170689800973879, guid: 10b369200a4505640bea81594ae56cb8, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7997306272064920525, guid: 10b369200a4505640bea81594ae56cb8, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 0
|
||||
@@ -1703,7 +1736,7 @@ PrefabInstance:
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: fcfcd7da3c44c554db6791d28dd79a59, type: 2}
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_fontSizeBase
|
||||
value: 42
|
||||
@@ -1711,10 +1744,10 @@ PrefabInstance:
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: -6627135030329028012, guid: fcfcd7da3c44c554db6791d28dd79a59, type: 2}
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 2
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_VerticalAlignment
|
||||
@@ -1893,6 +1926,10 @@ PrefabInstance:
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1078964336793701480, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_Item (5)
|
||||
@@ -1925,6 +1962,10 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
@@ -2038,6 +2079,10 @@ PrefabInstance:
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1078964336793701480, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_Item (2)
|
||||
@@ -2070,6 +2115,10 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
@@ -2194,7 +2243,7 @@ PrefabInstance:
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_fontAsset
|
||||
value:
|
||||
objectReference: {fileID: 11400000, guid: fcfcd7da3c44c554db6791d28dd79a59, type: 2}
|
||||
objectReference: {fileID: 11400000, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_fontSizeBase
|
||||
value: 42
|
||||
@@ -2202,10 +2251,10 @@ PrefabInstance:
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: -6627135030329028012, guid: fcfcd7da3c44c554db6791d28dd79a59, type: 2}
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_characterSpacing
|
||||
value: 2
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1990594193549166204, guid: 9aea4cf6dad33b1419c4597a344a2e92, type: 3}
|
||||
propertyPath: m_VerticalAlignment
|
||||
@@ -2384,6 +2433,10 @@ PrefabInstance:
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1078964336793701480, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_Item (1)
|
||||
@@ -2416,6 +2469,10 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
@@ -2529,6 +2586,10 @@ PrefabInstance:
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1078964336793701480, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_Item
|
||||
@@ -2561,6 +2622,10 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
@@ -2674,6 +2739,10 @@ PrefabInstance:
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 764508204657515611, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 1078964336793701480, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: ActionBar_Item (3)
|
||||
@@ -2706,6 +2775,10 @@ PrefabInstance:
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6477301859233746099, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_sharedMaterial
|
||||
value:
|
||||
objectReference: {fileID: 2399985188671511309, guid: ef44cbe516f6f9f418375e5b2b73ad8d, type: 2}
|
||||
- target: {fileID: 7007681242674040492, guid: 553b74bdb60f6af47b5d2c8928a2af07, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
|
||||
@@ -64,12 +64,12 @@ namespace Colosseum.Editor
|
||||
vLayout.childForceExpandHeight = false;
|
||||
connectPanel.AddComponent<ContentSizeFitter>();
|
||||
|
||||
CreateLabel(connectPanel.transform, "TitleLabel", "Colosseum Lobby", 36);
|
||||
CreateLabel(connectPanel.transform, "TitleLabel", "Colosseum Lobby", 36, UIFontRole.Emphasis);
|
||||
var ipInput = CreateInputField(connectPanel.transform, "IpInput", "Host IP (127.0.0.1)", 300, 50);
|
||||
var portInput = CreateInputField(connectPanel.transform, "PortInput", "Port (7777)", 300, 50);
|
||||
var hostBtn = CreateButton(connectPanel.transform, "HostButton", "Host", 200, 50);
|
||||
var joinBtn = CreateButton(connectPanel.transform, "JoinButton", "Join", 200, 50);
|
||||
var statusText = CreateLabel(connectPanel.transform, "StatusText", "", 18);
|
||||
var statusText = CreateLabel(connectPanel.transform, "StatusText", "", 18, UIFontRole.Body);
|
||||
statusText.color = Color.yellow;
|
||||
|
||||
// ── LobbyPanel ────────────────────────────────────────
|
||||
@@ -87,7 +87,7 @@ namespace Colosseum.Editor
|
||||
vLayout2.childForceExpandWidth = false;
|
||||
vLayout2.childForceExpandHeight = false;
|
||||
|
||||
CreateLabel(lobbyPanel.transform, "LobbyTitle", "Waiting Room", 32);
|
||||
CreateLabel(lobbyPanel.transform, "LobbyTitle", "Waiting Room", 32, UIFontRole.Emphasis);
|
||||
|
||||
// PlayerList: ScrollView 역할을 하는 VerticalLayout 컨테이너
|
||||
var playerListGO = new GameObject("PlayerList");
|
||||
@@ -123,9 +123,10 @@ namespace Colosseum.Editor
|
||||
slotTmp.text = "Player";
|
||||
slotTmp.fontSize = 20;
|
||||
slotTmp.alignment = TextAlignmentOptions.MidlineLeft;
|
||||
UIFontSetupTool.ApplyRole(slotTmp, UIFontRole.Body);
|
||||
|
||||
System.IO.Directory.CreateDirectory(Application.dataPath + "/_Game/Prefabs/UI");
|
||||
var slotPrefab = PrefabUtility.SaveAsPrefabAsset(slotGO, "Assets/_Game/Prefabs/UI/PlayerSlot.prefab");
|
||||
var slotPrefab = PrefabUtility.SaveAsPrefabAsset(slotGO, "Assets/_Game/Prefabs/UI/UI_PlayerSlot.prefab");
|
||||
Object.DestroyImmediate(slotGO);
|
||||
|
||||
// ── LobbyUI 연결 ──────────────────────────────────────
|
||||
@@ -297,6 +298,7 @@ namespace Colosseum.Editor
|
||||
phTmp.text = placeholder;
|
||||
phTmp.fontSize = 18;
|
||||
phTmp.color = new Color(0.5f, 0.5f, 0.5f);
|
||||
UIFontSetupTool.ApplyRole(phTmp, UIFontRole.Combat);
|
||||
|
||||
var txtGO = new GameObject("Text");
|
||||
txtGO.transform.SetParent(textArea.transform, false);
|
||||
@@ -307,6 +309,7 @@ namespace Colosseum.Editor
|
||||
var txt = txtGO.AddComponent<TextMeshProUGUI>();
|
||||
txt.fontSize = 18;
|
||||
txt.color = Color.white;
|
||||
UIFontSetupTool.ApplyRole(txt, UIFontRole.Combat);
|
||||
|
||||
input.textViewport = taRect;
|
||||
input.placeholder = phTmp;
|
||||
@@ -335,11 +338,12 @@ namespace Colosseum.Editor
|
||||
tmp.fontSize = 20;
|
||||
tmp.alignment = TextAlignmentOptions.Center;
|
||||
tmp.color = Color.white;
|
||||
UIFontSetupTool.ApplyRole(tmp, UIFontRole.Combat);
|
||||
|
||||
return go;
|
||||
}
|
||||
|
||||
private static TextMeshProUGUI CreateLabel(Transform parent, string name, string text, int size)
|
||||
private static TextMeshProUGUI CreateLabel(Transform parent, string name, string text, int size, UIFontRole role = UIFontRole.Body)
|
||||
{
|
||||
var go = new GameObject(name);
|
||||
go.transform.SetParent(parent, false);
|
||||
@@ -350,6 +354,7 @@ namespace Colosseum.Editor
|
||||
tmp.fontSize = size;
|
||||
tmp.alignment = TextAlignmentOptions.Center;
|
||||
tmp.color = Color.white;
|
||||
UIFontSetupTool.ApplyRole(tmp, role);
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
||||
579
Assets/_Game/Scripts/Editor/UIFontSetupTool.cs
Normal file
579
Assets/_Game/Scripts/Editor/UIFontSetupTool.cs
Normal file
@@ -0,0 +1,579 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
using TMPro;
|
||||
|
||||
using UnityEditor;
|
||||
using UnityEditor.SceneManagement;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
using UnityEngine.TextCore.LowLevel;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace Colosseum.Editor
|
||||
{
|
||||
/// <summary>
|
||||
/// UI 폰트 역할
|
||||
/// </summary>
|
||||
public enum UIFontRole
|
||||
{
|
||||
Emphasis,
|
||||
Body,
|
||||
Combat,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 프로젝트 UI 폰트 에셋 생성 및 적용 도구
|
||||
/// </summary>
|
||||
public static class UIFontSetupTool
|
||||
{
|
||||
private const string InitialCharacterSet =
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 " +
|
||||
".,:;!?+-=*/%()[]{}<>#&_'\"|~" +
|
||||
"검투사콜로세움보스체력마나준비게임시작나가기대기실승리패배연결호스트참가플레이어";
|
||||
public const string FontRootPath = "Assets/_Game/Fonts";
|
||||
public const string FontAssetRootPath = "Assets/_Game/Fonts/TMP";
|
||||
public const string MaruSourceFontPath = FontRootPath + "/MaruBuri-Regular.ttf";
|
||||
public const string SuseongSourceFontPath = FontRootPath + "/SuseongBatang.ttf";
|
||||
public const string MaruFontAssetPath = FontAssetRootPath + "/TMP_MaruBuri.asset";
|
||||
public const string SuseongFontAssetPath = FontAssetRootPath + "/TMP_SuseongBatang.asset";
|
||||
|
||||
[MenuItem("Colosseum/UI/TMP 폰트 에셋 생성")]
|
||||
public static void GenerateFontAssetsMenu()
|
||||
{
|
||||
EnsureFontAssets(true);
|
||||
}
|
||||
|
||||
[MenuItem("Colosseum/UI/UI 폰트 규칙 적용")]
|
||||
public static void ApplyFontRulesMenu()
|
||||
{
|
||||
if (!EnsureFontAssets(true))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int changedPrefabCount = ApplyPrefabFontRules();
|
||||
int changedSceneCount = ApplySceneFontRules();
|
||||
|
||||
AssetDatabase.SaveAssets();
|
||||
AssetDatabase.Refresh();
|
||||
|
||||
Debug.Log($"[UIFontSetupTool] UI 폰트 규칙 적용 완료. Prefab {changedPrefabCount}개, Scene {changedSceneCount}개를 갱신했습니다.");
|
||||
}
|
||||
|
||||
[MenuItem("Colosseum/UI/HUD 타이포 보정 적용")]
|
||||
public static void ApplyHudTypographyTuningMenu()
|
||||
{
|
||||
if (!EnsureFontAssets(true))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int changedPrefabCount = ApplyHudPrefabTuning();
|
||||
|
||||
AssetDatabase.SaveAssets();
|
||||
AssetDatabase.Refresh();
|
||||
|
||||
Debug.Log($"[UIFontSetupTool] HUD 타이포 보정 완료. Prefab {changedPrefabCount}개를 갱신했습니다.");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 역할에 맞는 TMP 폰트를 텍스트에 적용합니다.
|
||||
/// </summary>
|
||||
public static bool ApplyRole(TMP_Text text, UIFontRole role)
|
||||
{
|
||||
if (text == null || !TryGetFontAsset(role, out TMP_FontAsset fontAsset))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool changed = false;
|
||||
|
||||
if (text.font != fontAsset)
|
||||
{
|
||||
text.font = fontAsset;
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (text.fontSharedMaterial != fontAsset.material)
|
||||
{
|
||||
text.fontSharedMaterial = fontAsset.material;
|
||||
changed = true;
|
||||
}
|
||||
|
||||
float targetCharacterSpacing = role == UIFontRole.Emphasis ? GetEmphasisCharacterSpacing(text) : 0f;
|
||||
if (!Mathf.Approximately(text.characterSpacing, targetCharacterSpacing))
|
||||
{
|
||||
text.characterSpacing = targetCharacterSpacing;
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (changed)
|
||||
{
|
||||
EditorUtility.SetDirty(text);
|
||||
}
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 역할에 맞는 TMP 폰트 에셋을 반환합니다.
|
||||
/// </summary>
|
||||
public static bool TryGetFontAsset(UIFontRole role, out TMP_FontAsset fontAsset)
|
||||
{
|
||||
fontAsset = role switch
|
||||
{
|
||||
UIFontRole.Emphasis => AssetDatabase.LoadAssetAtPath<TMP_FontAsset>(SuseongFontAssetPath),
|
||||
UIFontRole.Body => AssetDatabase.LoadAssetAtPath<TMP_FontAsset>(MaruFontAssetPath),
|
||||
UIFontRole.Combat => AssetDatabase.LoadAssetAtPath<TMP_FontAsset>(MaruFontAssetPath),
|
||||
_ => null,
|
||||
};
|
||||
|
||||
return fontAsset != null;
|
||||
}
|
||||
|
||||
private static bool EnsureFontAssets(bool logResult)
|
||||
{
|
||||
EnsureFolder(FontRootPath);
|
||||
EnsureFolder(FontAssetRootPath);
|
||||
|
||||
bool success = true;
|
||||
success &= CreateFontAssetIfNeeded(MaruSourceFontPath, MaruFontAssetPath, "TMP_MaruBuri", logResult);
|
||||
success &= CreateFontAssetIfNeeded(SuseongSourceFontPath, SuseongFontAssetPath, "TMP_SuseongBatang", logResult);
|
||||
|
||||
if (success)
|
||||
{
|
||||
AssetDatabase.SaveAssets();
|
||||
AssetDatabase.Refresh();
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
private static bool CreateFontAssetIfNeeded(string sourceFontPath, string fontAssetPath, string assetName, bool logResult)
|
||||
{
|
||||
TMP_FontAsset existingFontAsset = AssetDatabase.LoadAssetAtPath<TMP_FontAsset>(fontAssetPath);
|
||||
if (existingFontAsset != null && IsFontAssetUsable(existingFontAsset))
|
||||
{
|
||||
WarmUpFontAsset(existingFontAsset);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (existingFontAsset != null)
|
||||
{
|
||||
AssetDatabase.DeleteAsset(fontAssetPath);
|
||||
}
|
||||
|
||||
Font sourceFont = AssetDatabase.LoadAssetAtPath<Font>(sourceFontPath);
|
||||
if (sourceFont == null)
|
||||
{
|
||||
if (logResult)
|
||||
{
|
||||
Debug.LogError($"[UIFontSetupTool] 원본 폰트를 찾을 수 없습니다: {sourceFontPath}");
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
TMP_FontAsset fontAsset = TMP_FontAsset.CreateFontAsset(
|
||||
sourceFont,
|
||||
90,
|
||||
9,
|
||||
GlyphRenderMode.SDFAA,
|
||||
1024,
|
||||
1024,
|
||||
AtlasPopulationMode.Dynamic,
|
||||
true);
|
||||
|
||||
fontAsset.name = assetName;
|
||||
AssetDatabase.CreateAsset(fontAsset, fontAssetPath);
|
||||
AttachSubAssets(fontAsset, fontAssetPath);
|
||||
WarmUpFontAsset(fontAsset);
|
||||
|
||||
if (logResult)
|
||||
{
|
||||
Debug.Log($"[UIFontSetupTool] TMP 폰트 에셋 생성: {fontAssetPath}");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private static void WarmUpFontAsset(TMP_FontAsset fontAsset)
|
||||
{
|
||||
if (fontAsset == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
fontAsset.ReadFontAssetDefinition();
|
||||
fontAsset.TryAddCharacters(InitialCharacterSet, out _);
|
||||
EditorUtility.SetDirty(fontAsset);
|
||||
}
|
||||
|
||||
private static void AttachSubAssets(TMP_FontAsset fontAsset, string fontAssetPath)
|
||||
{
|
||||
if (fontAsset == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (fontAsset.material != null && AssetDatabase.GetAssetPath(fontAsset.material) != fontAssetPath)
|
||||
{
|
||||
AssetDatabase.AddObjectToAsset(fontAsset.material, fontAsset);
|
||||
}
|
||||
|
||||
Texture2D[] atlasTextures = fontAsset.atlasTextures;
|
||||
if (atlasTextures == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (Texture2D atlasTexture in atlasTextures)
|
||||
{
|
||||
if (atlasTexture == null || AssetDatabase.GetAssetPath(atlasTexture) == fontAssetPath)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
AssetDatabase.AddObjectToAsset(atlasTexture, fontAsset);
|
||||
}
|
||||
}
|
||||
|
||||
private static bool IsFontAssetUsable(TMP_FontAsset fontAsset)
|
||||
{
|
||||
if (fontAsset == null || fontAsset.material == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Texture2D[] atlasTextures = fontAsset.atlasTextures;
|
||||
return atlasTextures != null && atlasTextures.Length > 0 && atlasTextures[0] != null;
|
||||
}
|
||||
|
||||
private static int ApplyPrefabFontRules()
|
||||
{
|
||||
string[] prefabGuids = AssetDatabase.FindAssets("t:Prefab", new[] { "Assets/_Game/Prefabs/UI" });
|
||||
int changedCount = 0;
|
||||
|
||||
foreach (string guid in prefabGuids)
|
||||
{
|
||||
string prefabPath = AssetDatabase.GUIDToAssetPath(guid);
|
||||
GameObject root = PrefabUtility.LoadPrefabContents(prefabPath);
|
||||
|
||||
try
|
||||
{
|
||||
if (ApplyFontRules(root))
|
||||
{
|
||||
PrefabUtility.SaveAsPrefabAsset(root, prefabPath);
|
||||
changedCount++;
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
PrefabUtility.UnloadPrefabContents(root);
|
||||
}
|
||||
}
|
||||
|
||||
return changedCount;
|
||||
}
|
||||
|
||||
private static int ApplyHudPrefabTuning()
|
||||
{
|
||||
string[] prefabGuids = AssetDatabase.FindAssets("t:Prefab", new[] { "Assets/_Game/Prefabs/UI" });
|
||||
int changedCount = 0;
|
||||
|
||||
foreach (string guid in prefabGuids)
|
||||
{
|
||||
string prefabPath = AssetDatabase.GUIDToAssetPath(guid);
|
||||
GameObject root = PrefabUtility.LoadPrefabContents(prefabPath);
|
||||
|
||||
try
|
||||
{
|
||||
if (TuneHudTypography(root))
|
||||
{
|
||||
PrefabUtility.SaveAsPrefabAsset(root, prefabPath);
|
||||
changedCount++;
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
PrefabUtility.UnloadPrefabContents(root);
|
||||
}
|
||||
}
|
||||
|
||||
return changedCount;
|
||||
}
|
||||
|
||||
private static int ApplySceneFontRules()
|
||||
{
|
||||
string originalScenePath = SceneManager.GetActiveScene().path;
|
||||
string[] sceneGuids = AssetDatabase.FindAssets("t:Scene", new[] { "Assets/Scenes" });
|
||||
int changedCount = 0;
|
||||
|
||||
foreach (string guid in sceneGuids)
|
||||
{
|
||||
string scenePath = AssetDatabase.GUIDToAssetPath(guid);
|
||||
Scene scene = EditorSceneManager.OpenScene(scenePath, OpenSceneMode.Single);
|
||||
bool changed = false;
|
||||
|
||||
foreach (GameObject rootObject in scene.GetRootGameObjects())
|
||||
{
|
||||
changed |= ApplyFontRules(rootObject);
|
||||
}
|
||||
|
||||
if (changed)
|
||||
{
|
||||
EditorSceneManager.SaveScene(scene);
|
||||
changedCount++;
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(originalScenePath) && File.Exists(originalScenePath))
|
||||
{
|
||||
EditorSceneManager.OpenScene(originalScenePath, OpenSceneMode.Single);
|
||||
}
|
||||
|
||||
return changedCount;
|
||||
}
|
||||
|
||||
private static bool ApplyFontRules(GameObject root)
|
||||
{
|
||||
bool changed = false;
|
||||
TMP_Text[] texts = root.GetComponentsInChildren<TMP_Text>(true);
|
||||
|
||||
foreach (TMP_Text text in texts)
|
||||
{
|
||||
UIFontRole role = DetermineRole(text);
|
||||
changed |= ApplyRole(text, role);
|
||||
}
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
||||
private static bool TuneHudTypography(GameObject root)
|
||||
{
|
||||
if (root == null || ContainsIgnoreCase(root.name, "Lobby"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool changed = false;
|
||||
TMP_Text[] texts = root.GetComponentsInChildren<TMP_Text>(true);
|
||||
|
||||
foreach (TMP_Text text in texts)
|
||||
{
|
||||
string hierarchyPath = GetHierarchyPath(text.transform);
|
||||
|
||||
if (root.name == "UI_ActionBar_Item" || root.name == "UI_ActionBar_EvadeItem")
|
||||
{
|
||||
changed |= TuneActionBarTypography(text, hierarchyPath);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (root.name == "UI_PlayerResources")
|
||||
{
|
||||
changed |= TunePlayerResourcesTypography(text, hierarchyPath);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (root.name == "UI_HealthBar" || root.name == "UI_ManaBar")
|
||||
{
|
||||
changed |= SetTextStyle(text, 30f, FontStyles.Bold, -1f);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (root.name == "UI_BossHealthBar")
|
||||
{
|
||||
changed |= TuneBossBarTypography(text, hierarchyPath);
|
||||
}
|
||||
}
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
||||
private static UIFontRole DetermineRole(TMP_Text text)
|
||||
{
|
||||
string objectName = text.gameObject.name;
|
||||
string hierarchyPath = GetHierarchyPath(text.transform);
|
||||
|
||||
if (IsEmphasisText(objectName, hierarchyPath))
|
||||
{
|
||||
return UIFontRole.Emphasis;
|
||||
}
|
||||
|
||||
if (IsCombatText(text, objectName, hierarchyPath))
|
||||
{
|
||||
return UIFontRole.Combat;
|
||||
}
|
||||
|
||||
return UIFontRole.Body;
|
||||
}
|
||||
|
||||
private static bool IsEmphasisText(string objectName, string hierarchyPath)
|
||||
{
|
||||
return ContainsIgnoreCase(objectName, "Title")
|
||||
|| ContainsIgnoreCase(objectName, "BossName")
|
||||
|| ContainsIgnoreCase(objectName, "Victory")
|
||||
|| ContainsIgnoreCase(objectName, "GameOver")
|
||||
|| ContainsIgnoreCase(hierarchyPath, "/Title")
|
||||
|| ContainsIgnoreCase(hierarchyPath, "/BossName");
|
||||
}
|
||||
|
||||
private static bool IsCombatText(TMP_Text text, string objectName, string hierarchyPath)
|
||||
{
|
||||
return text.GetComponentInParent<Button>(true) != null
|
||||
|| text.GetComponentInParent<TMP_InputField>(true) != null
|
||||
|| ContainsIgnoreCase(objectName, "HP")
|
||||
|| ContainsIgnoreCase(objectName, "MP")
|
||||
|| ContainsIgnoreCase(objectName, "XP")
|
||||
|| ContainsIgnoreCase(objectName, "Cooldown")
|
||||
|| ContainsIgnoreCase(objectName, "Key")
|
||||
|| ContainsIgnoreCase(objectName, "Duration")
|
||||
|| ContainsIgnoreCase(objectName, "Status")
|
||||
|| ContainsIgnoreCase(hierarchyPath, "ActionBar")
|
||||
|| ContainsIgnoreCase(hierarchyPath, "HealthBar")
|
||||
|| ContainsIgnoreCase(hierarchyPath, "ManaBar")
|
||||
|| ContainsIgnoreCase(hierarchyPath, "PlayerResources")
|
||||
|| ContainsIgnoreCase(hierarchyPath, "Abnormality")
|
||||
|| ContainsIgnoreCase(hierarchyPath, "BossHealthBar");
|
||||
}
|
||||
|
||||
private static float GetEmphasisCharacterSpacing(TMP_Text text)
|
||||
{
|
||||
string objectName = text.gameObject.name;
|
||||
|
||||
if (ContainsIgnoreCase(objectName, "GameOver") || ContainsIgnoreCase(objectName, "Victory"))
|
||||
{
|
||||
return 5f;
|
||||
}
|
||||
|
||||
if (ContainsIgnoreCase(objectName, "BossName"))
|
||||
{
|
||||
return 3f;
|
||||
}
|
||||
|
||||
return 4f;
|
||||
}
|
||||
|
||||
private static bool TuneActionBarTypography(TMP_Text text, string hierarchyPath)
|
||||
{
|
||||
if (text == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (ContainsIgnoreCase(hierarchyPath, "Label_CooldownTime"))
|
||||
{
|
||||
return SetTextStyle(text, 24f, FontStyles.Bold, -1f);
|
||||
}
|
||||
|
||||
if (ContainsIgnoreCase(hierarchyPath, "/Input/Input"))
|
||||
{
|
||||
return SetTextStyle(text, 20f, FontStyles.Bold, 0f);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private static bool TunePlayerResourcesTypography(TMP_Text text, string hierarchyPath)
|
||||
{
|
||||
if (text == null || !ContainsIgnoreCase(hierarchyPath, "Label_XP"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
float fontSize = ContainsIgnoreCase(hierarchyPath, "/HUD_XPBar/") ? 24f : 28f;
|
||||
return SetTextStyle(text, fontSize, FontStyles.Bold, -1f);
|
||||
}
|
||||
|
||||
private static bool TuneBossBarTypography(TMP_Text text, string hierarchyPath)
|
||||
{
|
||||
if (text == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (ContainsIgnoreCase(hierarchyPath, "Label_HP"))
|
||||
{
|
||||
return SetTextStyle(text, 30f, FontStyles.Bold, -1f);
|
||||
}
|
||||
|
||||
if (ContainsIgnoreCase(hierarchyPath, "Label_BossName"))
|
||||
{
|
||||
return SetTextStyle(text, 34f, FontStyles.Normal, 3f);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private static bool SetTextStyle(TMP_Text text, float fontSize, FontStyles fontStyle, float characterSpacing)
|
||||
{
|
||||
bool changed = false;
|
||||
|
||||
if (!Mathf.Approximately(text.fontSize, fontSize))
|
||||
{
|
||||
text.fontSize = fontSize;
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (text.fontStyle != fontStyle)
|
||||
{
|
||||
text.fontStyle = fontStyle;
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (!Mathf.Approximately(text.characterSpacing, characterSpacing))
|
||||
{
|
||||
text.characterSpacing = characterSpacing;
|
||||
changed = true;
|
||||
}
|
||||
|
||||
if (changed)
|
||||
{
|
||||
EditorUtility.SetDirty(text);
|
||||
}
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
||||
private static string GetHierarchyPath(Transform transform)
|
||||
{
|
||||
string path = transform.name;
|
||||
|
||||
while (transform.parent != null)
|
||||
{
|
||||
transform = transform.parent;
|
||||
path = $"{transform.name}/{path}";
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
private static bool ContainsIgnoreCase(string source, string value)
|
||||
{
|
||||
return source?.IndexOf(value, StringComparison.OrdinalIgnoreCase) >= 0;
|
||||
}
|
||||
|
||||
private static void EnsureFolder(string path)
|
||||
{
|
||||
if (AssetDatabase.IsValidFolder(path))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
string[] parts = path.Split('/');
|
||||
string currentPath = parts[0];
|
||||
|
||||
for (int i = 1; i < parts.Length; i++)
|
||||
{
|
||||
string nextPath = $"{currentPath}/{parts[i]}";
|
||||
if (!AssetDatabase.IsValidFolder(nextPath))
|
||||
{
|
||||
AssetDatabase.CreateFolder(currentPath, parts[i]);
|
||||
}
|
||||
|
||||
currentPath = nextPath;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/_Game/Scripts/Editor/UIFontSetupTool.cs.meta
Normal file
2
Assets/_Game/Scripts/Editor/UIFontSetupTool.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5c686d635a98a6b4baaad969bc633ca3
|
||||
Reference in New Issue
Block a user