| ofs | hex dump | ascii |
|---|
| 0000 | 00 00 0f 81 00 01 53 88 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe | ......S.............2019.3.6f1.. |
| 0020 | ff ff ff 01 02 00 00 00 0b 04 00 00 00 ff ff 66 9a 86 21 eb 14 35 98 39 dd 34 1d 51 0e c1 f3 42 | ...............f..!..5.9.4.Q...B |
| 0040 | 00 00 00 ed 00 00 00 02 00 00 00 00 00 00 00 37 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 | ...............7................ |
| 0060 | 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 | ................................ |
| 0080 | 00 00 00 00 00 00 00 01 00 01 00 0d 00 00 00 45 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 | ...............E................ |
| 00a0 | 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 | ...............#................ |
| 00c0 | 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 | ...............,................ |
| 00e0 | 00 00 00 00 00 00 00 01 00 01 00 35 00 00 00 61 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 | ...........5...a................ |
| 0100 | 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 | ...............#................ |
| 0120 | 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 | ...............,................ |
| 0140 | 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 | ...............r................ |
| 0160 | 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 | ...............#................ |
| 0180 | 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 | ...............,................ |
| 01a0 | 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 | ...........H.................... |
| 01c0 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 | ...........1...1............@... |
| 01e0 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 | ................................ |
| 0200 | 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 | ...........Q...j................ |
| 0220 | 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 4a 00 00 00 ff ff ff ff 0f 00 00 00 00 c0 00 00 00 | ...............J................ |
| 0240 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 10 00 00 00 00 80 00 00 00 | ...........1...1................ |
| 0260 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 11 00 00 00 00 00 00 00 00 | ................................ |
| 0280 | 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 12 00 00 00 00 80 00 00 00 | ...............j................ |
| 02a0 | 00 00 00 00 00 00 00 01 00 04 00 5c 00 00 00 9b 00 00 80 ff ff ff ff 13 00 00 00 00 80 00 00 00 | ...........\.................... |
| 02c0 | 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 72 00 00 00 ff ff ff ff 14 00 00 00 00 80 00 00 00 | ...........H...r................ |
| 02e0 | 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 15 00 00 00 01 40 00 00 00 | ...........1...1............@... |
| 0300 | 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 16 00 00 00 01 00 00 00 00 | ................................ |
| 0320 | 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 17 00 00 00 01 00 00 00 00 | ...........Q...j................ |
| 0340 | 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 77 00 00 00 ff ff ff ff 18 00 00 00 00 80 00 00 00 | ...........H...w................ |
| 0360 | 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 19 00 00 00 01 40 00 00 00 | ...........1...1............@... |
| 0380 | 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1a 00 00 00 01 00 00 00 00 | ................................ |
| 03a0 | 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1b 00 00 00 01 00 00 00 00 | ...........Q...j................ |
| 03c0 | 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 80 00 00 00 ff ff ff ff 1c 00 00 00 00 80 00 00 00 | ...........H.................... |
| 03e0 | 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 1d 00 00 00 01 40 00 00 00 | ...........1...1............@... |
| 0400 | 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1e 00 00 00 01 00 00 00 00 | ................................ |
| 0420 | 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1f 00 00 00 01 00 00 00 00 | ...........Q...j................ |
| 0440 | 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 20 00 00 00 00 00 00 00 00 | ...........y.................... |
| 0460 | 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 21 00 00 00 01 00 80 00 00 | ...............#.......!........ |
| 0480 | 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 22 00 00 00 01 00 80 00 00 | ...............,......."........ |
| 04a0 | 00 00 00 00 00 00 00 01 00 01 00 11 03 00 80 85 00 00 00 ff ff ff ff 23 00 00 00 01 40 08 00 00 | .......................#....@... |
| 04c0 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 24 00 00 00 01 00 08 00 00 | ...........1...1.......$........ |
| 04e0 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 25 00 00 00 01 00 08 00 00 | .......................%........ |
| 0500 | 00 00 00 00 00 00 00 01 00 03 00 2e 03 00 80 6a 00 00 80 08 00 00 00 26 00 00 00 01 00 08 00 00 | ...............j.......&........ |
| 0520 | 00 00 00 00 00 00 00 01 00 01 00 d5 03 00 80 93 00 00 00 ff ff ff ff 27 00 00 00 00 80 00 00 00 | .......................'........ |
| 0540 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 28 00 00 00 00 c0 00 00 00 | ...........1...1.......(........ |
| 0560 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 29 00 00 00 00 00 00 00 00 | .......................)........ |
| 0580 | 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 2a 00 00 00 00 80 00 00 00 | ...............j.......*........ |
| 05a0 | 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b 00 00 80 ff ff ff ff 2b 00 00 00 00 80 00 00 00 | ...........H...........+........ |
| 05c0 | 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 00 00 80 ff ff ff ff 2c 00 00 00 01 40 00 00 00 | ...........1...1.......,....@... |
| 05e0 | 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b 03 00 80 04 00 00 00 2d 00 00 00 01 00 00 00 00 | .......................-........ |
| 0600 | 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a 00 00 80 01 00 00 00 2e 00 00 00 01 00 00 00 00 | ...........Q...j................ |
| 0620 | 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 2f 00 00 00 00 00 00 00 00 | ...........y.........../........ |
| 0640 | 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 30 00 00 00 01 00 80 00 00 | ...............#.......0........ |
| 0660 | 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 31 00 00 00 01 00 80 00 00 | ...............,.......1........ |
| 0680 | 00 00 00 00 00 00 00 01 00 01 00 20 03 00 80 a7 00 00 00 02 00 00 00 32 00 00 00 00 40 00 00 00 | .......................2....@... |
| 06a0 | 00 00 00 00 00 00 00 01 00 01 00 be 02 00 80 b6 00 00 00 0c 00 00 00 33 00 00 00 00 40 00 00 00 | .......................3....@... |
| 06c0 | 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 34 00 00 00 01 00 80 00 00 | ...............#.......4........ |
| 06e0 | 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 35 00 00 00 01 00 80 00 00 | ...............,.......5........ |
| 0700 | 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 bb 00 00 00 ff ff ff ff 36 00 00 00 01 80 00 00 00 | ...........H...........6........ |
| 0720 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 37 00 00 00 01 40 00 00 00 | ...........1...1.......7....@... |
| 0740 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 38 00 00 00 01 00 00 00 00 | .......................8........ |
| 0760 | 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 39 00 00 00 01 00 00 00 00 | ...........Q...j.......9........ |
| 0780 | 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 c6 00 00 00 ff ff ff ff 3a 00 00 00 01 80 00 00 00 | ...........H...........:........ |
| 07a0 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3b 00 00 00 01 40 00 00 00 | ...........1...1.......;....@... |
| 07c0 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 3c 00 00 00 01 00 00 00 00 | .......................<........ |
| 07e0 | 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 3d 00 00 00 01 00 00 00 00 | ...........Q...j.......=........ |
| 0800 | 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 d8 00 00 00 ff ff ff ff 3e 00 00 00 01 80 00 00 00 | ...........H...........>........ |
| 0820 | 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3f 00 00 00 01 40 00 00 00 | ...........1...1.......?....@... |
| 0840 | 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 40 00 00 00 01 00 00 00 00 | .......................@........ |
| 0860 | 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 41 00 00 00 01 00 00 00 00 | ...........Q...j.......A........ |
| 0880 | 00 00 00 00 00 00 00 4d 6f 6e 6f 49 6d 70 6f 72 74 65 72 00 50 50 74 72 3c 45 64 69 74 6f 72 45 | .......MonoImporter.PPtr<EditorE |
| 08a0 | 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 50 74 72 | xtension>.m_FileID.m_PathID.PPtr |
| 08c0 | 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 45 78 74 65 72 6e 61 6c 4f 62 6a 65 63 | <PrefabInstance>.m_ExternalObjec |
| 08e0 | 74 73 00 53 6f 75 72 63 65 41 73 73 65 74 49 64 65 6e 74 69 66 69 65 72 00 74 79 70 65 00 61 73 | ts.SourceAssetIdentifier.type.as |
| 0900 | 73 65 6d 62 6c 79 00 6e 61 6d 65 00 6d 5f 55 73 65 64 46 69 6c 65 49 44 73 00 6d 5f 44 65 66 61 | sembly.name.m_UsedFileIDs.m_Defa |
| 0920 | 75 6c 74 52 65 66 65 72 65 6e 63 65 73 00 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 69 63 6f | ultReferences.executionOrder.ico |
| 0940 | 6e 00 6d 5f 55 73 65 72 44 61 74 61 00 6d 5f 41 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 00 6d | n.m_UserData.m_AssetBundleName.m |
| 0960 | 5f 41 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 00 00 00 00 00 73 00 00 00 00 ff ff a3 | _AssetBundleVariant.....s....... |
| 0980 | 47 f1 d7 dc 8f 5a 35 36 a0 3a 21 40 69 c1 4a 2a 00 00 00 81 00 00 00 05 00 00 00 15 01 00 80 37 | G....Z56.:!@i.J*...............7 |
| 09a0 | 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 | ................................ |
| 09c0 | 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 45 | ...............................E |
| 09e0 | 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 | ................................ |
| 0a00 | 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f | ................................ |
| 0a20 | 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 28 00 00 00 61 | ...........................(...a |
| 0a40 | 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 | ................................ |
| 0a60 | 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f | ................................ |
| 0a80 | 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 | ...............................r |
| 0aa0 | 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 | ................................ |
| 0ac0 | 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f | ................................ |
| 0ae0 | 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab | ...........................H.... |
| 0b00 | 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | ...........................1...1 |
| 0b20 | 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | ............@................... |
| 0b40 | 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a | ...........................Q...j |
| 0b60 | 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ea | ...........................H.... |
| 0b80 | 01 00 80 ff ff ff ff 0f 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | ...........................1...1 |
| 0ba0 | 00 00 80 ff ff ff ff 10 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | ............@................... |
| 0bc0 | 03 00 80 04 00 00 00 11 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a | ...........................Q...j |
| 0be0 | 00 00 80 01 00 00 00 12 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 3d | ...............................= |
| 0c00 | 00 00 00 ff ff ff ff 13 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | ...........................1...1 |
| 0c20 | 00 00 80 ff ff ff ff 14 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | ................................ |
| 0c40 | 03 00 80 04 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a | ...............................j |
| 0c60 | 00 00 80 ff ff ff ff 16 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b | ...........................H.... |
| 0c80 | 00 00 80 ff ff ff ff 17 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 | ...........................1...1 |
| 0ca0 | 00 00 80 ff ff ff ff 18 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b | ............@................... |
| 0cc0 | 03 00 80 04 00 00 00 19 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a | ...........................Q...j |
| 0ce0 | 00 00 80 01 00 00 00 1a 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a | ...........................y.... |
| 0d00 | 03 00 80 0c 00 00 00 1b 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 16 | ................................ |
| 0d20 | 00 00 00 04 00 00 00 1c 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 1f | ................................ |
| 0d40 | 00 00 00 08 00 00 00 1d 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 79 02 00 80 51 | ...........................y...Q |
| 0d60 | 00 00 00 0c 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 | ................................ |
| 0d80 | 00 00 00 04 00 00 00 1f 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f | ................................ |
| 0da0 | 00 00 00 08 00 00 00 20 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 de 00 00 80 58 | ...............................X |
| 0dc0 | 00 00 00 04 00 00 00 21 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 69 | .......!...................H...i |
| 0de0 | 00 00 00 ff ff ff ff 22 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | ......."...................1...1 |
| 0e00 | 00 00 80 ff ff ff ff 23 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | .......#....@................... |
| 0e20 | 03 00 80 04 00 00 00 24 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a | .......$...................Q...j |
| 0e40 | 00 00 80 01 00 00 00 25 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 75 | .......%...................H...u |
| 0e60 | 00 00 00 ff ff ff ff 26 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 | .......&...................1...1 |
| 0e80 | 00 00 80 ff ff ff ff 27 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b | .......'....@................... |
| 0ea0 | 03 00 80 04 00 00 00 28 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a | .......(...................Q...j |
| 0ec0 | 00 00 80 01 00 00 00 29 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 50 50 74 72 3c 45 64 69 74 | .......)...............PPtr<Edit |
| 0ee0 | 6f 72 45 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 | orExtension>.m_FileID.m_PathID.P |
| 0f00 | 50 74 72 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 44 65 66 61 75 6c 74 52 65 66 | Ptr<PrefabInstance>.m_DefaultRef |
| 0f20 | 65 72 65 6e 63 65 73 00 6d 5f 49 63 6f 6e 00 6d 5f 45 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 | erences.m_Icon.m_ExecutionOrder. |
| 0f40 | 6d 5f 43 6c 61 73 73 4e 61 6d 65 00 6d 5f 4e 61 6d 65 73 70 61 63 65 00 00 00 00 00 02 00 00 00 | m_ClassName.m_Namespace......... |
| 0f60 | 03 00 00 00 00 00 00 00 00 00 00 00 5c 00 00 00 00 00 00 00 e0 79 af 00 00 00 00 00 60 00 00 00 | ............\........y......`... |
| 0f80 | 28 43 01 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | (C.............................. |
| 0fa0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 0fc0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 0fe0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1000 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1020 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 | .....................y.......... |
| 1040 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1060 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................................ |
| 1080 | 00 00 00 00 00 00 00 00 13 00 00 00 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 45 64 69 74 6f 72 00 | ............TMP_FontAssetEditor. |
| 10a0 | 9c 42 01 00 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 3b 0d 0a 75 73 69 6e 67 20 55 6e | .B..using.UnityEngine;..using.Un |
| 10c0 | 69 74 79 45 64 69 74 6f 72 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 49 6e 74 | ityEditor;..using.UnityEditorInt |
| 10e0 | 65 72 6e 61 6c 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 | ernal;..using.System.Collections |
| 1100 | 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 | ;..using.System.Collections.Gene |
| 1120 | 72 69 63 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 54 65 78 74 43 6f 72 65 | ric;..using.UnityEngine.TextCore |
| 1140 | 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 54 65 78 74 43 6f 72 65 2e 4c 6f | ;..using.UnityEngine.TextCore.Lo |
| 1160 | 77 4c 65 76 65 6c 3b 0d 0a 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 54 4d 50 72 6f 2e 45 64 69 | wLevel;......namespace.TMPro.Edi |
| 1180 | 74 6f 72 55 74 69 6c 69 74 69 65 73 0d 0a 7b 0d 0a 0d 0a 20 20 20 20 5b 43 75 73 74 6f 6d 50 72 | torUtilities..{........[CustomPr |
| 11a0 | 6f 70 65 72 74 79 44 72 61 77 65 72 28 74 79 70 65 6f 66 28 54 4d 50 5f 46 6f 6e 74 57 65 69 67 | opertyDrawer(typeof(TMP_FontWeig |
| 11c0 | 68 74 50 61 69 72 29 29 5d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 46 6f 6e 74 | htPair))]......public.class.Font |
| 11e0 | 57 65 69 67 68 74 44 72 61 77 65 72 20 3a 20 50 72 6f 70 65 72 74 79 44 72 61 77 65 72 0d 0a 20 | WeightDrawer.:.PropertyDrawer... |
| 1200 | 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f | ...{..........public.override.vo |
| 1220 | 69 64 20 4f 6e 47 55 49 28 52 65 63 74 20 70 6f 73 69 74 69 6f 6e 2c 20 53 65 72 69 61 6c 69 7a | id.OnGUI(Rect.position,.Serializ |
| 1240 | 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 47 55 49 43 6f 6e 74 65 6e 74 20 | edProperty.property,.GUIContent. |
| 1260 | 6c 61 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 | label)..........{..............S |
| 1280 | 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 5f 72 65 67 75 6c 61 72 20 3d | erializedProperty.prop_regular.= |
| 12a0 | 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 | .property.FindPropertyRelative(" |
| 12c0 | 72 65 67 75 6c 61 72 54 79 70 65 66 61 63 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | regularTypeface");.............. |
| 12e0 | 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 5f 69 74 61 6c 69 63 20 3d | SerializedProperty.prop_italic.= |
| 1300 | 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 | .property.FindPropertyRelative(" |
| 1320 | 69 74 61 6c 69 63 54 79 70 65 66 61 63 65 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | italicTypeface");............... |
| 1340 | 20 66 6c 6f 61 74 20 77 69 64 74 68 20 3d 20 70 6f 73 69 74 69 6f 6e 2e 77 69 64 74 68 3b 0d 0a | .float.width.=.position.width;.. |
| 1360 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 73 69 74 69 6f 6e 2e 77 69 64 74 68 20 3d 20 45 | ..............position.width.=.E |
| 1380 | 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 3b 0d 0a 20 20 20 | ditorGUIUtility.labelWidth;..... |
| 13a0 | 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 4c 61 62 65 6c 46 69 65 6c 64 28 70 6f | .........EditorGUI.LabelField(po |
| 13c0 | 73 69 74 69 6f 6e 2c 20 6c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 | sition,.label);................i |
| 13e0 | 6e 74 20 6f 6c 64 49 6e 64 65 6e 74 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c | nt.oldIndent.=.EditorGUI.indentL |
| 1400 | 65 76 65 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 | evel;..............EditorGUI.ind |
| 1420 | 65 6e 74 4c 65 76 65 6c 20 3d 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 | entLevel.=.0;................//. |
| 1440 | 4e 4f 52 4d 41 4c 20 54 59 50 45 46 41 43 45 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 | NORMAL.TYPEFACE..............if. |
| 1460 | 28 6c 61 62 65 6c 2e 74 65 78 74 5b 30 5d 20 3d 3d 20 27 34 27 29 20 47 55 49 2e 65 6e 61 62 6c | (label.text[0].==.'4').GUI.enabl |
| 1480 | 65 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 73 69 74 69 6f | ed.=.false;..............positio |
| 14a0 | 6e 2e 78 20 2b 3d 20 70 6f 73 69 74 69 6f 6e 2e 77 69 64 74 68 3b 20 70 6f 73 69 74 69 6f 6e 2e | n.x.+=.position.width;.position. |
| 14c0 | 77 69 64 74 68 20 3d 20 28 77 69 64 74 68 20 2d 20 70 6f 73 69 74 69 6f 6e 2e 77 69 64 74 68 29 | width.=.(width.-.position.width) |
| 14e0 | 20 2f 20 32 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 50 72 6f | ./.2;..............EditorGUI.Pro |
| 1500 | 70 65 72 74 79 46 69 65 6c 64 28 70 6f 73 69 74 69 6f 6e 2c 20 70 72 6f 70 5f 72 65 67 75 6c 61 | pertyField(position,.prop_regula |
| 1520 | 72 2c 20 47 55 49 43 6f 6e 74 65 6e 74 2e 6e 6f 6e 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | r,.GUIContent.none);............ |
| 1540 | 20 20 20 20 2f 2f 20 49 54 41 4c 49 43 20 54 59 50 45 46 41 43 45 0d 0a 20 20 20 20 20 20 20 20 | ....//.ITALIC.TYPEFACE.......... |
| 1560 | 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 | ....GUI.enabled.=.true;......... |
| 1580 | 20 20 20 20 20 70 6f 73 69 74 69 6f 6e 2e 78 20 2b 3d 20 70 6f 73 69 74 69 6f 6e 2e 77 69 64 74 | .....position.x.+=.position.widt |
| 15a0 | 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 50 72 6f 70 65 72 | h;..............EditorGUI.Proper |
| 15c0 | 74 79 46 69 65 6c 64 28 70 6f 73 69 74 69 6f 6e 2c 20 70 72 6f 70 5f 69 74 61 6c 69 63 2c 20 47 | tyField(position,.prop_italic,.G |
| 15e0 | 55 49 43 6f 6e 74 65 6e 74 2e 6e 6f 6e 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | UIContent.none);................ |
| 1600 | 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 6f 6c 64 49 6e 64 65 6e | EditorGUI.indentLevel.=.oldInden |
| 1620 | 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 5b 43 75 73 | t;..........}......}........[Cus |
| 1640 | 74 6f 6d 45 64 69 74 6f 72 28 74 79 70 65 6f 66 28 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 29 29 | tomEditor(typeof(TMP_FontAsset)) |
| 1660 | 5d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 54 4d 50 5f 46 6f 6e 74 41 73 73 65 | ]......public.class.TMP_FontAsse |
| 1680 | 74 45 64 69 74 6f 72 20 3a 20 45 64 69 74 6f 72 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | tEditor.:.Editor......{......... |
| 16a0 | 20 70 72 69 76 61 74 65 20 73 74 72 75 63 74 20 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 0d 0a 20 | .private.struct.UI_PanelState... |
| 16c0 | 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 | .......{..............public.sta |
| 16e0 | 74 69 63 20 62 6f 6f 6c 20 66 61 63 65 49 6e 66 6f 50 61 6e 65 6c 20 3d 20 74 72 75 65 3b 0d 0a | tic.bool.faceInfoPanel.=.true;.. |
| 1700 | 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 67 | ............public.static.bool.g |
| 1720 | 65 6e 65 72 61 74 69 6f 6e 53 65 74 74 69 6e 67 73 50 61 6e 65 6c 20 3d 20 74 72 75 65 3b 0d 0a | enerationSettingsPanel.=.true;.. |
| 1740 | 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 66 | ............public.static.bool.f |
| 1760 | 6f 6e 74 41 74 6c 61 73 49 6e 66 6f 50 61 6e 65 6c 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 | ontAtlasInfoPanel.=.true;....... |
| 1780 | 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 66 6f 6e 74 57 65 | .......public.static.bool.fontWe |
| 17a0 | 69 67 68 74 50 61 6e 65 6c 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 | ightPanel.=.true;..............p |
| 17c0 | 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 66 61 6c 6c 62 61 63 6b 46 6f 6e 74 41 73 | ublic.static.bool.fallbackFontAs |
| 17e0 | 73 65 74 50 61 6e 65 6c 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 | setPanel.=.true;..............pu |
| 1800 | 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 67 6c 79 70 68 54 61 62 6c 65 50 61 6e 65 6c | blic.static.bool.glyphTablePanel |
| 1820 | 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 | .=.false;..............public.st |
| 1840 | 61 74 69 63 20 62 6f 6f 6c 20 63 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 61 6e 65 6c 20 3d 20 | atic.bool.characterTablePanel.=. |
| 1860 | 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 | false;..............public.stati |
| 1880 | 63 20 62 6f 6f 6c 20 66 6f 6e 74 46 65 61 74 75 72 65 54 61 62 6c 65 50 61 6e 65 6c 20 3d 20 66 | c.bool.fontFeatureTablePanel.=.f |
| 18a0 | 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 | alse;..........}............priv |
| 18c0 | 61 74 65 20 73 74 72 75 63 74 20 41 74 6c 61 73 53 65 74 74 69 6e 67 73 0d 0a 20 20 20 20 20 20 | ate.struct.AtlasSettings........ |
| 18e0 | 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 47 6c 79 70 68 52 65 6e | ..{..............public.GlyphRen |
| 1900 | 64 65 72 4d 6f 64 65 20 67 6c 79 70 68 52 65 6e 64 65 72 4d 6f 64 65 3b 0d 0a 20 20 20 20 20 20 | derMode.glyphRenderMode;........ |
| 1920 | 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 70 6f 69 6e 74 53 69 7a 65 3b 0d 0a 20 20 20 | ......public.int.pointSize;..... |
| 1940 | 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 70 61 64 64 69 6e 67 3b 0d 0a 20 20 | .........public.int.padding;.... |
| 1960 | 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 61 74 6c 61 73 57 69 64 74 68 3b | ..........public.int.atlasWidth; |
| 1980 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 61 74 6c 61 73 48 65 | ..............public.int.atlasHe |
| 19a0 | 69 67 68 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 | ight;..........}............///. |
| 19c0 | 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4d 61 74 65 72 69 61 6c 20 | <summary>..........///.Material. |
| 19e0 | 75 73 65 64 20 74 6f 20 64 69 73 70 6c 61 79 20 53 44 46 20 67 6c 79 70 68 73 20 69 6e 20 74 68 | used.to.display.SDF.glyphs.in.th |
| 1a00 | 65 20 43 68 61 72 61 63 74 65 72 20 61 6e 64 20 47 6c 79 70 68 20 74 61 62 6c 65 73 2e 0d 0a 20 | e.Character.and.Glyph.tables.... |
| 1a20 | 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 69 | .......///.</summary>..........i |
| 1a40 | 6e 74 65 72 6e 61 6c 20 73 74 61 74 69 63 20 4d 61 74 65 72 69 61 6c 20 69 6e 74 65 72 6e 61 6c | nternal.static.Material.internal |
| 1a60 | 53 44 46 4d 61 74 65 72 69 61 6c 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 | SDFMaterial..........{.......... |
| 1a80 | 20 20 20 20 67 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 | ....get..............{.......... |
| 1aa0 | 20 20 20 20 20 20 20 20 69 66 20 28 73 5f 49 6e 74 65 72 6e 61 6c 53 44 46 4d 61 74 65 72 69 61 | ........if.(s_InternalSDFMateria |
| 1ac0 | 6c 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 | l.==.null)..................{... |
| 1ae0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 68 61 64 65 72 20 73 68 61 64 65 72 | ...................Shader.shader |
| 1b00 | 20 3d 20 53 68 61 64 65 72 2e 46 69 6e 64 28 22 48 69 64 64 65 6e 2f 54 65 78 74 4d 65 73 68 50 | .=.Shader.Find("Hidden/TextMeshP |
| 1b20 | 72 6f 2f 49 6e 74 65 72 6e 61 6c 2f 44 69 73 74 61 6e 63 65 20 46 69 65 6c 64 20 53 53 44 22 29 | ro/Internal/Distance.Field.SSD") |
| 1b40 | 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 68 61 | ;........................if.(sha |
| 1b60 | 64 65 72 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | der.!=.null).................... |
| 1b80 | 20 20 20 20 20 20 73 5f 49 6e 74 65 72 6e 61 6c 53 44 46 4d 61 74 65 72 69 61 6c 20 3d 20 6e 65 | ......s_InternalSDFMaterial.=.ne |
| 1ba0 | 77 20 4d 61 74 65 72 69 61 6c 28 73 68 61 64 65 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | w.Material(shader);............. |
| 1bc0 | 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e | .....}....................return |
| 1be0 | 20 73 5f 49 6e 74 65 72 6e 61 6c 53 44 46 4d 61 74 65 72 69 61 6c 3b 0d 0a 20 20 20 20 20 20 20 | .s_InternalSDFMaterial;......... |
| 1c00 | 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 | .....}..........}..........stati |
| 1c20 | 63 20 4d 61 74 65 72 69 61 6c 20 73 5f 49 6e 74 65 72 6e 61 6c 53 44 46 4d 61 74 65 72 69 61 6c | c.Material.s_InternalSDFMaterial |
| 1c40 | 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 | ;............///.<summary>...... |
| 1c60 | 20 20 20 20 2f 2f 2f 20 4d 61 74 65 72 69 61 6c 20 75 73 65 64 20 74 6f 20 64 69 73 70 6c 61 79 | ....///.Material.used.to.display |
| 1c80 | 20 42 69 74 6d 61 70 20 67 6c 79 70 68 73 20 69 6e 20 74 68 65 20 43 68 61 72 61 63 74 65 72 20 | .Bitmap.glyphs.in.the.Character. |
| 1ca0 | 61 6e 64 20 47 6c 79 70 68 20 74 61 62 6c 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c | and.Glyph.tables...........///.< |
| 1cc0 | 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 69 6e 74 65 72 6e 61 6c 20 73 74 61 74 | /summary>..........internal.stat |
| 1ce0 | 69 63 20 4d 61 74 65 72 69 61 6c 20 69 6e 74 65 72 6e 61 6c 42 69 74 6d 61 70 4d 61 74 65 72 69 | ic.Material.internalBitmapMateri |
| 1d00 | 61 6c 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 74 0d 0a | al..........{..............get.. |
| 1d20 | 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 | ............{..................i |
| 1d40 | 66 20 28 73 5f 49 6e 74 65 72 6e 61 6c 42 69 74 6d 61 70 4d 61 74 65 72 69 61 6c 20 3d 3d 20 6e | f.(s_InternalBitmapMaterial.==.n |
| 1d60 | 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | ull)..................{......... |
| 1d80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 53 68 61 64 65 72 20 73 68 61 64 65 72 20 3d 20 53 68 61 | .............Shader.shader.=.Sha |
| 1da0 | 64 65 72 2e 46 69 6e 64 28 22 48 69 64 64 65 6e 2f 49 6e 74 65 72 6e 61 6c 2d 47 55 49 54 65 78 | der.Find("Hidden/Internal-GUITex |
| 1dc0 | 74 75 72 65 43 6c 69 70 54 65 78 74 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | tureClipText");................. |
| 1de0 | 20 20 20 20 20 20 20 69 66 20 28 73 68 61 64 65 72 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 | .......if.(shader.!=.null)...... |
| 1e00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 49 6e 74 65 72 6e 61 6c 42 69 | ....................s_InternalBi |
| 1e20 | 74 6d 61 70 4d 61 74 65 72 69 61 6c 20 3d 20 6e 65 77 20 4d 61 74 65 72 69 61 6c 28 73 68 61 64 | tmapMaterial.=.new.Material(shad |
| 1e40 | 65 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 | er);..................}......... |
| 1e60 | 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 73 5f 49 6e 74 65 72 6e 61 6c 42 69 74 6d | ...........return.s_InternalBitm |
| 1e80 | 61 70 4d 61 74 65 72 69 61 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 | apMaterial;..............}...... |
| 1ea0 | 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 4d 61 74 65 72 69 61 6c 20 73 | ....}..........static.Material.s |
| 1ec0 | 5f 49 6e 74 65 72 6e 61 6c 42 69 74 6d 61 70 4d 61 74 65 72 69 61 6c 3b 0d 0a 0d 0a 20 20 20 20 | _InternalBitmapMaterial;........ |
| 1ee0 | 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 73 74 72 69 6e 67 5b 5d 20 73 5f 55 69 | ....private.static.string[].s_Ui |
| 1f00 | 53 74 61 74 65 4c 61 62 65 6c 20 3d 20 6e 65 77 20 73 74 72 69 6e 67 5b 5d 20 7b 20 22 3c 69 3e | StateLabel.=.new.string[].{."<i> |
| 1f20 | 28 43 6c 69 63 6b 20 74 6f 20 63 6f 6c 6c 61 70 73 65 29 3c 2f 69 3e 20 22 2c 20 22 3c 69 3e 28 | (Click.to.collapse)</i>.",."<i>( |
| 1f40 | 43 6c 69 63 6b 20 74 6f 20 65 78 70 61 6e 64 29 3c 2f 69 3e 20 22 20 7d 3b 0d 0a 20 20 20 20 20 | Click.to.expand)</i>.".};....... |
| 1f60 | 20 20 20 70 72 69 76 61 74 65 20 47 55 49 43 6f 6e 74 65 6e 74 5b 5d 20 6d 5f 41 74 6c 61 73 52 | ...private.GUIContent[].m_AtlasR |
| 1f80 | 65 73 6f 6c 75 74 69 6f 6e 4c 61 62 65 6c 73 20 3d 20 7b 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 | esolutionLabels.=.{.new.GUIConte |
| 1fa0 | 6e 74 28 22 38 22 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 31 36 22 29 2c 20 6e | nt("8"),.new.GUIContent("16"),.n |
| 1fc0 | 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 33 32 22 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 | ew.GUIContent("32"),.new.GUICont |
| 1fe0 | 65 6e 74 28 22 36 34 22 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 31 32 38 22 29 | ent("64"),.new.GUIContent("128") |
| 2000 | 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 32 35 36 22 29 2c 20 6e 65 77 20 47 55 49 | ,.new.GUIContent("256"),.new.GUI |
| 2020 | 43 6f 6e 74 65 6e 74 28 22 35 31 32 22 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 | Content("512"),.new.GUIContent(" |
| 2040 | 31 30 32 34 22 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 32 30 34 38 22 29 2c 20 | 1024"),.new.GUIContent("2048"),. |
| 2060 | 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 34 30 39 36 22 29 2c 20 6e 65 77 20 47 55 49 43 | new.GUIContent("4096"),.new.GUIC |
| 2080 | 6f 6e 74 65 6e 74 28 22 38 31 39 32 22 29 20 7d 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 | ontent("8192").};..........priva |
| 20a0 | 74 65 20 69 6e 74 5b 5d 20 6d 5f 41 74 6c 61 73 52 65 73 6f 6c 75 74 69 6f 6e 73 20 3d 20 7b 20 | te.int[].m_AtlasResolutions.=.{. |
| 20c0 | 38 2c 20 31 36 2c 20 33 32 2c 20 36 34 2c 20 31 32 38 2c 20 32 35 36 2c 20 35 31 32 2c 20 31 30 | 8,.16,.32,.64,.128,.256,.512,.10 |
| 20e0 | 32 34 2c 20 32 30 34 38 2c 20 34 30 39 36 2c 20 38 31 39 32 20 7d 3b 0d 0a 0d 0a 20 20 20 20 20 | 24,.2048,.4096,.8192.};......... |
| 2100 | 20 20 20 70 72 69 76 61 74 65 20 73 74 72 75 63 74 20 57 61 72 6e 69 6e 67 0d 0a 20 20 20 20 20 | ...private.struct.Warning....... |
| 2120 | 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 69 73 | ...{..............public.bool.is |
| 2140 | 45 6e 61 62 6c 65 64 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 64 6f 75 | Enabled;..............public.dou |
| 2160 | 62 6c 65 20 65 78 70 69 72 61 74 69 6f 6e 54 69 6d 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a | ble.expirationTime;..........}.. |
| 2180 | 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 69 6e 74 20 6d 5f 43 75 72 72 65 6e 74 47 | ..........private.int.m_CurrentG |
| 21a0 | 6c 79 70 68 50 61 67 65 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 69 | lyphPage.=.0;..........private.i |
| 21c0 | 6e 74 20 6d 5f 43 75 72 72 65 6e 74 43 68 61 72 61 63 74 65 72 50 61 67 65 20 3d 20 30 3b 0d 0a | nt.m_CurrentCharacterPage.=.0;.. |
| 21e0 | 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 69 6e 74 20 6d 5f 43 75 72 72 65 6e 74 4b 65 72 | ........private.int.m_CurrentKer |
| 2200 | 6e 69 6e 67 50 61 67 65 20 3d 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 | ningPage.=.0;............private |
| 2220 | 20 69 6e 74 20 6d 5f 53 65 6c 65 63 74 65 64 47 6c 79 70 68 52 65 63 6f 72 64 20 3d 20 2d 31 3b | .int.m_SelectedGlyphRecord.=.-1; |
| 2240 | 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 69 6e 74 20 6d 5f 53 65 6c 65 63 74 65 64 | ..........private.int.m_Selected |
| 2260 | 43 68 61 72 61 63 74 65 72 52 65 63 6f 72 64 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 70 | CharacterRecord.=.-1;..........p |
| 2280 | 72 69 76 61 74 65 20 69 6e 74 20 6d 5f 53 65 6c 65 63 74 65 64 41 64 6a 75 73 74 6d 65 6e 74 52 | rivate.int.m_SelectedAdjustmentR |
| 22a0 | 65 63 6f 72 64 20 3d 20 2d 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 | ecord.=.-1;............private.s |
| 22c0 | 74 72 69 6e 67 20 6d 5f 64 73 74 47 6c 79 70 68 49 44 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 | tring.m_dstGlyphID;..........pri |
| 22e0 | 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 64 73 74 55 6e 69 63 6f 64 65 3b 0d 0a 20 20 20 20 20 | vate.string.m_dstUnicode;....... |
| 2300 | 20 20 20 70 72 69 76 61 74 65 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 6b 5f 70 6c 61 63 65 68 | ...private.const.string.k_placeh |
| 2320 | 6f 6c 64 65 72 55 6e 69 63 6f 64 65 48 65 78 20 3d 20 22 3c 69 3e 4e 65 77 20 55 6e 69 63 6f 64 | olderUnicodeHex.=."<i>New.Unicod |
| 2340 | 65 20 28 48 65 78 29 3c 2f 69 3e 22 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 | e.(Hex)</i>";..........private.s |
| 2360 | 74 72 69 6e 67 20 6d 5f 75 6e 69 63 6f 64 65 48 65 78 4c 61 62 65 6c 20 3d 20 6b 5f 70 6c 61 63 | tring.m_unicodeHexLabel.=.k_plac |
| 2380 | 65 68 6f 6c 64 65 72 55 6e 69 63 6f 64 65 48 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 | eholderUnicodeHex;..........priv |
| 23a0 | 61 74 65 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 6b 5f 70 6c 61 63 65 68 6f 6c 64 65 72 47 6c | ate.const.string.k_placeholderGl |
| 23c0 | 79 70 68 49 44 20 3d 20 22 3c 69 3e 4e 65 77 20 47 6c 79 70 68 20 49 44 3c 2f 69 3e 22 3b 0d 0a | yphID.=."<i>New.Glyph.ID</i>";.. |
| 23e0 | 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 47 6c 79 70 68 49 44 | ........private.string.m_GlyphID |
| 2400 | 4c 61 62 65 6c 20 3d 20 6b 5f 70 6c 61 63 65 68 6f 6c 64 65 72 47 6c 79 70 68 49 44 3b 0d 0a 0d | Label.=.k_placeholderGlyphID;... |
| 2420 | 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 57 61 72 6e 69 6e 67 20 6d 5f 41 64 64 47 6c | .........private.Warning.m_AddGl |
| 2440 | 79 70 68 57 61 72 6e 69 6e 67 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 57 61 72 | yphWarning;..........private.War |
| 2460 | 6e 69 6e 67 20 6d 5f 41 64 64 43 68 61 72 61 63 74 65 72 57 61 72 6e 69 6e 67 3b 0d 0a 20 20 20 | ning.m_AddCharacterWarning;..... |
| 2480 | 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 44 69 73 70 6c 61 79 44 65 73 74 72 | .....private.bool.m_DisplayDestr |
| 24a0 | 75 63 74 69 76 65 43 68 61 6e 67 65 57 61 72 6e 69 6e 67 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 | uctiveChangeWarning;..........pr |
| 24c0 | 69 76 61 74 65 20 41 74 6c 61 73 53 65 74 74 69 6e 67 73 20 6d 5f 41 74 6c 61 73 53 65 74 74 69 | ivate.AtlasSettings.m_AtlasSetti |
| 24e0 | 6e 67 73 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 4d 61 74 | ngs;..........private.bool.m_Mat |
| 2500 | 65 72 69 61 6c 50 72 65 73 65 74 73 52 65 71 75 69 72 65 55 70 64 61 74 65 3b 0d 0a 0d 0a 20 20 | erialPresetsRequireUpdate;...... |
| 2520 | 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 47 6c 79 70 68 53 65 61 72 | ......private.string.m_GlyphSear |
| 2540 | 63 68 50 61 74 74 65 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 4c 69 73 74 | chPattern;..........private.List |
| 2560 | 3c 69 6e 74 3e 20 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 4c 69 73 74 3b 0d 0a 0d 0a 20 20 20 20 | <int>.m_GlyphSearchList;........ |
| 2580 | 20 20 20 20 70 72 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 43 68 61 72 61 63 74 65 72 53 65 | ....private.string.m_CharacterSe |
| 25a0 | 61 72 63 68 50 61 74 74 65 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 4c 69 | archPattern;..........private.Li |
| 25c0 | 73 74 3c 69 6e 74 3e 20 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 4c 69 73 74 3b 0d 0a | st<int>.m_CharacterSearchList;.. |
| 25e0 | 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 72 69 6e 67 20 6d 5f 4b 65 72 6e 69 | ..........private.string.m_Kerni |
| 2600 | 6e 67 54 61 62 6c 65 53 65 61 72 63 68 50 61 74 74 65 72 6e 3b 0d 0a 20 20 20 20 20 20 20 20 70 | ngTableSearchPattern;..........p |
| 2620 | 72 69 76 61 74 65 20 4c 69 73 74 3c 69 6e 74 3e 20 6d 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 53 | rivate.List<int>.m_KerningTableS |
| 2640 | 65 61 72 63 68 4c 69 73 74 3b 0d 0a 20 20 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 20 20 70 72 | earchList;....................pr |
| 2660 | 69 76 61 74 65 20 62 6f 6f 6c 20 6d 5f 69 73 53 65 61 72 63 68 44 69 72 74 79 3b 0d 0a 0d 0a 20 | ivate.bool.m_isSearchDirty;..... |
| 2680 | 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 63 6f 6e 73 74 20 73 74 72 69 6e 67 20 6b 5f 55 6e | .......private.const.string.k_Un |
| 26a0 | 64 6f 52 65 64 6f 20 3d 20 22 55 6e 64 6f 52 65 64 6f 50 65 72 66 6f 72 6d 65 64 22 3b 0d 0a 0d | doRedo.=."UndoRedoPerformed";... |
| 26c0 | 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 | .........private.SerializedPrope |
| 26e0 | 72 74 79 20 6d 5f 41 74 6c 61 73 50 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 5f 70 72 6f 70 3b 0d | rty.m_AtlasPopulationMode_prop;. |
| 2700 | 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 | .........private.SerializedPrope |
| 2720 | 72 74 79 20 66 6f 6e 74 5f 61 74 6c 61 73 5f 70 72 6f 70 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 | rty.font_atlas_prop;..........pr |
| 2740 | 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 66 6f 6e 74 5f 6d 61 | ivate.SerializedProperty.font_ma |
| 2760 | 74 65 72 69 61 6c 5f 70 72 6f 70 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 | terial_prop;............private. |
| 2780 | 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 41 74 6c 61 73 52 65 6e 64 65 72 | SerializedProperty.m_AtlasRender |
| 27a0 | 4d 6f 64 65 5f 70 72 6f 70 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 72 69 | Mode_prop;..........private.Seri |
| 27c0 | 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 53 61 6d 70 6c 69 6e 67 50 6f 69 6e 74 53 69 | alizedProperty.m_SamplingPointSi |
| 27e0 | 7a 65 5f 70 72 6f 70 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c | ze_prop;..........private.Serial |
| 2800 | 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 41 74 6c 61 73 50 61 64 64 69 6e 67 5f 70 72 6f 70 | izedProperty.m_AtlasPadding_prop |
| 2820 | 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f | ;..........private.SerializedPro |
| 2840 | 70 65 72 74 79 20 6d 5f 41 74 6c 61 73 57 69 64 74 68 5f 70 72 6f 70 3b 0d 0a 20 20 20 20 20 20 | perty.m_AtlasWidth_prop;........ |
| 2860 | 20 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 41 | ..private.SerializedProperty.m_A |
| 2880 | 74 6c 61 73 48 65 69 67 68 74 5f 70 72 6f 70 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 | tlasHeight_prop;............priv |
| 28a0 | 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 66 6f 6e 74 57 65 69 67 68 | ate.SerializedProperty.fontWeigh |
| 28c0 | 74 73 5f 70 72 6f 70 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 70 72 69 76 61 74 65 20 53 65 | ts_prop;............//private.Se |
| 28e0 | 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 66 61 6c 6c 62 61 63 6b 46 6f 6e 74 41 73 73 | rializedProperty.fallbackFontAss |
| 2900 | 65 74 73 5f 70 72 6f 70 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 52 65 6f 72 64 | ets_prop;..........private.Reord |
| 2920 | 65 72 61 62 6c 65 4c 69 73 74 20 6d 5f 6c 69 73 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 | erableList.m_list;............pr |
| 2940 | 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 66 6f 6e 74 5f 6e 6f | ivate.SerializedProperty.font_no |
| 2960 | 72 6d 61 6c 53 74 79 6c 65 5f 70 72 6f 70 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 | rmalStyle_prop;..........private |
| 2980 | 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 66 6f 6e 74 5f 6e 6f 72 6d 61 6c 53 | .SerializedProperty.font_normalS |
| 29a0 | 70 61 63 69 6e 67 5f 70 72 6f 70 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 | pacing_prop;............private. |
| 29c0 | 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 66 6f 6e 74 5f 62 6f 6c 64 53 74 79 6c | SerializedProperty.font_boldStyl |
| 29e0 | 65 5f 70 72 6f 70 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 | e_prop;..........private.Seriali |
| 2a00 | 7a 65 64 50 72 6f 70 65 72 74 79 20 66 6f 6e 74 5f 62 6f 6c 64 53 70 61 63 69 6e 67 5f 70 72 6f | zedProperty.font_boldSpacing_pro |
| 2a20 | 70 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 | p;............private.Serialized |
| 2a40 | 50 72 6f 70 65 72 74 79 20 66 6f 6e 74 5f 69 74 61 6c 69 63 53 74 79 6c 65 5f 70 72 6f 70 3b 0d | Property.font_italicStyle_prop;. |
| 2a60 | 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 | .........private.SerializedPrope |
| 2a80 | 72 74 79 20 66 6f 6e 74 5f 74 61 62 53 69 7a 65 5f 70 72 6f 70 3b 0d 0a 0d 0a 20 20 20 20 20 20 | rty.font_tabSize_prop;.......... |
| 2aa0 | 20 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 46 | ..private.SerializedProperty.m_F |
| 2ac0 | 61 63 65 49 6e 66 6f 5f 70 72 6f 70 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 | aceInfo_prop;..........private.S |
| 2ae0 | 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 47 6c 79 70 68 54 61 62 6c 65 5f 70 | erializedProperty.m_GlyphTable_p |
| 2b00 | 72 6f 70 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 | rop;..........private.Serialized |
| 2b20 | 50 72 6f 70 65 72 74 79 20 6d 5f 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 5f 70 72 6f 70 3b 0d | Property.m_CharacterTable_prop;. |
| 2b40 | 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 54 4d 50 5f 46 6f 6e 74 46 65 61 74 75 | ...........private.TMP_FontFeatu |
| 2b60 | 72 65 54 61 62 6c 65 20 6d 5f 46 6f 6e 74 46 65 61 74 75 72 65 54 61 62 6c 65 3b 0d 0a 20 20 20 | reTable.m_FontFeatureTable;..... |
| 2b80 | 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 | .....private.SerializedProperty. |
| 2ba0 | 6d 5f 46 6f 6e 74 46 65 61 74 75 72 65 54 61 62 6c 65 5f 70 72 6f 70 3b 0d 0a 20 20 20 20 20 20 | m_FontFeatureTable_prop;........ |
| 2bc0 | 20 20 70 72 69 76 61 74 65 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 47 | ..private.SerializedProperty.m_G |
| 2be0 | 6c 79 70 68 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 73 5f 70 72 6f 70 3b 0d | lyphPairAdjustmentRecords_prop;. |
| 2c00 | 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 54 4d 50 5f 53 65 72 69 61 6c 69 7a 65 | ...........private.TMP_Serialize |
| 2c20 | 64 50 72 6f 70 65 72 74 79 48 6f 6c 64 65 72 20 6d 5f 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 | dPropertyHolder.m_SerializedProp |
| 2c40 | 65 72 74 79 48 6f 6c 64 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 65 72 | ertyHolder;..........private.Ser |
| 2c60 | 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 6d 5f 45 6d 70 74 79 47 6c 79 70 68 50 61 69 72 | ializedProperty.m_EmptyGlyphPair |
| 2c80 | 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 5f 70 72 6f 70 3b 0d 0a 0d 0a 20 20 20 20 20 20 | AdjustmentRecord_prop;.......... |
| 2ca0 | 20 20 70 72 69 76 61 74 65 20 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 20 6d 5f 66 6f 6e 74 41 73 | ..private.TMP_FontAsset.m_fontAs |
| 2cc0 | 73 65 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 4d 61 74 65 72 69 61 6c | set;............private.Material |
| 2ce0 | 5b 5d 20 6d 5f 6d 61 74 65 72 69 61 6c 50 72 65 73 65 74 73 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 | [].m_materialPresets;........... |
| 2d00 | 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 69 73 41 73 73 65 74 44 69 72 74 79 20 3d 20 66 61 6c | .private.bool.isAssetDirty.=.fal |
| 2d20 | 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 69 6e 74 20 65 72 72 6f 72 | se;............private.int.error |
| 2d40 | 43 6f 64 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 53 79 73 74 65 6d 2e | Code;............private.System. |
| 2d60 | 44 61 74 65 54 69 6d 65 20 74 69 6d 65 53 74 61 6d 70 3b 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 | DateTime.timeStamp;............. |
| 2d80 | 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 45 6e 61 62 6c 65 28 29 0d 0a 20 20 20 20 20 20 20 | .public.void.OnEnable()......... |
| 2da0 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 46 61 63 65 49 6e 66 6f 5f 70 72 6f 70 20 | .{..............m_FaceInfo_prop. |
| 2dc0 | 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 | =.serializedObject.FindProperty( |
| 2de0 | 22 6d 5f 46 61 63 65 49 6e 66 6f 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f | "m_FaceInfo");................fo |
| 2e00 | 6e 74 5f 61 74 6c 61 73 5f 70 72 6f 70 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 | nt_atlas_prop.=.serializedObject |
| 2e20 | 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 41 74 6c 61 73 54 65 78 74 75 72 65 73 22 29 | .FindProperty("m_AtlasTextures") |
| 2e40 | 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 30 29 3b 0d 0a 20 20 20 | .GetArrayElementAtIndex(0);..... |
| 2e60 | 20 20 20 20 20 20 20 20 20 66 6f 6e 74 5f 6d 61 74 65 72 69 61 6c 5f 70 72 6f 70 20 3d 20 73 65 | .........font_material_prop.=.se |
| 2e80 | 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 61 74 | rializedObject.FindProperty("mat |
| 2ea0 | 65 72 69 61 6c 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c 61 73 50 | erial");................m_AtlasP |
| 2ec0 | 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 5f 70 72 6f 70 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f | opulationMode_prop.=.serializedO |
| 2ee0 | 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 41 74 6c 61 73 50 6f 70 75 6c | bject.FindProperty("m_AtlasPopul |
| 2f00 | 61 74 69 6f 6e 4d 6f 64 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c 61 | ationMode");..............m_Atla |
| 2f20 | 73 52 65 6e 64 65 72 4d 6f 64 65 5f 70 72 6f 70 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a | sRenderMode_prop.=.serializedObj |
| 2f40 | 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 41 74 6c 61 73 52 65 6e 64 65 72 4d | ect.FindProperty("m_AtlasRenderM |
| 2f60 | 6f 64 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 61 6d 70 6c 69 6e 67 50 6f | ode");..............m_SamplingPo |
| 2f80 | 69 6e 74 53 69 7a 65 5f 70 72 6f 70 20 3d 20 6d 5f 46 61 63 65 49 6e 66 6f 5f 70 72 6f 70 2e 46 | intSize_prop.=.m_FaceInfo_prop.F |
| 2fa0 | 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 50 6f 69 6e 74 53 69 7a 65 | indPropertyRelative("m_PointSize |
| 2fc0 | 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c 61 73 50 61 64 64 69 6e 67 5f | ");..............m_AtlasPadding_ |
| 2fe0 | 70 72 6f 70 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 | prop.=.serializedObject.FindProp |
| 3000 | 65 72 74 79 28 22 6d 5f 41 74 6c 61 73 50 61 64 64 69 6e 67 22 29 3b 0d 0a 20 20 20 20 20 20 20 | erty("m_AtlasPadding");......... |
| 3020 | 20 20 20 20 20 6d 5f 41 74 6c 61 73 57 69 64 74 68 5f 70 72 6f 70 20 3d 20 73 65 72 69 61 6c 69 | .....m_AtlasWidth_prop.=.seriali |
| 3040 | 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 41 74 6c 61 73 57 | zedObject.FindProperty("m_AtlasW |
| 3060 | 69 64 74 68 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c 61 73 48 65 69 67 | idth");..............m_AtlasHeig |
| 3080 | 68 74 5f 70 72 6f 70 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 | ht_prop.=.serializedObject.FindP |
| 30a0 | 72 6f 70 65 72 74 79 28 22 6d 5f 41 74 6c 61 73 48 65 69 67 68 74 22 29 3b 0d 0a 0d 0a 20 20 20 | roperty("m_AtlasHeight");....... |
| 30c0 | 20 20 20 20 20 20 20 20 20 66 6f 6e 74 57 65 69 67 68 74 73 5f 70 72 6f 70 20 3d 20 73 65 72 69 | .........fontWeights_prop.=.seri |
| 30e0 | 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 46 6f 6e | alizedObject.FindProperty("m_Fon |
| 3100 | 74 57 65 69 67 68 74 54 61 62 6c 65 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d | tWeightTable");................m |
| 3120 | 5f 6c 69 73 74 20 3d 20 6e 65 77 20 52 65 6f 72 64 65 72 61 62 6c 65 4c 69 73 74 28 73 65 72 69 | _list.=.new.ReorderableList(seri |
| 3140 | 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2c 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 | alizedObject,.serializedObject.F |
| 3160 | 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 46 61 6c 6c 62 61 63 6b 46 6f 6e 74 41 73 73 65 74 | indProperty("m_FallbackFontAsset |
| 3180 | 54 61 62 6c 65 22 29 2c 20 74 72 75 65 2c 20 74 72 75 65 2c 20 74 72 75 65 2c 20 74 72 75 65 29 | Table"),.true,.true,.true,.true) |
| 31a0 | 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 6c 69 73 74 2e 64 72 61 77 45 6c 65 6d | ;................m_list.drawElem |
| 31c0 | 65 6e 74 43 61 6c 6c 62 61 63 6b 20 3d 20 28 52 65 63 74 20 72 65 63 74 2c 20 69 6e 74 20 69 6e | entCallback.=.(Rect.rect,.int.in |
| 31e0 | 64 65 78 2c 20 62 6f 6f 6c 20 69 73 41 63 74 69 76 65 2c 20 62 6f 6f 6c 20 69 73 46 6f 63 75 73 | dex,.bool.isActive,.bool.isFocus |
| 3200 | 65 64 29 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 | ed).=>..............{........... |
| 3220 | 20 20 20 20 20 20 20 76 61 72 20 65 6c 65 6d 65 6e 74 20 3d 20 6d 5f 6c 69 73 74 2e 73 65 72 69 | .......var.element.=.m_list.seri |
| 3240 | 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 | alizedProperty.GetArrayElementAt |
| 3260 | 49 6e 64 65 78 28 69 6e 64 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 | Index(index);..................r |
| 3280 | 65 63 74 2e 79 20 2b 3d 20 32 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 | ect.y.+=.2;..................Edi |
| 32a0 | 74 6f 72 47 55 49 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6e 65 77 20 52 65 63 74 28 72 65 | torGUI.PropertyField(new.Rect(re |
| 32c0 | 63 74 2e 78 2c 20 72 65 63 74 2e 79 2c 20 72 65 63 74 2e 77 69 64 74 68 2c 20 45 64 69 74 6f 72 | ct.x,.rect.y,.rect.width,.Editor |
| 32e0 | 47 55 49 55 74 69 6c 69 74 79 2e 73 69 6e 67 6c 65 4c 69 6e 65 48 65 69 67 68 74 29 2c 20 65 6c | GUIUtility.singleLineHeight),.el |
| 3300 | 65 6d 65 6e 74 2c 20 47 55 49 43 6f 6e 74 65 6e 74 2e 6e 6f 6e 65 29 3b 0d 0a 20 20 20 20 20 20 | ement,.GUIContent.none);........ |
| 3320 | 20 20 20 20 20 20 7d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 6c 69 73 74 2e 64 | ......};................m_list.d |
| 3340 | 72 61 77 48 65 61 64 65 72 43 61 6c 6c 62 61 63 6b 20 3d 20 72 65 63 74 20 3d 3e 0d 0a 20 20 20 | rawHeaderCallback.=.rect.=>..... |
| 3360 | 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 | .........{..................Edit |
| 3380 | 6f 72 47 55 49 2e 4c 61 62 65 6c 46 69 65 6c 64 28 72 65 63 74 2c 20 22 46 61 6c 6c 62 61 63 6b | orGUI.LabelField(rect,."Fallback |
| 33a0 | 20 4c 69 73 74 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0d 0a 0d 0a 20 20 20 20 | .List");..............};........ |
| 33c0 | 20 20 20 20 20 20 20 20 2f 2f 20 43 6c 65 61 6e 20 75 70 20 66 61 6c 6c 62 61 63 6b 20 6c 69 73 | ........//.Clean.up.fallback.lis |
| 33e0 | 74 20 69 6e 20 74 68 65 20 65 76 65 6e 74 20 69 66 20 63 6f 6e 74 61 69 6e 73 20 6e 75 6c 6c 20 | t.in.the.event.if.contains.null. |
| 3400 | 65 6c 65 6d 65 6e 74 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 6c 65 61 6e 46 61 6c 6c | elements...............CleanFall |
| 3420 | 62 61 63 6b 46 6f 6e 74 41 73 73 65 74 54 61 62 6c 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 | backFontAssetTable();........... |
| 3440 | 20 20 20 20 20 66 6f 6e 74 5f 6e 6f 72 6d 61 6c 53 74 79 6c 65 5f 70 72 6f 70 20 3d 20 73 65 72 | .....font_normalStyle_prop.=.ser |
| 3460 | 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6e 6f 72 6d | ializedObject.FindProperty("norm |
| 3480 | 61 6c 53 74 79 6c 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 5f 6e 6f 72 | alStyle");..............font_nor |
| 34a0 | 6d 61 6c 53 70 61 63 69 6e 67 5f 70 72 6f 70 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 | malSpacing_prop.=.serializedObje |
| 34c0 | 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6e 6f 72 6d 61 6c 53 70 61 63 69 6e 67 4f 66 | ct.FindProperty("normalSpacingOf |
| 34e0 | 66 73 65 74 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 5f 62 6f 6c 64 | fset");................font_bold |
| 3500 | 53 74 79 6c 65 5f 70 72 6f 70 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 | Style_prop.=.serializedObject.Fi |
| 3520 | 6e 64 50 72 6f 70 65 72 74 79 28 22 62 6f 6c 64 53 74 79 6c 65 22 29 3b 0d 0a 20 20 20 20 20 20 | ndProperty("boldStyle");........ |
| 3540 | 20 20 20 20 20 20 66 6f 6e 74 5f 62 6f 6c 64 53 70 61 63 69 6e 67 5f 70 72 6f 70 20 3d 20 73 65 | ......font_boldSpacing_prop.=.se |
| 3560 | 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 62 6f 6c | rializedObject.FindProperty("bol |
| 3580 | 64 53 70 61 63 69 6e 67 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 5f | dSpacing");................font_ |
| 35a0 | 69 74 61 6c 69 63 53 74 79 6c 65 5f 70 72 6f 70 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a | italicStyle_prop.=.serializedObj |
| 35c0 | 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 69 74 61 6c 69 63 53 74 79 6c 65 22 29 3b | ect.FindProperty("italicStyle"); |
| 35e0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 5f 74 61 62 53 69 7a 65 5f 70 72 6f 70 20 | ..............font_tabSize_prop. |
| 3600 | 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 | =.serializedObject.FindProperty( |
| 3620 | 22 74 61 62 53 69 7a 65 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 68 61 | "tabSize");................m_Cha |
| 3640 | 72 61 63 74 65 72 54 61 62 6c 65 5f 70 72 6f 70 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a | racterTable_prop.=.serializedObj |
| 3660 | 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 43 68 61 72 61 63 74 65 72 54 61 62 | ect.FindProperty("m_CharacterTab |
| 3680 | 6c 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 47 6c 79 70 68 54 61 62 6c 65 5f | le");..............m_GlyphTable_ |
| 36a0 | 70 72 6f 70 20 3d 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 | prop.=.serializedObject.FindProp |
| 36c0 | 65 72 74 79 28 22 6d 5f 47 6c 79 70 68 54 61 62 6c 65 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 | erty("m_GlyphTable");........... |
| 36e0 | 20 20 20 20 20 6d 5f 46 6f 6e 74 46 65 61 74 75 72 65 54 61 62 6c 65 5f 70 72 6f 70 20 3d 20 73 | .....m_FontFeatureTable_prop.=.s |
| 3700 | 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f | erializedObject.FindProperty("m_ |
| 3720 | 46 6f 6e 74 46 65 61 74 75 72 65 54 61 62 6c 65 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | FontFeatureTable");............. |
| 3740 | 20 6d 5f 47 6c 79 70 68 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 73 5f 70 72 | .m_GlyphPairAdjustmentRecords_pr |
| 3760 | 6f 70 20 3d 20 6d 5f 46 6f 6e 74 46 65 61 74 75 72 65 54 61 62 6c 65 5f 70 72 6f 70 2e 46 69 6e | op.=.m_FontFeatureTable_prop.Fin |
| 3780 | 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 50 61 69 72 41 64 | dPropertyRelative("m_GlyphPairAd |
| 37a0 | 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 73 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | justmentRecords");.............. |
| 37c0 | 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 20 3d 20 74 61 72 67 65 74 20 61 73 20 54 4d 50 5f 46 6f | ..m_fontAsset.=.target.as.TMP_Fo |
| 37e0 | 6e 74 41 73 73 65 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 46 6f 6e 74 46 65 61 74 | ntAsset;..............m_FontFeat |
| 3800 | 75 72 65 54 61 62 6c 65 20 3d 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 66 6f 6e 74 46 65 61 74 75 | ureTable.=.m_fontAsset.fontFeatu |
| 3820 | 72 65 54 61 62 6c 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 55 70 67 72 61 | reTable;................//.Upgra |
| 3840 | 64 65 20 46 6f 6e 74 20 46 65 61 74 75 72 65 20 54 61 62 6c 65 20 69 66 20 6e 65 63 65 73 73 61 | de.Font.Feature.Table.if.necessa |
| 3860 | 72 79 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 66 6f 6e 74 41 73 73 65 74 2e | ry..............if.(m_fontAsset. |
| 3880 | 6d 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 20 21 3d 20 6e 75 6c 6c 20 26 26 20 6d 5f 66 6f 6e 74 | m_KerningTable.!=.null.&&.m_font |
| 38a0 | 41 73 73 65 74 2e 6d 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 2e 6b 65 72 6e 69 6e 67 50 61 69 72 | Asset.m_KerningTable.kerningPair |
| 38c0 | 73 20 21 3d 20 6e 75 6c 6c 20 26 26 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 4b 65 72 6e 69 | s.!=.null.&&.m_fontAsset.m_Kerni |
| 38e0 | 6e 67 54 61 62 6c 65 2e 6b 65 72 6e 69 6e 67 50 61 69 72 73 2e 43 6f 75 6e 74 20 3e 20 30 29 0d | ngTable.kerningPairs.Count.>.0). |
| 3900 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 52 65 61 | .................m_fontAsset.Rea |
| 3920 | 64 46 6f 6e 74 41 73 73 65 74 44 65 66 69 6e 69 74 69 6f 6e 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 | dFontAssetDefinition();......... |
| 3940 | 20 20 20 20 20 20 20 2f 2f 20 43 72 65 61 74 65 20 73 65 72 69 61 6c 69 7a 65 64 20 6f 62 6a 65 | .......//.Create.serialized.obje |
| 3960 | 63 74 20 74 6f 20 61 6c 6c 6f 77 20 75 73 20 74 6f 20 75 73 65 20 61 20 73 65 72 69 61 6c 69 7a | ct.to.allow.us.to.use.a.serializ |
| 3980 | 65 64 20 70 72 6f 70 65 72 74 79 20 6f 66 20 61 6e 20 65 6d 70 74 79 20 6b 65 72 6e 69 6e 67 20 | ed.property.of.an.empty.kerning. |
| 39a0 | 70 61 69 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 72 69 61 6c 69 7a 65 64 50 | pair...............m_SerializedP |
| 39c0 | 72 6f 70 65 72 74 79 48 6f 6c 64 65 72 20 3d 20 43 72 65 61 74 65 49 6e 73 74 61 6e 63 65 3c 54 | ropertyHolder.=.CreateInstance<T |
| 39e0 | 4d 50 5f 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 48 6f 6c 64 65 72 3e 28 29 3b 0d | MP_SerializedPropertyHolder>();. |
| 3a00 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 | .............m_SerializedPropert |
| 3a20 | 79 48 6f 6c 64 65 72 2e 66 6f 6e 74 41 73 73 65 74 20 3d 20 6d 5f 66 6f 6e 74 41 73 73 65 74 3b | yHolder.fontAsset.=.m_fontAsset; |
| 3a40 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 20 69 | ..............SerializedObject.i |
| 3a60 | 6e 74 65 72 6e 61 6c 53 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 20 3d 20 6e 65 77 20 53 65 | nternalSerializedObject.=.new.Se |
| 3a80 | 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 28 6d 5f 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 | rializedObject(m_SerializedPrope |
| 3aa0 | 72 74 79 48 6f 6c 64 65 72 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 45 6d 70 74 79 | rtyHolder);..............m_Empty |
| 3ac0 | 47 6c 79 70 68 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 5f 70 72 6f 70 20 3d | GlyphPairAdjustmentRecord_prop.= |
| 3ae0 | 20 69 6e 74 65 72 6e 61 6c 53 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 | .internalSerializedObject.FindPr |
| 3b00 | 6f 70 65 72 74 79 28 22 67 6c 79 70 68 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 | operty("glyphPairAdjustmentRecor |
| 3b20 | 64 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 6d 61 74 65 72 69 61 6c 50 72 | d");................m_materialPr |
| 3b40 | 65 73 65 74 73 20 3d 20 54 4d 50 5f 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 46 69 6e 64 4d 61 | esets.=.TMP_EditorUtility.FindMa |
| 3b60 | 74 65 72 69 61 6c 52 65 66 65 72 65 6e 63 65 73 28 6d 5f 66 6f 6e 74 41 73 73 65 74 29 3b 0d 0a | terialReferences(m_fontAsset);.. |
| 3b80 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 4c 69 73 74 20 | ..............m_GlyphSearchList. |
| 3ba0 | 3d 20 6e 65 77 20 4c 69 73 74 3c 69 6e 74 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | =.new.List<int>();.............. |
| 3bc0 | 6d 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 53 65 61 72 63 68 4c 69 73 74 20 3d 20 6e 65 77 20 4c | m_KerningTableSearchList.=.new.L |
| 3be0 | 69 73 74 3c 69 6e 74 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 | ist<int>();..........}.......... |
| 3c00 | 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 4f 6e 44 69 73 61 62 6c 65 28 29 0d 0a 20 20 20 | ....public.void.OnDisable()..... |
| 3c20 | 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 52 65 76 65 72 74 20 63 68 | .....{..............//.Revert.ch |
| 3c40 | 61 6e 67 65 73 20 69 66 20 75 73 65 72 20 63 6c 6f 73 65 73 20 6f 72 20 63 68 61 6e 67 65 73 20 | anges.if.user.closes.or.changes. |
| 3c60 | 73 65 6c 65 63 74 69 6f 6e 20 77 69 74 68 6f 75 74 20 68 61 76 69 6e 67 20 6d 61 64 65 20 61 20 | selection.without.having.made.a. |
| 3c80 | 63 68 6f 69 63 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 44 69 73 70 6c | choice...............if.(m_Displ |
| 3ca0 | 61 79 44 65 73 74 72 75 63 74 69 76 65 43 68 61 6e 67 65 57 61 72 6e 69 6e 67 29 0d 0a 20 20 20 | ayDestructiveChangeWarning)..... |
| 3cc0 | 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 69 | .........{..................m_Di |
| 3ce0 | 73 70 6c 61 79 44 65 73 74 72 75 63 74 69 76 65 43 68 61 6e 67 65 57 61 72 6e 69 6e 67 20 3d 20 | splayDestructiveChangeWarning.=. |
| 3d00 | 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 73 74 6f 72 65 41 | false;..................RestoreA |
| 3d20 | 74 6c 61 73 47 65 6e 65 72 61 74 69 6f 6e 53 65 74 74 69 6e 67 73 28 29 3b 0d 0a 20 20 20 20 20 | tlasGenerationSettings();....... |
| 3d40 | 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 74 69 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f | ...........GUIUtility.keyboardCo |
| 3d60 | 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 | ntrol.=.0;....................se |
| 3d80 | 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 | rializedObject.ApplyModifiedProp |
| 3da0 | 65 72 74 69 65 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 | erties();..............}........ |
| 3dc0 | 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 | ..}..............public.override |
| 3de0 | 20 76 6f 69 64 20 4f 6e 49 6e 73 70 65 63 74 6f 72 47 55 49 28 29 0d 0a 20 20 20 20 20 20 20 20 | .void.OnInspectorGUI().......... |
| 3e00 | 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 44 65 62 75 67 2e 4c 6f 67 28 22 4f 6e 49 6e | {..............//Debug.Log("OnIn |
| 3e20 | 73 70 65 63 74 6f 72 47 55 49 20 43 61 6c 6c 65 64 2e 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 | spectorGUI.Called.");........... |
| 3e40 | 20 20 20 20 20 45 76 65 6e 74 20 63 75 72 72 65 6e 74 45 76 65 6e 74 20 3d 20 45 76 65 6e 74 2e | .....Event.currentEvent.=.Event. |
| 3e60 | 63 75 72 72 65 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a | current;................serializ |
| 3e80 | 65 64 4f 62 6a 65 63 74 2e 55 70 64 61 74 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | edObject.Update();.............. |
| 3ea0 | 20 20 52 65 63 74 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 | ..Rect.rect.=.EditorGUILayout.Ge |
| 3ec0 | 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 66 61 6c 73 65 2c 20 32 34 29 3b 0d 0a 20 20 20 20 20 20 | tControlRect(false,.24);........ |
| 3ee0 | 20 20 20 20 20 20 66 6c 6f 61 74 20 6c 61 62 65 6c 57 69 64 74 68 20 3d 20 45 64 69 74 6f 72 47 | ......float.labelWidth.=.EditorG |
| 3f00 | 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 | UIUtility.labelWidth;........... |
| 3f20 | 20 20 20 66 6c 6f 61 74 20 66 69 65 6c 64 57 69 64 74 68 20 3d 20 45 64 69 74 6f 72 47 55 49 55 | ...float.fieldWidth.=.EditorGUIU |
| 3f40 | 74 69 6c 69 74 79 2e 66 69 65 6c 64 57 69 64 74 68 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | tility.fieldWidth;.............. |
| 3f60 | 20 20 2f 2f 20 46 41 43 45 20 49 4e 46 4f 20 50 41 4e 45 4c 0d 0a 20 20 20 20 20 20 20 20 20 20 | ..//.FACE.INFO.PANEL............ |
| 3f80 | 20 20 23 72 65 67 69 6f 6e 20 46 61 63 65 20 69 6e 66 6f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ..#region.Face.info............. |
| 3fa0 | 20 47 55 49 2e 4c 61 62 65 6c 28 72 65 63 74 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 | .GUI.Label(rect,.new.GUIContent( |
| 3fc0 | 22 3c 62 3e 46 61 63 65 20 49 6e 66 6f 3c 2f 62 3e 20 2d 20 76 22 20 2b 20 6d 5f 66 6f 6e 74 41 | "<b>Face.Info</b>.-.v".+.m_fontA |
| 3fe0 | 73 73 65 74 2e 76 65 72 73 69 6f 6e 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 | sset.version),.TMP_UIStyleManage |
| 4000 | 72 2e 73 65 63 74 69 6f 6e 48 65 61 64 65 72 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | r.sectionHeader);............... |
| 4020 | 20 72 65 63 74 2e 78 20 2b 3d 20 72 65 63 74 2e 77 69 64 74 68 20 2d 20 31 33 32 66 3b 0d 0a 20 | .rect.x.+=.rect.width.-.132f;... |
| 4040 | 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 79 20 2b 3d 20 32 3b 0d 0a 20 20 20 20 20 20 20 | ...........rect.y.+=.2;......... |
| 4060 | 20 20 20 20 20 72 65 63 74 2e 77 69 64 74 68 20 3d 20 31 33 30 66 3b 0d 0a 20 20 20 20 20 20 20 | .....rect.width.=.130f;......... |
| 4080 | 20 20 20 20 20 72 65 63 74 2e 68 65 69 67 68 74 20 3d 20 31 38 66 3b 0d 0a 20 20 20 20 20 20 20 | .....rect.height.=.18f;......... |
| 40a0 | 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 72 65 63 74 2c 20 6e 65 77 20 47 55 | .....if.(GUI.Button(rect,.new.GU |
| 40c0 | 49 43 6f 6e 74 65 6e 74 28 22 55 70 64 61 74 65 20 41 74 6c 61 73 20 54 65 78 74 75 72 65 22 29 | IContent("Update.Atlas.Texture") |
| 40e0 | 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | ))..............{............... |
| 4100 | 20 20 20 54 4d 50 72 6f 5f 46 6f 6e 74 41 73 73 65 74 43 72 65 61 74 6f 72 57 69 6e 64 6f 77 2e | ...TMPro_FontAssetCreatorWindow. |
| 4120 | 53 68 6f 77 46 6f 6e 74 41 74 6c 61 73 43 72 65 61 74 6f 72 57 69 6e 64 6f 77 28 74 61 72 67 65 | ShowFontAtlasCreatorWindow(targe |
| 4140 | 74 20 61 73 20 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | t.as.TMP_FontAsset);............ |
| 4160 | 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 | ..}................EditorGUI.ind |
| 4180 | 65 6e 74 4c 65 76 65 6c 20 3d 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 | entLevel.=.1;..............GUI.e |
| 41a0 | 6e 61 62 6c 65 64 20 3d 20 66 61 6c 73 65 3b 20 2f 2f 20 4c 6f 63 6b 20 55 49 0d 0a 0d 0a 20 20 | nabled.=.false;.//.Lock.UI...... |
| 41c0 | 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 4f 44 4f 20 3a 20 43 6f 6e 73 69 64 65 72 20 63 72 65 | ..........//.TODO.:.Consider.cre |
| 41e0 | 61 74 69 6e 67 20 61 20 70 72 6f 70 65 72 74 79 20 64 72 61 77 65 72 20 66 6f 72 20 74 68 65 73 | ating.a.property.drawer.for.thes |
| 4200 | 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e | e...............EditorGUILayout. |
| 4220 | 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 6e 66 6f 5f 70 72 6f 70 2e 46 69 | PropertyField(m_FaceInfo_prop.Fi |
| 4240 | 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 46 61 6d 69 6c 79 4e 61 6d 65 | ndPropertyRelative("m_FamilyName |
| 4260 | 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 | "));..............EditorGUILayou |
| 4280 | 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 6e 66 6f 5f 70 72 6f 70 2e | t.PropertyField(m_FaceInfo_prop. |
| 42a0 | 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 74 79 6c 65 4e 61 6d | FindPropertyRelative("m_StyleNam |
| 42c0 | 65 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f | e"));..............EditorGUILayo |
| 42e0 | 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 6e 66 6f 5f 70 72 6f 70 | ut.PropertyField(m_FaceInfo_prop |
| 4300 | 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 50 6f 69 6e 74 53 69 | .FindPropertyRelative("m_PointSi |
| 4320 | 7a 65 22 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 | ze"));................GUI.enable |
| 4340 | 64 20 3d 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 | d.=.true;................EditorG |
| 4360 | 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 6e 66 | UILayout.PropertyField(m_FaceInf |
| 4380 | 6f 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 | o_prop.FindPropertyRelative("m_S |
| 43a0 | 63 61 6c 65 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c | cale"));..............EditorGUIL |
| 43c0 | 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 6e 66 6f 5f 70 | ayout.PropertyField(m_FaceInfo_p |
| 43e0 | 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 4c 69 6e 65 | rop.FindPropertyRelative("m_Line |
| 4400 | 48 65 69 67 68 74 22 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 | Height"));................Editor |
| 4420 | 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 6e | GUILayout.PropertyField(m_FaceIn |
| 4440 | 66 6f 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f | fo_prop.FindPropertyRelative("m_ |
| 4460 | 41 73 63 65 6e 74 4c 69 6e 65 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 | AscentLine"));..............Edit |
| 4480 | 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 | orGUILayout.PropertyField(m_Face |
| 44a0 | 49 6e 66 6f 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 | Info_prop.FindPropertyRelative(" |
| 44c0 | 6d 5f 43 61 70 4c 69 6e 65 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f | m_CapLine"));..............Edito |
| 44e0 | 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 | rGUILayout.PropertyField(m_FaceI |
| 4500 | 6e 66 6f 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d | nfo_prop.FindPropertyRelative("m |
| 4520 | 5f 4d 65 61 6e 4c 69 6e 65 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f | _MeanLine"));..............Edito |
| 4540 | 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 | rGUILayout.PropertyField(m_FaceI |
| 4560 | 6e 66 6f 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d | nfo_prop.FindPropertyRelative("m |
| 4580 | 5f 42 61 73 65 6c 69 6e 65 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f | _Baseline"));..............Edito |
| 45a0 | 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 | rGUILayout.PropertyField(m_FaceI |
| 45c0 | 6e 66 6f 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d | nfo_prop.FindPropertyRelative("m |
| 45e0 | 5f 44 65 73 63 65 6e 74 4c 69 6e 65 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 | _DescentLine"));..............Ed |
| 4600 | 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 | itorGUILayout.PropertyField(m_Fa |
| 4620 | 63 65 49 6e 66 6f 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 | ceInfo_prop.FindPropertyRelative |
| 4640 | 28 22 6d 5f 55 6e 64 65 72 6c 69 6e 65 4f 66 66 73 65 74 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 | ("m_UnderlineOffset"));......... |
| 4660 | 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 | .....EditorGUILayout.PropertyFie |
| 4680 | 6c 64 28 6d 5f 46 61 63 65 49 6e 66 6f 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 | ld(m_FaceInfo_prop.FindPropertyR |
| 46a0 | 65 6c 61 74 69 76 65 28 22 6d 5f 55 6e 64 65 72 6c 69 6e 65 54 68 69 63 6b 6e 65 73 73 22 29 29 | elative("m_UnderlineThickness")) |
| 46c0 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 | ;..............EditorGUILayout.P |
| 46e0 | 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 6e 66 6f 5f 70 72 6f 70 2e 46 69 6e | ropertyField(m_FaceInfo_prop.Fin |
| 4700 | 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 74 72 69 6b 65 74 68 72 6f 75 | dPropertyRelative("m_Strikethrou |
| 4720 | 67 68 4f 66 66 73 65 74 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 45 64 69 74 | ghOffset"));..............//Edit |
| 4740 | 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 | orGUILayout.PropertyField(m_Face |
| 4760 | 49 6e 66 6f 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 | Info_prop.FindPropertyRelative(" |
| 4780 | 73 74 72 69 6b 65 74 68 72 6f 75 67 68 54 68 69 63 6b 6e 65 73 73 22 29 29 3b 0d 0a 20 20 20 20 | strikethroughThickness"));...... |
| 47a0 | 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 | ........EditorGUILayout.Property |
| 47c0 | 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 6e 66 6f 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 | Field(m_FaceInfo_prop.FindProper |
| 47e0 | 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 75 70 65 72 73 63 72 69 70 74 4f 66 66 73 65 74 22 | tyRelative("m_SuperscriptOffset" |
| 4800 | 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 | ));..............EditorGUILayout |
| 4820 | 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 6e 66 6f 5f 70 72 6f 70 2e 46 | .PropertyField(m_FaceInfo_prop.F |
| 4840 | 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 75 70 65 72 73 63 72 69 | indPropertyRelative("m_Superscri |
| 4860 | 70 74 53 69 7a 65 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 | ptSize"));..............EditorGU |
| 4880 | 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 61 63 65 49 6e 66 6f | ILayout.PropertyField(m_FaceInfo |
| 48a0 | 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 75 | _prop.FindPropertyRelative("m_Su |
| 48c0 | 62 73 63 72 69 70 74 4f 66 66 73 65 74 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 | bscriptOffset"));..............E |
| 48e0 | 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 46 | ditorGUILayout.PropertyField(m_F |
| 4900 | 61 63 65 49 6e 66 6f 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 | aceInfo_prop.FindPropertyRelativ |
| 4920 | 65 28 22 6d 5f 53 75 62 73 63 72 69 70 74 53 69 7a 65 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 | e("m_SubscriptSize"));.......... |
| 4940 | 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c | ....EditorGUILayout.PropertyFiel |
| 4960 | 64 28 6d 5f 46 61 63 65 49 6e 66 6f 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 | d(m_FaceInfo_prop.FindPropertyRe |
| 4980 | 6c 61 74 69 76 65 28 22 6d 5f 54 61 62 57 69 64 74 68 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 | lative("m_TabWidth"));.......... |
| 49a0 | 20 20 20 20 2f 2f 20 54 4f 44 4f 20 3a 20 41 64 64 20 63 6c 61 6d 70 69 6e 67 20 66 6f 72 20 73 | ....//.TODO.:.Add.clamping.for.s |
| 49c0 | 6f 6d 65 20 6f 66 20 74 68 65 73 65 20 76 61 6c 75 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 | ome.of.these.values............. |
| 49e0 | 20 20 2f 2f 73 75 62 53 69 7a 65 5f 70 72 6f 70 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 4d 61 | ..//subSize_prop.floatValue.=.Ma |
| 4a00 | 74 68 66 2e 43 6c 61 6d 70 28 73 75 62 53 69 7a 65 5f 70 72 6f 70 2e 66 6c 6f 61 74 56 61 6c 75 | thf.Clamp(subSize_prop.floatValu |
| 4a20 | 65 2c 20 30 2e 32 35 66 2c 20 31 66 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 | e,.0.25f,.1f);................Ed |
| 4a40 | 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 | itorGUILayout.Space();.......... |
| 4a60 | 20 20 20 20 23 65 6e 64 72 65 67 69 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f | ....#endregion................// |
| 4a80 | 20 47 45 4e 45 52 41 54 49 4f 4e 20 53 45 54 54 49 4e 47 53 0d 0a 20 20 20 20 20 20 20 20 20 20 | .GENERATION.SETTINGS............ |
| 4aa0 | 20 20 23 72 65 67 69 6f 6e 20 47 65 6e 65 72 61 74 69 6f 6e 20 53 65 74 74 69 6e 67 73 0d 0a 20 | ..#region.Generation.Settings... |
| 4ac0 | 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 | ...........rect.=.EditorGUILayou |
| 4ae0 | 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 66 61 6c 73 65 2c 20 32 34 29 3b 0d 0a 0d 0a | t.GetControlRect(false,.24);.... |
| 4b00 | 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 72 65 63 74 2c | ............if.(GUI.Button(rect, |
| 4b20 | 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 3c 62 3e 47 65 6e 65 72 61 74 69 6f 6e 20 53 | .new.GUIContent("<b>Generation.S |
| 4b40 | 65 74 74 69 6e 67 73 3c 2f 62 3e 22 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 | ettings</b>"),.TMP_UIStyleManage |
| 4b60 | 72 2e 73 65 63 74 69 6f 6e 48 65 61 64 65 72 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | r.sectionHeader))............... |
| 4b80 | 20 20 20 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 67 65 6e 65 72 61 74 69 6f 6e 53 65 74 74 69 | ...UI_PanelState.generationSetti |
| 4ba0 | 6e 67 73 50 61 6e 65 6c 20 3d 20 21 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 67 65 6e 65 72 61 | ngsPanel.=.!UI_PanelState.genera |
| 4bc0 | 74 69 6f 6e 53 65 74 74 69 6e 67 73 50 61 6e 65 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | tionSettingsPanel;.............. |
| 4be0 | 20 20 47 55 49 2e 4c 61 62 65 6c 28 72 65 63 74 2c 20 28 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 | ..GUI.Label(rect,.(UI_PanelState |
| 4c00 | 2e 67 65 6e 65 72 61 74 69 6f 6e 53 65 74 74 69 6e 67 73 50 61 6e 65 6c 20 3f 20 22 22 20 3a 20 | .generationSettingsPanel.?."".:. |
| 4c20 | 73 5f 55 69 53 74 61 74 65 4c 61 62 65 6c 5b 31 5d 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d | s_UiStateLabel[1]),.TMP_UIStyleM |
| 4c40 | 61 6e 61 67 65 72 2e 72 69 67 68 74 4c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 | anager.rightLabel);............. |
| 4c60 | 20 20 20 69 66 20 28 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 67 65 6e 65 72 61 74 69 6f 6e 53 | ...if.(UI_PanelState.generationS |
| 4c80 | 65 74 74 69 6e 67 73 50 61 6e 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | ettingsPanel)..............{.... |
| 4ca0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 | ..............EditorGUI.indentLe |
| 4cc0 | 76 65 6c 20 3d 20 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 | vel.=.1;....................Edit |
| 4ce0 | 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 | orGUI.BeginChangeCheck();....... |
| 4d00 | 20 20 20 20 20 20 20 20 20 20 20 46 6f 6e 74 20 73 6f 75 72 63 65 46 6f 6e 74 20 3d 20 28 46 6f | ...........Font.sourceFont.=.(Fo |
| 4d20 | 6e 74 29 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 4f 62 6a 65 63 74 46 69 65 6c 64 28 22 | nt)EditorGUILayout.ObjectField(" |
| 4d40 | 53 6f 75 72 63 65 20 46 6f 6e 74 20 46 69 6c 65 22 2c 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 6d | Source.Font.File",.m_fontAsset.m |
| 4d60 | 5f 53 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 5f 45 64 69 74 6f 72 52 65 66 2c 20 74 79 70 65 6f | _SourceFontFile_EditorRef,.typeo |
| 4d80 | 66 28 46 6f 6e 74 29 2c 20 66 61 6c 73 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | f(Font),.false);................ |
| 4da0 | 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 | ..if.(EditorGUI.EndChangeCheck() |
| 4dc0 | 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 | )..................{............ |
| 4de0 | 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 67 75 69 64 20 3d 20 41 73 73 65 74 44 61 74 | ..........string.guid.=.AssetDat |
| 4e00 | 61 62 61 73 65 2e 41 73 73 65 74 50 61 74 68 54 6f 47 55 49 44 28 41 73 73 65 74 44 61 74 61 62 | abase.AssetPathToGUID(AssetDatab |
| 4e20 | 61 73 65 2e 47 65 74 41 73 73 65 74 50 61 74 68 28 73 6f 75 72 63 65 46 6f 6e 74 29 29 3b 0d 0a | ase.GetAssetPath(sourceFont));.. |
| 4e40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e | ....................m_fontAsset. |
| 4e60 | 6d 5f 53 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 47 55 49 44 20 3d 20 67 75 69 64 3b 0d 0a 20 20 | m_SourceFontFileGUID.=.guid;.... |
| 4e80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 6d 5f | ..................m_fontAsset.m_ |
| 4ea0 | 53 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 5f 45 64 69 74 6f 72 52 65 66 20 3d 20 73 6f 75 72 63 | SourceFontFile_EditorRef.=.sourc |
| 4ec0 | 65 46 6f 6e 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 | eFont;..................}....... |
| 4ee0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e | .............EditorGUI.BeginChan |
| 4f00 | 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 | geCheck();..................Edit |
| 4f20 | 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 41 74 6c 61 | orGUILayout.PropertyField(m_Atla |
| 4f40 | 73 50 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 5f 70 72 6f 70 2c 20 6e 65 77 20 47 55 49 43 6f 6e | sPopulationMode_prop,.new.GUICon |
| 4f60 | 74 65 6e 74 28 22 41 74 6c 61 73 20 50 6f 70 75 6c 61 74 69 6f 6e 20 4d 6f 64 65 22 29 29 3b 0d | tent("Atlas.Population.Mode"));. |
| 4f80 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 49 2e 45 | .................if.(EditorGUI.E |
| 4fa0 | 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ndChangeCheck())................ |
| 4fc0 | 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 | ..{......................seriali |
| 4fe0 | 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 | zedObject.ApplyModifiedPropertie |
| 5000 | 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c | s();........................bool |
| 5020 | 20 69 73 44 61 74 61 62 61 73 65 52 65 66 72 65 73 68 52 65 71 75 69 72 65 64 20 3d 20 66 61 6c | .isDatabaseRefreshRequired.=.fal |
| 5040 | 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d | se;........................if.(m |
| 5060 | 5f 41 74 6c 61 73 50 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 5f 70 72 6f 70 2e 69 6e 74 56 61 6c | _AtlasPopulationMode_prop.intVal |
| 5080 | 75 65 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d | ue.==.0)......................{. |
| 50a0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 | .........................m_fontA |
| 50c0 | 73 73 65 74 2e 73 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 20 3d 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 | sset.sourceFontFile.=.null;..... |
| 50e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 74 20 61 74 | .......................//.Set.at |
| 5100 | 6c 61 73 20 74 65 78 74 75 72 65 73 20 74 6f 20 6e 6f 6e 20 72 65 61 64 61 62 6c 65 2e 0d 0a 20 | las.textures.to.non.readable.... |
| 5120 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 66 6f 72 20 28 69 6e | .......................//for.(in |
| 5140 | 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 61 74 6c 61 73 54 65 | t.i.=.0;.i.<.m_fontAsset.atlasTe |
| 5160 | 78 74 75 72 65 73 2e 4c 65 6e 67 74 68 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | xtures.Length;.i++)............. |
| 5180 | 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .............//{................ |
| 51a0 | 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 54 65 78 74 75 72 65 32 44 20 74 65 78 20 3d 20 | ..........//....Texture2D.tex.=. |
| 51c0 | 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 61 74 6c 61 73 54 65 78 74 75 72 65 73 5b 69 5d 3b 0d 0a 0d | m_fontAsset.atlasTextures[i];... |
| 51e0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 69 | .........................//....i |
| 5200 | 66 20 28 74 65 78 20 21 3d 20 6e 75 6c 6c 20 26 26 20 74 65 78 2e 69 73 52 65 61 64 61 62 6c 65 | f.(tex.!=.null.&&.tex.isReadable |
| 5220 | 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 | )..........................//... |
| 5240 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 | .{..........................//.. |
| 5260 | 20 20 20 20 20 20 73 74 72 69 6e 67 20 74 65 78 50 61 74 68 20 3d 20 41 73 73 65 74 44 61 74 61 | ......string.texPath.=.AssetData |
| 5280 | 62 61 73 65 2e 47 65 74 41 73 73 65 74 50 61 74 68 28 74 65 78 29 3b 0d 0a 20 20 20 20 20 20 20 | base.GetAssetPath(tex);......... |
| 52a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 20 20 20 20 76 61 72 20 74 | .................//........var.t |
| 52c0 | 65 78 49 6d 70 6f 72 74 65 72 20 3d 20 41 73 73 65 74 49 6d 70 6f 72 74 65 72 2e 47 65 74 41 74 | exImporter.=.AssetImporter.GetAt |
| 52e0 | 50 61 74 68 28 74 65 78 50 61 74 68 29 20 61 73 20 54 65 78 74 75 72 65 49 6d 70 6f 72 74 65 72 | Path(texPath).as.TextureImporter |
| 5300 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 | ;..........................//... |
| 5320 | 20 20 20 20 20 69 66 20 28 74 65 78 49 6d 70 6f 72 74 65 72 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 | .....if.(texImporter.!=.null)... |
| 5340 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 20 20 20 | .......................//....... |
| 5360 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 | .{..........................//.. |
| 5380 | 20 20 20 20 20 20 20 20 20 20 74 65 78 49 6d 70 6f 72 74 65 72 2e 69 73 52 65 61 64 61 62 6c 65 | ..........texImporter.isReadable |
| 53a0 | 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .=.false;....................... |
| 53c0 | 20 20 20 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 49 | ...//............AssetDatabase.I |
| 53e0 | 6d 70 6f 72 74 41 73 73 65 74 28 74 65 78 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | mportAsset(texPath);............ |
| 5400 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 20 20 20 20 20 20 20 20 69 73 44 61 | ..............//............isDa |
| 5420 | 74 61 62 61 73 65 52 65 66 72 65 73 68 52 65 71 75 69 72 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 | tabaseRefreshRequired.=.true;... |
| 5440 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 20 20 20 | .......................//....... |
| 5460 | 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 | .}..........................//.. |
| 5480 | 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 7d | ..}..........................//} |
| 54a0 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 | ............................Debu |
| 54c0 | 67 2e 4c 6f 67 28 22 41 74 6c 61 73 20 50 6f 70 75 6c 61 74 69 6f 6e 20 6d 6f 64 65 20 73 65 74 | g.Log("Atlas.Population.mode.set |
| 54e0 | 20 74 6f 20 5b 53 74 61 74 69 63 5d 2e 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .to.[Static].");................ |
| 5500 | 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 | ......}......................els |
| 5520 | 65 20 69 66 20 28 6d 5f 41 74 6c 61 73 50 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 5f 70 72 6f 70 | e.if.(m_AtlasPopulationMode_prop |
| 5540 | 2e 69 6e 74 56 61 6c 75 65 20 3d 3d 20 31 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .intValue.==.1)................. |
| 5560 | 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .....{.......................... |
| 5580 | 69 66 20 28 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 53 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 | if.(m_fontAsset.m_SourceFontFile |
| 55a0 | 5f 45 64 69 74 6f 72 52 65 66 2e 64 79 6e 61 6d 69 63 20 3d 3d 20 66 61 6c 73 65 29 0d 0a 20 20 | _EditorRef.dynamic.==.false).... |
| 55c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | ......................{......... |
| 55e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 57 61 | .....................Debug.LogWa |
| 5600 | 72 6e 69 6e 67 28 22 50 6c 65 61 73 65 20 73 65 74 20 74 68 65 20 5b 22 20 2b 20 6d 5f 66 6f 6e | rning("Please.set.the.[".+.m_fon |
| 5620 | 74 41 73 73 65 74 2e 6e 61 6d 65 20 2b 20 22 5d 20 66 6f 6e 74 20 74 6f 20 64 79 6e 61 6d 69 63 | tAsset.name.+."].font.to.dynamic |
| 5640 | 20 6d 6f 64 65 20 61 73 20 74 68 69 73 20 69 73 20 72 65 71 75 69 72 65 64 20 66 6f 72 20 44 79 | .mode.as.this.is.required.for.Dy |
| 5660 | 6e 61 6d 69 63 20 53 44 46 20 73 75 70 70 6f 72 74 2e 22 2c 20 6d 5f 66 6f 6e 74 41 73 73 65 74 | namic.SDF.support.",.m_fontAsset |
| 5680 | 2e 6d 5f 53 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 5f 45 64 69 74 6f 72 52 65 66 29 3b 0d 0a 20 | .m_SourceFontFile_EditorRef);... |
| 56a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c | ...........................m_Atl |
| 56c0 | 61 73 50 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 20 3d | asPopulationMode_prop.intValue.= |
| 56e0 | 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .0;............................. |
| 5700 | 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 | ...serializedObject.ApplyModifie |
| 5720 | 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | dProperties();.................. |
| 5740 | 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ........}....................... |
| 5760 | 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...else......................... |
| 5780 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .{.............................. |
| 57a0 | 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 73 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 20 3d 20 6d 5f 66 | m_fontAsset.sourceFontFile.=.m_f |
| 57c0 | 6f 6e 74 41 73 73 65 74 2e 6d 5f 53 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 5f 45 64 69 74 6f 72 | ontAsset.m_SourceFontFile_Editor |
| 57e0 | 52 65 66 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Ref;............................ |
| 5800 | 20 20 20 20 2f 2a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..../*.......................... |
| 5820 | 20 20 20 20 2f 2f 20 53 65 74 20 61 74 6c 61 73 20 74 65 78 74 75 72 65 73 20 74 6f 20 6e 6f 6e | ....//.Set.atlas.textures.to.non |
| 5840 | 20 72 65 61 64 61 62 6c 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .readable....................... |
| 5860 | 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 66 6f | ........for.(int.i.=.0;.i.<.m_fo |
| 5880 | 6e 74 41 73 73 65 74 2e 61 74 6c 61 73 54 65 78 74 75 72 65 73 2e 4c 65 6e 67 74 68 3b 20 69 2b | ntAsset.atlasTextures.Length;.i+ |
| 58a0 | 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | +).............................. |
| 58c0 | 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | {............................... |
| 58e0 | 20 20 20 54 65 78 74 75 72 65 32 44 20 74 65 78 20 3d 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 61 | ...Texture2D.tex.=.m_fontAsset.a |
| 5900 | 74 6c 61 73 54 65 78 74 75 72 65 73 5b 69 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | tlasTextures[i];................ |
| 5920 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 65 78 20 21 3d 20 6e | ....................if.(tex.!=.n |
| 5940 | 75 6c 6c 20 26 26 20 74 65 78 2e 69 73 52 65 61 64 61 62 6c 65 20 3d 3d 20 66 61 6c 73 65 29 0d | ull.&&.tex.isReadable.==.false). |
| 5960 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| 5980 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .{.............................. |
| 59a0 | 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 74 65 78 50 61 74 68 20 3d 20 41 73 73 65 74 44 61 | ........string.texPath.=.AssetDa |
| 59c0 | 74 61 62 61 73 65 2e 47 65 74 41 73 73 65 74 50 61 74 68 28 74 65 78 2e 47 65 74 49 6e 73 74 61 | tabase.GetAssetPath(tex.GetInsta |
| 59e0 | 6e 63 65 49 44 28 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | nceID());....................... |
| 5a00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4f 62 6a 65 63 74 5b 5d 20 70 61 74 68 73 20 3d 20 | ...............Object[].paths.=. |
| 5a20 | 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 4c 6f 61 64 41 6c 6c 41 73 73 65 74 73 41 74 50 61 74 | AssetDatabase.LoadAllAssetsAtPat |
| 5a40 | 68 28 74 65 78 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | h(texPath);..................... |
| 5a60 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 65 78 49 6d 70 6f 72 74 65 72 | .................var.texImporter |
| 5a80 | 20 3d 20 41 73 73 65 74 49 6d 70 6f 72 74 65 72 2e 47 65 74 41 74 50 61 74 68 28 74 65 78 50 61 | .=.AssetImporter.GetAtPath(texPa |
| 5aa0 | 74 68 29 20 61 73 20 54 65 78 74 75 72 65 49 6d 70 6f 72 74 65 72 3b 0d 0a 20 20 20 20 20 20 20 | th).as.TextureImporter;......... |
| 5ac0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 | .............................if. |
| 5ae0 | 28 74 65 78 49 6d 70 6f 72 74 65 72 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 | (texImporter.!=.null)........... |
| 5b00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | ...........................{.... |
| 5b20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| 5b40 | 20 20 20 20 20 20 74 65 78 49 6d 70 6f 72 74 65 72 2e 69 73 52 65 61 64 61 62 6c 65 20 3d 20 74 | ......texImporter.isReadable.=.t |
| 5b60 | 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | rue;............................ |
| 5b80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 74 44 61 74 61 62 61 73 65 2e 49 6d 70 6f | ..............AssetDatabase.Impo |
| 5ba0 | 72 74 41 73 73 65 74 28 74 65 78 50 61 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | rtAsset(texPath);............... |
| 5bc0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 73 44 61 74 | ...........................isDat |
| 5be0 | 61 62 61 73 65 52 65 66 72 65 73 68 52 65 71 75 69 72 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 | abaseRefreshRequired.=.true;.... |
| 5c00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| 5c20 | 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..}............................. |
| 5c40 | 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .....}.......................... |
| 5c60 | 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ....}........................... |
| 5c80 | 20 20 20 2a 2f 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...*/........................... |
| 5ca0 | 20 20 20 44 65 62 75 67 2e 4c 6f 67 28 22 41 74 6c 61 73 20 50 6f 70 75 6c 61 74 69 6f 6e 20 6d | ...Debug.Log("Atlas.Population.m |
| 5cc0 | 6f 64 65 20 73 65 74 20 74 6f 20 5b 44 79 6e 61 6d 69 63 5d 2e 22 29 3b 0d 0a 20 20 20 20 20 20 | ode.set.to.[Dynamic].");........ |
| 5ce0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ..................}............. |
| 5d00 | 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .........}...................... |
| 5d20 | 20 20 69 66 20 28 69 73 44 61 74 61 62 61 73 65 52 65 66 72 65 73 68 52 65 71 75 69 72 65 64 29 | ..if.(isDatabaseRefreshRequired) |
| 5d40 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 73 73 65 74 44 | ..........................AssetD |
| 5d60 | 61 74 61 62 61 73 65 2e 52 65 66 72 65 73 68 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | atabase.Refresh();.............. |
| 5d80 | 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 55 70 64 61 74 | ..........serializedObject.Updat |
| 5da0 | 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 73 41 73 73 65 | e();......................isAsse |
| 5dc0 | 74 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | tDirty.=.true;.................. |
| 5de0 | 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 | }....................GUI.enabled |
| 5e00 | 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 61 76 | .=.true;..................//.Sav |
| 5e20 | 65 20 73 74 61 74 65 20 6f 66 20 61 74 6c 61 73 20 73 65 74 74 69 6e 67 73 0d 0a 20 20 20 20 20 | e.state.of.atlas.settings....... |
| 5e40 | 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 44 69 73 70 6c 61 79 44 65 73 74 72 75 63 74 | ...........if.(m_DisplayDestruct |
| 5e60 | 69 76 65 43 68 61 6e 67 65 57 61 72 6e 69 6e 67 20 3d 3d 20 66 61 6c 73 65 29 0d 0a 20 20 20 20 | iveChangeWarning.==.false)...... |
| 5e80 | 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ............{................... |
| 5ea0 | 20 20 20 53 61 76 65 64 41 74 6c 61 73 47 65 6e 65 72 61 74 69 6f 6e 53 65 74 74 69 6e 67 73 28 | ...SavedAtlasGenerationSettings( |
| 5ec0 | 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 55 6e 64 6f 2e 52 | );......................//Undo.R |
| 5ee0 | 65 67 69 73 74 65 72 43 6f 6d 70 6c 65 74 65 4f 62 6a 65 63 74 55 6e 64 6f 28 6d 5f 66 6f 6e 74 | egisterCompleteObjectUndo(m_font |
| 5f00 | 41 73 73 65 74 2c 20 22 46 6f 6e 74 20 41 73 73 65 74 20 43 68 61 6e 67 65 73 22 29 3b 0d 0a 20 | Asset,."Font.Asset.Changes");... |
| 5f20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ...............}................ |
| 5f40 | 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 | ....EditorGUI.BeginChangeCheck() |
| 5f60 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 4f 44 4f 3a 20 53 77 69 74 | ;..................//.TODO:.Swit |
| 5f80 | 63 68 20 73 68 61 64 65 72 73 20 64 65 70 65 6e 64 69 6e 67 20 6f 6e 20 47 6c 79 70 68 52 65 6e | ch.shaders.depending.on.GlyphRen |
| 5fa0 | 64 65 72 4d 6f 64 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 | derMode...................Editor |
| 5fc0 | 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 41 74 6c 61 73 52 | GUILayout.PropertyField(m_AtlasR |
| 5fe0 | 65 6e 64 65 72 4d 6f 64 65 5f 70 72 6f 70 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | enderMode_prop);................ |
| 6000 | 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 | ..EditorGUILayout.PropertyField( |
| 6020 | 6d 5f 53 61 6d 70 6c 69 6e 67 50 6f 69 6e 74 53 69 7a 65 5f 70 72 6f 70 2c 20 6e 65 77 20 47 55 | m_SamplingPointSize_prop,.new.GU |
| 6040 | 49 43 6f 6e 74 65 6e 74 28 22 53 61 6d 70 6c 69 6e 67 20 50 6f 69 6e 74 20 53 69 7a 65 22 29 29 | IContent("Sampling.Point.Size")) |
| 6060 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 49 | ;..................if.(EditorGUI |
| 6080 | 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .EndChangeCheck()).............. |
| 60a0 | 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 69 73 | ....{......................m_Dis |
| 60c0 | 70 6c 61 79 44 65 73 74 72 75 63 74 69 76 65 43 68 61 6e 67 65 57 61 72 6e 69 6e 67 20 3d 20 74 | playDestructiveChangeWarning.=.t |
| 60e0 | 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 | rue;..................}......... |
| 6100 | 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 61 6e 67 65 73 20 74 6f 20 74 68 65 73 65 20 70 | ...........//.Changes.to.these.p |
| 6120 | 72 6f 70 65 72 74 69 65 73 20 72 65 71 75 69 72 65 20 75 70 64 61 74 69 6e 67 20 4d 61 74 65 72 | roperties.require.updating.Mater |
| 6140 | 69 61 6c 20 50 72 65 73 65 74 73 20 66 6f 72 20 74 68 69 73 20 66 6f 6e 74 20 61 73 73 65 74 2e | ial.Presets.for.this.font.asset. |
| 6160 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 | ..................EditorGUI.Begi |
| 6180 | 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | nChangeCheck();................. |
| 61a0 | 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d | .EditorGUILayout.PropertyField(m |
| 61c0 | 5f 41 74 6c 61 73 50 61 64 64 69 6e 67 5f 70 72 6f 70 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 | _AtlasPadding_prop,.new.GUIConte |
| 61e0 | 6e 74 28 22 50 61 64 64 69 6e 67 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | nt("Padding"));................. |
| 6200 | 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 49 6e 74 50 6f 70 75 70 28 6d 5f 41 74 6c 61 | .EditorGUILayout.IntPopup(m_Atla |
| 6220 | 73 57 69 64 74 68 5f 70 72 6f 70 2c 20 6d 5f 41 74 6c 61 73 52 65 73 6f 6c 75 74 69 6f 6e 4c 61 | sWidth_prop,.m_AtlasResolutionLa |
| 6240 | 62 65 6c 73 2c 20 6d 5f 41 74 6c 61 73 52 65 73 6f 6c 75 74 69 6f 6e 73 2c 20 6e 65 77 20 47 55 | bels,.m_AtlasResolutions,.new.GU |
| 6260 | 49 43 6f 6e 74 65 6e 74 28 22 41 74 6c 61 73 20 57 69 64 74 68 22 29 29 3b 0d 0a 20 20 20 20 20 | IContent("Atlas.Width"));....... |
| 6280 | 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 49 6e 74 50 6f | ...........EditorGUILayout.IntPo |
| 62a0 | 70 75 70 28 6d 5f 41 74 6c 61 73 48 65 69 67 68 74 5f 70 72 6f 70 2c 20 6d 5f 41 74 6c 61 73 52 | pup(m_AtlasHeight_prop,.m_AtlasR |
| 62c0 | 65 73 6f 6c 75 74 69 6f 6e 4c 61 62 65 6c 73 2c 20 6d 5f 41 74 6c 61 73 52 65 73 6f 6c 75 74 69 | esolutionLabels,.m_AtlasResoluti |
| 62e0 | 6f 6e 73 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 41 74 6c 61 73 20 48 65 69 67 68 | ons,.new.GUIContent("Atlas.Heigh |
| 6300 | 74 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f | t"));..................if.(Edito |
| 6320 | 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 20 20 20 20 | rGUI.EndChangeCheck()).......... |
| 6340 | 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d | ........{......................m |
| 6360 | 5f 4d 61 74 65 72 69 61 6c 50 72 65 73 65 74 73 52 65 71 75 69 72 65 55 70 64 61 74 65 20 3d 20 | _MaterialPresetsRequireUpdate.=. |
| 6380 | 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 69 73 | true;......................m_Dis |
| 63a0 | 70 6c 61 79 44 65 73 74 72 75 63 74 69 76 65 43 68 61 6e 67 65 57 61 72 6e 69 6e 67 20 3d 20 74 | playDestructiveChangeWarning.=.t |
| 63c0 | 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 | rue;..................}......... |
| 63e0 | 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 44 69 73 70 6c 61 79 44 65 73 74 72 75 63 74 | ...........if.(m_DisplayDestruct |
| 6400 | 69 76 65 43 68 61 6e 67 65 57 61 72 6e 69 6e 67 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | iveChangeWarning)............... |
| 6420 | 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 68 65 | ...{......................//.The |
| 6440 | 73 65 20 63 68 61 6e 67 65 73 20 61 72 65 20 64 65 73 74 72 75 63 74 69 76 65 20 6f 6e 20 74 68 | se.changes.are.destructive.on.th |
| 6460 | 65 20 66 6f 6e 74 20 61 73 73 65 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | e.font.asset.................... |
| 6480 | 20 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 | ..rect.=.EditorGUILayout.GetCont |
| 64a0 | 72 6f 6c 52 65 63 74 28 66 61 6c 73 65 2c 20 36 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | rolRect(false,.60);............. |
| 64c0 | 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 78 20 2b 3d 20 31 35 3b 0d 0a 20 20 20 20 20 20 20 20 | .........rect.x.+=.15;.......... |
| 64e0 | 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 77 69 64 74 68 20 2d 3d 20 31 35 3b 0d 0a 20 | ............rect.width.-=.15;... |
| 6500 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 48 65 6c | ...................EditorGUI.Hel |
| 6520 | 70 42 6f 78 28 72 65 63 74 2c 20 22 43 68 61 6e 67 69 6e 67 20 74 68 65 73 65 20 73 65 74 74 69 | pBox(rect,."Changing.these.setti |
| 6540 | 6e 67 73 20 77 69 6c 6c 20 63 6c 65 61 72 20 74 68 65 20 66 6f 6e 74 20 61 73 73 65 74 27 73 20 | ngs.will.clear.the.font.asset's. |
| 6560 | 63 68 61 72 61 63 74 65 72 2c 20 67 6c 79 70 68 20 61 6e 64 20 74 65 78 74 75 72 65 20 64 61 74 | character,.glyph.and.texture.dat |
| 6580 | 61 2e 22 2c 20 4d 65 73 73 61 67 65 54 79 70 65 2e 57 61 72 6e 69 6e 67 29 3b 0d 0a 0d 0a 20 20 | a.",.MessageType.Warning);...... |
| 65a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e | ..................if.(GUI.Button |
| 65c0 | 28 6e 65 77 20 52 65 63 74 28 72 65 63 74 2e 77 69 64 74 68 20 2d 20 31 34 30 2c 20 72 65 63 74 | (new.Rect(rect.width.-.140,.rect |
| 65e0 | 2e 79 20 2b 20 33 36 2c 20 38 30 2c 20 31 38 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 | .y.+.36,.80,.18),.new.GUIContent |
| 6600 | 28 22 41 70 70 6c 79 22 29 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ("Apply")))..................... |
| 6620 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 69 | .{..........................m_Di |
| 6640 | 73 70 6c 61 79 44 65 73 74 72 75 63 74 69 76 65 43 68 61 6e 67 65 57 61 72 6e 69 6e 67 20 3d 20 | splayDestructiveChangeWarning.=. |
| 6660 | 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | false;.......................... |
| 6680 | 20 20 2f 2f 20 55 70 64 61 74 65 20 66 61 63 65 20 69 6e 66 6f 20 69 73 20 73 61 6d 70 6c 69 6e | ..//.Update.face.info.is.samplin |
| 66a0 | 67 20 70 6f 69 6e 74 20 73 69 7a 65 20 77 61 73 20 63 68 61 6e 67 65 64 2e 0d 0a 20 20 20 20 20 | g.point.size.was.changed........ |
| 66c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 74 6c 61 73 53 65 | ...................if.(m_AtlasSe |
| 66e0 | 74 74 69 6e 67 73 2e 70 6f 69 6e 74 53 69 7a 65 20 21 3d 20 6d 5f 53 61 6d 70 6c 69 6e 67 50 6f | ttings.pointSize.!=.m_SamplingPo |
| 6700 | 69 6e 74 53 69 7a 65 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 | intSize_prop.intValue).......... |
| 6720 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................{............... |
| 6740 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 46 6f 6e 74 45 6e 67 69 6e 65 2e 4c 6f 61 64 46 6f | ...............FontEngine.LoadFo |
| 6760 | 6e 74 46 61 63 65 28 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 73 6f 75 72 63 65 46 6f 6e 74 46 69 6c | ntFace(m_fontAsset.sourceFontFil |
| 6780 | 65 2c 20 6d 5f 53 61 6d 70 6c 69 6e 67 50 6f 69 6e 74 53 69 7a 65 5f 70 72 6f 70 2e 69 6e 74 56 | e,.m_SamplingPointSize_prop.intV |
| 67a0 | 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | alue);.......................... |
| 67c0 | 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 66 61 63 65 49 6e 66 6f 20 3d 20 46 6f 6e 74 45 | ....m_fontAsset.faceInfo.=.FontE |
| 67e0 | 6e 67 69 6e 65 2e 47 65 74 46 61 63 65 49 6e 66 6f 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | ngine.GetFaceInfo();............ |
| 6800 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..............}................. |
| 6820 | 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 55 70 64 61 74 65 20 6d 61 74 65 72 69 61 6c 0d 0a 20 | ...........//.Update.material... |
| 6840 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 | .......................m_fontAss |
| 6860 | 65 74 2e 6d 61 74 65 72 69 61 6c 2e 53 65 74 46 6c 6f 61 74 28 53 68 61 64 65 72 55 74 69 6c 69 | et.material.SetFloat(ShaderUtili |
| 6880 | 74 69 65 73 2e 49 44 5f 54 65 78 74 75 72 65 57 69 64 74 68 2c 20 6d 5f 41 74 6c 61 73 57 69 64 | ties.ID_TextureWidth,.m_AtlasWid |
| 68a0 | 74 68 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | th_prop.intValue);.............. |
| 68c0 | 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 6d 61 74 65 72 69 61 6c | ............m_fontAsset.material |
| 68e0 | 2e 53 65 74 46 6c 6f 61 74 28 53 68 61 64 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 54 65 78 | .SetFloat(ShaderUtilities.ID_Tex |
| 6900 | 74 75 72 65 48 65 69 67 68 74 2c 20 6d 5f 41 74 6c 61 73 48 65 69 67 68 74 5f 70 72 6f 70 2e 69 | tureHeight,.m_AtlasHeight_prop.i |
| 6920 | 6e 74 56 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ntValue);....................... |
| 6940 | 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 6d 61 74 65 72 69 61 6c 2e 53 65 74 46 6c 6f 61 74 | ...m_fontAsset.material.SetFloat |
| 6960 | 28 53 68 61 64 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 47 72 61 64 69 65 6e 74 53 63 61 6c | (ShaderUtilities.ID_GradientScal |
| 6980 | 65 2c 20 6d 5f 41 74 6c 61 73 50 61 64 64 69 6e 67 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 20 | e,.m_AtlasPadding_prop.intValue. |
| 69a0 | 2b 20 31 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | +.1);........................... |
| 69c0 | 20 2f 2f 20 55 70 64 61 74 65 20 6d 61 74 65 72 69 61 6c 20 70 72 65 73 65 74 73 20 69 66 20 61 | .//.Update.material.presets.if.a |
| 69e0 | 6e 79 20 6f 66 20 74 68 65 20 72 65 6c 65 76 61 6e 74 20 70 72 6f 70 65 72 74 69 65 73 20 68 61 | ny.of.the.relevant.properties.ha |
| 6a00 | 76 65 20 62 65 65 6e 20 63 68 61 6e 67 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ve.been.changed................. |
| 6a20 | 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 4d 61 74 65 72 69 61 6c 50 72 65 73 65 74 73 52 | ..........if.(m_MaterialPresetsR |
| 6a40 | 65 71 75 69 72 65 55 70 64 61 74 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | equireUpdate)................... |
| 6a60 | 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .......{........................ |
| 6a80 | 20 20 20 20 20 20 6d 5f 4d 61 74 65 72 69 61 6c 50 72 65 73 65 74 73 52 65 71 75 69 72 65 55 70 | ......m_MaterialPresetsRequireUp |
| 6aa0 | 64 61 74 65 20 3d 20 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | date.=.false;................... |
| 6ac0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 5b 5d 20 6d 61 74 65 72 69 61 6c | .............Material[].material |
| 6ae0 | 50 72 65 73 65 74 73 20 3d 20 54 4d 50 5f 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 46 69 6e 64 | Presets.=.TMP_EditorUtility.Find |
| 6b00 | 4d 61 74 65 72 69 61 6c 52 65 66 65 72 65 6e 63 65 73 28 6d 5f 66 6f 6e 74 41 73 73 65 74 29 3b | MaterialReferences(m_fontAsset); |
| 6b20 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f | ..............................fo |
| 6b40 | 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 61 74 65 72 69 61 6c 50 72 65 73 65 74 | r.(int.i.=.0;.i.<.materialPreset |
| 6b60 | 73 2e 4c 65 6e 67 74 68 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | s.Length;.i++).................. |
| 6b80 | 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ............{................... |
| 6ba0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4d 61 74 65 72 69 61 6c 20 6d 61 74 20 3d 20 6d 61 | ...............Material.mat.=.ma |
| 6bc0 | 74 65 72 69 61 6c 50 72 65 73 65 74 73 5b 69 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | terialPresets[i];............... |
| 6be0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 74 2e 53 65 74 46 6c 6f 61 | .....................mat.SetFloa |
| 6c00 | 74 28 53 68 61 64 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 54 65 78 74 75 72 65 57 69 64 74 | t(ShaderUtilities.ID_TextureWidt |
| 6c20 | 68 2c 20 6d 5f 41 74 6c 61 73 57 69 64 74 68 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 29 3b 0d | h,.m_AtlasWidth_prop.intValue);. |
| 6c40 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| 6c60 | 20 6d 61 74 2e 53 65 74 46 6c 6f 61 74 28 53 68 61 64 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 | .mat.SetFloat(ShaderUtilities.ID |
| 6c80 | 5f 54 65 78 74 75 72 65 48 65 69 67 68 74 2c 20 6d 5f 41 74 6c 61 73 48 65 69 67 68 74 5f 70 72 | _TextureHeight,.m_AtlasHeight_pr |
| 6ca0 | 6f 70 2e 69 6e 74 56 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | op.intValue);................... |
| 6cc0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 61 74 2e 53 65 74 46 6c 6f 61 74 28 53 68 61 64 | ...............mat.SetFloat(Shad |
| 6ce0 | 65 72 55 74 69 6c 69 74 69 65 73 2e 49 44 5f 47 72 61 64 69 65 6e 74 53 63 61 6c 65 2c 20 6d 5f | erUtilities.ID_GradientScale,.m_ |
| 6d00 | 41 74 6c 61 73 50 61 64 64 69 6e 67 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 20 2b 20 31 29 3b | AtlasPadding_prop.intValue.+.1); |
| 6d20 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d | ..............................}. |
| 6d40 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 | .........................}...... |
| 6d60 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 | ......................m_fontAsse |
| 6d80 | 74 2e 43 6c 65 61 72 46 6f 6e 74 41 73 73 65 74 44 61 74 61 28 29 3b 0d 0a 20 20 20 20 20 20 20 | t.ClearFontAssetData();......... |
| 6da0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 74 69 6c 69 74 79 2e 6b 65 79 62 | .................GUIUtility.keyb |
| 6dc0 | 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | oardControl.=.0;................ |
| 6de0 | 20 20 20 20 20 20 20 20 20 20 69 73 41 73 73 65 74 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a | ..........isAssetDirty.=.true;.. |
| 6e00 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 55 70 64 | ..........................//.Upd |
| 6e20 | 61 74 65 20 46 6f 6e 74 20 41 73 73 65 74 20 43 72 65 61 74 69 6f 6e 20 53 65 74 74 69 6e 67 73 | ate.Font.Asset.Creation.Settings |
| 6e40 | 20 74 6f 20 72 65 66 6c 65 63 74 20 6e 65 77 20 63 68 61 6e 67 65 73 2e 0d 0a 20 20 20 20 20 20 | .to.reflect.new.changes......... |
| 6e60 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 70 64 61 74 65 46 6f 6e 74 41 73 73 65 | ..................UpdateFontAsse |
| 6e80 | 74 43 72 65 61 74 69 6f 6e 53 65 74 74 69 6e 67 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | tCreationSettings();............ |
| 6ea0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 4f 44 4f 3a 20 43 6c 65 61 72 20 75 | ................//.TODO:.Clear.u |
| 6ec0 | 6e 64 6f 20 62 75 66 66 65 72 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ndo.buffers..................... |
| 6ee0 | 20 20 20 20 20 20 2f 2f 55 6e 64 6f 2e 43 6c 65 61 72 55 6e 64 6f 28 6d 5f 66 6f 6e 74 41 73 73 | ......//Undo.ClearUndo(m_fontAss |
| 6f00 | 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 | et);......................}..... |
| 6f20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f | ...................if.(GUI.Butto |
| 6f40 | 6e 28 6e 65 77 20 52 65 63 74 28 72 65 63 74 2e 77 69 64 74 68 20 2d 20 35 36 2c 20 72 65 63 74 | n(new.Rect(rect.width.-.56,.rect |
| 6f60 | 2e 79 20 2b 20 33 36 2c 20 38 30 2c 20 31 38 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 | .y.+.36,.80,.18),.new.GUIContent |
| 6f80 | 28 22 52 65 76 65 72 74 22 29 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ("Revert"))).................... |
| 6fa0 | 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 44 | ..{..........................m_D |
| 6fc0 | 69 73 70 6c 61 79 44 65 73 74 72 75 63 74 69 76 65 43 68 61 6e 67 65 57 61 72 6e 69 6e 67 20 3d | isplayDestructiveChangeWarning.= |
| 6fe0 | 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .false;......................... |
| 7000 | 20 52 65 73 74 6f 72 65 41 74 6c 61 73 47 65 6e 65 72 61 74 69 6f 6e 53 65 74 74 69 6e 67 73 28 | .RestoreAtlasGenerationSettings( |
| 7020 | 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 | );..........................GUIU |
| 7040 | 74 69 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 0d 0a 20 | tility.keyboardControl.=.0;..... |
| 7060 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 4f 44 4f 3a 20 | .......................//.TODO:. |
| 7080 | 43 6c 65 61 72 20 75 6e 64 6f 20 62 75 66 66 65 72 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | Clear.undo.buffers.............. |
| 70a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 55 6e 64 6f 2e 43 6c 65 61 72 55 6e 64 6f 28 6d 5f | .............//Undo.ClearUndo(m_ |
| 70c0 | 66 6f 6e 74 41 73 73 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | fontAsset);..................... |
| 70e0 | 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 | .}..................}........... |
| 7100 | 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 29 3b 0d | .......EditorGUILayout.Space();. |
| 7120 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 65 6e 64 | .............}..............#end |
| 7140 | 72 65 67 69 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 54 4c 41 53 20 26 | region................//.ATLAS.& |
| 7160 | 20 4d 41 54 45 52 49 41 4c 20 50 41 4e 45 4c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 72 65 | .MATERIAL.PANEL..............#re |
| 7180 | 67 69 6f 6e 20 41 74 6c 61 73 20 26 20 4d 61 74 65 72 69 61 6c 0d 0a 20 20 20 20 20 20 20 20 20 | gion.Atlas.&.Material........... |
| 71a0 | 20 20 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e | ...rect.=.EditorGUILayout.GetCon |
| 71c0 | 74 72 6f 6c 52 65 63 74 28 66 61 6c 73 65 2c 20 32 34 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | trolRect(false,.24);............ |
| 71e0 | 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 72 65 63 74 2c 20 6e 65 77 20 47 55 49 | ....if.(GUI.Button(rect,.new.GUI |
| 7200 | 43 6f 6e 74 65 6e 74 28 22 3c 62 3e 41 74 6c 61 73 20 26 20 4d 61 74 65 72 69 61 6c 3c 2f 62 3e | Content("<b>Atlas.&.Material</b> |
| 7220 | 22 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 73 65 63 74 69 6f 6e 48 65 | "),.TMP_UIStyleManager.sectionHe |
| 7240 | 61 64 65 72 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 49 5f 50 61 6e 65 6c | ader))..................UI_Panel |
| 7260 | 53 74 61 74 65 2e 66 6f 6e 74 41 74 6c 61 73 49 6e 66 6f 50 61 6e 65 6c 20 3d 20 21 55 49 5f 50 | State.fontAtlasInfoPanel.=.!UI_P |
| 7280 | 61 6e 65 6c 53 74 61 74 65 2e 66 6f 6e 74 41 74 6c 61 73 49 6e 66 6f 50 61 6e 65 6c 3b 0d 0a 0d | anelState.fontAtlasInfoPanel;... |
| 72a0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 72 65 63 74 2c 20 28 55 49 | .............GUI.Label(rect,.(UI |
| 72c0 | 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 6f 6e 74 41 74 6c 61 73 49 6e 66 6f 50 61 6e 65 6c 20 3f | _PanelState.fontAtlasInfoPanel.? |
| 72e0 | 20 22 22 20 3a 20 73 5f 55 69 53 74 61 74 65 4c 61 62 65 6c 5b 31 5d 29 2c 20 54 4d 50 5f 55 49 | ."".:.s_UiStateLabel[1]),.TMP_UI |
| 7300 | 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 72 69 67 68 74 4c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 | StyleManager.rightLabel);....... |
| 7320 | 20 20 20 20 20 20 20 20 20 69 66 20 28 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 6f 6e 74 41 | .........if.(UI_PanelState.fontA |
| 7340 | 74 6c 61 73 49 6e 66 6f 50 61 6e 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 | tlasInfoPanel)..............{... |
| 7360 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c | ...............EditorGUI.indentL |
| 7380 | 65 76 65 6c 20 3d 20 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 | evel.=.1;....................GUI |
| 73a0 | 2e 65 6e 61 62 6c 65 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | .enabled.=.false;............... |
| 73c0 | 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 | ...EditorGUILayout.PropertyField |
| 73e0 | 28 66 6f 6e 74 5f 61 74 6c 61 73 5f 70 72 6f 70 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 | (font_atlas_prop,.new.GUIContent |
| 7400 | 28 22 46 6f 6e 74 20 41 74 6c 61 73 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ("Font.Atlas"));................ |
| 7420 | 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 | ..EditorGUILayout.PropertyField( |
| 7440 | 66 6f 6e 74 5f 6d 61 74 65 72 69 61 6c 5f 70 72 6f 70 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 | font_material_prop,.new.GUIConte |
| 7460 | 6e 74 28 22 46 6f 6e 74 20 4d 61 74 65 72 69 61 6c 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 | nt("Font.Material"));........... |
| 7480 | 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 | .......GUI.enabled.=.true;...... |
| 74a0 | 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 | ............EditorGUILayout.Spac |
| 74c0 | 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | e();..............}............. |
| 74e0 | 20 23 65 6e 64 72 65 67 69 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e | .#endregion................strin |
| 7500 | 67 20 65 76 74 5f 63 6d 64 20 3d 20 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 2e 63 6f 6d 6d 61 6e | g.evt_cmd.=.Event.current.comman |
| 7520 | 64 4e 61 6d 65 3b 20 2f 2f 20 47 65 74 20 43 75 72 72 65 6e 74 20 45 76 65 6e 74 20 43 6f 6d 6d | dName;.//.Get.Current.Event.Comm |
| 7540 | 61 6e 64 4e 61 6d 65 20 74 6f 20 63 68 65 63 6b 20 66 6f 72 20 55 6e 64 6f 20 45 76 65 6e 74 73 | andName.to.check.for.Undo.Events |
| 7560 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 46 4f 4e 54 20 57 45 49 47 48 54 20 50 | ................//.FONT.WEIGHT.P |
| 7580 | 41 4e 45 4c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 72 65 67 69 6f 6e 20 46 6f 6e 74 20 57 | ANEL..............#region.Font.W |
| 75a0 | 65 69 67 68 74 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 20 3d 20 45 64 69 74 6f | eights..............rect.=.Edito |
| 75c0 | 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 66 61 6c 73 65 2c | rGUILayout.GetControlRect(false, |
| 75e0 | 20 32 34 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 | .24);................if.(GUI.But |
| 7600 | 74 6f 6e 28 72 65 63 74 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 3c 62 3e 46 6f 6e | ton(rect,.new.GUIContent("<b>Fon |
| 7620 | 74 20 57 65 69 67 68 74 73 3c 2f 62 3e 22 2c 20 22 54 68 65 20 46 6f 6e 74 20 41 73 73 65 74 73 | t.Weights</b>",."The.Font.Assets |
| 7640 | 20 74 68 61 74 20 77 69 6c 6c 20 62 65 20 75 73 65 64 20 66 6f 72 20 64 69 66 66 65 72 65 6e 74 | .that.will.be.used.for.different |
| 7660 | 20 66 6f 6e 74 20 77 65 69 67 68 74 73 20 61 6e 64 20 74 68 65 20 73 65 74 74 69 6e 67 73 20 75 | .font.weights.and.the.settings.u |
| 7680 | 73 65 64 20 74 6f 20 73 69 6d 75 6c 61 74 65 20 61 20 74 79 70 65 66 61 63 65 20 77 68 65 6e 20 | sed.to.simulate.a.typeface.when. |
| 76a0 | 6e 6f 20 61 73 73 65 74 20 69 73 20 61 76 61 69 6c 61 62 6c 65 2e 22 29 2c 20 54 4d 50 5f 55 49 | no.asset.is.available."),.TMP_UI |
| 76c0 | 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 73 65 63 74 69 6f 6e 48 65 61 64 65 72 29 29 0d 0a 20 20 | StyleManager.sectionHeader)).... |
| 76e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 6f 6e 74 | ..............UI_PanelState.font |
| 7700 | 57 65 69 67 68 74 50 61 6e 65 6c 20 3d 20 21 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 6f 6e | WeightPanel.=.!UI_PanelState.fon |
| 7720 | 74 57 65 69 67 68 74 50 61 6e 65 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 | tWeightPanel;................GUI |
| 7740 | 2e 4c 61 62 65 6c 28 72 65 63 74 2c 20 28 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 6f 6e 74 | .Label(rect,.(UI_PanelState.font |
| 7760 | 57 65 69 67 68 74 50 61 6e 65 6c 20 3f 20 22 22 20 3a 20 73 5f 55 69 53 74 61 74 65 4c 61 62 65 | WeightPanel.?."".:.s_UiStateLabe |
| 7780 | 6c 5b 31 5d 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 72 69 67 68 74 4c | l[1]),.TMP_UIStyleManager.rightL |
| 77a0 | 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 55 49 5f 50 61 6e | abel);................if.(UI_Pan |
| 77c0 | 65 6c 53 74 61 74 65 2e 66 6f 6e 74 57 65 69 67 68 74 50 61 6e 65 6c 29 0d 0a 20 20 20 20 20 20 | elState.fontWeightPanel)........ |
| 77e0 | 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 | ......{..................EditorG |
| 7800 | 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 20 2a 3d 20 30 2e 37 35 66 3b 0d 0a | UIUtility.labelWidth.*=.0.75f;.. |
| 7820 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 | ................EditorGUIUtility |
| 7840 | 2e 66 69 65 6c 64 57 69 64 74 68 20 2a 3d 20 30 2e 32 35 66 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 | .fieldWidth.*=.0.25f;........... |
| 7860 | 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 | .........EditorGUILayout.BeginVe |
| 7880 | 72 74 69 63 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f | rtical();..................Edito |
| 78a0 | 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 | rGUI.indentLevel.=.1;........... |
| 78c0 | 20 20 20 20 20 20 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 | .......rect.=.EditorGUILayout.Ge |
| 78e0 | 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 74 72 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | tControlRect(true);............. |
| 7900 | 20 20 20 20 20 72 65 63 74 2e 78 20 2b 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e | .....rect.x.+=.EditorGUIUtility. |
| 7920 | 6c 61 62 65 6c 57 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 | labelWidth;..................rec |
| 7940 | 74 2e 77 69 64 74 68 20 3d 20 28 72 65 63 74 2e 77 69 64 74 68 20 2d 20 45 64 69 74 6f 72 47 55 | t.width.=.(rect.width.-.EditorGU |
| 7960 | 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 29 20 2f 20 32 66 3b 0d 0a 20 20 20 20 | IUtility.labelWidth)./.2f;...... |
| 7980 | 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 72 65 63 74 2c 20 22 52 65 67 | ............GUI.Label(rect,."Reg |
| 79a0 | 75 6c 61 72 20 54 79 65 70 66 61 63 65 22 2c 20 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 6c 61 62 | ular.Tyepface",.EditorStyles.lab |
| 79c0 | 65 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 78 20 2b 3d 20 | el);..................rect.x.+=. |
| 79e0 | 72 65 63 74 2e 77 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 | rect.width;..................GUI |
| 7a00 | 2e 4c 61 62 65 6c 28 72 65 63 74 2c 20 22 49 74 61 6c 69 63 20 54 79 70 65 66 61 63 65 22 2c 20 | .Label(rect,."Italic.Typeface",. |
| 7a20 | 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 6c 61 62 65 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | EditorStyles.label);............ |
| 7a40 | 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 | ........................EditorGU |
| 7a60 | 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | I.indentLevel.=.1;.............. |
| 7a80 | 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 | ......EditorGUILayout.PropertyFi |
| 7aa0 | 65 6c 64 28 66 6f 6e 74 57 65 69 67 68 74 73 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 | eld(fontWeights_prop.GetArrayEle |
| 7ac0 | 6d 65 6e 74 41 74 49 6e 64 65 78 28 31 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 | mentAtIndex(1),.new.GUIContent(" |
| 7ae0 | 31 30 30 20 2d 20 54 68 69 6e 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | 100.-.Thin"));.................. |
| 7b00 | 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 66 6f | EditorGUILayout.PropertyField(fo |
| 7b20 | 6e 74 57 65 69 67 68 74 73 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 | ntWeights_prop.GetArrayElementAt |
| 7b40 | 49 6e 64 65 78 28 32 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 32 30 30 20 2d 20 | Index(2),.new.GUIContent("200.-. |
| 7b60 | 45 78 74 72 61 2d 4c 69 67 68 74 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Extra-Light"));................. |
| 7b80 | 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 66 | .EditorGUILayout.PropertyField(f |
| 7ba0 | 6f 6e 74 57 65 69 67 68 74 73 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 | ontWeights_prop.GetArrayElementA |
| 7bc0 | 74 49 6e 64 65 78 28 33 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 33 30 30 20 2d | tIndex(3),.new.GUIContent("300.- |
| 7be0 | 20 4c 69 67 68 74 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 | .Light"));..................Edit |
| 7c00 | 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 66 6f 6e 74 57 65 | orGUILayout.PropertyField(fontWe |
| 7c20 | 69 67 68 74 73 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 | ights_prop.GetArrayElementAtInde |
| 7c40 | 78 28 34 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 34 30 30 20 2d 20 52 65 67 75 | x(4),.new.GUIContent("400.-.Regu |
| 7c60 | 6c 61 72 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 | lar"));..................EditorG |
| 7c80 | 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 66 6f 6e 74 57 65 69 67 68 | UILayout.PropertyField(fontWeigh |
| 7ca0 | 74 73 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 35 | ts_prop.GetArrayElementAtIndex(5 |
| 7cc0 | 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 35 30 30 20 2d 20 4d 65 64 69 75 6d 22 | ),.new.GUIContent("500.-.Medium" |
| 7ce0 | 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 | ));..................EditorGUILa |
| 7d00 | 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 66 6f 6e 74 57 65 69 67 68 74 73 5f 70 | yout.PropertyField(fontWeights_p |
| 7d20 | 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 36 29 2c 20 6e | rop.GetArrayElementAtIndex(6),.n |
| 7d40 | 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 36 30 30 20 2d 20 53 65 6d 69 2d 42 6f 6c 64 22 29 | ew.GUIContent("600.-.Semi-Bold") |
| 7d60 | 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 | );..................EditorGUILay |
| 7d80 | 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 66 6f 6e 74 57 65 69 67 68 74 73 5f 70 72 | out.PropertyField(fontWeights_pr |
| 7da0 | 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 37 29 2c 20 6e 65 | op.GetArrayElementAtIndex(7),.ne |
| 7dc0 | 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 37 30 30 20 2d 20 42 6f 6c 64 22 29 29 3b 0d 0a 20 20 | w.GUIContent("700.-.Bold"));.... |
| 7de0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 | ..............EditorGUILayout.Pr |
| 7e00 | 6f 70 65 72 74 79 46 69 65 6c 64 28 66 6f 6e 74 57 65 69 67 68 74 73 5f 70 72 6f 70 2e 47 65 74 | opertyField(fontWeights_prop.Get |
| 7e20 | 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 38 29 2c 20 6e 65 77 20 47 55 49 43 | ArrayElementAtIndex(8),.new.GUIC |
| 7e40 | 6f 6e 74 65 6e 74 28 22 38 30 30 20 2d 20 48 65 61 76 79 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 | ontent("800.-.Heavy"));......... |
| 7e60 | 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 | .........EditorGUILayout.Propert |
| 7e80 | 79 46 69 65 6c 64 28 66 6f 6e 74 57 65 69 67 68 74 73 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 | yField(fontWeights_prop.GetArray |
| 7ea0 | 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 39 29 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e | ElementAtIndex(9),.new.GUIConten |
| 7ec0 | 74 28 22 39 30 30 20 2d 20 42 6c 61 63 6b 22 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | t("900.-.Black"));.............. |
| 7ee0 | 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 | ......EditorGUILayout.EndVertica |
| 7f00 | 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 | l();....................EditorGU |
| 7f20 | 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ILayout.Space();................ |
| 7f40 | 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 | ....EditorGUILayout.BeginVertica |
| 7f60 | 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 | l();....................EditorGU |
| 7f80 | 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 | ILayout.BeginHorizontal();...... |
| 7fa0 | 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 | ............EditorGUILayout.Prop |
| 7fc0 | 65 72 74 79 46 69 65 6c 64 28 66 6f 6e 74 5f 6e 6f 72 6d 61 6c 53 74 79 6c 65 5f 70 72 6f 70 2c | ertyField(font_normalStyle_prop, |
| 7fe0 | 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4e 6f 72 6d 61 6c 20 57 65 69 67 68 74 22 29 | .new.GUIContent("Normal.Weight") |
| 8000 | 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 5f 6e 6f 72 6d 61 6c 53 | );..................font_normalS |
| 8020 | 74 79 6c 65 5f 70 72 6f 70 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 4d 61 74 68 66 2e 43 6c 61 | tyle_prop.floatValue.=.Mathf.Cla |
| 8040 | 6d 70 28 66 6f 6e 74 5f 6e 6f 72 6d 61 6c 53 74 79 6c 65 5f 70 72 6f 70 2e 66 6c 6f 61 74 56 61 | mp(font_normalStyle_prop.floatVa |
| 8060 | 6c 75 65 2c 20 2d 33 2e 30 66 2c 20 33 2e 30 66 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | lue,.-3.0f,.3.0f);.............. |
| 8080 | 20 20 20 20 69 66 20 28 47 55 49 2e 63 68 61 6e 67 65 64 20 7c 7c 20 65 76 74 5f 63 6d 64 20 3d | ....if.(GUI.changed.||.evt_cmd.= |
| 80a0 | 3d 20 6b 5f 55 6e 64 6f 52 65 64 6f 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b | =.k_UndoRedo)..................{ |
| 80c0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 63 68 61 6e 67 65 | ......................GUI.change |
| 80e0 | 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | d.=.false;...................... |
| 8100 | 20 20 2f 2f 20 4d 6f 64 69 66 79 20 74 68 65 20 6d 61 74 65 72 69 61 6c 20 70 72 6f 70 65 72 74 | ..//.Modify.the.material.propert |
| 8120 | 79 20 6f 6e 20 6d 61 74 63 68 69 6e 67 20 6d 61 74 65 72 69 61 6c 20 70 72 65 73 65 74 73 2e 0d | y.on.matching.material.presets.. |
| 8140 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 | .....................for.(int.i. |
| 8160 | 3d 20 30 3b 20 69 20 3c 20 6d 5f 6d 61 74 65 72 69 61 6c 50 72 65 73 65 74 73 2e 4c 65 6e 67 74 | =.0;.i.<.m_materialPresets.Lengt |
| 8180 | 68 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | h;.i++)......................... |
| 81a0 | 20 6d 5f 6d 61 74 65 72 69 61 6c 50 72 65 73 65 74 73 5b 69 5d 2e 53 65 74 46 6c 6f 61 74 28 22 | .m_materialPresets[i].SetFloat(" |
| 81c0 | 5f 57 65 69 67 68 74 4e 6f 72 6d 61 6c 22 2c 20 66 6f 6e 74 5f 6e 6f 72 6d 61 6c 53 74 79 6c 65 | _WeightNormal",.font_normalStyle |
| 81e0 | 5f 70 72 6f 70 2e 66 6c 6f 61 74 56 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | _prop.floatValue);.............. |
| 8200 | 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 | ....}....................EditorG |
| 8220 | 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 66 6f 6e 74 5f 62 6f 6c 64 | UILayout.PropertyField(font_bold |
| 8240 | 53 74 79 6c 65 5f 70 72 6f 70 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 42 6f 6c 64 | Style_prop,.new.GUIContent("Bold |
| 8260 | 20 57 65 69 67 68 74 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e | .Weight"));..................fon |
| 8280 | 74 5f 62 6f 6c 64 53 74 79 6c 65 5f 70 72 6f 70 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 4d 61 | t_boldStyle_prop.floatValue.=.Ma |
| 82a0 | 74 68 66 2e 43 6c 61 6d 70 28 66 6f 6e 74 5f 62 6f 6c 64 53 74 79 6c 65 5f 70 72 6f 70 2e 66 6c | thf.Clamp(font_boldStyle_prop.fl |
| 82c0 | 6f 61 74 56 61 6c 75 65 2c 20 2d 33 2e 30 66 2c 20 33 2e 30 66 29 3b 0d 0a 20 20 20 20 20 20 20 | oatValue,.-3.0f,.3.0f);......... |
| 82e0 | 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 63 68 61 6e 67 65 64 20 7c 7c 20 65 76 74 5f | .........if.(GUI.changed.||.evt_ |
| 8300 | 63 6d 64 20 3d 3d 20 6b 5f 55 6e 64 6f 52 65 64 6f 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | cmd.==.k_UndoRedo).............. |
| 8320 | 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 63 | ....{......................GUI.c |
| 8340 | 68 61 6e 67 65 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | hanged.=.false;................. |
| 8360 | 20 20 20 20 20 20 20 2f 2f 20 4d 6f 64 69 66 79 20 74 68 65 20 6d 61 74 65 72 69 61 6c 20 70 72 | .......//.Modify.the.material.pr |
| 8380 | 6f 70 65 72 74 79 20 6f 6e 20 6d 61 74 63 68 69 6e 67 20 6d 61 74 65 72 69 61 6c 20 70 72 65 73 | operty.on.matching.material.pres |
| 83a0 | 65 74 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 | ets.......................for.(i |
| 83c0 | 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d 5f 6d 61 74 65 72 69 61 6c 50 72 65 73 65 74 73 2e | nt.i.=.0;.i.<.m_materialPresets. |
| 83e0 | 4c 65 6e 67 74 68 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Length;.i++).................... |
| 8400 | 20 20 20 20 20 20 6d 5f 6d 61 74 65 72 69 61 6c 50 72 65 73 65 74 73 5b 69 5d 2e 53 65 74 46 6c | ......m_materialPresets[i].SetFl |
| 8420 | 6f 61 74 28 22 5f 57 65 69 67 68 74 42 6f 6c 64 22 2c 20 66 6f 6e 74 5f 62 6f 6c 64 53 74 79 6c | oat("_WeightBold",.font_boldStyl |
| 8440 | 65 5f 70 72 6f 70 2e 66 6c 6f 61 74 56 61 6c 75 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | e_prop.floatValue);............. |
| 8460 | 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 | .....}..................EditorGU |
| 8480 | 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 | ILayout.EndHorizontal();........ |
| 84a0 | 20 20 20 20 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 | ............................Edit |
| 84c0 | 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a | orGUILayout.BeginHorizontal();.. |
| 84e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e | ................EditorGUILayout. |
| 8500 | 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 66 6f 6e 74 5f 6e 6f 72 6d 61 6c 53 70 61 63 69 6e 67 | PropertyField(font_normalSpacing |
| 8520 | 5f 70 72 6f 70 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 53 70 61 63 69 6e 67 20 4f | _prop,.new.GUIContent("Spacing.O |
| 8540 | 66 66 73 65 74 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 5f | ffset"));..................font_ |
| 8560 | 6e 6f 72 6d 61 6c 53 70 61 63 69 6e 67 5f 70 72 6f 70 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 | normalSpacing_prop.floatValue.=. |
| 8580 | 4d 61 74 68 66 2e 43 6c 61 6d 70 28 66 6f 6e 74 5f 6e 6f 72 6d 61 6c 53 70 61 63 69 6e 67 5f 70 | Mathf.Clamp(font_normalSpacing_p |
| 85a0 | 72 6f 70 2e 66 6c 6f 61 74 56 61 6c 75 65 2c 20 2d 31 30 30 2c 20 31 30 30 29 3b 0d 0a 20 20 20 | rop.floatValue,.-100,.100);..... |
| 85c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 63 68 61 6e 67 65 64 20 7c 7c 20 | .............if.(GUI.changed.||. |
| 85e0 | 65 76 74 5f 63 6d 64 20 3d 3d 20 6b 5f 55 6e 64 6f 52 65 64 6f 29 0d 0a 20 20 20 20 20 20 20 20 | evt_cmd.==.k_UndoRedo).......... |
| 8600 | 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 | ........{......................G |
| 8620 | 55 49 2e 63 68 61 6e 67 65 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | UI.changed.=.false;............. |
| 8640 | 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 | .....}....................Editor |
| 8660 | 47 55 49 4c 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 66 6f 6e 74 5f 62 6f 6c | GUILayout.PropertyField(font_bol |
| 8680 | 64 53 70 61 63 69 6e 67 5f 70 72 6f 70 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 42 | dSpacing_prop,.new.GUIContent("B |
| 86a0 | 6f 6c 64 20 53 70 61 63 69 6e 67 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | old.Spacing"));................. |
| 86c0 | 20 66 6f 6e 74 5f 62 6f 6c 64 53 70 61 63 69 6e 67 5f 70 72 6f 70 2e 66 6c 6f 61 74 56 61 6c 75 | .font_boldSpacing_prop.floatValu |
| 86e0 | 65 20 3d 20 4d 61 74 68 66 2e 43 6c 61 6d 70 28 66 6f 6e 74 5f 62 6f 6c 64 53 70 61 63 69 6e 67 | e.=.Mathf.Clamp(font_boldSpacing |
| 8700 | 5f 70 72 6f 70 2e 66 6c 6f 61 74 56 61 6c 75 65 2c 20 30 2c 20 31 30 30 29 3b 0d 0a 20 20 20 20 | _prop.floatValue,.0,.100);...... |
| 8720 | 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 63 68 61 6e 67 65 64 20 7c 7c 20 65 | ............if.(GUI.changed.||.e |
| 8740 | 76 74 5f 63 6d 64 20 3d 3d 20 6b 5f 55 6e 64 6f 52 65 64 6f 29 0d 0a 20 20 20 20 20 20 20 20 20 | vt_cmd.==.k_UndoRedo)........... |
| 8760 | 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 | .......{......................GU |
| 8780 | 49 2e 63 68 61 6e 67 65 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | I.changed.=.false;.............. |
| 87a0 | 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 | ....}..................EditorGUI |
| 87c0 | 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 | Layout.EndHorizontal();......... |
| 87e0 | 20 20 20 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f | ...........................Edito |
| 8800 | 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 | rGUILayout.BeginHorizontal();... |
| 8820 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 | ...............EditorGUILayout.P |
| 8840 | 72 6f 70 65 72 74 79 46 69 65 6c 64 28 66 6f 6e 74 5f 69 74 61 6c 69 63 53 74 79 6c 65 5f 70 72 | ropertyField(font_italicStyle_pr |
| 8860 | 6f 70 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 49 74 61 6c 69 63 20 53 74 79 6c 65 | op,.new.GUIContent("Italic.Style |
| 8880 | 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 5f 69 74 61 6c 69 | "));..................font_itali |
| 88a0 | 63 53 74 79 6c 65 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 20 3d 20 4d 61 74 68 66 2e 43 6c 61 | cStyle_prop.intValue.=.Mathf.Cla |
| 88c0 | 6d 70 28 66 6f 6e 74 5f 69 74 61 6c 69 63 53 74 79 6c 65 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 | mp(font_italicStyle_prop.intValu |
| 88e0 | 65 2c 20 31 35 2c 20 36 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0d 0a 20 | e,.15,.60);..................... |
| 8900 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 50 | ...............EditorGUILayout.P |
| 8920 | 72 6f 70 65 72 74 79 46 69 65 6c 64 28 66 6f 6e 74 5f 74 61 62 53 69 7a 65 5f 70 72 6f 70 2c 20 | ropertyField(font_tabSize_prop,. |
| 8940 | 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 54 61 62 20 4d 75 6c 74 69 70 6c 65 22 29 29 3b | new.GUIContent("Tab.Multiple")); |
| 8960 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 | ..................EditorGUILayou |
| 8980 | 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | t.EndHorizontal();.............. |
| 89a0 | 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 | ....EditorGUILayout.EndVertical( |
| 89c0 | 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 | );..................EditorGUILay |
| 89e0 | 6f 75 74 2e 53 70 61 63 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 | out.Space();..............}..... |
| 8a00 | 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 | ...........EditorGUIUtility.labe |
| 8a20 | 6c 57 69 64 74 68 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 | lWidth.=.0;..............EditorG |
| 8a40 | 55 49 55 74 69 6c 69 74 79 2e 66 69 65 6c 64 57 69 64 74 68 20 3d 20 30 3b 0d 0a 20 20 20 20 20 | UIUtility.fieldWidth.=.0;....... |
| 8a60 | 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 69 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | .......#endregion............... |
| 8a80 | 20 2f 2f 20 46 41 4c 4c 42 41 43 4b 20 46 4f 4e 54 20 41 53 53 45 54 53 0d 0a 20 20 20 20 20 20 | .//.FALLBACK.FONT.ASSETS........ |
| 8aa0 | 20 20 20 20 20 20 23 72 65 67 69 6f 6e 20 46 61 6c 6c 62 61 63 6b 20 46 6f 6e 74 20 41 73 73 65 | ......#region.Fallback.Font.Asse |
| 8ac0 | 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c | t..............rect.=.EditorGUIL |
| 8ae0 | 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 66 61 6c 73 65 2c 20 32 34 29 3b | ayout.GetControlRect(false,.24); |
| 8b00 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 | ..............EditorGUI.indentLe |
| 8b20 | 76 65 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 | vel.=.0;..............if.(GUI.Bu |
| 8b40 | 74 74 6f 6e 28 72 65 63 74 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 3c 62 3e 46 61 | tton(rect,.new.GUIContent("<b>Fa |
| 8b60 | 6c 6c 62 61 63 6b 20 46 6f 6e 74 20 41 73 73 65 74 73 3c 2f 62 3e 22 2c 20 22 53 65 6c 65 63 74 | llback.Font.Assets</b>",."Select |
| 8b80 | 20 74 68 65 20 46 6f 6e 74 20 41 73 73 65 74 73 20 74 68 61 74 20 77 69 6c 6c 20 62 65 20 73 65 | .the.Font.Assets.that.will.be.se |
| 8ba0 | 61 72 63 68 65 64 20 61 6e 64 20 75 73 65 64 20 61 73 20 66 61 6c 6c 62 61 63 6b 20 77 68 65 6e | arched.and.used.as.fallback.when |
| 8bc0 | 20 63 68 61 72 61 63 74 65 72 73 20 61 72 65 20 6d 69 73 73 69 6e 67 20 66 72 6f 6d 20 74 68 69 | .characters.are.missing.from.thi |
| 8be0 | 73 20 66 6f 6e 74 20 61 73 73 65 74 2e 22 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 | s.font.asset."),.TMP_UIStyleMana |
| 8c00 | 67 65 72 2e 73 65 63 74 69 6f 6e 48 65 61 64 65 72 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ger.sectionHeader))............. |
| 8c20 | 20 20 20 20 20 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 61 6c 6c 62 61 63 6b 46 6f 6e 74 41 | .....UI_PanelState.fallbackFontA |
| 8c40 | 73 73 65 74 50 61 6e 65 6c 20 3d 20 21 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 61 6c 6c 62 | ssetPanel.=.!UI_PanelState.fallb |
| 8c60 | 61 63 6b 46 6f 6e 74 41 73 73 65 74 50 61 6e 65 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | ackFontAssetPanel;.............. |
| 8c80 | 20 20 47 55 49 2e 4c 61 62 65 6c 28 72 65 63 74 2c 20 28 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 | ..GUI.Label(rect,.(UI_PanelState |
| 8ca0 | 2e 66 61 6c 6c 62 61 63 6b 46 6f 6e 74 41 73 73 65 74 50 61 6e 65 6c 20 3f 20 22 22 20 3a 20 73 | .fallbackFontAssetPanel.?."".:.s |
| 8cc0 | 5f 55 69 53 74 61 74 65 4c 61 62 65 6c 5b 31 5d 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 | _UiStateLabel[1]),.TMP_UIStyleMa |
| 8ce0 | 6e 61 67 65 72 2e 72 69 67 68 74 4c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | nager.rightLabel);.............. |
| 8d00 | 20 20 69 66 20 28 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 61 6c 6c 62 61 63 6b 46 6f 6e 74 | ..if.(UI_PanelState.fallbackFont |
| 8d20 | 41 73 73 65 74 50 61 6e 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 | AssetPanel)..............{...... |
| 8d40 | 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 | ............EditorGUIUtility.lab |
| 8d60 | 65 6c 57 69 64 74 68 20 3d 20 31 32 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | elWidth.=.120;.................. |
| 8d80 | 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 30 3b 0d 0a 0d 0a 20 20 | EditorGUI.indentLevel.=.0;...... |
| 8da0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 6c 69 73 74 2e 44 6f 4c 61 79 6f 75 74 4c 69 73 | ..............m_list.DoLayoutLis |
| 8dc0 | 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c | t();..................EditorGUIL |
| 8de0 | 61 79 6f 75 74 2e 53 70 61 63 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 | ayout.Space();..............}... |
| 8e00 | 20 20 20 20 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 69 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 | ...........#endregion........... |
| 8e20 | 20 20 20 20 20 2f 2f 20 43 48 41 52 41 43 54 45 52 20 54 41 42 4c 45 20 54 41 42 4c 45 0d 0a 20 | .....//.CHARACTER.TABLE.TABLE... |
| 8e40 | 20 20 20 20 20 20 20 20 20 20 20 23 72 65 67 69 6f 6e 20 43 68 61 72 61 63 74 65 72 20 54 61 62 | ...........#region.Character.Tab |
| 8e60 | 6c 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 | le..............EditorGUIUtility |
| 8e80 | 2e 6c 61 62 65 6c 57 69 64 74 68 20 3d 20 6c 61 62 65 6c 57 69 64 74 68 3b 0d 0a 20 20 20 20 20 | .labelWidth.=.labelWidth;....... |
| 8ea0 | 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 66 69 65 6c 64 57 69 64 | .......EditorGUIUtility.fieldWid |
| 8ec0 | 74 68 20 3d 20 66 69 65 6c 64 57 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 | th.=.fieldWidth;..............Ed |
| 8ee0 | 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 | itorGUI.indentLevel.=.0;........ |
| 8f00 | 20 20 20 20 20 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 | ......rect.=.EditorGUILayout.Get |
| 8f20 | 43 6f 6e 74 72 6f 6c 52 65 63 74 28 66 61 6c 73 65 2c 20 32 34 29 3b 0d 0a 0d 0a 20 20 20 20 20 | ControlRect(false,.24);......... |
| 8f40 | 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 72 65 63 74 2c 20 6e 65 77 20 | .......if.(GUI.Button(rect,.new. |
| 8f60 | 47 55 49 43 6f 6e 74 65 6e 74 28 22 3c 62 3e 43 68 61 72 61 63 74 65 72 20 54 61 62 6c 65 3c 2f | GUIContent("<b>Character.Table</ |
| 8f80 | 62 3e 22 2c 20 22 4c 69 73 74 20 6f 66 20 63 68 61 72 61 63 74 65 72 73 20 63 6f 6e 74 61 69 6e | b>",."List.of.characters.contain |
| 8fa0 | 65 64 20 69 6e 20 74 68 69 73 20 66 6f 6e 74 20 61 73 73 65 74 2e 22 29 2c 20 54 4d 50 5f 55 49 | ed.in.this.font.asset."),.TMP_UI |
| 8fc0 | 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 73 65 63 74 69 6f 6e 48 65 61 64 65 72 29 29 20 0d 0a 20 | StyleManager.sectionHeader)).... |
| 8fe0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 63 68 61 | ...............UI_PanelState.cha |
| 9000 | 72 61 63 74 65 72 54 61 62 6c 65 50 61 6e 65 6c 20 3d 20 21 55 49 5f 50 61 6e 65 6c 53 74 61 74 | racterTablePanel.=.!UI_PanelStat |
| 9020 | 65 2e 63 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 61 6e 65 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 | e.characterTablePanel;.......... |
| 9040 | 20 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 72 65 63 74 2c 20 28 55 49 5f 50 61 6e 65 6c 53 | ......GUI.Label(rect,.(UI_PanelS |
| 9060 | 74 61 74 65 2e 63 68 61 72 61 63 74 65 72 54 61 62 6c 65 50 61 6e 65 6c 20 3f 20 22 22 20 3a 20 | tate.characterTablePanel.?."".:. |
| 9080 | 73 5f 55 69 53 74 61 74 65 4c 61 62 65 6c 5b 31 5d 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d | s_UiStateLabel[1]),.TMP_UIStyleM |
| 90a0 | 61 6e 61 67 65 72 2e 72 69 67 68 74 4c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 | anager.rightLabel);............. |
| 90c0 | 20 20 20 69 66 20 28 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 63 68 61 72 61 63 74 65 72 54 61 | ...if.(UI_PanelState.characterTa |
| 90e0 | 62 6c 65 50 61 6e 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 | blePanel)..............{........ |
| 9100 | 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 61 72 72 61 79 53 69 7a 65 20 3d 20 6d 5f 43 68 61 72 | ..........int.arraySize.=.m_Char |
| 9120 | 61 63 74 65 72 54 61 62 6c 65 5f 70 72 6f 70 2e 61 72 72 61 79 53 69 7a 65 3b 0d 0a 20 20 20 20 | acterTable_prop.arraySize;...... |
| 9140 | 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 3d 20 31 | ............int.itemsPerPage.=.1 |
| 9160 | 35 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 69 73 70 6c 61 79 | 5;....................//.Display |
| 9180 | 20 47 6c 79 70 68 20 4d 61 6e 61 67 65 6d 65 6e 74 20 54 6f 6f 6c 73 0d 0a 20 20 20 20 20 20 20 | .Glyph.Management.Tools......... |
| 91a0 | 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 | .........EditorGUILayout.BeginVe |
| 91c0 | 72 74 69 63 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 68 65 6c 70 42 6f 78 29 3b 0d 0a 20 | rtical(EditorStyles.helpBox);... |
| 91e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...............{................ |
| 9200 | 20 20 20 20 20 20 2f 2f 20 53 65 61 72 63 68 20 42 61 72 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 | ......//.Search.Bar.implementati |
| 9220 | 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 23 72 65 67 69 6f 6e 20 | on......................#region. |
| 9240 | 44 49 53 50 4c 41 59 20 53 45 41 52 43 48 20 42 41 52 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | DISPLAY.SEARCH.BAR.............. |
| 9260 | 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 | ........EditorGUILayout.BeginHor |
| 9280 | 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | izontal();...................... |
| 92a0 | 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f | {..........................Edito |
| 92c0 | 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 20 3d 20 31 33 30 66 3b 0d 0a | rGUIUtility.labelWidth.=.130f;.. |
| 92e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 | ........................EditorGU |
| 9300 | 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 | I.BeginChangeCheck();........... |
| 9320 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 73 65 61 72 63 68 50 61 74 74 | ...............string.searchPatt |
| 9340 | 65 72 6e 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 54 65 78 74 46 69 65 6c 64 28 | ern.=.EditorGUILayout.TextField( |
| 9360 | 22 43 68 61 72 61 63 74 65 72 20 53 65 61 72 63 68 22 2c 20 6d 5f 43 68 61 72 61 63 74 65 72 53 | "Character.Search",.m_CharacterS |
| 9380 | 65 61 72 63 68 50 61 74 74 65 72 6e 2c 20 22 53 65 61 72 63 68 54 65 78 74 46 69 65 6c 64 22 29 | earchPattern,."SearchTextField") |
| 93a0 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 | ;..........................if.(E |
| 93c0 | 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 20 7c 7c 20 6d 5f 69 | ditorGUI.EndChangeCheck().||.m_i |
| 93e0 | 73 53 65 61 72 63 68 44 69 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | sSearchDirty)................... |
| 9400 | 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .......{........................ |
| 9420 | 20 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 73 | ......if.(string.IsNullOrEmpty(s |
| 9440 | 65 61 72 63 68 50 61 74 74 65 72 6e 29 20 3d 3d 20 66 61 6c 73 65 29 0d 0a 20 20 20 20 20 20 20 | earchPattern).==.false)......... |
| 9460 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 | .....................{.......... |
| 9480 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 68 61 72 61 63 | ........................m_Charac |
| 94a0 | 74 65 72 53 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 73 65 61 72 63 68 50 61 74 74 65 72 6e | terSearchPattern.=.searchPattern |
| 94c0 | 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ;............................... |
| 94e0 | 20 20 20 20 20 2f 2f 20 53 65 61 72 63 68 20 43 68 61 72 61 63 74 65 72 20 54 61 62 6c 65 20 66 | .....//.Search.Character.Table.f |
| 9500 | 6f 72 20 70 6f 74 65 6e 74 69 61 6c 20 6d 61 74 63 68 65 73 0d 0a 20 20 20 20 20 20 20 20 20 20 | or.potential.matches............ |
| 9520 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 61 72 63 68 43 68 61 72 | ......................SearchChar |
| 9540 | 61 63 74 65 72 54 61 62 6c 65 20 28 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 50 61 74 | acterTable.(m_CharacterSearchPat |
| 9560 | 74 65 72 6e 2c 20 72 65 66 20 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 4c 69 73 74 29 | tern,.ref.m_CharacterSearchList) |
| 9580 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d | ;..............................} |
| 95a0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c | ..............................el |
| 95c0 | 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | se.............................. |
| 95e0 | 20 20 20 20 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 6e | ....m_CharacterSearchPattern.=.n |
| 9600 | 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ull;............................ |
| 9620 | 20 20 20 20 6d 5f 69 73 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 | ....m_isSearchDirty.=.false;.... |
| 9640 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 | ......................}......... |
| 9660 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 73 74 79 6c 65 4e | ...................string.styleN |
| 9680 | 61 6d 65 20 3d 20 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 43 68 61 | ame.=.string.IsNullOrEmpty(m_Cha |
| 96a0 | 72 61 63 74 65 72 53 65 61 72 63 68 50 61 74 74 65 72 6e 29 20 3f 20 22 53 65 61 72 63 68 43 61 | racterSearchPattern).?."SearchCa |
| 96c0 | 6e 63 65 6c 42 75 74 74 6f 6e 45 6d 70 74 79 22 20 3a 20 22 53 65 61 72 63 68 43 61 6e 63 65 6c | ncelButtonEmpty".:."SearchCancel |
| 96e0 | 42 75 74 74 6f 6e 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Button";........................ |
| 9700 | 20 20 69 66 20 28 47 55 49 4c 61 79 6f 75 74 2e 42 75 74 74 6f 6e 28 47 55 49 43 6f 6e 74 65 6e | ..if.(GUILayout.Button(GUIConten |
| 9720 | 74 2e 6e 6f 6e 65 2c 20 73 74 79 6c 65 4e 61 6d 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | t.none,.styleName))............. |
| 9740 | 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .............{.................. |
| 9760 | 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 74 69 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 | ............GUIUtility.keyboardC |
| 9780 | 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ontrol.=.0;..................... |
| 97a0 | 20 20 20 20 20 20 20 20 20 6d 5f 43 68 61 72 61 63 74 65 72 53 65 61 72 63 68 50 61 74 74 65 72 | .........m_CharacterSearchPatter |
| 97c0 | 6e 20 3d 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | n.=.string.Empty;............... |
| 97e0 | 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...........}.................... |
| 9800 | 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 | ..}......................EditorG |
| 9820 | 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 | UILayout.EndHorizontal();....... |
| 9840 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 69 6f 6e 0d 0a 0d 0a 20 20 20 | ...............#endregion....... |
| 9860 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 69 73 70 6c 61 79 20 50 61 67 65 | .................//.Display.Page |
| 9880 | 20 4e 61 76 69 67 61 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .Navigation..................... |
| 98a0 | 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 43 68 61 | .if.(!string.IsNullOrEmpty(m_Cha |
| 98c0 | 72 61 63 74 65 72 53 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 | racterSearchPattern))........... |
| 98e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 72 72 61 79 53 69 7a 65 20 3d 20 6d 5f 43 68 61 | ...............arraySize.=.m_Cha |
| 9900 | 72 61 63 74 65 72 53 65 61 72 63 68 4c 69 73 74 2e 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 | racterSearchList.Count;......... |
| 9920 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 69 73 70 6c 61 79 50 61 67 65 4e 61 76 69 67 61 | ...............DisplayPageNaviga |
| 9940 | 74 69 6f 6e 28 72 65 66 20 6d 5f 43 75 72 72 65 6e 74 43 68 61 72 61 63 74 65 72 50 61 67 65 2c | tion(ref.m_CurrentCharacterPage, |
| 9960 | 20 61 72 72 61 79 53 69 7a 65 2c 20 69 74 65 6d 73 50 65 72 50 61 67 65 29 3b 0d 0a 20 20 20 20 | .arraySize,.itemsPerPage);...... |
| 9980 | 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 | ............}..................E |
| 99a0 | 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 0d | ditorGUILayout.EndVertical();... |
| 99c0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 69 73 70 6c 61 79 20 43 68 61 72 | .................//.Display.Char |
| 99e0 | 61 63 74 65 72 20 54 61 62 6c 65 20 45 6c 65 6d 65 6e 74 73 0d 0a 20 20 20 20 20 20 20 20 20 20 | acter.Table.Elements............ |
| 9a00 | 20 20 20 20 20 20 69 66 20 28 61 72 72 61 79 53 69 7a 65 20 3e 20 30 29 0d 0a 20 20 20 20 20 20 | ......if.(arraySize.>.0)........ |
| 9a20 | 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..........{..................... |
| 9a40 | 20 2f 2f 20 44 69 73 70 6c 61 79 20 65 61 63 68 20 63 68 61 72 61 63 74 65 72 20 65 6e 74 72 79 | .//.Display.each.character.entry |
| 9a60 | 20 75 73 69 6e 67 20 74 68 65 20 43 68 61 72 61 63 74 65 72 50 72 6f 70 65 72 74 79 44 72 61 77 | .using.the.CharacterPropertyDraw |
| 9a80 | 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e | er.......................for.(in |
| 9aa0 | 74 20 69 20 3d 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 2a 20 6d 5f 43 75 72 72 65 6e 74 43 68 | t.i.=.itemsPerPage.*.m_CurrentCh |
| 9ac0 | 61 72 61 63 74 65 72 50 61 67 65 3b 20 69 20 3c 20 61 72 72 61 79 53 69 7a 65 20 26 26 20 69 20 | aracterPage;.i.<.arraySize.&&.i. |
| 9ae0 | 3c 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 2a 20 28 6d 5f 43 75 72 72 65 6e 74 43 68 61 72 61 | <.itemsPerPage.*.(m_CurrentChara |
| 9b00 | 63 74 65 72 50 61 67 65 20 2b 20 31 29 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | cterPage.+.1);.i++)............. |
| 9b20 | 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .........{...................... |
| 9b40 | 20 20 20 20 2f 2f 20 44 65 66 69 6e 65 20 74 68 65 20 73 74 61 72 74 20 6f 66 20 74 68 65 20 73 | ....//.Define.the.start.of.the.s |
| 9b60 | 65 6c 65 63 74 69 6f 6e 20 72 65 67 69 6f 6e 20 6f 66 20 74 68 65 20 65 6c 65 6d 65 6e 74 2e 0d | election.region.of.the.element.. |
| 9b80 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 65 6c | .........................Rect.el |
| 9ba0 | 65 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 20 3d 20 47 55 49 4c 61 79 6f 75 74 55 74 69 6c | ementStartRegion.=.GUILayoutUtil |
| 9bc0 | 69 74 79 2e 47 65 74 52 65 63 74 28 30 66 2c 20 30 66 2c 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 | ity.GetRect(0f,.0f,.GUILayout.Ex |
| 9be0 | 70 61 6e 64 57 69 64 74 68 28 74 72 75 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | pandWidth(true));............... |
| 9c00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 65 6c 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 | .............int.elementIndex.=. |
| 9c20 | 69 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 | i;..........................if.( |
| 9c40 | 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 43 68 61 72 61 63 74 65 | !string.IsNullOrEmpty(m_Characte |
| 9c60 | 72 53 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | rSearchPattern))................ |
| 9c80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 6d 5f 43 | ..............elementIndex.=.m_C |
| 9ca0 | 68 61 72 61 63 74 65 72 53 65 61 72 63 68 4c 69 73 74 5b 69 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 | haracterSearchList[i];.......... |
| 9cc0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 | ..................SerializedProp |
| 9ce0 | 65 72 74 79 20 63 68 61 72 61 63 74 65 72 50 72 6f 70 65 72 74 79 20 3d 20 6d 5f 43 68 61 72 61 | erty.characterProperty.=.m_Chara |
| 9d00 | 63 74 65 72 54 61 62 6c 65 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 | cterTable_prop.GetArrayElementAt |
| 9d20 | 49 6e 64 65 78 28 65 6c 65 6d 65 6e 74 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | Index(elementIndex);............ |
| 9d40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e | ................EditorGUILayout. |
| 9d60 | 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 68 65 6c 70 42 | BeginVertical(EditorStyles.helpB |
| 9d80 | 6f 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ox);............................ |
| 9da0 | 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 69 20 21 | EditorGUI.BeginDisabledGroup(i.! |
| 9dc0 | 3d 20 6d 5f 53 65 6c 65 63 74 65 64 43 68 61 72 61 63 74 65 72 52 65 63 6f 72 64 29 3b 0d 0a 20 | =.m_SelectedCharacterRecord);... |
| 9de0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 | .......................{........ |
| 9e00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c | ......................EditorGUIL |
| 9e20 | 61 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 63 68 61 72 61 63 74 65 72 50 72 6f | ayout.PropertyField(characterPro |
| 9e40 | 70 65 72 74 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | perty);......................... |
| 9e60 | 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 | .}..........................Edit |
| 9e80 | 6f 72 47 55 49 2e 45 6e 64 44 69 73 61 62 6c 65 64 47 72 6f 75 70 28 29 3b 0d 0a 0d 0a 20 20 20 | orGUI.EndDisabledGroup();....... |
| 9ea0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 | .....................EditorGUILa |
| 9ec0 | 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 | yout.EndVertical();............. |
| 9ee0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 66 69 6e 65 20 74 68 65 20 65 6e 64 | ...............//.Define.the.end |
| 9f00 | 20 6f 66 20 74 68 65 20 73 65 6c 65 63 74 69 6f 6e 20 72 65 67 69 6f 6e 20 6f 66 20 74 68 65 20 | .of.the.selection.region.of.the. |
| 9f20 | 65 6c 65 6d 65 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | element......................... |
| 9f40 | 20 20 52 65 63 74 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 69 6f 6e 20 3d 20 47 55 49 4c 61 79 | ..Rect.elementEndRegion.=.GUILay |
| 9f60 | 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 30 66 2c 20 30 66 2c 20 47 55 49 4c 61 | outUtility.GetRect(0f,.0f,.GUILa |
| 9f80 | 79 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 28 74 72 75 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 | yout.ExpandWidth(true));........ |
| 9fa0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 | ....................//.Check.for |
| 9fc0 | 20 49 74 65 6d 20 73 65 6c 65 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .Item.selection................. |
| 9fe0 | 20 20 20 20 20 20 20 20 20 52 65 63 74 20 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 20 3d 20 6e 65 | .........Rect.selectionArea.=.ne |
| a000 | 77 20 52 65 63 74 28 65 6c 65 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e 78 2c 20 65 6c 65 | w.Rect(elementStartRegion.x,.ele |
| a020 | 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e 79 2c 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 | mentStartRegion.y,.elementEndReg |
| a040 | 69 6f 6e 2e 77 69 64 74 68 2c 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 69 6f 6e 2e 79 20 2d 20 | ion.width,.elementEndRegion.y.-. |
| a060 | 65 6c 65 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 | elementStartRegion.y);.......... |
| a080 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 44 6f 53 65 6c 65 63 74 69 6f 6e 43 | ................if.(DoSelectionC |
| a0a0 | 68 65 63 6b 28 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 | heck(selectionArea))............ |
| a0c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..............{................. |
| a0e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 65 6c 65 63 74 65 64 43 68 61 72 61 | .............if.(m_SelectedChara |
| a100 | 63 74 65 72 52 65 63 6f 72 64 20 3d 3d 20 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | cterRecord.==.i)................ |
| a120 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 43 68 61 72 | ..................m_SelectedChar |
| a140 | 61 63 74 65 72 52 65 63 6f 72 64 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | acterRecord.=.-1;............... |
| a160 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ...............else............. |
| a180 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .................{.............. |
| a1a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 43 68 | ....................m_SelectedCh |
| a1c0 | 61 72 61 63 74 65 72 52 65 63 6f 72 64 20 3d 20 69 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | aracterRecord.=.i;.............. |
| a1e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 64 64 43 68 61 72 61 63 74 | ....................m_AddCharact |
| a200 | 65 72 57 61 72 6e 69 6e 67 2e 69 73 45 6e 61 62 6c 65 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 | erWarning.isEnabled.=.false;.... |
| a220 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f | ..............................m_ |
| a240 | 75 6e 69 63 6f 64 65 48 65 78 4c 61 62 65 6c 20 3d 20 6b 5f 70 6c 61 63 65 68 6f 6c 64 65 72 55 | unicodeHexLabel.=.k_placeholderU |
| a260 | 6e 69 63 6f 64 65 48 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | nicodeHex;...................... |
| a280 | 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 74 69 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 | ............GUIUtility.keyboardC |
| a2a0 | 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ontrol.=.0;..................... |
| a2c0 | 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .........}...................... |
| a2e0 | 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ....}........................... |
| a300 | 20 2f 2f 20 44 72 61 77 20 53 65 6c 65 63 74 69 6f 6e 20 48 69 67 68 6c 69 67 68 74 20 61 6e 64 | .//.Draw.Selection.Highlight.and |
| a320 | 20 47 6c 79 70 68 20 4f 70 74 69 6f 6e 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .Glyph.Options.................. |
| a340 | 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 65 6c 65 63 74 65 64 43 68 61 72 61 63 74 65 72 52 | ........if.(m_SelectedCharacterR |
| a360 | 65 63 6f 72 64 20 3d 3d 20 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ecord.==.i)..................... |
| a380 | 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .....{.......................... |
| a3a0 | 20 20 20 20 54 4d 50 5f 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 44 72 61 77 42 6f 78 28 73 65 | ....TMP_EditorUtility.DrawBox(se |
| a3c0 | 6c 65 63 74 69 6f 6e 41 72 65 61 2c 20 32 66 2c 20 6e 65 77 20 43 6f 6c 6f 72 33 32 28 34 30 2c | lectionArea,.2f,.new.Color32(40, |
| a3e0 | 20 31 39 32 2c 20 32 35 35 2c 20 32 35 35 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | .192,.255,.255));............... |
| a400 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 77 20 47 6c 79 70 68 20 6d | .................//.Draw.Glyph.m |
| a420 | 61 6e 61 67 65 6d 65 6e 74 20 6f 70 74 69 6f 6e 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | anagement.options............... |
| a440 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 72 6f 6c 52 65 63 74 20 | ...............Rect.controlRect. |
| a460 | 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 | =.EditorGUILayout.GetControlRect |
| a480 | 28 74 72 75 65 2c 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 73 69 6e 67 6c 65 4c 69 | (true,.EditorGUIUtility.singleLi |
| a4a0 | 6e 65 48 65 69 67 68 74 20 2a 20 31 66 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | neHeight.*.1f);................. |
| a4c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6f 70 74 69 6f 6e 41 72 65 61 57 69 64 | .............float.optionAreaWid |
| a4e0 | 74 68 20 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 74 68 20 2a 20 30 2e 36 66 3b 0d 0a | th.=.controlRect.width.*.0.6f;.. |
| a500 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 | ............................floa |
| a520 | 74 20 62 74 6e 57 69 64 74 68 20 3d 20 6f 70 74 69 6f 6e 41 72 65 61 57 69 64 74 68 20 2f 20 33 | t.btnWidth.=.optionAreaWidth./.3 |
| a540 | 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ;............................... |
| a560 | 20 52 65 63 74 20 70 6f 73 69 74 69 6f 6e 20 3d 20 6e 65 77 20 52 65 63 74 28 63 6f 6e 74 72 6f | .Rect.position.=.new.Rect(contro |
| a580 | 6c 52 65 63 74 2e 78 20 2b 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 74 68 20 2a 20 2e 34 | lRect.x.+.controlRect.width.*..4 |
| a5a0 | 66 2c 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 79 2c 20 62 74 6e 57 69 64 74 68 2c 20 63 6f 6e 74 | f,.controlRect.y,.btnWidth,.cont |
| a5c0 | 72 6f 6c 52 65 63 74 2e 68 65 69 67 68 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | rolRect.height);................ |
| a5e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 6f 70 79 20 53 65 6c 65 63 74 65 64 | ................//.Copy.Selected |
| a600 | 20 47 6c 79 70 68 20 74 6f 20 54 61 72 67 65 74 20 47 6c 79 70 68 20 49 44 0d 0a 20 20 20 20 20 | .Glyph.to.Target.Glyph.ID....... |
| a620 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c | .......................GUI.enabl |
| a640 | 65 64 20 3d 20 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 64 73 74 | ed.=.!string.IsNullOrEmpty(m_dst |
| a660 | 55 6e 69 63 6f 64 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Unicode);....................... |
| a680 | 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 70 6f 73 69 74 69 6f 6e 2c 20 | .......if.(GUI.Button(position,. |
| a6a0 | 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 43 6f 70 79 20 74 6f 22 29 29 29 0d 0a 20 20 20 | new.GUIContent("Copy.to")))..... |
| a6c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 | .........................{...... |
| a6e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 | ............................GUIU |
| a700 | 74 69 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 0d 0a 20 | tility.keyboardControl.=.0;..... |
| a720 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f | .............................../ |
| a740 | 2f 20 43 6f 6e 76 65 72 74 20 48 65 78 20 56 61 6c 75 65 20 74 6f 20 44 65 63 69 6d 61 6c 0d 0a | /.Convert.Hex.Value.to.Decimal.. |
| a760 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| a780 | 69 6e 74 20 64 73 74 47 6c 79 70 68 49 44 20 3d 20 54 4d 50 5f 54 65 78 74 55 74 69 6c 69 74 69 | int.dstGlyphID.=.TMP_TextUtiliti |
| a7a0 | 65 73 2e 53 74 72 69 6e 67 48 65 78 54 6f 49 6e 74 28 6d 5f 64 73 74 55 6e 69 63 6f 64 65 29 3b | es.StringHexToInt(m_dstUnicode); |
| a7c0 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| a7e0 | 20 20 20 20 2f 2f 41 64 64 20 6e 65 77 20 67 6c 79 70 68 20 61 74 20 74 61 72 67 65 74 20 55 6e | ....//Add.new.glyph.at.target.Un |
| a800 | 69 63 6f 64 65 20 68 65 78 20 69 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | icode.hex.id.................... |
| a820 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 41 64 64 4e 65 77 43 68 61 72 61 63 | ...............if.(!AddNewCharac |
| a840 | 74 65 72 28 65 6c 65 6d 65 6e 74 49 6e 64 65 78 2c 20 64 73 74 47 6c 79 70 68 49 44 29 29 0d 0a | ter(elementIndex,.dstGlyphID)).. |
| a860 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| a880 | 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | {............................... |
| a8a0 | 20 20 20 20 20 20 20 6d 5f 41 64 64 43 68 61 72 61 63 74 65 72 57 61 72 6e 69 6e 67 2e 69 73 45 | .......m_AddCharacterWarning.isE |
| a8c0 | 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | nabled.=.true;.................. |
| a8e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 64 64 43 68 61 72 61 63 74 | ....................m_AddCharact |
| a900 | 65 72 57 61 72 6e 69 6e 67 2e 65 78 70 69 72 61 74 69 6f 6e 54 69 6d 65 20 3d 20 45 64 69 74 6f | erWarning.expirationTime.=.Edito |
| a920 | 72 41 70 70 6c 69 63 61 74 69 6f 6e 2e 74 69 6d 65 53 69 6e 63 65 53 74 61 72 74 75 70 20 2b 20 | rApplication.timeSinceStartup.+. |
| a940 | 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | 1;.............................. |
| a960 | 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ....}........................... |
| a980 | 20 20 20 20 20 20 20 20 20 6d 5f 64 73 74 55 6e 69 63 6f 64 65 20 3d 20 73 74 72 69 6e 67 2e 45 | .........m_dstUnicode.=.string.E |
| a9a0 | 6d 70 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | mpty;........................... |
| a9c0 | 20 20 20 20 20 20 20 6d 5f 69 73 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a | .......m_isSearchDirty.=.true;.. |
| a9e0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| aa00 | 20 20 54 4d 50 72 6f 5f 45 76 65 6e 74 4d 61 6e 61 67 65 72 2e 4f 4e 5f 46 4f 4e 54 5f 50 52 4f | ..TMPro_EventManager.ON_FONT_PRO |
| aa20 | 50 45 52 54 59 5f 43 48 41 4e 47 45 44 28 74 72 75 65 2c 20 6d 5f 66 6f 6e 74 41 73 73 65 74 29 | PERTY_CHANGED(true,.m_fontAsset) |
| aa40 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d | ;..............................} |
| aa60 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| aa80 | 2f 2f 20 54 61 72 67 65 74 20 47 6c 79 70 68 20 49 44 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | //.Target.Glyph.ID.............. |
| aaa0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 | ................GUI.enabled.=.tr |
| aac0 | 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ue;............................. |
| aae0 | 20 70 6f 73 69 74 69 6f 6e 2e 78 20 2b 3d 20 62 74 6e 57 69 64 74 68 3b 0d 0a 0d 0a 20 20 20 20 | .position.x.+=.btnWidth;........ |
| ab00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 53 65 74 4e | ........................GUI.SetN |
| ab20 | 65 78 74 43 6f 6e 74 72 6f 6c 4e 61 6d 65 28 22 43 68 61 72 61 63 74 65 72 49 44 5f 49 6e 70 75 | extControlName("CharacterID_Inpu |
| ab40 | 74 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | t");............................ |
| ab60 | 20 20 6d 5f 64 73 74 55 6e 69 63 6f 64 65 20 3d 20 45 64 69 74 6f 72 47 55 49 2e 54 65 78 74 46 | ..m_dstUnicode.=.EditorGUI.TextF |
| ab80 | 69 65 6c 64 28 70 6f 73 69 74 69 6f 6e 2c 20 6d 5f 64 73 74 55 6e 69 63 6f 64 65 29 3b 0d 0a 0d | ield(position,.m_dstUnicode);... |
| aba0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 | .............................//. |
| abc0 | 50 6c 61 63 65 68 6f 6c 64 65 72 20 74 65 78 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Placeholder.text................ |
| abe0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 4c 61 62 65 6c 46 69 65 | ..............EditorGUI.LabelFie |
| ac00 | 6c 64 28 70 6f 73 69 74 69 6f 6e 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 6d 5f 75 6e | ld(position,.new.GUIContent(m_un |
| ac20 | 69 63 6f 64 65 48 65 78 4c 61 62 65 6c 2c 20 22 54 68 65 20 55 6e 69 63 6f 64 65 20 28 48 65 78 | icodeHexLabel,."The.Unicode.(Hex |
| ac40 | 29 20 49 44 20 6f 66 20 74 68 65 20 64 75 70 6c 69 63 61 74 65 64 20 43 68 61 72 61 63 74 65 72 | ).ID.of.the.duplicated.Character |
| ac60 | 22 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 6c 61 62 65 6c 29 3b 0d 0a | "),.TMP_UIStyleManager.label);.. |
| ac80 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f | ..............................// |
| aca0 | 20 4f 6e 6c 79 20 66 69 6c 74 65 72 20 74 68 65 20 69 6e 70 75 74 20 77 68 65 6e 20 74 68 65 20 | .Only.filter.the.input.when.the. |
| acc0 | 64 65 73 74 69 6e 61 74 69 6f 6e 20 67 6c 79 70 68 20 49 44 20 74 65 78 74 20 66 69 65 6c 64 20 | destination.glyph.ID.text.field. |
| ace0 | 68 61 73 20 66 6f 63 75 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | has.focus....................... |
| ad00 | 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 47 65 74 4e 61 6d 65 4f 66 46 6f 63 75 73 65 64 | ........if.(GUI.GetNameOfFocused |
| ad20 | 43 6f 6e 74 72 6f 6c 28 29 20 3d 3d 20 22 43 68 61 72 61 63 74 65 72 49 44 5f 49 6e 70 75 74 22 | Control().==."CharacterID_Input" |
| ad40 | 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b | )..............................{ |
| ad60 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| ad80 | 20 20 6d 5f 75 6e 69 63 6f 64 65 48 65 78 4c 61 62 65 6c 20 3d 20 73 74 72 69 6e 67 2e 45 6d 70 | ..m_unicodeHexLabel.=.string.Emp |
| ada0 | 74 79 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ty;............................. |
| adc0 | 20 20 20 20 20 20 20 2f 2f 46 69 6c 74 65 72 20 6f 75 74 20 75 6e 77 61 6e 74 65 64 20 63 68 61 | .......//Filter.out.unwanted.cha |
| ade0 | 72 61 63 74 65 72 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | racters......................... |
| ae00 | 20 20 20 20 20 20 20 20 20 20 63 68 61 72 20 63 68 72 20 3d 20 45 76 65 6e 74 2e 63 75 72 72 65 | ..........char.chr.=.Event.curre |
| ae20 | 6e 74 2e 63 68 61 72 61 63 74 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | nt.character;................... |
| ae40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 28 63 68 72 20 3c 20 27 30 27 20 7c 7c | ...............if.((chr.<.'0'.|| |
| ae60 | 20 63 68 72 20 3e 20 27 39 27 29 20 26 26 20 28 63 68 72 20 3c 20 27 61 27 20 7c 7c 20 63 68 72 | .chr.>.'9').&&.(chr.<.'a'.||.chr |
| ae80 | 20 3e 20 27 66 27 29 20 26 26 20 28 63 68 72 20 3c 20 27 41 27 20 7c 7c 20 63 68 72 20 3e 20 27 | .>.'f').&&.(chr.<.'A'.||.chr.>.' |
| aea0 | 46 27 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | F'))............................ |
| aec0 | 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ......{......................... |
| aee0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 2e 63 68 61 72 61 | .............Event.current.chara |
| af00 | 63 74 65 72 20 3d 20 27 5c 30 27 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | cter.=.'\0';.................... |
| af20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..............}................. |
| af40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .............}.................. |
| af60 | 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ............else................ |
| af80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..............{................. |
| afa0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 75 6e 69 63 6f 64 65 48 65 78 4c 61 62 | .................m_unicodeHexLab |
| afc0 | 65 6c 20 3d 20 6b 5f 70 6c 61 63 65 68 6f 6c 64 65 72 55 6e 69 63 6f 64 65 48 65 78 3b 0d 0a 20 | el.=.k_placeholderUnicodeHex;... |
| afe0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f | .............................../ |
| b000 | 2f 6d 5f 64 73 74 55 6e 69 63 6f 64 65 20 3d 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 3b 0d 0a 20 | /m_dstUnicode.=.string.Empty;... |
| b020 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a | ...........................}.... |
| b040 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f | ..............................// |
| b060 | 20 52 65 6d 6f 76 65 20 47 6c 79 70 68 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .Remove.Glyph................... |
| b080 | 20 20 20 20 20 20 20 20 20 20 20 70 6f 73 69 74 69 6f 6e 2e 78 20 2b 3d 20 62 74 6e 57 69 64 74 | ...........position.x.+=.btnWidt |
| b0a0 | 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | h;.............................. |
| b0c0 | 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 70 6f 73 69 74 69 6f 6e 2c 20 22 52 65 6d 6f 76 65 | if.(GUI.Button(position,."Remove |
| b0e0 | 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | "))............................. |
| b100 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .{.............................. |
| b120 | 20 20 20 20 47 55 49 55 74 69 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d | ....GUIUtility.keyboardControl.= |
| b140 | 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .0;............................. |
| b160 | 20 20 20 20 20 20 20 52 65 6d 6f 76 65 43 68 61 72 61 63 74 65 72 46 72 6f 6d 4c 69 73 74 28 65 | .......RemoveCharacterFromList(e |
| b180 | 6c 65 6d 65 6e 74 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | lementIndex);................... |
| b1a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 73 41 73 73 65 74 44 69 72 74 79 20 3d 20 | .................isAssetDirty.=. |
| b1c0 | 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | true;........................... |
| b1e0 | 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 43 68 61 72 61 63 74 65 72 52 65 63 6f 72 64 | .......m_SelectedCharacterRecord |
| b200 | 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .=.-1;.......................... |
| b220 | 20 20 20 20 20 20 20 20 6d 5f 69 73 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d | ........m_isSearchDirty.=.true;. |
| b240 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| b260 | 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .break;......................... |
| b280 | 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .....}.......................... |
| b2a0 | 20 20 20 20 20 20 69 66 20 28 6d 5f 41 64 64 43 68 61 72 61 63 74 65 72 57 61 72 6e 69 6e 67 2e | ......if.(m_AddCharacterWarning. |
| b2c0 | 69 73 45 6e 61 62 6c 65 64 20 26 26 20 45 64 69 74 6f 72 41 70 70 6c 69 63 61 74 69 6f 6e 2e 74 | isEnabled.&&.EditorApplication.t |
| b2e0 | 69 6d 65 53 69 6e 63 65 53 74 61 72 74 75 70 20 3c 20 6d 5f 41 64 64 43 68 61 72 61 63 74 65 72 | imeSinceStartup.<.m_AddCharacter |
| b300 | 57 61 72 6e 69 6e 67 2e 65 78 70 69 72 61 74 69 6f 6e 54 69 6d 65 29 0d 0a 20 20 20 20 20 20 20 | Warning.expirationTime)......... |
| b320 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 | .....................{.......... |
| b340 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 | ........................EditorGU |
| b360 | 49 4c 61 79 6f 75 74 2e 48 65 6c 70 42 6f 78 28 22 54 68 65 20 44 65 73 74 69 6e 61 74 69 6f 6e | ILayout.HelpBox("The.Destination |
| b380 | 20 43 68 61 72 61 63 74 65 72 20 49 44 20 61 6c 72 65 61 64 79 20 65 78 69 73 74 73 22 2c 20 4d | .Character.ID.already.exists",.M |
| b3a0 | 65 73 73 61 67 65 54 79 70 65 2e 57 61 72 6e 69 6e 67 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | essageType.Warning);............ |
| b3c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 | ..................}............. |
| b3e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...............}................ |
| b400 | 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 | ......}..................}...... |
| b420 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 69 73 70 6c 61 79 50 61 67 65 4e 61 76 69 67 61 74 | ..............DisplayPageNavigat |
| b440 | 69 6f 6e 28 72 65 66 20 6d 5f 43 75 72 72 65 6e 74 43 68 61 72 61 63 74 65 72 50 61 67 65 2c 20 | ion(ref.m_CurrentCharacterPage,. |
| b460 | 61 72 72 61 79 53 69 7a 65 2c 20 69 74 65 6d 73 50 65 72 50 61 67 65 29 3b 0d 0a 0d 0a 20 20 20 | arraySize,.itemsPerPage);....... |
| b480 | 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 | .............EditorGUILayout.Spa |
| b4a0 | 63 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 | ce();..............}............ |
| b4c0 | 20 20 23 65 6e 64 72 65 67 69 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 | ..#endregion................//.G |
| b4e0 | 4c 59 50 48 20 54 41 42 4c 45 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 72 65 67 69 6f 6e 20 | LYPH.TABLE..............#region. |
| b500 | 47 6c 79 70 68 20 54 61 62 6c 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 | Glyph.Table..............EditorG |
| b520 | 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 20 3d 20 6c 61 62 65 6c 57 69 64 74 | UIUtility.labelWidth.=.labelWidt |
| b540 | 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 | h;..............EditorGUIUtility |
| b560 | 2e 66 69 65 6c 64 57 69 64 74 68 20 3d 20 66 69 65 6c 64 57 69 64 74 68 3b 0d 0a 20 20 20 20 20 | .fieldWidth.=.fieldWidth;....... |
| b580 | 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e 74 4c 65 76 65 6c 20 3d 20 30 | .......EditorGUI.indentLevel.=.0 |
| b5a0 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c | ;..............rect.=.EditorGUIL |
| b5c0 | 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 66 61 6c 73 65 2c 20 32 34 29 3b | ayout.GetControlRect(false,.24); |
| b5e0 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 53 74 79 6c 65 20 67 6c 79 70 68 50 61 | ................GUIStyle.glyphPa |
| b600 | 6e 65 6c 53 74 79 6c 65 20 3d 20 6e 65 77 20 47 55 49 53 74 79 6c 65 28 45 64 69 74 6f 72 53 74 | nelStyle.=.new.GUIStyle(EditorSt |
| b620 | 79 6c 65 73 2e 68 65 6c 70 42 6f 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 | yles.helpBox);................if |
| b640 | 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 72 65 63 74 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e | .(GUI.Button(rect,.new.GUIConten |
| b660 | 74 28 22 3c 62 3e 47 6c 79 70 68 20 54 61 62 6c 65 3c 2f 62 3e 22 2c 20 22 4c 69 73 74 20 6f 66 | t("<b>Glyph.Table</b>",."List.of |
| b680 | 20 67 6c 79 70 68 73 20 63 6f 6e 74 61 69 6e 65 64 20 69 6e 20 74 68 69 73 20 66 6f 6e 74 20 61 | .glyphs.contained.in.this.font.a |
| b6a0 | 73 73 65 74 2e 22 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 73 65 63 74 | sset."),.TMP_UIStyleManager.sect |
| b6c0 | 69 6f 6e 48 65 61 64 65 72 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 55 49 5f | ionHeader))..................UI_ |
| b6e0 | 50 61 6e 65 6c 53 74 61 74 65 2e 67 6c 79 70 68 54 61 62 6c 65 50 61 6e 65 6c 20 3d 20 21 55 49 | PanelState.glyphTablePanel.=.!UI |
| b700 | 5f 50 61 6e 65 6c 53 74 61 74 65 2e 67 6c 79 70 68 54 61 62 6c 65 50 61 6e 65 6c 3b 0d 0a 0d 0a | _PanelState.glyphTablePanel;.... |
| b720 | 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 72 65 63 74 2c 20 28 55 49 5f | ............GUI.Label(rect,.(UI_ |
| b740 | 50 61 6e 65 6c 53 74 61 74 65 2e 67 6c 79 70 68 54 61 62 6c 65 50 61 6e 65 6c 20 3f 20 22 22 20 | PanelState.glyphTablePanel.?."". |
| b760 | 3a 20 73 5f 55 69 53 74 61 74 65 4c 61 62 65 6c 5b 31 5d 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c | :.s_UiStateLabel[1]),.TMP_UIStyl |
| b780 | 65 4d 61 6e 61 67 65 72 2e 72 69 67 68 74 4c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 | eManager.rightLabel);........... |
| b7a0 | 20 20 20 20 20 69 66 20 28 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 67 6c 79 70 68 54 61 62 6c | .....if.(UI_PanelState.glyphTabl |
| b7c0 | 65 50 61 6e 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 | ePanel)..............{.......... |
| b7e0 | 20 20 20 20 20 20 20 20 69 6e 74 20 61 72 72 61 79 53 69 7a 65 20 3d 20 6d 5f 47 6c 79 70 68 54 | ........int.arraySize.=.m_GlyphT |
| b800 | 61 62 6c 65 5f 70 72 6f 70 2e 61 72 72 61 79 53 69 7a 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | able_prop.arraySize;............ |
| b820 | 20 20 20 20 20 20 69 6e 74 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 3d 20 31 35 3b 0d 0a 0d 0a | ......int.itemsPerPage.=.15;.... |
| b840 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 69 73 70 6c 61 79 20 47 6c 79 70 68 | ................//.Display.Glyph |
| b860 | 20 4d 61 6e 61 67 65 6d 65 6e 74 20 54 6f 6f 6c 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | .Management.Tools............... |
| b880 | 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c | ...EditorGUILayout.BeginVertical |
| b8a0 | 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 68 65 6c 70 42 6f 78 29 3b 0d 0a 20 20 20 20 20 20 20 | (EditorStyles.helpBox);......... |
| b8c0 | 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .........{...................... |
| b8e0 | 2f 2f 20 53 65 61 72 63 68 20 42 61 72 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 0d 0a 20 20 | //.Search.Bar.implementation.... |
| b900 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 23 72 65 67 69 6f 6e 20 44 49 53 50 4c 41 | ..................#region.DISPLA |
| b920 | 59 20 53 45 41 52 43 48 20 42 41 52 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Y.SEARCH.BAR.................... |
| b940 | 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 | ..EditorGUILayout.BeginHorizonta |
| b960 | 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 | l();......................{..... |
| b980 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 | .....................EditorGUIUt |
| b9a0 | 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 20 3d 20 31 33 30 66 3b 0d 0a 20 20 20 20 20 20 | ility.labelWidth.=.130f;........ |
| b9c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 | ..................EditorGUI.Begi |
| b9e0 | 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | nChangeCheck();................. |
| ba00 | 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 73 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 | .........string.searchPattern.=. |
| ba20 | 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 54 65 78 74 46 69 65 6c 64 28 22 47 6c 79 70 68 | EditorGUILayout.TextField("Glyph |
| ba40 | 20 53 65 61 72 63 68 22 2c 20 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 50 61 74 74 65 72 6e 2c 20 | .Search",.m_GlyphSearchPattern,. |
| ba60 | 22 53 65 61 72 63 68 54 65 78 74 46 69 65 6c 64 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | "SearchTextField");............. |
| ba80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 | .............if.(EditorGUI.EndCh |
| baa0 | 61 6e 67 65 43 68 65 63 6b 28 29 20 7c 7c 20 6d 5f 69 73 53 65 61 72 63 68 44 69 72 74 79 29 0d | angeCheck().||.m_isSearchDirty). |
| bac0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 | .........................{...... |
| bae0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 74 72 69 | ........................if.(stri |
| bb00 | 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 20 | ng.IsNullOrEmpty(searchPattern). |
| bb20 | 3d 3d 20 66 61 6c 73 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ==.false)....................... |
| bb40 | 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .......{........................ |
| bb60 | 20 20 20 20 20 20 20 20 20 20 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d | ..........m_GlyphSearchPattern.= |
| bb80 | 20 73 65 61 72 63 68 50 61 74 74 65 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | .searchPattern;................. |
| bba0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 61 72 63 68 20 47 6c 79 | ...................//.Search.Gly |
| bbc0 | 70 68 20 54 61 62 6c 65 20 66 6f 72 20 70 6f 74 65 6e 74 69 61 6c 20 6d 61 74 63 68 65 73 0d 0a | ph.Table.for.potential.matches.. |
| bbe0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| bc00 | 53 65 61 72 63 68 47 6c 79 70 68 54 61 62 6c 65 28 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 50 61 | SearchGlyphTable(m_GlyphSearchPa |
| bc20 | 74 74 65 72 6e 2c 20 72 65 66 20 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 4c 69 73 74 29 3b 0d 0a | ttern,.ref.m_GlyphSearchList);.. |
| bc40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 | ............................}... |
| bc60 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d | ...........................else. |
| bc80 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| bca0 | 20 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 6e 75 6c 6c 3b 0d 0a 0d | .m_GlyphSearchPattern.=.null;... |
| bcc0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 69 | .............................m_i |
| bce0 | 73 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 | sSearchDirty.=.false;........... |
| bd00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ...............}................ |
| bd20 | 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 73 74 79 6c 65 4e 61 6d 65 20 3d 20 73 | ............string.styleName.=.s |
| bd40 | 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 47 6c 79 70 68 53 65 61 72 63 | tring.IsNullOrEmpty(m_GlyphSearc |
| bd60 | 68 50 61 74 74 65 72 6e 29 20 3f 20 22 53 65 61 72 63 68 43 61 6e 63 65 6c 42 75 74 74 6f 6e 45 | hPattern).?."SearchCancelButtonE |
| bd80 | 6d 70 74 79 22 20 3a 20 22 53 65 61 72 63 68 43 61 6e 63 65 6c 42 75 74 74 6f 6e 22 3b 0d 0a 20 | mpty".:."SearchCancelButton";... |
| bda0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 4c 61 | .......................if.(GUILa |
| bdc0 | 79 6f 75 74 2e 42 75 74 74 6f 6e 28 47 55 49 43 6f 6e 74 65 6e 74 2e 6e 6f 6e 65 2c 20 73 74 79 | yout.Button(GUIContent.none,.sty |
| bde0 | 6c 65 4e 61 6d 65 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | leName))........................ |
| be00 | 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..{............................. |
| be20 | 20 47 55 49 55 74 69 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b | .GUIUtility.keyboardControl.=.0; |
| be40 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f | ..............................m_ |
| be60 | 47 6c 79 70 68 53 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 73 74 72 69 6e 67 2e 45 6d 70 74 | GlyphSearchPattern.=.string.Empt |
| be80 | 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 | y;..........................}... |
| bea0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 | ...................}............ |
| bec0 | 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 | ..........EditorGUILayout.EndHor |
| bee0 | 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | izontal();...................... |
| bf00 | 23 65 6e 64 72 65 67 69 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | #endregion...................... |
| bf20 | 20 20 2f 2f 20 44 69 73 70 6c 61 79 20 50 61 67 65 20 4e 61 76 69 67 61 74 69 6f 6e 0d 0a 20 20 | ..//.Display.Page.Navigation.... |
| bf40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 73 | ..................if.(!string.Is |
| bf60 | 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 50 61 74 74 65 72 6e | NullOrEmpty(m_GlyphSearchPattern |
| bf80 | 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 72 72 61 | ))..........................arra |
| bfa0 | 79 53 69 7a 65 20 3d 20 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 4c 69 73 74 2e 43 6f 75 6e 74 3b | ySize.=.m_GlyphSearchList.Count; |
| bfc0 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 69 73 70 6c 61 79 50 | ........................DisplayP |
| bfe0 | 61 67 65 4e 61 76 69 67 61 74 69 6f 6e 28 72 65 66 20 6d 5f 43 75 72 72 65 6e 74 47 6c 79 70 68 | ageNavigation(ref.m_CurrentGlyph |
| c000 | 50 61 67 65 2c 20 61 72 72 61 79 53 69 7a 65 2c 20 69 74 65 6d 73 50 65 72 50 61 67 65 29 3b 0d | Page,.arraySize,.itemsPerPage);. |
| c020 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .................}.............. |
| c040 | 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 | ....EditorGUILayout.EndVertical( |
| c060 | 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 69 73 70 6c 61 79 | );....................//.Display |
| c080 | 20 47 6c 79 70 68 20 54 61 62 6c 65 20 45 6c 65 6d 65 6e 74 73 0d 0a 20 20 20 20 20 20 20 20 20 | .Glyph.Table.Elements........... |
| c0a0 | 20 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 61 72 72 | .........................if.(arr |
| c0c0 | 61 79 53 69 7a 65 20 3e 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a | aySize.>.0)..................{.. |
| c0e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 69 73 70 6c 61 79 20 65 | ....................//.Display.e |
| c100 | 61 63 68 20 47 6c 79 70 68 49 6e 66 6f 20 65 6e 74 72 79 20 75 73 69 6e 67 20 74 68 65 20 47 6c | ach.GlyphInfo.entry.using.the.Gl |
| c120 | 79 70 68 49 6e 66 6f 20 70 72 6f 70 65 72 74 79 20 64 72 61 77 65 72 2e 0d 0a 20 20 20 20 20 20 | yphInfo.property.drawer......... |
| c140 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 69 74 65 6d 73 | ..............for.(int.i.=.items |
| c160 | 50 65 72 50 61 67 65 20 2a 20 6d 5f 43 75 72 72 65 6e 74 47 6c 79 70 68 50 61 67 65 3b 20 69 20 | PerPage.*.m_CurrentGlyphPage;.i. |
| c180 | 3c 20 61 72 72 61 79 53 69 7a 65 20 26 26 20 69 20 3c 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 | <.arraySize.&&.i.<.itemsPerPage. |
| c1a0 | 2a 20 28 6d 5f 43 75 72 72 65 6e 74 47 6c 79 70 68 50 61 67 65 20 2b 20 31 29 3b 20 69 2b 2b 29 | *.(m_CurrentGlyphPage.+.1);.i++) |
| c1c0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | ......................{......... |
| c1e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 66 69 6e 65 20 74 68 65 20 73 | .................//.Define.the.s |
| c200 | 74 61 72 74 20 6f 66 20 74 68 65 20 73 65 6c 65 63 74 69 6f 6e 20 72 65 67 69 6f 6e 20 6f 66 20 | tart.of.the.selection.region.of. |
| c220 | 74 68 65 20 65 6c 65 6d 65 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | the.element..................... |
| c240 | 20 20 20 20 20 20 52 65 63 74 20 65 6c 65 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 20 3d 20 | ......Rect.elementStartRegion.=. |
| c260 | 47 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 30 66 2c 20 30 66 2c | GUILayoutUtility.GetRect(0f,.0f, |
| c280 | 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 28 74 72 75 65 29 29 3b 0d 0a | .GUILayout.ExpandWidth(true));.. |
| c2a0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 65 6c | ..........................int.el |
| c2c0 | 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 69 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ementIndex.=.i;................. |
| c2e0 | 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 | .........if.(!string.IsNullOrEmp |
| c300 | 74 79 28 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 20 20 | ty(m_GlyphSearchPattern))....... |
| c320 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 65 6d 65 6e 74 49 6e | .......................elementIn |
| c340 | 64 65 78 20 3d 20 6d 5f 47 6c 79 70 68 53 65 61 72 63 68 4c 69 73 74 5b 69 5d 3b 0d 0a 0d 0a 20 | dex.=.m_GlyphSearchList[i];..... |
| c360 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 | .......................Serialize |
| c380 | 64 50 72 6f 70 65 72 74 79 20 67 6c 79 70 68 50 72 6f 70 65 72 74 79 20 3d 20 6d 5f 47 6c 79 70 | dProperty.glyphProperty.=.m_Glyp |
| c3a0 | 68 54 61 62 6c 65 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 | hTable_prop.GetArrayElementAtInd |
| c3c0 | 65 78 28 65 6c 65 6d 65 6e 74 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ex(elementIndex);............... |
| c3e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 | .............EditorGUILayout.Beg |
| c400 | 69 6e 56 65 72 74 69 63 61 6c 28 67 6c 79 70 68 50 61 6e 65 6c 53 74 79 6c 65 29 3b 0d 0a 0d 0a | inVertical(glyphPanelStyle);.... |
| c420 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 6e | ........................using.(n |
| c440 | 65 77 20 45 64 69 74 6f 72 47 55 49 2e 44 69 73 61 62 6c 65 64 53 63 6f 70 65 28 69 20 21 3d 20 | ew.EditorGUI.DisabledScope(i.!=. |
| c460 | 6d 5f 53 65 6c 65 63 74 65 64 47 6c 79 70 68 52 65 63 6f 72 64 29 29 0d 0a 20 20 20 20 20 20 20 | m_SelectedGlyphRecord))......... |
| c480 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .................{.............. |
| c4a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e | ................EditorGUILayout. |
| c4c0 | 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 67 6c 79 70 68 50 72 6f 70 65 72 74 79 29 3b 0d 0a 20 | PropertyField(glyphProperty);... |
| c4e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 | .......................}........ |
| c500 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 | ....................EditorGUILay |
| c520 | 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | out.EndVertical();.............. |
| c540 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 66 69 6e 65 20 74 68 65 20 65 6e 64 20 | ..............//.Define.the.end. |
| c560 | 6f 66 20 74 68 65 20 73 65 6c 65 63 74 69 6f 6e 20 72 65 67 69 6f 6e 20 6f 66 20 74 68 65 20 65 | of.the.selection.region.of.the.e |
| c580 | 6c 65 6d 65 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | lement.......................... |
| c5a0 | 20 52 65 63 74 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 69 6f 6e 20 3d 20 47 55 49 4c 61 79 6f | .Rect.elementEndRegion.=.GUILayo |
| c5c0 | 75 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 30 66 2c 20 30 66 2c 20 47 55 49 4c 61 79 | utUtility.GetRect(0f,.0f,.GUILay |
| c5e0 | 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 28 74 72 75 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 | out.ExpandWidth(true));......... |
| c600 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 20 | ...................//.Check.for. |
| c620 | 49 74 65 6d 20 73 65 6c 65 63 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Item.selection.................. |
| c640 | 20 20 20 20 20 20 20 20 52 65 63 74 20 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 20 3d 20 6e 65 77 | ........Rect.selectionArea.=.new |
| c660 | 20 52 65 63 74 28 65 6c 65 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e 78 2c 20 65 6c 65 6d | .Rect(elementStartRegion.x,.elem |
| c680 | 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e 79 2c 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 69 | entStartRegion.y,.elementEndRegi |
| c6a0 | 6f 6e 2e 77 69 64 74 68 2c 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 69 6f 6e 2e 79 20 2d 20 65 | on.width,.elementEndRegion.y.-.e |
| c6c0 | 6c 65 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 | lementStartRegion.y);........... |
| c6e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 44 6f 53 65 6c 65 63 74 69 6f 6e 43 68 | ...............if.(DoSelectionCh |
| c700 | 65 63 6b 28 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | eck(selectionArea))............. |
| c720 | 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .............{.................. |
| c740 | 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 65 6c 65 63 74 65 64 47 6c 79 70 68 52 | ............if.(m_SelectedGlyphR |
| c760 | 65 63 6f 72 64 20 3d 3d 20 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ecord.==.i)..................... |
| c780 | 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 47 6c 79 70 68 52 65 63 6f | .............m_SelectedGlyphReco |
| c7a0 | 72 64 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | rd.=.-1;........................ |
| c7c0 | 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ......else...................... |
| c7e0 | 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ........{....................... |
| c800 | 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 47 6c 79 70 68 52 65 63 6f 72 64 | ...........m_SelectedGlyphRecord |
| c820 | 20 3d 20 69 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .=.i;........................... |
| c840 | 20 20 20 20 20 20 20 6d 5f 41 64 64 47 6c 79 70 68 57 61 72 6e 69 6e 67 2e 69 73 45 6e 61 62 6c | .......m_AddGlyphWarning.isEnabl |
| c860 | 65 64 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ed.=.false;..................... |
| c880 | 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 75 6e 69 63 6f 64 65 48 65 78 4c 61 62 65 6c 20 3d | .............m_unicodeHexLabel.= |
| c8a0 | 20 6b 5f 70 6c 61 63 65 68 6f 6c 64 65 72 55 6e 69 63 6f 64 65 48 65 78 3b 0d 0a 20 20 20 20 20 | .k_placeholderUnicodeHex;....... |
| c8c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 74 | ...........................GUIUt |
| c8e0 | 69 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 | ility.keyboardControl.=.0;...... |
| c900 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 | ........................}....... |
| c920 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | ...................}............ |
| c940 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 77 20 53 65 6c 65 63 74 69 6f | ................//.Draw.Selectio |
| c960 | 6e 20 48 69 67 68 6c 69 67 68 74 20 61 6e 64 20 47 6c 79 70 68 20 4f 70 74 69 6f 6e 73 0d 0a 20 | n.Highlight.and.Glyph.Options... |
| c980 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 53 65 6c | .......................if.(m_Sel |
| c9a0 | 65 63 74 65 64 47 6c 79 70 68 52 65 63 6f 72 64 20 3d 3d 20 69 29 0d 0a 20 20 20 20 20 20 20 20 | ectedGlyphRecord.==.i).......... |
| c9c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................{............... |
| c9e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 5f 45 64 69 74 6f 72 55 74 69 6c 69 74 79 | ...............TMP_EditorUtility |
| ca00 | 2e 44 72 61 77 42 6f 78 28 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 2c 20 32 66 2c 20 6e 65 77 20 | .DrawBox(selectionArea,.2f,.new. |
| ca20 | 43 6f 6c 6f 72 33 32 28 34 30 2c 20 31 39 32 2c 20 32 35 35 2c 20 32 35 35 29 29 3b 0d 0a 0d 0a | Color32(40,.192,.255,.255));.... |
| ca40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 | ............................//.D |
| ca60 | 72 61 77 20 47 6c 79 70 68 20 6d 61 6e 61 67 65 6d 65 6e 74 20 6f 70 74 69 6f 6e 73 0d 0a 20 20 | raw.Glyph.management.options.... |
| ca80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 | ..........................Rect.c |
| caa0 | 6f 6e 74 72 6f 6c 52 65 63 74 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 | ontrolRect.=.EditorGUILayout.Get |
| cac0 | 43 6f 6e 74 72 6f 6c 52 65 63 74 28 74 72 75 65 2c 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 | ControlRect(true,.EditorGUIUtili |
| cae0 | 74 79 2e 73 69 6e 67 6c 65 4c 69 6e 65 48 65 69 67 68 74 20 2a 20 31 66 29 3b 0d 0a 20 20 20 20 | ty.singleLineHeight.*.1f);...... |
| cb00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6f 70 | ........................float.op |
| cb20 | 74 69 6f 6e 41 72 65 61 57 69 64 74 68 20 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 74 | tionAreaWidth.=.controlRect.widt |
| cb40 | 68 20 2a 20 30 2e 36 66 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | h.*.0.6f;....................... |
| cb60 | 20 20 20 20 20 20 20 66 6c 6f 61 74 20 62 74 6e 57 69 64 74 68 20 3d 20 6f 70 74 69 6f 6e 41 72 | .......float.btnWidth.=.optionAr |
| cb80 | 65 61 57 69 64 74 68 20 2f 20 33 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | eaWidth./.3;.................... |
| cba0 | 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 70 6f 73 69 74 69 6f 6e 20 3d 20 6e 65 77 20 | ............Rect.position.=.new. |
| cbc0 | 52 65 63 74 28 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 78 20 2b 20 63 6f 6e 74 72 6f 6c 52 65 63 74 | Rect(controlRect.x.+.controlRect |
| cbe0 | 2e 77 69 64 74 68 20 2a 20 2e 34 66 2c 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 79 2c 20 62 74 6e | .width.*..4f,.controlRect.y,.btn |
| cc00 | 57 69 64 74 68 2c 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 68 65 69 67 68 74 29 3b 0d 0a 0d 0a 20 | Width,.controlRect.height);..... |
| cc20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 6f | ...........................//.Co |
| cc40 | 70 79 20 53 65 6c 65 63 74 65 64 20 47 6c 79 70 68 20 74 6f 20 54 61 72 67 65 74 20 47 6c 79 70 | py.Selected.Glyph.to.Target.Glyp |
| cc60 | 68 20 49 44 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | h.ID............................ |
| cc80 | 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 | ..GUI.enabled.=.!string.IsNullOr |
| cca0 | 45 6d 70 74 79 28 6d 5f 64 73 74 47 6c 79 70 68 49 44 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | Empty(m_dstGlyphID);............ |
| ccc0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e | ..................if.(GUI.Button |
| cce0 | 28 70 6f 73 69 74 69 6f 6e 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 43 6f 70 79 20 | (position,.new.GUIContent("Copy. |
| cd00 | 74 6f 22 29 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | to"))).......................... |
| cd20 | 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ....{........................... |
| cd40 | 20 20 20 20 20 20 20 47 55 49 55 74 69 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f | .......GUIUtility.keyboardContro |
| cd60 | 6c 20 3d 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | l.=.0;.......................... |
| cd80 | 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 6f 6e 76 65 72 74 20 48 65 78 20 56 61 6c 75 65 20 74 | ..........//.Convert.Hex.Value.t |
| cda0 | 6f 20 44 65 63 69 6d 61 6c 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | o.Decimal....................... |
| cdc0 | 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 2e 54 72 79 50 61 72 73 65 28 6d 5f 64 73 74 47 6c 79 | ...........int.TryParse(m_dstGly |
| cde0 | 70 68 49 44 2c 20 6f 75 74 20 69 6e 74 20 64 73 74 47 6c 79 70 68 49 44 29 3b 0d 0a 0d 0a 20 20 | phID,.out.int.dstGlyphID);...... |
| ce00 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f | ..............................// |
| ce20 | 41 64 64 20 6e 65 77 20 67 6c 79 70 68 20 61 74 20 74 61 72 67 65 74 20 55 6e 69 63 6f 64 65 20 | Add.new.glyph.at.target.Unicode. |
| ce40 | 68 65 78 20 69 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | hex.id.......................... |
| ce60 | 20 20 20 20 20 20 20 20 20 69 66 20 28 21 41 64 64 4e 65 77 47 6c 79 70 68 28 65 6c 65 6d 65 6e | .........if.(!AddNewGlyph(elemen |
| ce80 | 74 49 6e 64 65 78 2c 20 64 73 74 47 6c 79 70 68 49 44 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 | tIndex,.dstGlyphID))............ |
| cea0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | ......................{......... |
| cec0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 | .............................m_A |
| cee0 | 64 64 47 6c 79 70 68 57 61 72 6e 69 6e 67 2e 69 73 45 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b | ddGlyphWarning.isEnabled.=.true; |
| cf00 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| cf20 | 20 20 20 20 20 20 6d 5f 41 64 64 47 6c 79 70 68 57 61 72 6e 69 6e 67 2e 65 78 70 69 72 61 74 69 | ......m_AddGlyphWarning.expirati |
| cf40 | 6f 6e 54 69 6d 65 20 3d 20 45 64 69 74 6f 72 41 70 70 6c 69 63 61 74 69 6f 6e 2e 74 69 6d 65 53 | onTime.=.EditorApplication.timeS |
| cf60 | 69 6e 63 65 53 74 61 72 74 75 70 20 2b 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | inceStartup.+.1;................ |
| cf80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 | ..................}............. |
| cfa0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 64 73 74 47 6c 79 70 | .......................m_dstGlyp |
| cfc0 | 68 49 44 20 3d 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | hID.=.string.Empty;............. |
| cfe0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 69 73 53 65 61 72 63 68 44 | .....................m_isSearchD |
| d000 | 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | irty.=.true;.................... |
| d020 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 72 6f 5f 45 76 65 6e 74 4d 61 6e 61 67 | ................TMPro_EventManag |
| d040 | 65 72 2e 4f 4e 5f 46 4f 4e 54 5f 50 52 4f 50 45 52 54 59 5f 43 48 41 4e 47 45 44 28 74 72 75 65 | er.ON_FONT_PROPERTY_CHANGED(true |
| d060 | 2c 20 6d 5f 66 6f 6e 74 41 73 73 65 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ,.m_fontAsset);................. |
| d080 | 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .............}.................. |
| d0a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 61 72 67 65 74 20 47 6c 79 70 68 20 49 44 | ..............//.Target.Glyph.ID |
| d0c0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 | ..............................GU |
| d0e0 | 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | I.enabled.=.true;............... |
| d100 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 6f 73 69 74 69 6f 6e 2e 78 20 2b 3d 20 62 74 6e | ...............position.x.+=.btn |
| d120 | 57 69 64 74 68 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Width;.......................... |
| d140 | 20 20 20 20 20 20 47 55 49 2e 53 65 74 4e 65 78 74 43 6f 6e 74 72 6f 6c 4e 61 6d 65 28 22 47 6c | ......GUI.SetNextControlName("Gl |
| d160 | 79 70 68 49 44 5f 49 6e 70 75 74 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | yphID_Input");.................. |
| d180 | 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 64 73 74 47 6c 79 70 68 49 44 20 3d 20 45 64 69 74 6f | ............m_dstGlyphID.=.Edito |
| d1a0 | 72 47 55 49 2e 54 65 78 74 46 69 65 6c 64 28 70 6f 73 69 74 69 6f 6e 2c 20 6d 5f 64 73 74 47 6c | rGUI.TextField(position,.m_dstGl |
| d1c0 | 79 70 68 49 44 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | yphID);......................... |
| d1e0 | 20 20 20 20 20 20 20 2f 2f 20 50 6c 61 63 65 68 6f 6c 64 65 72 20 74 65 78 74 0d 0a 20 20 20 20 | .......//.Placeholder.text...... |
| d200 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 | ........................EditorGU |
| d220 | 49 2e 4c 61 62 65 6c 46 69 65 6c 64 28 70 6f 73 69 74 69 6f 6e 2c 20 6e 65 77 20 47 55 49 43 6f | I.LabelField(position,.new.GUICo |
| d240 | 6e 74 65 6e 74 28 6d 5f 47 6c 79 70 68 49 44 4c 61 62 65 6c 2c 20 22 54 68 65 20 47 6c 79 70 68 | ntent(m_GlyphIDLabel,."The.Glyph |
| d260 | 20 49 44 20 6f 66 20 74 68 65 20 64 75 70 6c 69 63 61 74 65 64 20 47 6c 79 70 68 22 29 2c 20 54 | .ID.of.the.duplicated.Glyph"),.T |
| d280 | 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 6c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 | MP_UIStyleManager.label);....... |
| d2a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4f 6e 6c 79 | .........................//.Only |
| d2c0 | 20 66 69 6c 74 65 72 20 74 68 65 20 69 6e 70 75 74 20 77 68 65 6e 20 74 68 65 20 64 65 73 74 69 | .filter.the.input.when.the.desti |
| d2e0 | 6e 61 74 69 6f 6e 20 67 6c 79 70 68 20 49 44 20 74 65 78 74 20 66 69 65 6c 64 20 68 61 73 20 66 | nation.glyph.ID.text.field.has.f |
| d300 | 6f 63 75 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ocus............................ |
| d320 | 20 20 20 69 66 20 28 47 55 49 2e 47 65 74 4e 61 6d 65 4f 66 46 6f 63 75 73 65 64 43 6f 6e 74 72 | ...if.(GUI.GetNameOfFocusedContr |
| d340 | 6f 6c 28 29 20 3d 3d 20 22 47 6c 79 70 68 49 44 5f 49 6e 70 75 74 22 29 0d 0a 20 20 20 20 20 20 | ol().==."GlyphID_Input")........ |
| d360 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | ......................{......... |
| d380 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 47 6c 79 70 68 | .........................m_Glyph |
| d3a0 | 49 44 4c 61 62 65 6c 20 3d 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 3b 0d 0a 0d 0a 20 20 20 20 20 | IDLabel.=.string.Empty;......... |
| d3c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 46 69 6c | ...........................//Fil |
| d3e0 | 74 65 72 20 6f 75 74 20 75 6e 77 61 6e 74 65 64 20 63 68 61 72 61 63 74 65 72 73 2e 0d 0a 20 20 | ter.out.unwanted.characters..... |
| d400 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 | ..............................ch |
| d420 | 61 72 20 63 68 72 20 3d 20 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 2e 63 68 61 72 61 63 74 65 72 | ar.chr.=.Event.current.character |
| d440 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ;............................... |
| d460 | 20 20 20 69 66 20 28 28 63 68 72 20 3c 20 27 30 27 20 7c 7c 20 63 68 72 20 3e 20 27 39 27 29 29 | ...if.((chr.<.'0'.||.chr.>.'9')) |
| d480 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| d4a0 | 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..{............................. |
| d4c0 | 20 20 20 20 20 20 20 20 20 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 2e 63 68 61 72 61 63 74 65 72 | .........Event.current.character |
| d4e0 | 20 3d 20 27 5c 30 27 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .=.'\0';........................ |
| d500 | 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..........}..................... |
| d520 | 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .........}...................... |
| d540 | 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ........else.................... |
| d560 | 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..........{..................... |
| d580 | 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 47 6c 79 70 68 49 44 4c 61 62 65 6c 20 3d 20 6b 5f | .............m_GlyphIDLabel.=.k_ |
| d5a0 | 70 6c 61 63 65 68 6f 6c 64 65 72 47 6c 79 70 68 49 44 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | placeholderGlyphID;............. |
| d5c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 6d 5f 64 73 74 47 6c 79 70 | .....................//m_dstGlyp |
| d5e0 | 68 49 44 20 3d 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | hID.=.string.Empty;............. |
| d600 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | .................}.............. |
| d620 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 52 65 6d 6f 76 65 20 47 6c 79 70 | ..................//.Remove.Glyp |
| d640 | 68 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 | h..............................p |
| d660 | 6f 73 69 74 69 6f 6e 2e 78 20 2b 3d 20 62 74 6e 57 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 | osition.x.+=.btnWidth;.......... |
| d680 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 | ....................if.(GUI.Butt |
| d6a0 | 6f 6e 28 70 6f 73 69 74 69 6f 6e 2c 20 22 52 65 6d 6f 76 65 22 29 29 0d 0a 20 20 20 20 20 20 20 | on(position,."Remove"))......... |
| d6c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 | .....................{.......... |
| d6e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 74 69 6c 69 | ........................GUIUtili |
| d700 | 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 | ty.keyboardControl.=.0;......... |
| d720 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 6d 6f 76 | ...........................Remov |
| d740 | 65 47 6c 79 70 68 46 72 6f 6d 4c 69 73 74 28 65 6c 65 6d 65 6e 74 49 6e 64 65 78 29 3b 0d 0a 0d | eGlyphFromList(elementIndex);... |
| d760 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| d780 | 20 69 73 41 73 73 65 74 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 | .isAssetDirty.=.true;........... |
| d7a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 | .......................m_Selecte |
| d7c0 | 64 47 6c 79 70 68 52 65 63 6f 72 64 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | dGlyphRecord.=.-1;.............. |
| d7e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 69 73 53 65 61 72 63 68 44 69 | ....................m_isSearchDi |
| d800 | 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | rty.=.true;..................... |
| d820 | 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | .............break;............. |
| d840 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | .................}.............. |
| d860 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 41 64 64 47 6c 79 70 68 | ..................if.(m_AddGlyph |
| d880 | 57 61 72 6e 69 6e 67 2e 69 73 45 6e 61 62 6c 65 64 20 26 26 20 45 64 69 74 6f 72 41 70 70 6c 69 | Warning.isEnabled.&&.EditorAppli |
| d8a0 | 63 61 74 69 6f 6e 2e 74 69 6d 65 53 69 6e 63 65 53 74 61 72 74 75 70 20 3c 20 6d 5f 41 64 64 47 | cation.timeSinceStartup.<.m_AddG |
| d8c0 | 6c 79 70 68 57 61 72 6e 69 6e 67 2e 65 78 70 69 72 61 74 69 6f 6e 54 69 6d 65 29 0d 0a 20 20 20 | lyphWarning.expirationTime)..... |
| d8e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 | .........................{...... |
| d900 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 | ............................Edit |
| d920 | 6f 72 47 55 49 4c 61 79 6f 75 74 2e 48 65 6c 70 42 6f 78 28 22 54 68 65 20 44 65 73 74 69 6e 61 | orGUILayout.HelpBox("The.Destina |
| d940 | 74 69 6f 6e 20 47 6c 79 70 68 20 49 44 20 61 6c 72 65 61 64 79 20 65 78 69 73 74 73 22 2c 20 4d | tion.Glyph.ID.already.exists",.M |
| d960 | 65 73 73 61 67 65 54 79 70 65 2e 57 61 72 6e 69 6e 67 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | essageType.Warning);............ |
| d980 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 | ..................}............. |
| d9a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...............}................ |
| d9c0 | 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 | ......}..................}...... |
| d9e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 69 73 70 6c 61 79 50 61 67 65 4e 61 76 69 67 61 74 | ..............DisplayPageNavigat |
| da00 | 69 6f 6e 28 72 65 66 20 6d 5f 43 75 72 72 65 6e 74 47 6c 79 70 68 50 61 67 65 2c 20 61 72 72 61 | ion(ref.m_CurrentGlyphPage,.arra |
| da20 | 79 53 69 7a 65 2c 20 69 74 65 6d 73 50 65 72 50 61 67 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 | ySize,.itemsPerPage);........... |
| da40 | 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 29 | .........EditorGUILayout.Space() |
| da60 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 65 | ;..............}..............#e |
| da80 | 6e 64 72 65 67 69 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 46 4f 4e 54 20 | ndregion................//.FONT. |
| daa0 | 46 45 41 54 55 52 45 20 54 41 42 4c 45 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 72 65 67 69 | FEATURE.TABLE..............#regi |
| dac0 | 6f 6e 20 46 6f 6e 74 20 46 65 61 74 75 72 65 20 54 61 62 6c 65 0d 0a 20 20 20 20 20 20 20 20 20 | on.Font.Feature.Table........... |
| dae0 | 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 6c 61 62 65 6c 57 69 64 74 68 20 3d | ...EditorGUIUtility.labelWidth.= |
| db00 | 20 6c 61 62 65 6c 57 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 | .labelWidth;..............Editor |
| db20 | 47 55 49 55 74 69 6c 69 74 79 2e 66 69 65 6c 64 57 69 64 74 68 20 3d 20 66 69 65 6c 64 57 69 64 | GUIUtility.fieldWidth.=.fieldWid |
| db40 | 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 69 6e 64 65 6e | th;..............EditorGUI.inden |
| db60 | 74 4c 65 76 65 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 20 3d 20 | tLevel.=.0;..............rect.=. |
| db80 | 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 66 | EditorGUILayout.GetControlRect(f |
| dba0 | 61 6c 73 65 2c 20 32 34 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 | alse,.24);................if.(GU |
| dbc0 | 49 2e 42 75 74 74 6f 6e 28 72 65 63 74 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 3c | I.Button(rect,.new.GUIContent("< |
| dbe0 | 62 3e 47 6c 79 70 68 20 41 64 6a 75 73 74 6d 65 6e 74 20 54 61 62 6c 65 3c 2f 62 3e 22 2c 20 22 | b>Glyph.Adjustment.Table</b>",." |
| dc00 | 4c 69 73 74 20 6f 66 20 67 6c 79 70 68 20 61 64 6a 75 73 74 6d 65 6e 74 20 2f 20 61 64 76 61 6e | List.of.glyph.adjustment./.advan |
| dc20 | 63 65 64 20 6b 65 72 6e 69 6e 67 20 70 61 69 72 73 2e 22 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c | ced.kerning.pairs."),.TMP_UIStyl |
| dc40 | 65 4d 61 6e 61 67 65 72 2e 73 65 63 74 69 6f 6e 48 65 61 64 65 72 29 29 0d 0a 20 20 20 20 20 20 | eManager.sectionHeader))........ |
| dc60 | 20 20 20 20 20 20 20 20 20 20 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 6f 6e 74 46 65 61 74 | ..........UI_PanelState.fontFeat |
| dc80 | 75 72 65 54 61 62 6c 65 50 61 6e 65 6c 20 3d 20 21 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 | ureTablePanel.=.!UI_PanelState.f |
| dca0 | 6f 6e 74 46 65 61 74 75 72 65 54 61 62 6c 65 50 61 6e 65 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 | ontFeatureTablePanel;........... |
| dcc0 | 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 72 65 63 74 2c 20 28 55 49 5f 50 61 6e 65 6c 53 74 | .....GUI.Label(rect,.(UI_PanelSt |
| dce0 | 61 74 65 2e 66 6f 6e 74 46 65 61 74 75 72 65 54 61 62 6c 65 50 61 6e 65 6c 20 3f 20 22 22 20 3a | ate.fontFeatureTablePanel.?."".: |
| dd00 | 20 73 5f 55 69 53 74 61 74 65 4c 61 62 65 6c 5b 31 5d 29 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 | .s_UiStateLabel[1]),.TMP_UIStyle |
| dd20 | 4d 61 6e 61 67 65 72 2e 72 69 67 68 74 4c 61 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | Manager.rightLabel);............ |
| dd40 | 20 20 20 20 69 66 20 28 55 49 5f 50 61 6e 65 6c 53 74 61 74 65 2e 66 6f 6e 74 46 65 61 74 75 72 | ....if.(UI_PanelState.fontFeatur |
| dd60 | 65 54 61 62 6c 65 50 61 6e 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 | eTablePanel)..............{..... |
| dd80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 61 72 72 61 79 53 69 7a 65 20 3d 20 6d 5f 47 | .............int.arraySize.=.m_G |
| dda0 | 6c 79 70 68 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 73 5f 70 72 6f 70 2e 61 | lyphPairAdjustmentRecords_prop.a |
| ddc0 | 72 72 61 79 53 69 7a 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 69 | rraySize;..................int.i |
| dde0 | 74 65 6d 73 50 65 72 50 61 67 65 20 3d 20 32 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | temsPerPage.=.20;............... |
| de00 | 20 20 20 20 20 2f 2f 20 44 69 73 70 6c 61 79 20 4b 65 72 6e 69 6e 67 20 50 61 69 72 20 4d 61 6e | .....//.Display.Kerning.Pair.Man |
| de20 | 61 67 65 6d 65 6e 74 20 54 6f 6f 6c 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 | agement.Tools..................E |
| de40 | 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 45 64 69 | ditorGUILayout.BeginVertical(Edi |
| de60 | 74 6f 72 53 74 79 6c 65 73 2e 68 65 6c 70 42 6f 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | torStyles.helpBox);............. |
| de80 | 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 | .....{......................//.S |
| dea0 | 65 61 72 63 68 20 42 61 72 20 69 6d 70 6c 65 6d 65 6e 74 61 74 69 6f 6e 0d 0a 20 20 20 20 20 20 | earch.Bar.implementation........ |
| dec0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 23 72 65 67 69 6f 6e 20 44 49 53 50 4c 41 59 20 53 45 | ..............#region.DISPLAY.SE |
| dee0 | 41 52 43 48 20 42 41 52 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 | ARCH.BAR......................Ed |
| df00 | 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b | itorGUILayout.BeginHorizontal(); |
| df20 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | ......................{......... |
| df40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 | .................EditorGUIUtilit |
| df60 | 79 2e 6c 61 62 65 6c 57 69 64 74 68 20 3d 20 31 35 30 66 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | y.labelWidth.=.150f;............ |
| df80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 | ..............EditorGUI.BeginCha |
| dfa0 | 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ngeCheck();..................... |
| dfc0 | 20 20 20 20 20 73 74 72 69 6e 67 20 73 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 45 64 69 74 | .....string.searchPattern.=.Edit |
| dfe0 | 6f 72 47 55 49 4c 61 79 6f 75 74 2e 54 65 78 74 46 69 65 6c 64 28 22 41 64 6a 75 73 74 6d 65 6e | orGUILayout.TextField("Adjustmen |
| e000 | 74 20 50 61 69 72 20 53 65 61 72 63 68 22 2c 20 6d 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 53 65 | t.Pair.Search",.m_KerningTableSe |
| e020 | 61 72 63 68 50 61 74 74 65 72 6e 2c 20 22 53 65 61 72 63 68 54 65 78 74 46 69 65 6c 64 22 29 3b | archPattern,."SearchTextField"); |
| e040 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 | ..........................if.(Ed |
| e060 | 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 20 7c 7c 20 6d 5f 69 73 | itorGUI.EndChangeCheck().||.m_is |
| e080 | 53 65 61 72 63 68 44 69 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | SearchDirty).................... |
| e0a0 | 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ......{......................... |
| e0c0 | 20 20 20 20 20 69 66 20 28 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 73 65 | .....if.(string.IsNullOrEmpty(se |
| e0e0 | 61 72 63 68 50 61 74 74 65 72 6e 29 20 3d 3d 20 66 61 6c 73 65 29 0d 0a 20 20 20 20 20 20 20 20 | archPattern).==.false).......... |
| e100 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 | ....................{........... |
| e120 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4b 65 72 6e 69 6e 67 | .......................m_Kerning |
| e140 | 54 61 62 6c 65 53 65 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 73 65 61 72 63 68 50 61 74 74 65 | TableSearchPattern.=.searchPatte |
| e160 | 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | rn;............................. |
| e180 | 20 20 20 20 20 20 20 2f 2f 20 53 65 61 72 63 68 20 47 6c 79 70 68 20 54 61 62 6c 65 20 66 6f 72 | .......//.Search.Glyph.Table.for |
| e1a0 | 20 70 6f 74 65 6e 74 69 61 6c 20 6d 61 74 63 68 65 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .potential.matches.............. |
| e1c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 61 72 63 68 4b 65 72 6e 69 6e | ....................SearchKernin |
| e1e0 | 67 54 61 62 6c 65 28 6d 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 53 65 61 72 63 68 50 61 74 74 65 | gTable(m_KerningTableSearchPatte |
| e200 | 72 6e 2c 20 72 65 66 20 6d 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 53 65 61 72 63 68 4c 69 73 74 | rn,.ref.m_KerningTableSearchList |
| e220 | 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | );.............................. |
| e240 | 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 | }..............................e |
| e260 | 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | lse............................. |
| e280 | 20 20 20 20 20 6d 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 53 65 61 72 63 68 50 61 74 74 65 72 6e | .....m_KerningTableSearchPattern |
| e2a0 | 20 3d 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .=.null;........................ |
| e2c0 | 20 20 20 20 20 20 20 20 6d 5f 69 73 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 66 61 6c 73 65 3b | ........m_isSearchDirty.=.false; |
| e2e0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 | ..........................}..... |
| e300 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e 67 20 73 74 | .......................string.st |
| e320 | 79 6c 65 4e 61 6d 65 20 3d 20 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d | yleName.=.string.IsNullOrEmpty(m |
| e340 | 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 53 65 61 72 63 68 50 61 74 74 65 72 6e 29 20 3f 20 22 53 | _KerningTableSearchPattern).?."S |
| e360 | 65 61 72 63 68 43 61 6e 63 65 6c 42 75 74 74 6f 6e 45 6d 70 74 79 22 20 3a 20 22 53 65 61 72 63 | earchCancelButtonEmpty".:."Searc |
| e380 | 68 43 61 6e 63 65 6c 42 75 74 74 6f 6e 22 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | hCancelButton";................. |
| e3a0 | 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 4c 61 79 6f 75 74 2e 42 75 74 74 6f 6e 28 47 55 | .........if.(GUILayout.Button(GU |
| e3c0 | 49 43 6f 6e 74 65 6e 74 2e 6e 6f 6e 65 2c 20 73 74 79 6c 65 4e 61 6d 65 29 29 0d 0a 20 20 20 20 | IContent.none,.styleName))...... |
| e3e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 | ....................{........... |
| e400 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 74 69 6c 69 74 79 2e 6b 65 | ...................GUIUtility.ke |
| e420 | 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | yboardControl.=.0;.............. |
| e440 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 53 65 | ................m_KerningTableSe |
| e460 | 61 72 63 68 50 61 74 74 65 72 6e 20 3d 20 73 74 72 69 6e 67 2e 45 6d 70 74 79 3b 0d 0a 20 20 20 | archPattern.=.string.Empty;..... |
| e480 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 | .....................}.......... |
| e4a0 | 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ............}................... |
| e4c0 | 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c | ...EditorGUILayout.EndHorizontal |
| e4e0 | 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 | ();......................#endreg |
| e500 | 69 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 69 | ion........................//.Di |
| e520 | 73 70 6c 61 79 20 50 61 67 65 20 4e 61 76 69 67 61 74 69 6f 6e 0d 0a 20 20 20 20 20 20 20 20 20 | splay.Page.Navigation........... |
| e540 | 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 | ...........if.(!string.IsNullOrE |
| e560 | 6d 70 74 79 28 6d 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 53 65 61 72 63 68 50 61 74 74 65 72 6e | mpty(m_KerningTableSearchPattern |
| e580 | 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 72 72 61 | ))..........................arra |
| e5a0 | 79 53 69 7a 65 20 3d 20 6d 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 53 65 61 72 63 68 4c 69 73 74 | ySize.=.m_KerningTableSearchList |
| e5c0 | 2e 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 | .Count;........................D |
| e5e0 | 69 73 70 6c 61 79 50 61 67 65 4e 61 76 69 67 61 74 69 6f 6e 28 72 65 66 20 6d 5f 43 75 72 72 65 | isplayPageNavigation(ref.m_Curre |
| e600 | 6e 74 4b 65 72 6e 69 6e 67 50 61 67 65 2c 20 61 72 72 61 79 53 69 7a 65 2c 20 69 74 65 6d 73 50 | ntKerningPage,.arraySize,.itemsP |
| e620 | 65 72 50 61 67 65 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 | erPage);..................}..... |
| e640 | 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 | .............EditorGUILayout.End |
| e660 | 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 | Vertical();....................i |
| e680 | 66 20 28 61 72 72 61 79 53 69 7a 65 20 3e 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | f.(arraySize.>.0)............... |
| e6a0 | 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 69 73 | ...{......................//.Dis |
| e6c0 | 70 6c 61 79 20 65 61 63 68 20 47 6c 79 70 68 49 6e 66 6f 20 65 6e 74 72 79 20 75 73 69 6e 67 20 | play.each.GlyphInfo.entry.using. |
| e6e0 | 74 68 65 20 47 6c 79 70 68 49 6e 66 6f 20 70 72 6f 70 65 72 74 79 20 64 72 61 77 65 72 2e 0d 0a | the.GlyphInfo.property.drawer... |
| e700 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d | ....................for.(int.i.= |
| e720 | 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 2a 20 6d 5f 43 75 72 72 65 6e 74 4b 65 72 6e 69 6e 67 | .itemsPerPage.*.m_CurrentKerning |
| e740 | 50 61 67 65 3b 20 69 20 3c 20 61 72 72 61 79 53 69 7a 65 20 26 26 20 69 20 3c 20 69 74 65 6d 73 | Page;.i.<.arraySize.&&.i.<.items |
| e760 | 50 65 72 50 61 67 65 20 2a 20 28 6d 5f 43 75 72 72 65 6e 74 4b 65 72 6e 69 6e 67 50 61 67 65 20 | PerPage.*.(m_CurrentKerningPage. |
| e780 | 2b 20 31 29 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | +.1);.i++)...................... |
| e7a0 | 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 | {..........................//.De |
| e7c0 | 66 69 6e 65 20 74 68 65 20 73 74 61 72 74 20 6f 66 20 74 68 65 20 73 65 6c 65 63 74 69 6f 6e 20 | fine.the.start.of.the.selection. |
| e7e0 | 72 65 67 69 6f 6e 20 6f 66 20 74 68 65 20 65 6c 65 6d 65 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 | region.of.the.element........... |
| e800 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 65 6c 65 6d 65 6e 74 53 74 61 72 | ................Rect.elementStar |
| e820 | 74 52 65 67 69 6f 6e 20 3d 20 47 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 | tRegion.=.GUILayoutUtility.GetRe |
| e840 | 63 74 28 30 66 2c 20 30 66 2c 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 | ct(0f,.0f,.GUILayout.ExpandWidth |
| e860 | 28 74 72 75 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | (true));........................ |
| e880 | 20 20 20 20 69 6e 74 20 65 6c 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 69 3b 0d 0a 20 20 20 20 20 | ....int.elementIndex.=.i;....... |
| e8a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 73 74 72 69 6e 67 2e 49 | ...................if.(!string.I |
| e8c0 | 73 4e 75 6c 6c 4f 72 45 6d 70 74 79 28 6d 5f 4b 65 72 6e 69 6e 67 54 61 62 6c 65 53 65 61 72 63 | sNullOrEmpty(m_KerningTableSearc |
| e8e0 | 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | hPattern))...................... |
| e900 | 20 20 20 20 20 20 20 20 65 6c 65 6d 65 6e 74 49 6e 64 65 78 20 3d 20 6d 5f 4b 65 72 6e 69 6e 67 | ........elementIndex.=.m_Kerning |
| e920 | 54 61 62 6c 65 53 65 61 72 63 68 4c 69 73 74 5b 69 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 | TableSearchList[i];............. |
| e940 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 | ...............SerializedPropert |
| e960 | 79 20 70 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 50 72 6f 70 65 72 74 79 20 3d | y.pairAdjustmentRecordProperty.= |
| e980 | 20 6d 5f 47 6c 79 70 68 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 73 5f 70 72 | .m_GlyphPairAdjustmentRecords_pr |
| e9a0 | 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 65 6c 65 6d 65 6e | op.GetArrayElementAtIndex(elemen |
| e9c0 | 74 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | tIndex);........................ |
| e9e0 | 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 | ....EditorGUILayout.BeginVertica |
| ea00 | 6c 28 45 64 69 74 6f 72 53 74 79 6c 65 73 2e 68 65 6c 70 42 6f 78 29 3b 0d 0a 0d 0a 20 20 20 20 | l(EditorStyles.helpBox);........ |
| ea20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 6e 65 77 20 45 | ....................using.(new.E |
| ea40 | 64 69 74 6f 72 47 55 49 2e 44 69 73 61 62 6c 65 64 53 63 6f 70 65 28 69 20 21 3d 20 6d 5f 53 65 | ditorGUI.DisabledScope(i.!=.m_Se |
| ea60 | 6c 65 63 74 65 64 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 29 29 0d 0a 20 20 20 20 20 20 | lectedAdjustmentRecord))........ |
| ea80 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ..................{............. |
| eaa0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 | .................EditorGUILayout |
| eac0 | 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 70 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 | .PropertyField(pairAdjustmentRec |
| eae0 | 6f 72 64 50 72 6f 70 65 72 74 79 2c 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 53 65 6c | ordProperty,.new.GUIContent("Sel |
| eb00 | 65 63 74 61 62 6c 65 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ectable"));..................... |
| eb20 | 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .....}.......................... |
| eb40 | 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b | ..EditorGUILayout.EndVertical(); |
| eb60 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 | ............................//.D |
| eb80 | 65 66 69 6e 65 20 74 68 65 20 65 6e 64 20 6f 66 20 74 68 65 20 73 65 6c 65 63 74 69 6f 6e 20 72 | efine.the.end.of.the.selection.r |
| eba0 | 65 67 69 6f 6e 20 6f 66 20 74 68 65 20 65 6c 65 6d 65 6e 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 | egion.of.the.element............ |
| ebc0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 65 6c 65 6d 65 6e 74 45 6e 64 52 65 | ...............Rect.elementEndRe |
| ebe0 | 67 69 6f 6e 20 3d 20 47 55 49 4c 61 79 6f 75 74 55 74 69 6c 69 74 79 2e 47 65 74 52 65 63 74 28 | gion.=.GUILayoutUtility.GetRect( |
| ec00 | 30 66 2c 20 30 66 2c 20 47 55 49 4c 61 79 6f 75 74 2e 45 78 70 61 6e 64 57 69 64 74 68 28 74 72 | 0f,.0f,.GUILayout.ExpandWidth(tr |
| ec20 | 75 65 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ue));........................... |
| ec40 | 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 20 49 74 65 6d 20 73 65 6c 65 63 74 69 6f 6e 0d 0a 20 20 | .//.Check.for.Item.selection.... |
| ec60 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 73 65 6c 65 63 | ......................Rect.selec |
| ec80 | 74 69 6f 6e 41 72 65 61 20 3d 20 6e 65 77 20 52 65 63 74 28 65 6c 65 6d 65 6e 74 53 74 61 72 74 | tionArea.=.new.Rect(elementStart |
| eca0 | 52 65 67 69 6f 6e 2e 78 2c 20 65 6c 65 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e 79 2c 20 | Region.x,.elementStartRegion.y,. |
| ecc0 | 65 6c 65 6d 65 6e 74 45 6e 64 52 65 67 69 6f 6e 2e 77 69 64 74 68 2c 20 65 6c 65 6d 65 6e 74 45 | elementEndRegion.width,.elementE |
| ece0 | 6e 64 52 65 67 69 6f 6e 2e 79 20 2d 20 65 6c 65 6d 65 6e 74 53 74 61 72 74 52 65 67 69 6f 6e 2e | ndRegion.y.-.elementStartRegion. |
| ed00 | 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 | y);..........................if. |
| ed20 | 28 44 6f 53 65 6c 65 63 74 69 6f 6e 43 68 65 63 6b 28 73 65 6c 65 63 74 69 6f 6e 41 72 65 61 29 | (DoSelectionCheck(selectionArea) |
| ed40 | 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | )..........................{.... |
| ed60 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f | ..........................if.(m_ |
| ed80 | 53 65 6c 65 63 74 65 64 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 20 3d 3d 20 69 29 0d 0a | SelectedAdjustmentRecord.==.i).. |
| eda0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 | ............................{... |
| edc0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d | ...............................m |
| ede0 | 5f 53 65 6c 65 63 74 65 64 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 20 3d 20 2d 31 3b 0d | _SelectedAdjustmentRecord.=.-1;. |
| ee00 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a | .............................}.. |
| ee20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 | ............................else |
| ee40 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d | ..............................{. |
| ee60 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| ee80 | 20 6d 5f 53 65 6c 65 63 74 65 64 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 20 3d 20 69 3b | .m_SelectedAdjustmentRecord.=.i; |
| eea0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ................................ |
| eec0 | 20 20 47 55 49 55 74 69 6c 69 74 79 2e 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 | ..GUIUtility.keyboardControl.=.0 |
| eee0 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d | ;..............................} |
| ef00 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 | ..........................}..... |
| ef20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 77 20 53 | .......................//.Draw.S |
| ef40 | 65 6c 65 63 74 69 6f 6e 20 48 69 67 68 6c 69 67 68 74 20 61 6e 64 20 4b 65 72 6e 69 6e 67 20 50 | election.Highlight.and.Kerning.P |
| ef60 | 61 69 72 20 4f 70 74 69 6f 6e 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | air.Options..................... |
| ef80 | 20 20 20 20 20 69 66 20 28 6d 5f 53 65 6c 65 63 74 65 64 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 | .....if.(m_SelectedAdjustmentRec |
| efa0 | 6f 72 64 20 3d 3d 20 69 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ord.==.i)....................... |
| efc0 | 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...{............................ |
| efe0 | 20 20 54 4d 50 5f 45 64 69 74 6f 72 55 74 69 6c 69 74 79 2e 44 72 61 77 42 6f 78 28 73 65 6c 65 | ..TMP_EditorUtility.DrawBox(sele |
| f000 | 63 74 69 6f 6e 41 72 65 61 2c 20 32 66 2c 20 6e 65 77 20 43 6f 6c 6f 72 33 32 28 34 30 2c 20 31 | ctionArea,.2f,.new.Color32(40,.1 |
| f020 | 39 32 2c 20 32 35 35 2c 20 32 35 35 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | 92,.255,.255));................. |
| f040 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 77 20 47 6c 79 70 68 20 6d 61 6e | ...............//.Draw.Glyph.man |
| f060 | 61 67 65 6d 65 6e 74 20 6f 70 74 69 6f 6e 73 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | agement.options................. |
| f080 | 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 72 6f 6c 52 65 63 74 20 3d 20 | .............Rect.controlRect.=. |
| f0a0 | 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 72 6f 6c 52 65 63 74 28 74 | EditorGUILayout.GetControlRect(t |
| f0c0 | 72 75 65 2c 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 73 69 6e 67 6c 65 4c 69 6e 65 | rue,.EditorGUIUtility.singleLine |
| f0e0 | 48 65 69 67 68 74 20 2a 20 31 66 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Height.*.1f);................... |
| f100 | 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 6f 70 74 69 6f 6e 41 72 65 61 57 69 64 74 68 | ...........float.optionAreaWidth |
| f120 | 20 3d 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 | .=.controlRect.width;........... |
| f140 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 62 74 6e 57 69 64 74 | ...................float.btnWidt |
| f160 | 68 20 3d 20 6f 70 74 69 6f 6e 41 72 65 61 57 69 64 74 68 20 2f 20 34 3b 0d 0a 0d 0a 20 20 20 20 | h.=.optionAreaWidth./.4;........ |
| f180 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 70 6f 73 | ........................Rect.pos |
| f1a0 | 69 74 69 6f 6e 20 3d 20 6e 65 77 20 52 65 63 74 28 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 78 20 2b | ition.=.new.Rect(controlRect.x.+ |
| f1c0 | 20 63 6f 6e 74 72 6f 6c 52 65 63 74 2e 77 69 64 74 68 20 2d 20 62 74 6e 57 69 64 74 68 2c 20 63 | .controlRect.width.-.btnWidth,.c |
| f1e0 | 6f 6e 74 72 6f 6c 52 65 63 74 2e 79 2c 20 62 74 6e 57 69 64 74 68 2c 20 63 6f 6e 74 72 6f 6c 52 | ontrolRect.y,.btnWidth,.controlR |
| f200 | 65 63 74 2e 68 65 69 67 68 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ect.height);.................... |
| f220 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 52 65 6d 6f 76 65 20 4b 65 72 6e 69 6e 67 20 70 61 | ............//.Remove.Kerning.pa |
| f240 | 69 72 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ir.............................. |
| f260 | 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | GUI.enabled.=.true;............. |
| f280 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 | .................if.(GUI.Button( |
| f2a0 | 70 6f 73 69 74 69 6f 6e 2c 20 22 52 65 6d 6f 76 65 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 | position,."Remove"))............ |
| f2c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ..................{............. |
| f2e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 55 74 69 6c 69 74 79 2e | .....................GUIUtility. |
| f300 | 6b 65 79 62 6f 61 72 64 43 6f 6e 74 72 6f 6c 20 3d 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | keyboardControl.=.0;............ |
| f320 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 6d 6f 76 65 41 64 | ........................RemoveAd |
| f340 | 6a 75 73 74 6d 65 6e 74 50 61 69 72 46 72 6f 6d 4c 69 73 74 28 69 29 3b 0d 0a 0d 0a 20 20 20 20 | justmentPairFromList(i);........ |
| f360 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 73 41 73 | ............................isAs |
| f380 | 73 65 74 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | setDirty.=.true;................ |
| f3a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 63 74 65 64 41 64 6a 75 | ..................m_SelectedAdju |
| f3c0 | 73 74 6d 65 6e 74 52 65 63 6f 72 64 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | stmentRecord.=.-1;.............. |
| f3e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 69 73 53 65 61 72 63 68 44 69 | ....................m_isSearchDi |
| f400 | 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | rty.=.true;..................... |
| f420 | 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | .............break;............. |
| f440 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | .................}.............. |
| f460 | 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ............}................... |
| f480 | 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 | ...}..................}......... |
| f4a0 | 20 20 20 20 20 20 20 20 20 20 20 44 69 73 70 6c 61 79 50 61 67 65 4e 61 76 69 67 61 74 69 6f 6e | ...........DisplayPageNavigation |
| f4c0 | 28 72 65 66 20 6d 5f 43 75 72 72 65 6e 74 4b 65 72 6e 69 6e 67 50 61 67 65 2c 20 61 72 72 61 79 | (ref.m_CurrentKerningPage,.array |
| f4e0 | 53 69 7a 65 2c 20 69 74 65 6d 73 50 65 72 50 61 67 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | Size,.itemsPerPage);............ |
| f500 | 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 35 29 3b 0d 0a 0d 0a 20 | ........GUILayout.Space(5);..... |
| f520 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 64 20 6e 65 77 20 6b 65 72 6e 69 6e | ...............//.Add.new.kernin |
| f540 | 67 20 70 61 69 72 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 | g.pair..................EditorGU |
| f560 | 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 45 64 69 74 6f 72 53 74 79 6c | ILayout.BeginVertical(EditorStyl |
| f580 | 65 73 2e 68 65 6c 70 42 6f 78 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d | es.helpBox);..................{. |
| f5a0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 | .....................EditorGUILa |
| f5c0 | 79 6f 75 74 2e 50 72 6f 70 65 72 74 79 46 69 65 6c 64 28 6d 5f 45 6d 70 74 79 47 6c 79 70 68 50 | yout.PropertyField(m_EmptyGlyphP |
| f5e0 | 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 5f 70 72 6f 70 29 3b 0d 0a 20 20 20 20 | airAdjustmentRecord_prop);...... |
| f600 | 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 | ............}..................E |
| f620 | 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 0d | ditorGUILayout.EndVertical();... |
| f640 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 4c 61 79 6f 75 74 2e 42 | .................if.(GUILayout.B |
| f660 | 75 74 74 6f 6e 28 22 41 64 64 20 4e 65 77 20 47 6c 79 70 68 20 41 64 6a 75 73 74 6d 65 6e 74 20 | utton("Add.New.Glyph.Adjustment. |
| f680 | 52 65 63 6f 72 64 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | Record"))..................{.... |
| f6a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 | ..................SerializedProp |
| f6c0 | 65 72 74 79 20 66 69 72 73 74 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 50 72 6f 70 65 72 | erty.firstAdjustmentRecordProper |
| f6e0 | 74 79 20 3d 20 6d 5f 45 6d 70 74 79 47 6c 79 70 68 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 | ty.=.m_EmptyGlyphPairAdjustmentR |
| f700 | 65 63 6f 72 64 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 | ecord_prop.FindPropertyRelative( |
| f720 | 22 6d 5f 46 69 72 73 74 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 22 29 3b 0d 0a 20 20 20 | "m_FirstAdjustmentRecord");..... |
| f740 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 | .................SerializedPrope |
| f760 | 72 74 79 20 73 65 63 6f 6e 64 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 50 72 6f 70 65 72 | rty.secondAdjustmentRecordProper |
| f780 | 74 79 20 3d 20 6d 5f 45 6d 70 74 79 47 6c 79 70 68 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 | ty.=.m_EmptyGlyphPairAdjustmentR |
| f7a0 | 65 63 6f 72 64 5f 70 72 6f 70 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 | ecord_prop.FindPropertyRelative( |
| f7c0 | 22 6d 5f 53 65 63 6f 6e 64 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 22 29 3b 0d 0a 0d 0a | "m_SecondAdjustmentRecord");.... |
| f7e0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 69 6e 74 20 66 69 72 73 74 47 6c | ....................uint.firstGl |
| f800 | 79 70 68 49 6e 64 65 78 20 3d 20 28 75 69 6e 74 29 66 69 72 73 74 41 64 6a 75 73 74 6d 65 6e 74 | yphIndex.=.(uint)firstAdjustment |
| f820 | 52 65 63 6f 72 64 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 | RecordProperty.FindPropertyRelat |
| f840 | 69 76 65 28 22 6d 5f 47 6c 79 70 68 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 | ive("m_GlyphIndex").intValue;... |
| f860 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 75 69 6e 74 20 73 65 63 6f 6e 64 47 6c | ...................uint.secondGl |
| f880 | 79 70 68 49 6e 64 65 78 20 3d 20 28 75 69 6e 74 29 73 65 63 6f 6e 64 41 64 6a 75 73 74 6d 65 6e | yphIndex.=.(uint)secondAdjustmen |
| f8a0 | 74 52 65 63 6f 72 64 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 | tRecordProperty.FindPropertyRela |
| f8c0 | 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a | tive("m_GlyphIndex").intValue;.. |
| f8e0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 5f 47 6c 79 70 68 56 | ......................TMP_GlyphV |
| f900 | 61 6c 75 65 52 65 63 6f 72 64 20 66 69 72 73 74 56 61 6c 75 65 52 65 63 6f 72 64 20 3d 20 47 65 | alueRecord.firstValueRecord.=.Ge |
| f920 | 74 56 61 6c 75 65 52 65 63 6f 72 64 28 66 69 72 73 74 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f | tValueRecord(firstAdjustmentReco |
| f940 | 72 64 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 | rdProperty.FindPropertyRelative( |
| f960 | 22 6d 5f 47 6c 79 70 68 56 61 6c 75 65 52 65 63 6f 72 64 22 29 29 3b 0d 0a 20 20 20 20 20 20 20 | "m_GlyphValueRecord"));......... |
| f980 | 20 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 5f 47 6c 79 70 68 56 61 6c 75 65 52 65 63 6f 72 | .............TMP_GlyphValueRecor |
| f9a0 | 64 20 73 65 63 6f 6e 64 56 61 6c 75 65 52 65 63 6f 72 64 20 3d 20 47 65 74 56 61 6c 75 65 52 65 | d.secondValueRecord.=.GetValueRe |
| f9c0 | 63 6f 72 64 28 73 65 63 6f 6e 64 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 50 72 6f 70 65 | cord(secondAdjustmentRecordPrope |
| f9e0 | 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 | rty.FindPropertyRelative("m_Glyp |
| fa00 | 68 56 61 6c 75 65 52 65 63 6f 72 64 22 29 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | hValueRecord"));................ |
| fa20 | 20 20 20 20 20 20 20 20 65 72 72 6f 72 43 6f 64 65 20 3d 20 2d 31 3b 0d 0a 20 20 20 20 20 20 20 | ........errorCode.=.-1;......... |
| fa40 | 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 6f 6e 67 20 70 61 69 72 4b 65 79 20 3d 20 28 6c 6f 6e | .............long.pairKey.=.(lon |
| fa60 | 67 29 73 65 63 6f 6e 64 47 6c 79 70 68 49 6e 64 65 78 20 3c 3c 20 33 32 20 7c 20 66 69 72 73 74 | g)secondGlyphIndex.<<.32.|.first |
| fa80 | 47 6c 79 70 68 49 6e 64 65 78 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | GlyphIndex;..................... |
| faa0 | 20 69 66 20 28 6d 5f 46 6f 6e 74 46 65 61 74 75 72 65 54 61 62 6c 65 2e 6d 5f 47 6c 79 70 68 50 | .if.(m_FontFeatureTable.m_GlyphP |
| fac0 | 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 4c 6f 6f 6b 75 70 44 69 63 74 69 6f 6e | airAdjustmentRecordLookupDiction |
| fae0 | 61 72 79 2e 43 6f 6e 74 61 69 6e 73 4b 65 79 28 70 61 69 72 4b 65 79 29 20 3d 3d 20 66 61 6c 73 | ary.ContainsKey(pairKey).==.fals |
| fb00 | 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 | e)......................{....... |
| fb20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 5f 47 6c 79 70 68 50 61 69 72 | ...................TMP_GlyphPair |
| fb40 | 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 20 61 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 | AdjustmentRecord.adjustmentRecor |
| fb60 | 64 20 3d 20 6e 65 77 20 54 4d 50 5f 47 6c 79 70 68 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 | d.=.new.TMP_GlyphPairAdjustmentR |
| fb80 | 65 63 6f 72 64 28 6e 65 77 20 54 4d 50 5f 47 6c 79 70 68 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 | ecord(new.TMP_GlyphAdjustmentRec |
| fba0 | 6f 72 64 28 66 69 72 73 74 47 6c 79 70 68 49 6e 64 65 78 2c 20 66 69 72 73 74 56 61 6c 75 65 52 | ord(firstGlyphIndex,.firstValueR |
| fbc0 | 65 63 6f 72 64 29 2c 20 6e 65 77 20 54 4d 50 5f 47 6c 79 70 68 41 64 6a 75 73 74 6d 65 6e 74 52 | ecord),.new.TMP_GlyphAdjustmentR |
| fbe0 | 65 63 6f 72 64 28 73 65 63 6f 6e 64 47 6c 79 70 68 49 6e 64 65 78 2c 20 73 65 63 6f 6e 64 56 61 | ecord(secondGlyphIndex,.secondVa |
| fc00 | 6c 75 65 52 65 63 6f 72 64 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | lueRecord));.................... |
| fc20 | 20 20 20 20 20 20 6d 5f 46 6f 6e 74 46 65 61 74 75 72 65 54 61 62 6c 65 2e 6d 5f 47 6c 79 70 68 | ......m_FontFeatureTable.m_Glyph |
| fc40 | 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 73 2e 41 64 64 28 61 64 6a 75 73 74 | PairAdjustmentRecords.Add(adjust |
| fc60 | 6d 65 6e 74 52 65 63 6f 72 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | mentRecord);.................... |
| fc80 | 20 20 20 20 20 20 6d 5f 46 6f 6e 74 46 65 61 74 75 72 65 54 61 62 6c 65 2e 6d 5f 47 6c 79 70 68 | ......m_FontFeatureTable.m_Glyph |
| fca0 | 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 4c 6f 6f 6b 75 70 44 69 63 74 69 6f | PairAdjustmentRecordLookupDictio |
| fcc0 | 6e 61 72 79 2e 41 64 64 28 70 61 69 72 4b 65 79 2c 20 61 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f | nary.Add(pairKey,.adjustmentReco |
| fce0 | 72 64 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 72 | rd);..........................er |
| fd00 | 72 6f 72 43 6f 64 65 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | rorCode.=.0;.................... |
| fd20 | 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 | ..}........................//.Ad |
| fd40 | 64 20 67 6c 79 70 68 73 20 61 6e 64 20 63 68 61 72 61 63 74 65 72 73 0d 0a 20 20 20 20 20 20 20 | d.glyphs.and.characters......... |
| fd60 | 20 20 20 20 20 20 20 20 20 20 20 20 20 75 69 6e 74 20 66 69 72 73 74 43 68 61 72 61 63 74 65 72 | .............uint.firstCharacter |
| fd80 | 20 3d 20 6d 5f 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 48 6f 6c 64 65 72 2e 66 69 | .=.m_SerializedPropertyHolder.fi |
| fda0 | 72 73 74 43 68 61 72 61 63 74 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | rstCharacter;................... |
| fdc0 | 20 20 20 69 66 20 28 21 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 63 68 61 72 61 63 74 65 72 4c 6f 6f | ...if.(!m_fontAsset.characterLoo |
| fde0 | 6b 75 70 54 61 62 6c 65 2e 43 6f 6e 74 61 69 6e 73 4b 65 79 28 66 69 72 73 74 43 68 61 72 61 63 | kupTable.ContainsKey(firstCharac |
| fe00 | 74 65 72 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d | ter))..........................m |
| fe20 | 5f 66 6f 6e 74 41 73 73 65 74 2e 54 72 79 41 64 64 43 68 61 72 61 63 74 65 72 49 6e 74 65 72 6e | _fontAsset.TryAddCharacterIntern |
| fe40 | 61 6c 28 66 69 72 73 74 43 68 61 72 61 63 74 65 72 2c 20 6f 75 74 20 54 4d 50 5f 43 68 61 72 61 | al(firstCharacter,.out.TMP_Chara |
| fe60 | 63 74 65 72 20 63 68 61 72 61 63 74 65 72 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | cter.character);................ |
| fe80 | 20 20 20 20 20 20 20 20 75 69 6e 74 20 73 65 63 6f 6e 64 43 68 61 72 61 63 74 65 72 20 3d 20 6d | ........uint.secondCharacter.=.m |
| fea0 | 5f 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 48 6f 6c 64 65 72 2e 73 65 63 6f 6e 64 | _SerializedPropertyHolder.second |
| fec0 | 43 68 61 72 61 63 74 65 72 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | Character;...................... |
| fee0 | 69 66 20 28 21 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 63 68 61 72 61 63 74 65 72 4c 6f 6f 6b 75 70 | if.(!m_fontAsset.characterLookup |
| ff00 | 54 61 62 6c 65 2e 43 6f 6e 74 61 69 6e 73 4b 65 79 28 73 65 63 6f 6e 64 43 68 61 72 61 63 74 65 | Table.ContainsKey(secondCharacte |
| ff20 | 72 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 | r))..........................m_f |
| ff40 | 6f 6e 74 41 73 73 65 74 2e 54 72 79 41 64 64 43 68 61 72 61 63 74 65 72 49 6e 74 65 72 6e 61 6c | ontAsset.TryAddCharacterInternal |
| ff60 | 28 73 65 63 6f 6e 64 43 68 61 72 61 63 74 65 72 2c 20 6f 75 74 20 54 4d 50 5f 43 68 61 72 61 63 | (secondCharacter,.out.TMP_Charac |
| ff80 | 74 65 72 20 63 68 61 72 61 63 74 65 72 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | ter.character);................. |
| ffa0 | 20 20 20 20 20 20 20 2f 2f 20 53 6f 72 74 20 4b 65 72 6e 69 6e 67 20 50 61 69 72 73 20 26 20 52 | .......//.Sort.Kerning.Pairs.&.R |
| ffc0 | 65 6c 6f 61 64 20 46 6f 6e 74 20 41 73 73 65 74 20 69 66 20 6e 65 77 20 6b 65 72 6e 69 6e 67 20 | eload.Font.Asset.if.new.kerning. |
| ffe0 | 70 61 69 72 20 77 61 73 20 61 64 64 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | pair.was.added.................. |
| 10000 | 20 20 20 20 20 69 66 20 28 65 72 72 6f 72 43 6f 64 65 20 21 3d 20 2d 31 29 0d 0a 20 20 20 20 20 | .....if.(errorCode.!=.-1)....... |
| 10020 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...............{................ |
| 10040 | 20 20 20 20 20 20 20 20 20 20 6d 5f 46 6f 6e 74 46 65 61 74 75 72 65 54 61 62 6c 65 2e 53 6f 72 | ..........m_FontFeatureTable.Sor |
| 10060 | 74 47 6c 79 70 68 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 73 28 29 3b 0d 0a | tGlyphPairAdjustmentRecords();.. |
| 10080 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a | ........................serializ |
| 100a0 | 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 | edObject.ApplyModifiedProperties |
| 100c0 | 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 73 41 | ();..........................isA |
| 100e0 | 73 73 65 74 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | ssetDirty.=.true;............... |
| 10100 | 20 20 20 20 20 20 20 20 20 20 20 6d 5f 69 73 53 65 61 72 63 68 44 69 72 74 79 20 3d 20 74 72 75 | ...........m_isSearchDirty.=.tru |
| 10120 | 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 | e;......................}....... |
| 10140 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ...............else............. |
| 10160 | 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | .........{...................... |
| 10180 | 20 20 20 20 74 69 6d 65 53 74 61 6d 70 20 3d 20 53 79 73 74 65 6d 2e 44 61 74 65 54 69 6d 65 2e | ....timeStamp.=.System.DateTime. |
| 101a0 | 4e 6f 77 2e 41 64 64 53 65 63 6f 6e 64 73 28 35 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | Now.AddSeconds(5);.............. |
| 101c0 | 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ........}....................... |
| 101e0 | 20 2f 2f 20 43 6c 65 61 72 20 41 64 64 20 4b 65 72 6e 69 6e 67 20 50 61 69 72 20 50 61 6e 65 6c | .//.Clear.Add.Kerning.Pair.Panel |
| 10200 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 4f 44 4f 0d 0a 20 | ......................//.TODO... |
| 10220 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ...............}................ |
| 10240 | 20 20 20 20 69 66 20 28 65 72 72 6f 72 43 6f 64 65 20 3d 3d 20 2d 31 29 0d 0a 20 20 20 20 20 20 | ....if.(errorCode.==.-1)........ |
| 10260 | 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..........{..................... |
| 10280 | 20 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 28 29 3b 0d 0a 20 | .GUILayout.BeginHorizontal();... |
| 102a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 46 6c 65 | ...................GUILayout.Fle |
| 102c0 | 78 69 62 6c 65 53 70 61 63 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | xibleSpace();................... |
| 102e0 | 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 4c 61 62 65 6c 28 22 4b 65 72 6e 69 6e 67 20 50 61 69 72 | ...GUILayout.Label("Kerning.Pair |
| 10300 | 20 61 6c 72 65 61 64 79 20 3c 63 6f 6c 6f 72 3d 23 66 66 66 66 30 30 3e 65 78 69 73 74 73 21 3c | .already.<color=#ffff00>exists!< |
| 10320 | 2f 63 6f 6c 6f 72 3e 22 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 6c 61 62 | /color>",.TMP_UIStyleManager.lab |
| 10340 | 65 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 | el);......................GUILay |
| 10360 | 6f 75 74 2e 46 6c 65 78 69 62 6c 65 53 70 61 63 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 | out.FlexibleSpace();............ |
| 10380 | 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 | ..........GUILayout.EndHorizonta |
| 103a0 | 6c 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 | l();........................if.( |
| 103c0 | 53 79 73 74 65 6d 2e 44 61 74 65 54 69 6d 65 2e 4e 6f 77 20 3e 20 74 69 6d 65 53 74 61 6d 70 29 | System.DateTime.Now.>.timeStamp) |
| 103e0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 72 72 6f 72 43 | ..........................errorC |
| 10400 | 6f 64 65 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 | ode.=.0;..................}..... |
| 10420 | 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 69 | .........}..............#endregi |
| 10440 | 6f 6e 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 72 69 61 6c 69 7a 65 64 | on................if.(serialized |
| 10460 | 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 | Object.ApplyModifiedProperties() |
| 10480 | 20 7c 7c 20 65 76 74 5f 63 6d 64 20 3d 3d 20 6b 5f 55 6e 64 6f 52 65 64 6f 20 7c 7c 20 69 73 41 | .||.evt_cmd.==.k_UndoRedo.||.isA |
| 104a0 | 73 73 65 74 44 69 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 | ssetDirty)..............{....... |
| 104c0 | 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 6c 61 79 20 63 61 6c 6c 62 61 63 6b 20 75 6e 74 | ...........//.Delay.callback.unt |
| 104e0 | 69 6c 20 75 73 65 72 20 68 61 73 20 64 65 63 69 64 65 64 20 74 6f 20 41 70 70 6c 79 20 6f 72 20 | il.user.has.decided.to.Apply.or. |
| 10500 | 52 65 76 65 72 74 20 74 68 65 20 63 68 61 6e 67 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | Revert.the.changes.............. |
| 10520 | 20 20 20 20 20 69 66 20 28 6d 5f 44 69 73 70 6c 61 79 44 65 73 74 72 75 63 74 69 76 65 43 68 61 | .....if.(m_DisplayDestructiveCha |
| 10540 | 6e 67 65 57 61 72 6e 69 6e 67 20 3d 3d 20 66 61 6c 73 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 | ngeWarning.==.false)............ |
| 10560 | 20 20 20 20 20 20 20 20 20 20 54 4d 50 72 6f 5f 45 76 65 6e 74 4d 61 6e 61 67 65 72 2e 4f 4e 5f | ..........TMPro_EventManager.ON_ |
| 10580 | 46 4f 4e 54 5f 50 52 4f 50 45 52 54 59 5f 43 48 41 4e 47 45 44 28 74 72 75 65 2c 20 6d 5f 66 6f | FONT_PROPERTY_CHANGED(true,.m_fo |
| 105a0 | 6e 74 41 73 73 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 | ntAsset);....................if. |
| 105c0 | 28 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 49 73 46 6f 6e 74 41 73 73 65 74 4c 6f 6f 6b 75 70 | (m_fontAsset.m_IsFontAssetLookup |
| 105e0 | 54 61 62 6c 65 73 44 69 72 74 79 20 7c 7c 20 65 76 74 5f 63 6d 64 20 3d 3d 20 6b 5f 55 6e 64 6f | TablesDirty.||.evt_cmd.==.k_Undo |
| 10600 | 52 65 64 6f 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e | Redo)......................m_fon |
| 10620 | 74 41 73 73 65 74 2e 52 65 61 64 46 6f 6e 74 41 73 73 65 74 44 65 66 69 6e 69 74 69 6f 6e 28 29 | tAsset.ReadFontAssetDefinition() |
| 10640 | 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 73 41 73 73 65 74 44 69 72 74 | ;....................isAssetDirt |
| 10660 | 79 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 | y.=.false;..................Edit |
| 10680 | 6f 72 55 74 69 6c 69 74 79 2e 53 65 74 44 69 72 74 79 28 74 61 72 67 65 74 29 3b 0d 0a 20 20 20 | orUtility.SetDirty(target);..... |
| 106a0 | 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 | .........}..................//.C |
| 106c0 | 6c 65 61 72 20 73 65 6c 65 63 74 69 6f 6e 20 69 66 20 6d 6f 75 73 65 20 65 76 65 6e 74 20 77 61 | lear.selection.if.mouse.event.wa |
| 106e0 | 73 20 6e 6f 74 20 63 6f 6e 73 75 6d 65 64 2e 20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 | s.not.consumed................GU |
| 10700 | 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 | I.enabled.=.true;..............i |
| 10720 | 66 20 28 63 75 72 72 65 6e 74 45 76 65 6e 74 2e 74 79 70 65 20 3d 3d 20 45 76 65 6e 74 54 79 70 | f.(currentEvent.type.==.EventTyp |
| 10740 | 65 2e 4d 6f 75 73 65 44 6f 77 6e 20 26 26 20 63 75 72 72 65 6e 74 45 76 65 6e 74 2e 62 75 74 74 | e.MouseDown.&&.currentEvent.butt |
| 10760 | 6f 6e 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 53 65 6c 65 | on.==.0)..................m_Sele |
| 10780 | 63 74 65 64 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 20 3d 20 2d 31 3b 0d 0a 0d 0a 20 20 | ctedAdjustmentRecord.=.-1;...... |
| 107a0 | 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 43 6c 65 61 6e 46 61 6c | ......}............void.CleanFal |
| 107c0 | 6c 62 61 63 6b 46 6f 6e 74 41 73 73 65 74 54 61 62 6c 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b | lbackFontAssetTable()..........{ |
| 107e0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 | ..............SerializedProperty |
| 10800 | 20 6d 5f 46 61 6c 6c 62 61 63 6b 46 6f 6e 74 41 73 73 65 54 61 62 6c 65 20 3d 20 73 65 72 69 61 | .m_FallbackFontAsseTable.=.seria |
| 10820 | 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 28 22 6d 5f 46 61 6c 6c | lizedObject.FindProperty("m_Fall |
| 10840 | 62 61 63 6b 46 6f 6e 74 41 73 73 65 74 54 61 62 6c 65 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 | backFontAssetTable");........... |
| 10860 | 20 20 20 20 20 62 6f 6f 6c 20 69 73 4c 69 73 74 44 69 72 74 79 20 3d 20 66 61 6c 73 65 3b 0d 0a | .....bool.isListDirty.=.false;.. |
| 10880 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 65 6c 65 6d 65 6e 74 43 6f 75 6e 74 20 3d | ..............int.elementCount.= |
| 108a0 | 20 6d 5f 46 61 6c 6c 62 61 63 6b 46 6f 6e 74 41 73 73 65 54 61 62 6c 65 2e 61 72 72 61 79 53 69 | .m_FallbackFontAsseTable.arraySi |
| 108c0 | 7a 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 | ze;................for.(int.i.=. |
| 108e0 | 30 3b 20 69 20 3c 20 65 6c 65 6d 65 6e 74 43 6f 75 6e 74 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 | 0;.i.<.elementCount;.i++)....... |
| 10900 | 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c | .......{..................Serial |
| 10920 | 69 7a 65 64 50 72 6f 70 65 72 74 79 20 65 6c 65 6d 65 6e 74 20 3d 20 6d 5f 46 61 6c 6c 62 61 63 | izedProperty.element.=.m_Fallbac |
| 10940 | 6b 46 6f 6e 74 41 73 73 65 54 61 62 6c 65 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 | kFontAsseTable.GetArrayElementAt |
| 10960 | 49 6e 64 65 78 28 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 | Index(i);..................if.(e |
| 10980 | 6c 65 6d 65 6e 74 2e 6f 62 6a 65 63 74 52 65 66 65 72 65 6e 63 65 56 61 6c 75 65 20 3d 3d 20 6e | lement.objectReferenceValue.==.n |
| 109a0 | 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | ull)..................{......... |
| 109c0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 46 61 6c 6c 62 61 63 6b 46 6f 6e 74 41 73 73 65 54 | .............m_FallbackFontAsseT |
| 109e0 | 61 62 6c 65 2e 44 65 6c 65 74 65 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 | able.DeleteArrayElementAtIndex(i |
| 10a00 | 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 65 6d 65 6e 74 43 | );......................elementC |
| 10a20 | 6f 75 6e 74 20 2d 3d 20 31 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ount.-=.1;...................... |
| 10a40 | 69 20 2d 3d 20 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 | i.-=.1;........................i |
| 10a60 | 73 4c 69 73 74 44 69 72 74 79 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | sListDirty.=.true;.............. |
| 10a80 | 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | ....}..............}............ |
| 10aa0 | 20 20 20 20 69 66 20 28 69 73 4c 69 73 74 44 69 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 20 20 | ....if.(isListDirty)............ |
| 10ac0 | 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f | ..{..................serializedO |
| 10ae0 | 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b | bject.ApplyModifiedProperties(); |
| 10b00 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 | ..................serializedObje |
| 10b20 | 63 74 2e 55 70 64 61 74 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 | ct.Update();..............}..... |
| 10b40 | 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 53 61 76 65 64 41 74 6c 61 | .....}............void.SavedAtla |
| 10b60 | 73 47 65 6e 65 72 61 74 69 6f 6e 53 65 74 74 69 6e 67 73 28 29 0d 0a 20 20 20 20 20 20 20 20 7b | sGenerationSettings()..........{ |
| 10b80 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c 61 73 53 65 74 74 69 6e 67 73 2e 67 6c | ..............m_AtlasSettings.gl |
| 10ba0 | 79 70 68 52 65 6e 64 65 72 4d 6f 64 65 20 3d 20 28 47 6c 79 70 68 52 65 6e 64 65 72 4d 6f 64 65 | yphRenderMode.=.(GlyphRenderMode |
| 10bc0 | 29 6d 5f 41 74 6c 61 73 52 65 6e 64 65 72 4d 6f 64 65 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 | )m_AtlasRenderMode_prop.intValue |
| 10be0 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c 61 73 53 65 74 74 69 6e 67 73 2e 70 | ;..............m_AtlasSettings.p |
| 10c00 | 6f 69 6e 74 53 69 7a 65 20 20 20 20 20 20 20 3d 20 6d 5f 53 61 6d 70 6c 69 6e 67 50 6f 69 6e 74 | ointSize.......=.m_SamplingPoint |
| 10c20 | 53 69 7a 65 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | Size_prop.intValue;............. |
| 10c40 | 20 6d 5f 41 74 6c 61 73 53 65 74 74 69 6e 67 73 2e 70 61 64 64 69 6e 67 20 20 20 20 20 20 20 20 | .m_AtlasSettings.padding........ |
| 10c60 | 20 3d 20 6d 5f 41 74 6c 61 73 50 61 64 64 69 6e 67 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 3b | .=.m_AtlasPadding_prop.intValue; |
| 10c80 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c 61 73 53 65 74 74 69 6e 67 73 2e 61 74 | ..............m_AtlasSettings.at |
| 10ca0 | 6c 61 73 57 69 64 74 68 20 20 20 20 20 20 3d 20 6d 5f 41 74 6c 61 73 57 69 64 74 68 5f 70 72 6f | lasWidth......=.m_AtlasWidth_pro |
| 10cc0 | 70 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c 61 73 | p.intValue;..............m_Atlas |
| 10ce0 | 53 65 74 74 69 6e 67 73 2e 61 74 6c 61 73 48 65 69 67 68 74 20 20 20 20 20 3d 20 6d 5f 41 74 6c | Settings.atlasHeight.....=.m_Atl |
| 10d00 | 61 73 48 65 69 67 68 74 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 | asHeight_prop.intValue;......... |
| 10d20 | 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 52 65 73 74 6f 72 65 41 74 6c 61 73 47 | .}............void.RestoreAtlasG |
| 10d40 | 65 6e 65 72 61 74 69 6f 6e 53 65 74 74 69 6e 67 73 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a | enerationSettings()..........{.. |
| 10d60 | 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c 61 73 52 65 6e 64 65 72 4d 6f 64 65 5f 70 72 | ............m_AtlasRenderMode_pr |
| 10d80 | 6f 70 2e 69 6e 74 56 61 6c 75 65 20 3d 20 28 69 6e 74 29 6d 5f 41 74 6c 61 73 53 65 74 74 69 6e | op.intValue.=.(int)m_AtlasSettin |
| 10da0 | 67 73 2e 67 6c 79 70 68 52 65 6e 64 65 72 4d 6f 64 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | gs.glyphRenderMode;............. |
| 10dc0 | 20 6d 5f 53 61 6d 70 6c 69 6e 67 50 6f 69 6e 74 53 69 7a 65 5f 70 72 6f 70 2e 69 6e 74 56 61 6c | .m_SamplingPointSize_prop.intVal |
| 10de0 | 75 65 20 3d 20 6d 5f 41 74 6c 61 73 53 65 74 74 69 6e 67 73 2e 70 6f 69 6e 74 53 69 7a 65 3b 0d | ue.=.m_AtlasSettings.pointSize;. |
| 10e00 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c 61 73 50 61 64 64 69 6e 67 5f 70 72 6f 70 | .............m_AtlasPadding_prop |
| 10e20 | 2e 69 6e 74 56 61 6c 75 65 20 3d 20 6d 5f 41 74 6c 61 73 53 65 74 74 69 6e 67 73 2e 70 61 64 64 | .intValue.=.m_AtlasSettings.padd |
| 10e40 | 69 6e 67 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c 61 73 57 69 64 74 68 5f 70 | ing;..............m_AtlasWidth_p |
| 10e60 | 72 6f 70 2e 69 6e 74 56 61 6c 75 65 20 3d 20 6d 5f 41 74 6c 61 73 53 65 74 74 69 6e 67 73 2e 61 | rop.intValue.=.m_AtlasSettings.a |
| 10e80 | 74 6c 61 73 57 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 41 74 6c 61 73 48 | tlasWidth;..............m_AtlasH |
| 10ea0 | 65 69 67 68 74 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 20 3d 20 6d 5f 41 74 6c 61 73 53 65 74 | eight_prop.intValue.=.m_AtlasSet |
| 10ec0 | 74 69 6e 67 73 2e 61 74 6c 61 73 48 65 69 67 68 74 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d | tings.atlasHeight;..........}... |
| 10ee0 | 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 55 70 64 61 74 65 46 6f 6e 74 41 73 73 65 74 43 | ...........void.UpdateFontAssetC |
| 10f00 | 72 65 61 74 69 6f 6e 53 65 74 74 69 6e 67 73 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 | reationSettings()..........{.... |
| 10f20 | 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 43 72 65 61 74 69 6f 6e | ..........m_fontAsset.m_Creation |
| 10f40 | 53 65 74 74 69 6e 67 73 2e 70 6f 69 6e 74 53 69 7a 65 20 3d 20 6d 5f 53 61 6d 70 6c 69 6e 67 50 | Settings.pointSize.=.m_SamplingP |
| 10f60 | 6f 69 6e 74 53 69 7a 65 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 | ointSize_prop.intValue;......... |
| 10f80 | 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 43 72 65 61 74 69 6f 6e 53 65 74 74 69 | .....m_fontAsset.m_CreationSetti |
| 10fa0 | 6e 67 73 2e 72 65 6e 64 65 72 4d 6f 64 65 20 3d 20 6d 5f 41 74 6c 61 73 52 65 6e 64 65 72 4d 6f | ngs.renderMode.=.m_AtlasRenderMo |
| 10fc0 | 64 65 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d | de_prop.intValue;..............m |
| 10fe0 | 5f 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 43 72 65 61 74 69 6f 6e 53 65 74 74 69 6e 67 73 2e 70 61 | _fontAsset.m_CreationSettings.pa |
| 11000 | 64 64 69 6e 67 20 3d 20 6d 5f 41 74 6c 61 73 50 61 64 64 69 6e 67 5f 70 72 6f 70 2e 69 6e 74 56 | dding.=.m_AtlasPadding_prop.intV |
| 11020 | 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 6d | alue;..............m_fontAsset.m |
| 11040 | 5f 43 72 65 61 74 69 6f 6e 53 65 74 74 69 6e 67 73 2e 61 74 6c 61 73 57 69 64 74 68 20 3d 20 6d | _CreationSettings.atlasWidth.=.m |
| 11060 | 5f 41 74 6c 61 73 57 69 64 74 68 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 | _AtlasWidth_prop.intValue;...... |
| 11080 | 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 6d 5f 43 72 65 61 74 69 6f 6e 53 65 | ........m_fontAsset.m_CreationSe |
| 110a0 | 74 74 69 6e 67 73 2e 61 74 6c 61 73 48 65 69 67 68 74 20 3d 20 6d 5f 41 74 6c 61 73 48 65 69 67 | ttings.atlasHeight.=.m_AtlasHeig |
| 110c0 | 68 74 5f 70 72 6f 70 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a | ht_prop.intValue;..........}.... |
| 110e0 | 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 55 70 64 61 74 65 43 68 61 72 61 63 74 65 72 44 61 | ..........void.UpdateCharacterDa |
| 11100 | 74 61 28 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 | ta(SerializedProperty.property,. |
| 11120 | 69 6e 74 20 69 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 | int.index)..........{........... |
| 11140 | 20 20 20 54 4d 50 5f 43 68 61 72 61 63 74 65 72 20 63 68 61 72 61 63 74 65 72 20 3d 20 6d 5f 66 | ...TMP_Character.character.=.m_f |
| 11160 | 6f 6e 74 41 73 73 65 74 2e 63 68 61 72 61 63 74 65 72 54 61 62 6c 65 5b 69 6e 64 65 78 5d 3b 0d | ontAsset.characterTable[index];. |
| 11180 | 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 61 63 74 65 72 2e 75 6e 69 63 6f 64 65 | ...............character.unicode |
| 111a0 | 20 3d 20 28 75 69 6e 74 29 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 | .=.(uint)property.FindPropertyRe |
| 111c0 | 6c 61 74 69 76 65 28 22 6d 5f 55 6e 69 63 6f 64 65 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 | lative("m_Unicode").intValue;... |
| 111e0 | 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 61 63 74 65 72 2e 73 63 61 6c 65 20 3d 20 70 72 6f | ...........character.scale.=.pro |
| 11200 | 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 63 | perty.FindPropertyRelative("m_Sc |
| 11220 | 61 6c 65 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ale").floatValue;............... |
| 11240 | 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 67 6c 79 70 68 50 72 6f 70 65 72 74 | .SerializedProperty.glyphPropert |
| 11260 | 79 20 3d 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 | y.=.property.FindPropertyRelativ |
| 11280 | 65 28 22 6d 5f 47 6c 79 70 68 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 61 | e("m_Glyph");..............chara |
| 112a0 | 63 74 65 72 2e 67 6c 79 70 68 2e 69 6e 64 65 78 20 3d 20 28 75 69 6e 74 29 67 6c 79 70 68 50 72 | cter.glyph.index.=.(uint)glyphPr |
| 112c0 | 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 49 | operty.FindPropertyRelative("m_I |
| 112e0 | 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ndex").intValue;................ |
| 11300 | 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 67 6c 79 70 68 52 65 63 74 50 72 6f 70 | SerializedProperty.glyphRectProp |
| 11320 | 65 72 74 79 20 3d 20 67 6c 79 70 68 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 | erty.=.glyphProperty.FindPropert |
| 11340 | 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 52 65 63 74 22 29 3b 0d 0a 20 20 20 20 20 | yRelative("m_GlyphRect");....... |
| 11360 | 20 20 20 20 20 20 20 63 68 61 72 61 63 74 65 72 2e 67 6c 79 70 68 2e 67 6c 79 70 68 52 65 63 74 | .......character.glyph.glyphRect |
| 11380 | 20 3d 20 6e 65 77 20 47 6c 79 70 68 52 65 63 74 28 67 6c 79 70 68 52 65 63 74 50 72 6f 70 65 72 | .=.new.GlyphRect(glyphRectProper |
| 113a0 | 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 58 22 29 2e 69 | ty.FindPropertyRelative("m_X").i |
| 113c0 | 6e 74 56 61 6c 75 65 2c 20 67 6c 79 70 68 52 65 63 74 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 | ntValue,.glyphRectProperty.FindP |
| 113e0 | 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 59 22 29 2e 69 6e 74 56 61 6c 75 65 2c | ropertyRelative("m_Y").intValue, |
| 11400 | 20 67 6c 79 70 68 52 65 63 74 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 | .glyphRectProperty.FindPropertyR |
| 11420 | 65 6c 61 74 69 76 65 28 22 6d 5f 57 69 64 74 68 22 29 2e 69 6e 74 56 61 6c 75 65 2c 20 67 6c 79 | elative("m_Width").intValue,.gly |
| 11440 | 70 68 52 65 63 74 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 | phRectProperty.FindPropertyRelat |
| 11460 | 69 76 65 28 22 6d 5f 48 65 69 67 68 74 22 29 2e 69 6e 74 56 61 6c 75 65 29 3b 0d 0a 0d 0a 20 20 | ive("m_Height").intValue);...... |
| 11480 | 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 67 6c 79 | ..........SerializedProperty.gly |
| 114a0 | 70 68 4d 65 74 72 69 63 73 50 72 6f 70 65 72 74 79 20 3d 20 67 6c 79 70 68 50 72 6f 70 65 72 74 | phMetricsProperty.=.glyphPropert |
| 114c0 | 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 4d 65 74 72 69 63 | y.FindPropertyRelative("m_Metric |
| 114e0 | 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 61 63 74 65 72 2e 67 6c 79 70 | s");..............character.glyp |
| 11500 | 68 2e 6d 65 74 72 69 63 73 20 3d 20 6e 65 77 20 47 6c 79 70 68 4d 65 74 72 69 63 73 28 67 6c 79 | h.metrics.=.new.GlyphMetrics(gly |
| 11520 | 70 68 4d 65 74 72 69 63 73 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 | phMetricsProperty.FindPropertyRe |
| 11540 | 6c 61 74 69 76 65 28 22 6d 5f 57 69 64 74 68 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 2c 20 67 6c | lative("m_Width").floatValue,.gl |
| 11560 | 79 70 68 4d 65 74 72 69 63 73 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 | yphMetricsProperty.FindPropertyR |
| 11580 | 65 6c 61 74 69 76 65 28 22 6d 5f 48 65 69 67 68 74 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 2c 20 | elative("m_Height").floatValue,. |
| 115a0 | 67 6c 79 70 68 4d 65 74 72 69 63 73 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 | glyphMetricsProperty.FindPropert |
| 115c0 | 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 58 22 | yRelative("m_HorizontalBearingX" |
| 115e0 | 29 2e 66 6c 6f 61 74 56 61 6c 75 65 2c 20 67 6c 79 70 68 4d 65 74 72 69 63 73 50 72 6f 70 65 72 | ).floatValue,.glyphMetricsProper |
| 11600 | 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 6f 72 69 7a | ty.FindPropertyRelative("m_Horiz |
| 11620 | 6f 6e 74 61 6c 42 65 61 72 69 6e 67 59 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 2c 20 67 6c 79 70 | ontalBearingY").floatValue,.glyp |
| 11640 | 68 4d 65 74 72 69 63 73 50 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c | hMetricsProperty.FindPropertyRel |
| 11660 | 61 74 69 76 65 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 41 64 76 61 6e 63 65 22 29 2e 66 6c 6f | ative("m_HorizontalAdvance").flo |
| 11680 | 61 74 56 61 6c 75 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 61 63 74 | atValue);................charact |
| 116a0 | 65 72 2e 67 6c 79 70 68 2e 73 63 61 6c 65 20 3d 20 67 6c 79 70 68 50 72 6f 70 65 72 74 79 2e 46 | er.glyph.scale.=.glyphProperty.F |
| 116c0 | 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 63 61 6c 65 22 29 2e 66 | indPropertyRelative("m_Scale").f |
| 116e0 | 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 61 63 | loatValue;................charac |
| 11700 | 74 65 72 2e 67 6c 79 70 68 2e 61 74 6c 61 73 49 6e 64 65 78 20 3d 20 67 6c 79 70 68 50 72 6f 70 | ter.glyph.atlasIndex.=.glyphProp |
| 11720 | 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 41 74 6c | erty.FindPropertyRelative("m_Atl |
| 11740 | 61 73 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a | asIndex").intValue;..........}.. |
| 11760 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 55 70 64 61 74 65 47 6c 79 70 68 44 61 74 61 | ............void.UpdateGlyphData |
| 11780 | 28 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 69 6e | (SerializedProperty.property,.in |
| 117a0 | 74 20 69 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | t.index)..........{............. |
| 117c0 | 20 47 6c 79 70 68 20 67 6c 79 70 68 20 3d 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 67 6c 79 70 68 | .Glyph.glyph.=.m_fontAsset.glyph |
| 117e0 | 54 61 62 6c 65 5b 69 6e 64 65 78 5d 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 6c 79 | Table[index];................gly |
| 11800 | 70 68 2e 69 6e 64 65 78 20 3d 20 28 75 69 6e 74 29 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 | ph.index.=.(uint)property.FindPr |
| 11820 | 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c | opertyRelative("m_Index").intVal |
| 11840 | 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f | ue;................SerializedPro |
| 11860 | 70 65 72 74 79 20 67 6c 79 70 68 52 65 63 74 20 3d 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 | perty.glyphRect.=.property.FindP |
| 11880 | 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 52 65 63 74 22 29 3b 0d | ropertyRelative("m_GlyphRect");. |
| 118a0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 6c 79 70 68 2e 67 6c 79 70 68 52 65 63 74 20 3d 20 6e | .............glyph.glyphRect.=.n |
| 118c0 | 65 77 20 47 6c 79 70 68 52 65 63 74 28 67 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 | ew.GlyphRect(glyphRect.FindPrope |
| 118e0 | 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 58 22 29 2e 69 6e 74 56 61 6c 75 65 2c 20 67 6c 79 | rtyRelative("m_X").intValue,.gly |
| 11900 | 70 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 59 | phRect.FindPropertyRelative("m_Y |
| 11920 | 22 29 2e 69 6e 74 56 61 6c 75 65 2c 20 67 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 | ").intValue,.glyphRect.FindPrope |
| 11940 | 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 57 69 64 74 68 22 29 2e 69 6e 74 56 61 6c 75 65 2c | rtyRelative("m_Width").intValue, |
| 11960 | 20 67 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 | .glyphRect.FindPropertyRelative( |
| 11980 | 22 6d 5f 48 65 69 67 68 74 22 29 2e 69 6e 74 56 61 6c 75 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 | "m_Height").intValue);.......... |
| 119a0 | 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 67 6c 79 70 68 4d 65 | ......SerializedProperty.glyphMe |
| 119c0 | 74 72 69 63 73 20 3d 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c | trics.=.property.FindPropertyRel |
| 119e0 | 61 74 69 76 65 28 22 6d 5f 4d 65 74 72 69 63 73 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ative("m_Metrics");............. |
| 11a00 | 20 67 6c 79 70 68 2e 6d 65 74 72 69 63 73 20 3d 20 6e 65 77 20 47 6c 79 70 68 4d 65 74 72 69 63 | .glyph.metrics.=.new.GlyphMetric |
| 11a20 | 73 28 67 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 | s(glyphMetrics.FindPropertyRelat |
| 11a40 | 69 76 65 28 22 6d 5f 57 69 64 74 68 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 2c 20 67 6c 79 70 68 | ive("m_Width").floatValue,.glyph |
| 11a60 | 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f | Metrics.FindPropertyRelative("m_ |
| 11a80 | 48 65 69 67 68 74 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 2c 20 67 6c 79 70 68 4d 65 74 72 69 63 | Height").floatValue,.glyphMetric |
| 11aa0 | 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 6f 72 69 7a 6f | s.FindPropertyRelative("m_Horizo |
| 11ac0 | 6e 74 61 6c 42 65 61 72 69 6e 67 58 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 2c 20 67 6c 79 70 68 | ntalBearingX").floatValue,.glyph |
| 11ae0 | 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f | Metrics.FindPropertyRelative("m_ |
| 11b00 | 48 6f 72 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 59 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 2c | HorizontalBearingY").floatValue, |
| 11b20 | 20 67 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 | .glyphMetrics.FindPropertyRelati |
| 11b40 | 76 65 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 41 64 76 61 6e 63 65 22 29 2e 66 6c 6f 61 74 56 | ve("m_HorizontalAdvance").floatV |
| 11b60 | 61 6c 75 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 6c 79 70 68 2e 73 63 61 6c | alue);................glyph.scal |
| 11b80 | 65 20 3d 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 | e.=.property.FindPropertyRelativ |
| 11ba0 | 65 28 22 6d 5f 53 63 61 6c 65 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 | e("m_Scale").floatValue;........ |
| 11bc0 | 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 44 69 73 70 6c 61 79 50 61 67 | ..}..............void.DisplayPag |
| 11be0 | 65 4e 61 76 69 67 61 74 69 6f 6e 28 72 65 66 20 69 6e 74 20 63 75 72 72 65 6e 74 50 61 67 65 2c | eNavigation(ref.int.currentPage, |
| 11c00 | 20 69 6e 74 20 61 72 72 61 79 53 69 7a 65 2c 20 69 6e 74 20 69 74 65 6d 73 50 65 72 50 61 67 65 | .int.arraySize,.int.itemsPerPage |
| 11c20 | 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 70 | )..........{..............Rect.p |
| 11c40 | 61 67 65 50 6f 73 20 3d 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 47 65 74 43 6f 6e 74 | agePos.=.EditorGUILayout.GetCont |
| 11c60 | 72 6f 6c 52 65 63 74 28 66 61 6c 73 65 2c 20 32 30 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | rolRect(false,.20);............. |
| 11c80 | 20 70 61 67 65 50 6f 73 2e 77 69 64 74 68 20 2f 3d 20 33 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | .pagePos.width./=.3;............ |
| 11ca0 | 20 20 20 20 69 6e 74 20 73 68 69 66 74 4d 75 6c 74 69 70 6c 69 65 72 20 3d 20 45 76 65 6e 74 2e | ....int.shiftMultiplier.=.Event. |
| 11cc0 | 63 75 72 72 65 6e 74 2e 73 68 69 66 74 20 3f 20 31 30 20 3a 20 31 3b 20 2f 2f 20 50 61 67 65 20 | current.shift.?.10.:.1;.//.Page. |
| 11ce0 | 2b 20 53 68 69 66 74 20 67 6f 65 73 20 31 30 20 70 61 67 65 20 66 6f 72 77 61 72 64 0d 0a 0d 0a | +.Shift.goes.10.page.forward.... |
| 11d00 | 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 50 72 65 76 69 6f 75 73 20 50 61 67 65 0d 0a 20 20 | ............//.Previous.Page.... |
| 11d20 | 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 63 75 72 72 65 6e 74 50 | ..........GUI.enabled.=.currentP |
| 11d40 | 61 67 65 20 3e 20 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 47 55 49 2e | age.>.0;................if.(GUI. |
| 11d60 | 42 75 74 74 6f 6e 28 70 61 67 65 50 6f 73 2c 20 22 50 72 65 76 69 6f 75 73 20 50 61 67 65 22 29 | Button(pagePos,."Previous.Page") |
| 11d80 | 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 50 61 67 65 20 2d | )..................currentPage.- |
| 11da0 | 3d 20 31 20 2a 20 73 68 69 66 74 4d 75 6c 74 69 70 6c 69 65 72 3b 0d 0a 0d 0a 0d 0a 20 20 20 20 | =.1.*.shiftMultiplier;.......... |
| 11dc0 | 20 20 20 20 20 20 20 20 2f 2f 20 50 61 67 65 20 43 6f 75 6e 74 65 72 0d 0a 20 20 20 20 20 20 20 | ........//.Page.Counter......... |
| 11de0 | 20 20 20 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 | .....GUI.enabled.=.true;........ |
| 11e00 | 20 20 20 20 20 20 70 61 67 65 50 6f 73 2e 78 20 2b 3d 20 70 61 67 65 50 6f 73 2e 77 69 64 74 68 | ......pagePos.x.+=.pagePos.width |
| 11e20 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 74 6f 74 61 6c 50 61 67 65 73 20 3d 20 | ;..............int.totalPages.=. |
| 11e40 | 28 69 6e 74 29 28 61 72 72 61 79 53 69 7a 65 20 2f 20 28 66 6c 6f 61 74 29 69 74 65 6d 73 50 65 | (int)(arraySize./.(float)itemsPe |
| 11e60 | 72 50 61 67 65 20 2b 20 30 2e 39 39 39 66 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 | rPage.+.0.999f);..............GU |
| 11e80 | 49 2e 4c 61 62 65 6c 28 70 61 67 65 50 6f 73 2c 20 22 50 61 67 65 20 22 20 2b 20 28 63 75 72 72 | I.Label(pagePos,."Page.".+.(curr |
| 11ea0 | 65 6e 74 50 61 67 65 20 2b 20 31 29 20 2b 20 22 20 2f 20 22 20 2b 20 74 6f 74 61 6c 50 61 67 65 | entPage.+.1).+."./.".+.totalPage |
| 11ec0 | 73 2c 20 54 4d 50 5f 55 49 53 74 79 6c 65 4d 61 6e 61 67 65 72 2e 63 65 6e 74 65 72 65 64 4c 61 | s,.TMP_UIStyleManager.centeredLa |
| 11ee0 | 62 65 6c 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4e 65 78 74 20 50 61 67 | bel);................//.Next.Pag |
| 11f00 | 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 61 67 65 50 6f 73 2e 78 20 2b 3d 20 70 61 67 65 | e..............pagePos.x.+=.page |
| 11f20 | 50 6f 73 2e 77 69 64 74 68 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 65 6e 61 62 | Pos.width;..............GUI.enab |
| 11f40 | 6c 65 64 20 3d 20 69 74 65 6d 73 50 65 72 50 61 67 65 20 2a 20 28 63 75 72 72 65 6e 74 50 61 67 | led.=.itemsPerPage.*.(currentPag |
| 11f60 | 65 20 2b 20 31 29 20 3c 20 61 72 72 61 79 53 69 7a 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 | e.+.1).<.arraySize;............. |
| 11f80 | 20 20 20 69 66 20 28 47 55 49 2e 42 75 74 74 6f 6e 28 70 61 67 65 50 6f 73 2c 20 22 4e 65 78 74 | ...if.(GUI.Button(pagePos,."Next |
| 11fa0 | 20 50 61 67 65 22 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e | .Page"))..................curren |
| 11fc0 | 74 50 61 67 65 20 2b 3d 20 31 20 2a 20 73 68 69 66 74 4d 75 6c 74 69 70 6c 69 65 72 3b 0d 0a 0d | tPage.+=.1.*.shiftMultiplier;... |
| 11fe0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 6c 61 6d 70 20 70 61 67 65 20 72 61 6e 67 65 | .............//.Clamp.page.range |
| 12000 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 72 65 6e 74 50 61 67 65 20 3d 20 4d 61 74 68 | ..............currentPage.=.Math |
| 12020 | 66 2e 43 6c 61 6d 70 28 63 75 72 72 65 6e 74 50 61 67 65 2c 20 30 2c 20 61 72 72 61 79 53 69 7a | f.Clamp(currentPage,.0,.arraySiz |
| 12040 | 65 20 2f 20 69 74 65 6d 73 50 65 72 50 61 67 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | e./.itemsPerPage);.............. |
| 12060 | 20 20 47 55 49 2e 65 6e 61 62 6c 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d | ..GUI.enabled.=.true;..........} |
| 12080 | 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 | ..............///.<summary>..... |
| 120a0 | 20 20 20 20 20 2f 2f 2f 20 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 | .....///...........///.</summary |
| 120c0 | 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 73 72 63 47 | >..........///.<param.name="srcG |
| 120e0 | 6c 79 70 68 49 44 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 | lyphID"></param>..........///.<p |
| 12100 | 61 72 61 6d 20 6e 61 6d 65 3d 22 64 73 74 47 6c 79 70 68 49 44 22 3e 3c 2f 70 61 72 61 6d 3e 0d | aram.name="dstGlyphID"></param>. |
| 12120 | 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 41 64 64 4e 65 77 47 6c 79 70 68 28 69 6e 74 20 73 72 | .........bool.AddNewGlyph(int.sr |
| 12140 | 63 49 6e 64 65 78 2c 20 69 6e 74 20 64 73 74 47 6c 79 70 68 49 44 29 0d 0a 20 20 20 20 20 20 20 | cIndex,.int.dstGlyphID)......... |
| 12160 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4d 61 6b 65 20 73 75 72 65 20 44 65 73 | .{..............//.Make.sure.Des |
| 12180 | 74 69 6e 61 74 69 6f 6e 20 47 6c 79 70 68 20 49 44 20 64 6f 65 73 6e 27 74 20 61 6c 72 65 61 64 | tination.Glyph.ID.doesn't.alread |
| 121a0 | 79 20 63 6f 6e 74 61 69 6e 20 61 20 47 6c 79 70 68 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 | y.contain.a.Glyph..............i |
| 121c0 | 66 20 28 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 67 6c 79 70 68 4c 6f 6f 6b 75 70 54 61 62 6c 65 2e | f.(m_fontAsset.glyphLookupTable. |
| 121e0 | 43 6f 6e 74 61 69 6e 73 4b 65 79 28 28 75 69 6e 74 29 64 73 74 47 6c 79 70 68 49 44 29 29 0d 0a | ContainsKey((uint)dstGlyphID)).. |
| 12200 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 0d | ................return.false;... |
| 12220 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 64 20 6e 65 77 20 65 6c 65 6d 65 6e 74 20 | .............//.Add.new.element. |
| 12240 | 74 6f 20 67 6c 79 70 68 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 47 6c | to.glyph.list...............m_Gl |
| 12260 | 79 70 68 54 61 62 6c 65 5f 70 72 6f 70 2e 61 72 72 61 79 53 69 7a 65 20 2b 3d 20 31 3b 0d 0a 0d | yphTable_prop.arraySize.+=.1;... |
| 12280 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 65 74 20 61 20 72 65 66 65 72 65 6e 63 65 20 | .............//.Get.a.reference. |
| 122a0 | 74 6f 20 74 68 65 20 73 6f 75 72 63 65 20 67 6c 79 70 68 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 | to.the.source.glyph............. |
| 122c0 | 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 6f 75 72 63 65 47 6c 79 70 68 | ..SerializedProperty.sourceGlyph |
| 122e0 | 20 3d 20 6d 5f 47 6c 79 70 68 54 61 62 6c 65 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 | .=.m_GlyphTable_prop.GetArrayEle |
| 12300 | 6d 65 6e 74 41 74 49 6e 64 65 78 28 73 72 63 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 | mentAtIndex(srcIndex);.......... |
| 12320 | 20 20 20 20 20 20 69 6e 74 20 64 73 74 49 6e 64 65 78 20 3d 20 6d 5f 47 6c 79 70 68 54 61 62 6c | ......int.dstIndex.=.m_GlyphTabl |
| 12340 | 65 5f 70 72 6f 70 2e 61 72 72 61 79 53 69 7a 65 20 2d 20 31 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 | e_prop.arraySize.-.1;........... |
| 12360 | 20 20 20 20 20 2f 2f 20 47 65 74 20 61 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 74 68 65 20 74 | .....//.Get.a.reference.to.the.t |
| 12380 | 61 72 67 65 74 20 2f 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 67 6c 79 70 68 2e 0d 0a 20 20 20 20 | arget./.destination.glyph....... |
| 123a0 | 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 74 61 72 67 65 | ........SerializedProperty.targe |
| 123c0 | 74 47 6c 79 70 68 20 3d 20 6d 5f 47 6c 79 70 68 54 61 62 6c 65 5f 70 72 6f 70 2e 47 65 74 41 72 | tGlyph.=.m_GlyphTable_prop.GetAr |
| 123e0 | 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 64 73 74 49 6e 64 65 78 29 3b 0d 0a 0d 0a | rayElementAtIndex(dstIndex);.... |
| 12400 | 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 70 79 47 6c 79 70 68 53 65 72 69 61 6c 69 7a 65 64 50 | ............CopyGlyphSerializedP |
| 12420 | 72 6f 70 65 72 74 79 28 73 6f 75 72 63 65 47 6c 79 70 68 2c 20 72 65 66 20 74 61 72 67 65 74 47 | roperty(sourceGlyph,.ref.targetG |
| 12440 | 6c 79 70 68 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 55 70 64 61 74 65 20 | lyph);................//.Update. |
| 12460 | 74 68 65 20 49 44 20 6f 66 20 74 68 65 20 67 6c 79 70 68 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | the.ID.of.the.glyph............. |
| 12480 | 20 74 61 72 67 65 74 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 | .targetGlyph.FindPropertyRelativ |
| 124a0 | 65 28 22 6d 5f 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 64 73 74 47 6c 79 70 68 | e("m_Index").intValue.=.dstGlyph |
| 124c0 | 49 44 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a | ID;................serializedObj |
| 124e0 | 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a | ect.ApplyModifiedProperties();.. |
| 12500 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 53 6f 72 74 47 6c | ..............m_fontAsset.SortGl |
| 12520 | 79 70 68 54 61 62 6c 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e | yphTable();................m_fon |
| 12540 | 74 41 73 73 65 74 2e 52 65 61 64 46 6f 6e 74 41 73 73 65 74 44 65 66 69 6e 69 74 69 6f 6e 28 29 | tAsset.ReadFontAssetDefinition() |
| 12560 | 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 | ;................return.true;... |
| 12580 | 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 | .......}............///.<summary |
| 125a0 | 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 | >..........///...........///.</s |
| 125c0 | 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 | ummary>..........///.<param.name |
| 125e0 | 3d 22 67 6c 79 70 68 49 44 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 | ="glyphID"></param>..........voi |
| 12600 | 64 20 52 65 6d 6f 76 65 47 6c 79 70 68 46 72 6f 6d 4c 69 73 74 28 69 6e 74 20 69 6e 64 65 78 29 | d.RemoveGlyphFromList(int.index) |
| 12620 | 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 64 | ..........{..............if.(ind |
| 12640 | 65 78 20 3e 20 6d 5f 47 6c 79 70 68 54 61 62 6c 65 5f 70 72 6f 70 2e 61 72 72 61 79 53 69 7a 65 | ex.>.m_GlyphTable_prop.arraySize |
| 12660 | 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 | )..................return;...... |
| 12680 | 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 74 61 72 67 65 74 47 6c 79 70 68 49 6e 64 65 78 20 3d | ..........int.targetGlyphIndex.= |
| 126a0 | 20 6d 5f 47 6c 79 70 68 54 61 62 6c 65 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 | .m_GlyphTable_prop.GetArrayEleme |
| 126c0 | 6e 74 41 74 49 6e 64 65 78 28 69 6e 64 65 78 29 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c | ntAtIndex(index).FindPropertyRel |
| 126e0 | 61 74 69 76 65 28 22 6d 5f 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 | ative("m_Index").intValue;...... |
| 12700 | 20 20 20 20 20 20 20 20 20 20 6d 5f 47 6c 79 70 68 54 61 62 6c 65 5f 70 72 6f 70 2e 44 65 6c 65 | ..........m_GlyphTable_prop.Dele |
| 12720 | 74 65 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 6e 64 65 78 29 3b 0d 0a 0d | teArrayElementAtIndex(index);... |
| 12740 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 52 65 6d 6f 76 65 20 61 6c 6c 20 63 68 61 72 61 | .............//.Remove.all.chara |
| 12760 | 63 74 65 72 73 20 72 65 66 65 72 65 6e 63 69 6e 67 20 74 68 69 73 20 67 6c 79 70 68 2e 0d 0a 20 | cters.referencing.this.glyph.... |
| 12780 | 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 6d | ...........for.(int.i.=.0;.i.<.m |
| 127a0 | 5f 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 5f 70 72 6f 70 2e 61 72 72 61 79 53 69 7a 65 3b 20 | _CharacterTable_prop.arraySize;. |
| 127c0 | 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | i++)..............{............. |
| 127e0 | 20 20 20 20 20 69 6e 74 20 67 6c 79 70 68 49 6e 64 65 78 20 3d 20 6d 5f 43 68 61 72 61 63 74 65 | .....int.glyphIndex.=.m_Characte |
| 12800 | 72 54 61 62 6c 65 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 | rTable_prop.GetArrayElementAtInd |
| 12820 | 65 78 28 69 29 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c | ex(i).FindPropertyRelative("m_Gl |
| 12840 | 79 70 68 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | yphIndex").intValue;............ |
| 12860 | 20 20 20 20 20 20 20 20 69 66 20 28 67 6c 79 70 68 49 6e 64 65 78 20 3d 3d 20 74 61 72 67 65 74 | ........if.(glyphIndex.==.target |
| 12880 | 47 6c 79 70 68 49 6e 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a | GlyphIndex)..................{.. |
| 128a0 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 52 65 6d 6f 76 65 20 63 68 | ....................//.Remove.ch |
| 128c0 | 61 72 61 63 74 65 72 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 | aracter......................m_C |
| 128e0 | 68 61 72 61 63 74 65 72 54 61 62 6c 65 5f 70 72 6f 70 2e 44 65 6c 65 74 65 41 72 72 61 79 45 6c | haracterTable_prop.DeleteArrayEl |
| 12900 | 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ementAtIndex(i);................ |
| 12920 | 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | ..}..............}.............. |
| 12940 | 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 | ..serializedObject.ApplyModified |
| 12960 | 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 | Properties();................m_f |
| 12980 | 6f 6e 74 41 73 73 65 74 2e 52 65 61 64 46 6f 6e 74 41 73 73 65 74 44 65 66 69 6e 69 74 69 6f 6e | ontAsset.ReadFontAssetDefinition |
| 129a0 | 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 41 | ();..........}............bool.A |
| 129c0 | 64 64 4e 65 77 43 68 61 72 61 63 74 65 72 28 69 6e 74 20 73 72 63 49 6e 64 65 78 2c 20 69 6e 74 | ddNewCharacter(int.srcIndex,.int |
| 129e0 | 20 64 73 74 47 6c 79 70 68 49 44 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | .dstGlyphID)..........{......... |
| 12a00 | 20 20 20 20 20 2f 2f 20 4d 61 6b 65 20 73 75 72 65 20 44 65 73 74 69 6e 61 74 69 6f 6e 20 47 6c | .....//.Make.sure.Destination.Gl |
| 12a20 | 79 70 68 20 49 44 20 64 6f 65 73 6e 27 74 20 61 6c 72 65 61 64 79 20 63 6f 6e 74 61 69 6e 20 61 | yph.ID.doesn't.already.contain.a |
| 12a40 | 20 47 6c 79 70 68 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6d 5f 66 6f 6e 74 41 73 | .Glyph..............if.(m_fontAs |
| 12a60 | 73 65 74 2e 63 68 61 72 61 63 74 65 72 4c 6f 6f 6b 75 70 54 61 62 6c 65 2e 43 6f 6e 74 61 69 6e | set.characterLookupTable.Contain |
| 12a80 | 73 4b 65 79 28 28 75 69 6e 74 29 64 73 74 47 6c 79 70 68 49 44 29 29 0d 0a 20 20 20 20 20 20 20 | sKey((uint)dstGlyphID))......... |
| 12aa0 | 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 | .........return.false;.......... |
| 12ac0 | 20 20 20 20 20 20 2f 2f 20 41 64 64 20 6e 65 77 20 65 6c 65 6d 65 6e 74 20 74 6f 20 67 6c 79 70 | ......//.Add.new.element.to.glyp |
| 12ae0 | 68 20 6c 69 73 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 68 61 72 61 63 74 65 72 | h.list...............m_Character |
| 12b00 | 54 61 62 6c 65 5f 70 72 6f 70 2e 61 72 72 61 79 53 69 7a 65 20 2b 3d 20 31 3b 0d 0a 0d 0a 20 20 | Table_prop.arraySize.+=.1;...... |
| 12b20 | 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 65 74 20 61 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 | ..........//.Get.a.reference.to. |
| 12b40 | 74 68 65 20 73 6f 75 72 63 65 20 67 6c 79 70 68 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 | the.source.glyph...............S |
| 12b60 | 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 6f 75 72 63 65 43 68 61 72 61 63 74 65 | erializedProperty.sourceCharacte |
| 12b80 | 72 20 3d 20 6d 5f 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 5f 70 72 6f 70 2e 47 65 74 41 72 72 | r.=.m_CharacterTable_prop.GetArr |
| 12ba0 | 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 73 72 63 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 | ayElementAtIndex(srcIndex);..... |
| 12bc0 | 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 64 73 74 49 6e 64 65 78 20 3d 20 6d 5f 43 68 61 72 | ...........int.dstIndex.=.m_Char |
| 12be0 | 61 63 74 65 72 54 61 62 6c 65 5f 70 72 6f 70 2e 61 72 72 61 79 53 69 7a 65 20 2d 20 31 3b 0d 0a | acterTable_prop.arraySize.-.1;.. |
| 12c00 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 65 74 20 61 20 72 65 66 65 72 65 6e 63 65 | ..............//.Get.a.reference |
| 12c20 | 20 74 6f 20 74 68 65 20 74 61 72 67 65 74 20 2f 20 64 65 73 74 69 6e 61 74 69 6f 6e 20 67 6c 79 | .to.the.target./.destination.gly |
| 12c40 | 70 68 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 | ph...............SerializedPrope |
| 12c60 | 72 74 79 20 74 61 72 67 65 74 43 68 61 72 61 63 74 65 72 20 3d 20 6d 5f 43 68 61 72 61 63 74 65 | rty.targetCharacter.=.m_Characte |
| 12c80 | 72 54 61 62 6c 65 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 | rTable_prop.GetArrayElementAtInd |
| 12ca0 | 65 78 28 64 73 74 49 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 43 6f 70 | ex(dstIndex);................Cop |
| 12cc0 | 79 43 68 61 72 61 63 74 65 72 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 28 73 6f 75 | yCharacterSerializedProperty(sou |
| 12ce0 | 72 63 65 43 68 61 72 61 63 74 65 72 2c 20 72 65 66 20 74 61 72 67 65 74 43 68 61 72 61 63 74 65 | rceCharacter,.ref.targetCharacte |
| 12d00 | 72 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 55 70 64 61 74 65 20 74 68 65 | r);................//.Update.the |
| 12d20 | 20 49 44 20 6f 66 20 74 68 65 20 67 6c 79 70 68 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 61 | .ID.of.the.glyph..............ta |
| 12d40 | 72 67 65 74 43 68 61 72 61 63 74 65 72 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 | rgetCharacter.FindPropertyRelati |
| 12d60 | 76 65 28 22 6d 5f 55 6e 69 63 6f 64 65 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 64 73 74 47 6c | ve("m_Unicode").intValue.=.dstGl |
| 12d80 | 79 70 68 49 44 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 | yphID;................serialized |
| 12da0 | 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 | Object.ApplyModifiedProperties() |
| 12dc0 | 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 53 6f 72 | ;................m_fontAsset.Sor |
| 12de0 | 74 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 | tCharacterTable();.............. |
| 12e00 | 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 52 65 61 64 46 6f 6e 74 41 73 73 65 74 44 65 66 69 6e | ..m_fontAsset.ReadFontAssetDefin |
| 12e20 | 69 74 69 6f 6e 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 | ition();................return.t |
| 12e40 | 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 | rue;..........}............void. |
| 12e60 | 52 65 6d 6f 76 65 43 68 61 72 61 63 74 65 72 46 72 6f 6d 4c 69 73 74 28 69 6e 74 20 69 6e 64 65 | RemoveCharacterFromList(int.inde |
| 12e80 | 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 | x)..........{..............if.(i |
| 12ea0 | 6e 64 65 78 20 3e 20 6d 5f 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 5f 70 72 6f 70 2e 61 72 72 | ndex.>.m_CharacterTable_prop.arr |
| 12ec0 | 61 79 53 69 7a 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b | aySize)..................return; |
| 12ee0 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 | ................m_CharacterTable |
| 12f00 | 5f 70 72 6f 70 2e 44 65 6c 65 74 65 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 | _prop.DeleteArrayElementAtIndex( |
| 12f20 | 69 6e 64 65 78 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 | index);................serialize |
| 12f40 | 64 4f 62 6a 65 63 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 | dObject.ApplyModifiedProperties( |
| 12f60 | 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 52 65 | );................m_fontAsset.Re |
| 12f80 | 61 64 46 6f 6e 74 41 73 73 65 74 44 65 66 69 6e 69 74 69 6f 6e 28 29 3b 0d 0a 20 20 20 20 20 20 | adFontAssetDefinition();........ |
| 12fa0 | 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 69 66 20 61 6e 79 | ..}..............//.Check.if.any |
| 12fc0 | 20 6f 66 20 74 68 65 20 53 74 79 6c 65 20 65 6c 65 6d 65 6e 74 73 20 77 65 72 65 20 63 6c 69 63 | .of.the.Style.elements.were.clic |
| 12fe0 | 6b 65 64 20 6f 6e 2e 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 44 6f | ked.on...........private.bool.Do |
| 13000 | 53 65 6c 65 63 74 69 6f 6e 43 68 65 63 6b 28 52 65 63 74 20 73 65 6c 65 63 74 69 6f 6e 41 72 65 | SelectionCheck(Rect.selectionAre |
| 13020 | 61 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 76 65 6e 74 | a)..........{..............Event |
| 13040 | 20 63 75 72 72 65 6e 74 45 76 65 6e 74 20 3d 20 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 3b 0d 0a | .currentEvent.=.Event.current;.. |
| 13060 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 77 69 74 63 68 20 28 63 75 72 72 65 6e 74 45 76 65 | ..............switch.(currentEve |
| 13080 | 6e 74 2e 74 79 70 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 | nt.type)..............{......... |
| 130a0 | 20 20 20 20 20 20 20 20 20 63 61 73 65 20 45 76 65 6e 74 54 79 70 65 2e 4d 6f 75 73 65 44 6f 77 | .........case.EventType.MouseDow |
| 130c0 | 6e 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 6c 65 | n:......................if.(sele |
| 130e0 | 63 74 69 6f 6e 41 72 65 61 2e 43 6f 6e 74 61 69 6e 73 28 63 75 72 72 65 6e 74 45 76 65 6e 74 2e | ctionArea.Contains(currentEvent. |
| 13100 | 6d 6f 75 73 65 50 6f 73 69 74 69 6f 6e 29 20 26 26 20 63 75 72 72 65 6e 74 45 76 65 6e 74 2e 62 | mousePosition).&&.currentEvent.b |
| 13120 | 75 74 74 6f 6e 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | utton.==.0)..................... |
| 13140 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 75 72 72 | .{..........................curr |
| 13160 | 65 6e 74 45 76 65 6e 74 2e 55 73 65 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | entEvent.Use();................. |
| 13180 | 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 | .........return.true;........... |
| 131a0 | 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ...........}.................... |
| 131c0 | 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 | ....break;..............}....... |
| 131e0 | 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 | .........return.false;.......... |
| 13200 | 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 54 4d 50 5f 47 6c 79 70 68 56 61 6c 75 65 52 65 63 6f 72 | }............TMP_GlyphValueRecor |
| 13220 | 64 20 47 65 74 56 61 6c 75 65 52 65 63 6f 72 64 28 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 | d.GetValueRecord(SerializedPrope |
| 13240 | 72 74 79 20 70 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 | rty.property)..........{........ |
| 13260 | 20 20 20 20 20 20 54 4d 50 5f 47 6c 79 70 68 56 61 6c 75 65 52 65 63 6f 72 64 20 72 65 63 6f 72 | ......TMP_GlyphValueRecord.recor |
| 13280 | 64 20 3d 20 6e 65 77 20 54 4d 50 5f 47 6c 79 70 68 56 61 6c 75 65 52 65 63 6f 72 64 28 29 3b 0d | d.=.new.TMP_GlyphValueRecord();. |
| 132a0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 6f 72 64 2e 78 50 6c 61 63 65 6d 65 6e 74 20 3d | .............record.xPlacement.= |
| 132c0 | 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 | .property.FindPropertyRelative(" |
| 132e0 | 6d 5f 58 50 6c 61 63 65 6d 65 6e 74 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 | m_XPlacement").floatValue;...... |
| 13300 | 20 20 20 20 20 20 20 20 72 65 63 6f 72 64 2e 79 50 6c 61 63 65 6d 65 6e 74 20 3d 20 70 72 6f 70 | ........record.yPlacement.=.prop |
| 13320 | 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 59 50 6c | erty.FindPropertyRelative("m_YPl |
| 13340 | 61 63 65 6d 65 6e 74 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 | acement").floatValue;........... |
| 13360 | 20 20 20 72 65 63 6f 72 64 2e 78 41 64 76 61 6e 63 65 20 3d 20 70 72 6f 70 65 72 74 79 2e 46 69 | ...record.xAdvance.=.property.Fi |
| 13380 | 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 58 41 64 76 61 6e 63 65 22 29 | ndPropertyRelative("m_XAdvance") |
| 133a0 | 2e 66 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 6f 72 64 | .floatValue;..............record |
| 133c0 | 2e 79 41 64 76 61 6e 63 65 20 3d 20 70 72 6f 70 65 72 74 79 2e 46 69 6e 64 50 72 6f 70 65 72 74 | .yAdvance.=.property.FindPropert |
| 133e0 | 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 59 41 64 76 61 6e 63 65 22 29 2e 66 6c 6f 61 74 56 61 6c | yRelative("m_YAdvance").floatVal |
| 13400 | 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 72 65 63 6f 72 64 | ue;................return.record |
| 13420 | 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 52 65 6d | ;..........}............void.Rem |
| 13440 | 6f 76 65 41 64 6a 75 73 74 6d 65 6e 74 50 61 69 72 46 72 6f 6d 4c 69 73 74 28 69 6e 74 20 69 6e | oveAdjustmentPairFromList(int.in |
| 13460 | 64 65 78 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 | dex)..........{..............if. |
| 13480 | 28 69 6e 64 65 78 20 3e 20 6d 5f 47 6c 79 70 68 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 | (index.>.m_GlyphPairAdjustmentRe |
| 134a0 | 63 6f 72 64 73 5f 70 72 6f 70 2e 61 72 72 61 79 53 69 7a 65 29 0d 0a 20 20 20 20 20 20 20 20 20 | cords_prop.arraySize)........... |
| 134c0 | 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f | .......return;................m_ |
| 134e0 | 47 6c 79 70 68 50 61 69 72 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 73 5f 70 72 6f 70 2e | GlyphPairAdjustmentRecords_prop. |
| 13500 | 44 65 6c 65 74 65 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 6e 64 65 78 29 | DeleteArrayElementAtIndex(index) |
| 13520 | 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 72 69 61 6c 69 7a 65 64 4f 62 6a 65 63 | ;................serializedObjec |
| 13540 | 74 2e 41 70 70 6c 79 4d 6f 64 69 66 69 65 64 50 72 6f 70 65 72 74 69 65 73 28 29 3b 0d 0a 0d 0a | t.ApplyModifiedProperties();.... |
| 13560 | 20 20 20 20 20 20 20 20 20 20 20 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 52 65 61 64 46 6f 6e 74 | ............m_fontAsset.ReadFont |
| 13580 | 41 73 73 65 74 44 65 66 69 6e 69 74 69 6f 6e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d | AssetDefinition();..........}... |
| 135a0 | 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 | .........///.<summary>.......... |
| 135c0 | 2f 2f 2f 20 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 | ///...........///.</summary>.... |
| 135e0 | 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 73 72 63 47 6c 79 70 68 22 | ......///.<param.name="srcGlyph" |
| 13600 | 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 | ></param>..........///.<param.na |
| 13620 | 6d 65 3d 22 64 73 74 47 6c 79 70 68 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 | me="dstGlyph"></param>.......... |
| 13640 | 76 6f 69 64 20 43 6f 70 79 47 6c 79 70 68 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 | void.CopyGlyphSerializedProperty |
| 13660 | 28 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 72 63 47 6c 79 70 68 2c 20 72 65 | (SerializedProperty.srcGlyph,.re |
| 13680 | 66 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 64 73 74 47 6c 79 70 68 29 0d 0a | f.SerializedProperty.dstGlyph).. |
| 136a0 | 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 4f 44 4f 20 3a | ........{..............//.TODO.: |
| 136c0 | 20 53 68 6f 75 6c 64 20 6d 61 6b 65 20 61 20 67 65 6e 65 72 69 63 20 66 75 6e 63 74 69 6f 6e 20 | .Should.make.a.generic.function. |
| 136e0 | 77 68 69 63 68 20 63 6f 70 69 65 73 20 65 61 63 68 20 6f 66 20 74 68 65 20 70 72 6f 70 65 72 74 | which.copies.each.of.the.propert |
| 13700 | 69 65 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 2e 46 69 6e 64 50 | ies...............dstGlyph.FindP |
| 13720 | 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 | ropertyRelative("m_Index").intVa |
| 13740 | 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 | lue.=.srcGlyph.FindPropertyRelat |
| 13760 | 69 76 65 28 22 6d 5f 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 | ive("m_Index").intValue;........ |
| 13780 | 20 20 20 20 20 20 20 20 2f 2f 20 47 6c 79 70 68 20 2d 3e 20 47 6c 79 70 68 4d 65 74 72 69 63 73 | ........//.Glyph.->.GlyphMetrics |
| 137a0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 | ..............SerializedProperty |
| 137c0 | 20 73 72 63 47 6c 79 70 68 4d 65 74 72 69 63 73 20 3d 20 73 72 63 47 6c 79 70 68 2e 46 69 6e 64 | .srcGlyphMetrics.=.srcGlyph.Find |
| 137e0 | 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 4d 65 74 72 69 63 73 22 29 3b 0d 0a | PropertyRelative("m_Metrics");.. |
| 13800 | 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 64 | ............SerializedProperty.d |
| 13820 | 73 74 47 6c 79 70 68 4d 65 74 72 69 63 73 20 3d 20 64 73 74 47 6c 79 70 68 2e 46 69 6e 64 50 72 | stGlyphMetrics.=.dstGlyph.FindPr |
| 13840 | 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 4d 65 74 72 69 63 73 22 29 3b 0d 0a 0d 0a | opertyRelative("m_Metrics");.... |
| 13860 | 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 | ............dstGlyphMetrics.Find |
| 13880 | 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 57 69 64 74 68 22 29 2e 66 6c 6f 61 | PropertyRelative("m_Width").floa |
| 138a0 | 74 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f | tValue.=.srcGlyphMetrics.FindPro |
| 138c0 | 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 57 69 64 74 68 22 29 2e 66 6c 6f 61 74 56 61 | pertyRelative("m_Width").floatVa |
| 138e0 | 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 4d 65 74 72 69 63 | lue;..............dstGlyphMetric |
| 13900 | 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 65 69 67 68 74 | s.FindPropertyRelative("m_Height |
| 13920 | 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 4d 65 74 72 69 63 73 2e | ").floatValue.=.srcGlyphMetrics. |
| 13940 | 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 65 69 67 68 74 22 29 | FindPropertyRelative("m_Height") |
| 13960 | 2e 66 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 | .floatValue;..............dstGly |
| 13980 | 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 | phMetrics.FindPropertyRelative(" |
| 139a0 | 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 58 22 29 2e 66 6c 6f 61 74 56 61 6c 75 | m_HorizontalBearingX").floatValu |
| 139c0 | 65 20 3d 20 73 72 63 47 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 | e.=.srcGlyphMetrics.FindProperty |
| 139e0 | 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 58 22 29 | Relative("m_HorizontalBearingX") |
| 13a00 | 2e 66 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 | .floatValue;..............dstGly |
| 13a20 | 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 | phMetrics.FindPropertyRelative(" |
| 13a40 | 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 59 22 29 2e 66 6c 6f 61 74 56 61 6c 75 | m_HorizontalBearingY").floatValu |
| 13a60 | 65 20 3d 20 73 72 63 47 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 | e.=.srcGlyphMetrics.FindProperty |
| 13a80 | 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 42 65 61 72 69 6e 67 59 22 29 | Relative("m_HorizontalBearingY") |
| 13aa0 | 2e 66 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 | .floatValue;..............dstGly |
| 13ac0 | 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 | phMetrics.FindPropertyRelative(" |
| 13ae0 | 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 41 64 76 61 6e 63 65 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 | m_HorizontalAdvance").floatValue |
| 13b00 | 20 3d 20 73 72 63 47 6c 79 70 68 4d 65 74 72 69 63 73 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 | .=.srcGlyphMetrics.FindPropertyR |
| 13b20 | 65 6c 61 74 69 76 65 28 22 6d 5f 48 6f 72 69 7a 6f 6e 74 61 6c 41 64 76 61 6e 63 65 22 29 2e 66 | elative("m_HorizontalAdvance").f |
| 13b40 | 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 6c 79 | loatValue;................//.Gly |
| 13b60 | 70 68 20 2d 3e 20 47 6c 79 70 68 52 65 63 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 | ph.->.GlyphRect..............Ser |
| 13b80 | 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 72 63 47 6c 79 70 68 52 65 63 74 20 3d 20 73 | ializedProperty.srcGlyphRect.=.s |
| 13ba0 | 72 63 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f | rcGlyph.FindPropertyRelative("m_ |
| 13bc0 | 47 6c 79 70 68 52 65 63 74 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c | GlyphRect");..............Serial |
| 13be0 | 69 7a 65 64 50 72 6f 70 65 72 74 79 20 64 73 74 47 6c 79 70 68 52 65 63 74 20 3d 20 64 73 74 47 | izedProperty.dstGlyphRect.=.dstG |
| 13c00 | 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 | lyph.FindPropertyRelative("m_Gly |
| 13c20 | 70 68 52 65 63 74 22 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 | phRect");................dstGlyp |
| 13c40 | 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 58 22 | hRect.FindPropertyRelative("m_X" |
| 13c60 | 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 | ).intValue.=.srcGlyphRect.FindPr |
| 13c80 | 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 58 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d | opertyRelative("m_X").intValue;. |
| 13ca0 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 | .............dstGlyphRect.FindPr |
| 13cc0 | 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 59 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d | opertyRelative("m_Y").intValue.= |
| 13ce0 | 20 73 72 63 47 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 | .srcGlyphRect.FindPropertyRelati |
| 13d00 | 76 65 28 22 6d 5f 59 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | ve("m_Y").intValue;............. |
| 13d20 | 20 64 73 74 47 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 | .dstGlyphRect.FindPropertyRelati |
| 13d40 | 76 65 28 22 6d 5f 57 69 64 74 68 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 | ve("m_Width").intValue.=.srcGlyp |
| 13d60 | 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 57 69 | hRect.FindPropertyRelative("m_Wi |
| 13d80 | 64 74 68 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 | dth").intValue;..............dst |
| 13da0 | 47 6c 79 70 68 52 65 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 | GlyphRect.FindPropertyRelative(" |
| 13dc0 | 6d 5f 48 65 69 67 68 74 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 52 65 | m_Height").intValue.=.srcGlyphRe |
| 13de0 | 63 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 48 65 69 67 68 | ct.FindPropertyRelative("m_Heigh |
| 13e00 | 74 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 | t").intValue;................dst |
| 13e20 | 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 63 | Glyph.FindPropertyRelative("m_Sc |
| 13e40 | 61 6c 65 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 2e 46 69 6e 64 | ale").floatValue.=.srcGlyph.Find |
| 13e60 | 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 63 61 6c 65 22 29 2e 66 6c 6f 61 | PropertyRelative("m_Scale").floa |
| 13e80 | 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 73 74 47 6c 79 70 68 2e 46 69 | tValue;..............dstGlyph.Fi |
| 13ea0 | 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 41 74 6c 61 73 49 6e 64 65 78 | ndPropertyRelative("m_AtlasIndex |
| 13ec0 | 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 | ").intValue.=.srcGlyph.FindPrope |
| 13ee0 | 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 41 74 6c 61 73 49 6e 64 65 78 22 29 2e 69 6e 74 56 | rtyRelative("m_AtlasIndex").intV |
| 13f00 | 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f | alue;..........}..............vo |
| 13f20 | 69 64 20 43 6f 70 79 43 68 61 72 61 63 74 65 72 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 | id.CopyCharacterSerializedProper |
| 13f40 | 74 79 28 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 6f 75 72 63 65 2c 20 72 65 | ty(SerializedProperty.source,.re |
| 13f60 | 66 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 74 61 72 67 65 74 29 0d 0a 20 20 | f.SerializedProperty.target).... |
| 13f80 | 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 4f 44 4f 20 3a 20 53 | ......{..............//.TODO.:.S |
| 13fa0 | 68 6f 75 6c 64 20 6d 61 6b 65 20 61 20 67 65 6e 65 72 69 63 20 66 75 6e 63 74 69 6f 6e 20 77 68 | hould.make.a.generic.function.wh |
| 13fc0 | 69 63 68 20 63 6f 70 69 65 73 20 65 61 63 68 20 6f 66 20 74 68 65 20 70 72 6f 70 65 72 74 69 65 | ich.copies.each.of.the.propertie |
| 13fe0 | 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 75 6e 69 63 6f 64 65 20 3d 20 73 6f | s...............int.unicode.=.so |
| 14000 | 75 72 63 65 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 55 6e 69 | urce.FindPropertyRelative("m_Uni |
| 14020 | 63 6f 64 65 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 61 | code").intValue;..............ta |
| 14040 | 72 67 65 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 55 6e 69 | rget.FindPropertyRelative("m_Uni |
| 14060 | 63 6f 64 65 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 75 6e 69 63 6f 64 65 3b 0d 0a 0d 0a 20 20 | code").intValue.=.unicode;...... |
| 14080 | 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 73 72 63 47 6c 79 70 68 49 6e 64 65 78 20 3d 20 73 6f | ..........int.srcGlyphIndex.=.so |
| 140a0 | 75 72 63 65 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 | urce.FindPropertyRelative("m_Gly |
| 140c0 | 70 68 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | phIndex").intValue;............. |
| 140e0 | 20 74 61 72 67 65 74 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f | .target.FindPropertyRelative("m_ |
| 14100 | 47 6c 79 70 68 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 20 3d 20 73 72 63 47 6c 79 70 68 | GlyphIndex").intValue.=.srcGlyph |
| 14120 | 49 6e 64 65 78 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 61 72 67 65 74 2e 46 69 6e | Index;................target.Fin |
| 14140 | 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 63 61 6c 65 22 29 2e 66 6c 6f | dPropertyRelative("m_Scale").flo |
| 14160 | 61 74 56 61 6c 75 65 20 3d 20 73 6f 75 72 63 65 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c | atValue.=.source.FindPropertyRel |
| 14180 | 61 74 69 76 65 28 22 6d 5f 53 63 61 6c 65 22 29 2e 66 6c 6f 61 74 56 61 6c 75 65 3b 0d 0a 20 20 | ative("m_Scale").floatValue;.... |
| 141a0 | 20 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 | ......}..............///.<summar |
| 141c0 | 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f | y>..........///...........///.</ |
| 141e0 | 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d | summary>..........///.<param.nam |
| 14200 | 65 3d 22 73 65 61 72 63 68 50 61 74 74 65 72 6e 22 3e 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 | e="searchPattern"></param>...... |
| 14220 | 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 | ....///.<returns></returns>..... |
| 14240 | 20 20 20 20 20 76 6f 69 64 20 53 65 61 72 63 68 47 6c 79 70 68 54 61 62 6c 65 20 28 73 74 72 69 | .....void.SearchGlyphTable.(stri |
| 14260 | 6e 67 20 73 65 61 72 63 68 50 61 74 74 65 72 6e 2c 20 72 65 66 20 4c 69 73 74 3c 69 6e 74 3e 20 | ng.searchPattern,.ref.List<int>. |
| 14280 | 73 65 61 72 63 68 52 65 73 75 6c 74 73 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 | searchResults)..........{....... |
| 142a0 | 20 20 20 20 20 20 20 69 66 20 28 73 65 61 72 63 68 52 65 73 75 6c 74 73 20 3d 3d 20 6e 75 6c 6c | .......if.(searchResults.==.null |
| 142c0 | 29 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 69 6e 74 3e 28 | ).searchResults.=.new.List<int>( |
| 142e0 | 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e | );................searchResults. |
| 14300 | 43 6c 65 61 72 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 61 72 72 61 | Clear();................int.arra |
| 14320 | 79 53 69 7a 65 20 3d 20 6d 5f 47 6c 79 70 68 54 61 62 6c 65 5f 70 72 6f 70 2e 61 72 72 61 79 53 | ySize.=.m_GlyphTable_prop.arrayS |
| 14340 | 69 7a 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d | ize;................for.(int.i.= |
| 14360 | 20 30 3b 20 69 20 3c 20 61 72 72 61 79 53 69 7a 65 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 | .0;.i.<.arraySize;.i++)......... |
| 14380 | 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a | .....{..................Serializ |
| 143a0 | 65 64 50 72 6f 70 65 72 74 79 20 73 6f 75 72 63 65 47 6c 79 70 68 20 3d 20 6d 5f 47 6c 79 70 68 | edProperty.sourceGlyph.=.m_Glyph |
| 143c0 | 54 61 62 6c 65 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 | Table_prop.GetArrayElementAtInde |
| 143e0 | 78 28 69 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 69 64 20 | x(i);....................int.id. |
| 14400 | 3d 20 73 6f 75 72 63 65 47 6c 79 70 68 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 | =.sourceGlyph.FindPropertyRelati |
| 14420 | 76 65 28 22 6d 5f 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 | ve("m_Index").intValue;......... |
| 14440 | 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 20 70 6f 74 65 6e 74 69 61 | ...........//.Check.for.potentia |
| 14460 | 6c 20 6d 61 74 63 68 20 61 67 61 69 6e 73 74 20 61 20 63 68 61 72 61 63 74 65 72 2e 0d 0a 20 20 | l.match.against.a.character..... |
| 14480 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 69 66 20 28 73 65 61 72 63 68 50 61 74 74 65 72 | ..............//if.(searchPatter |
| 144a0 | 6e 2e 4c 65 6e 67 74 68 20 3d 3d 20 31 20 26 26 20 69 64 20 3d 3d 20 73 65 61 72 63 68 50 61 74 | n.Length.==.1.&&.id.==.searchPat |
| 144c0 | 74 65 72 6e 5b 30 5d 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 | tern[0])..................//.... |
| 144e0 | 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 | searchResults.Add(i);........... |
| 14500 | 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 20 70 6f 74 65 6e 74 69 61 6c 20 | .........//.Check.for.potential. |
| 14520 | 6d 61 74 63 68 20 61 67 61 69 6e 73 74 20 64 65 63 69 6d 61 6c 20 69 64 0d 0a 20 20 20 20 20 20 | match.against.decimal.id........ |
| 14540 | 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 64 2e 54 6f 53 74 72 69 6e 67 28 29 2e 43 6f 6e 74 | ..........if.(id.ToString().Cont |
| 14560 | 61 69 6e 73 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 | ains(searchPattern))............ |
| 14580 | 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d | ..........searchResults.Add(i);. |
| 145a0 | 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 69 66 20 28 69 64 2e 54 6f 53 74 | ...................//if.(id.ToSt |
| 145c0 | 72 69 6e 67 28 22 78 22 29 2e 43 6f 6e 74 61 69 6e 73 28 73 65 61 72 63 68 50 61 74 74 65 72 6e | ring("x").Contains(searchPattern |
| 145e0 | 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 73 65 61 72 63 68 | ))..................//....search |
| 14600 | 52 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | Results.Add(i);................. |
| 14620 | 20 20 20 2f 2f 69 66 20 28 69 64 2e 54 6f 53 74 72 69 6e 67 28 22 58 22 29 2e 43 6f 6e 74 61 69 | ...//if.(id.ToString("X").Contai |
| 14640 | 6e 73 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | ns(searchPattern)).............. |
| 14660 | 20 20 20 20 2f 2f 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d | ....//....searchResults.Add(i);. |
| 14680 | 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 | .............}..........}....... |
| 146a0 | 20 20 20 20 20 20 20 76 6f 69 64 20 53 65 61 72 63 68 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 | .......void.SearchCharacterTable |
| 146c0 | 28 73 74 72 69 6e 67 20 73 65 61 72 63 68 50 61 74 74 65 72 6e 2c 20 72 65 66 20 4c 69 73 74 3c | (string.searchPattern,.ref.List< |
| 146e0 | 69 6e 74 3e 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a | int>.searchResults)..........{.. |
| 14700 | 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 61 72 63 68 52 65 73 75 6c 74 73 20 3d 3d | ............if.(searchResults.== |
| 14720 | 20 6e 75 6c 6c 29 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c | .null).searchResults.=.new.List< |
| 14740 | 69 6e 74 3e 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 52 65 73 | int>();................searchRes |
| 14760 | 75 6c 74 73 2e 43 6c 65 61 72 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 | ults.Clear();................int |
| 14780 | 20 61 72 72 61 79 53 69 7a 65 20 3d 20 6d 5f 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 5f 70 72 | .arraySize.=.m_CharacterTable_pr |
| 147a0 | 6f 70 2e 61 72 72 61 79 53 69 7a 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 | op.arraySize;................for |
| 147c0 | 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 61 72 72 61 79 53 69 7a 65 3b 20 69 2b 2b 29 | .(int.i.=.0;.i.<.arraySize;.i++) |
| 147e0 | 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | ..............{................. |
| 14800 | 20 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 73 6f 75 72 63 65 43 68 61 72 61 63 | .SerializedProperty.sourceCharac |
| 14820 | 74 65 72 20 3d 20 6d 5f 43 68 61 72 61 63 74 65 72 54 61 62 6c 65 5f 70 72 6f 70 2e 47 65 74 41 | ter.=.m_CharacterTable_prop.GetA |
| 14840 | 72 72 61 79 45 6c 65 6d 65 6e 74 41 74 49 6e 64 65 78 28 69 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 | rrayElementAtIndex(i);.......... |
| 14860 | 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 69 64 20 3d 20 73 6f 75 72 63 65 43 68 61 72 61 63 74 | ..........int.id.=.sourceCharact |
| 14880 | 65 72 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 55 6e 69 63 6f | er.FindPropertyRelative("m_Unico |
| 148a0 | 64 65 22 29 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | de").intValue;.................. |
| 148c0 | 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 20 70 6f 74 65 6e 74 69 61 6c 20 6d 61 74 63 68 20 61 | ..//.Check.for.potential.match.a |
| 148e0 | 67 61 69 6e 73 74 20 61 20 63 68 61 72 61 63 74 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | gainst.a.character.............. |
| 14900 | 20 20 20 20 20 69 66 20 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 2e 4c 65 6e 67 74 68 20 3d 3d | .....if.(searchPattern.Length.== |
| 14920 | 20 31 20 26 26 20 69 64 20 3d 3d 20 73 65 61 72 63 68 50 61 74 74 65 72 6e 5b 30 5d 29 0d 0a 20 | .1.&&.id.==.searchPattern[0])... |
| 14940 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 | ...................searchResults |
| 14960 | 2e 41 64 64 28 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 | .Add(i);..................else.i |
| 14980 | 66 20 28 69 64 2e 54 6f 53 74 72 69 6e 67 28 22 78 22 29 2e 43 6f 6e 74 61 69 6e 73 28 73 65 61 | f.(id.ToString("x").Contains(sea |
| 149a0 | 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | rchPattern)).................... |
| 149c0 | 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d 0a 20 20 20 20 20 20 20 | ..searchResults.Add(i);......... |
| 149e0 | 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 69 64 2e 54 6f 53 74 72 69 6e 67 28 22 58 | .........else.if.(id.ToString("X |
| 14a00 | 22 29 2e 43 6f 6e 74 61 69 6e 73 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 | ").Contains(searchPattern))..... |
| 14a20 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 | .................searchResults.A |
| 14a40 | 64 64 28 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0d 0a 20 20 20 20 20 20 | dd(i);.......................... |
| 14a60 | 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 66 6f 72 20 70 6f 74 65 6e 74 69 61 6c | ..........//.Check.for.potential |
| 14a80 | 20 6d 61 74 63 68 20 61 67 61 69 6e 73 74 20 64 65 63 69 6d 61 6c 20 69 64 0d 0a 20 20 20 20 20 | .match.against.decimal.id....... |
| 14aa0 | 20 20 20 20 20 20 20 20 20 20 20 2f 2f 69 66 20 28 69 64 2e 54 6f 53 74 72 69 6e 67 28 29 2e 43 | ...........//if.(id.ToString().C |
| 14ac0 | 6f 6e 74 61 69 6e 73 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 20 20 20 20 | ontains(searchPattern))......... |
| 14ae0 | 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 | .........//....searchResults.Add |
| 14b00 | 28 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a | (i);..............}..........}.. |
| 14b20 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 76 6f 69 64 20 53 65 61 72 63 68 4b 65 72 6e 69 6e 67 54 61 | ............void.SearchKerningTa |
| 14b40 | 62 6c 65 28 73 74 72 69 6e 67 20 73 65 61 72 63 68 50 61 74 74 65 72 6e 2c 20 72 65 66 20 4c 69 | ble(string.searchPattern,.ref.Li |
| 14b60 | 73 74 3c 69 6e 74 3e 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 29 0d 0a 20 20 20 20 20 20 20 20 | st<int>.searchResults).......... |
| 14b80 | 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 61 72 63 68 52 65 73 75 6c 74 73 | {..............if.(searchResults |
| 14ba0 | 20 3d 3d 20 6e 75 6c 6c 29 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 20 3d 20 6e 65 77 20 4c 69 | .==.null).searchResults.=.new.Li |
| 14bc0 | 73 74 3c 69 6e 74 3e 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 | st<int>();................search |
| 14be0 | 52 65 73 75 6c 74 73 2e 43 6c 65 61 72 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 | Results.Clear();................ |
| 14c00 | 2f 2f 20 4c 6f 6f 6b 75 70 20 67 6c 79 70 68 20 69 6e 64 65 78 20 6f 66 20 70 6f 74 65 6e 74 69 | //.Lookup.glyph.index.of.potenti |
| 14c20 | 61 6c 20 63 68 61 72 61 63 74 65 72 73 20 63 6f 6e 74 61 69 6e 65 64 20 69 6e 20 74 68 65 20 73 | al.characters.contained.in.the.s |
| 14c40 | 65 61 72 63 68 20 70 61 74 74 65 72 6e 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 75 69 6e 74 | earch.pattern...............uint |
| 14c60 | 20 66 69 72 73 74 47 6c 79 70 68 49 6e 64 65 78 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 20 20 20 | .firstGlyphIndex.=.0;........... |
| 14c80 | 20 20 20 69 66 20 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 2e 4c 65 6e 67 74 68 20 3e 20 30 20 | ...if.(searchPattern.Length.>.0. |
| 14ca0 | 26 26 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 63 68 61 72 61 63 74 65 72 4c 6f 6f 6b 75 70 54 61 | &&.m_fontAsset.characterLookupTa |
| 14cc0 | 62 6c 65 2e 54 72 79 47 65 74 56 61 6c 75 65 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 5b 30 5d | ble.TryGetValue(searchPattern[0] |
| 14ce0 | 2c 20 6f 75 74 20 54 4d 50 5f 43 68 61 72 61 63 74 65 72 20 66 69 72 73 74 43 68 61 72 61 63 74 | ,.out.TMP_Character.firstCharact |
| 14d00 | 65 72 53 65 61 72 63 68 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 69 72 73 | erSearch))..................firs |
| 14d20 | 74 47 6c 79 70 68 49 6e 64 65 78 20 3d 20 66 69 72 73 74 43 68 61 72 61 63 74 65 72 53 65 61 72 | tGlyphIndex.=.firstCharacterSear |
| 14d40 | 63 68 2e 67 6c 79 70 68 49 6e 64 65 78 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 75 69 | ch.glyphIndex;................ui |
| 14d60 | 6e 74 20 73 65 63 6f 6e 64 47 6c 79 70 68 49 6e 64 65 78 20 3d 20 30 3b 0d 0a 20 20 20 20 20 20 | nt.secondGlyphIndex.=.0;........ |
| 14d80 | 20 20 20 20 20 20 69 66 20 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 2e 4c 65 6e 67 74 68 20 3e | ......if.(searchPattern.Length.> |
| 14da0 | 20 31 20 26 26 20 6d 5f 66 6f 6e 74 41 73 73 65 74 2e 63 68 61 72 61 63 74 65 72 4c 6f 6f 6b 75 | .1.&&.m_fontAsset.characterLooku |
| 14dc0 | 70 54 61 62 6c 65 2e 54 72 79 47 65 74 56 61 6c 75 65 28 73 65 61 72 63 68 50 61 74 74 65 72 6e | pTable.TryGetValue(searchPattern |
| 14de0 | 5b 31 5d 2c 20 6f 75 74 20 54 4d 50 5f 43 68 61 72 61 63 74 65 72 20 73 65 63 6f 6e 64 43 68 61 | [1],.out.TMP_Character.secondCha |
| 14e00 | 72 61 63 74 65 72 53 65 61 72 63 68 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | racterSearch)).................. |
| 14e20 | 73 65 63 6f 6e 64 47 6c 79 70 68 49 6e 64 65 78 20 3d 20 73 65 63 6f 6e 64 43 68 61 72 61 63 74 | secondGlyphIndex.=.secondCharact |
| 14e40 | 65 72 53 65 61 72 63 68 2e 67 6c 79 70 68 49 6e 64 65 78 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 | erSearch.glyphIndex;............ |
| 14e60 | 20 20 20 20 69 6e 74 20 61 72 72 61 79 53 69 7a 65 20 3d 20 6d 5f 47 6c 79 70 68 50 61 69 72 41 | ....int.arraySize.=.m_GlyphPairA |
| 14e80 | 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 73 5f 70 72 6f 70 2e 61 72 72 61 79 53 69 7a 65 3b | djustmentRecords_prop.arraySize; |
| 14ea0 | 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 | ................for.(int.i.=.0;. |
| 14ec0 | 69 20 3c 20 61 72 72 61 79 53 69 7a 65 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | i.<.arraySize;.i++)............. |
| 14ee0 | 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 | .{..................SerializedPr |
| 14f00 | 6f 70 65 72 74 79 20 72 65 63 6f 72 64 20 3d 20 6d 5f 47 6c 79 70 68 50 61 69 72 41 64 6a 75 73 | operty.record.=.m_GlyphPairAdjus |
| 14f20 | 74 6d 65 6e 74 52 65 63 6f 72 64 73 5f 70 72 6f 70 2e 47 65 74 41 72 72 61 79 45 6c 65 6d 65 6e | tmentRecords_prop.GetArrayElemen |
| 14f40 | 74 41 74 49 6e 64 65 78 28 69 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | tAtIndex(i);.................... |
| 14f60 | 53 65 72 69 61 6c 69 7a 65 64 50 72 6f 70 65 72 74 79 20 66 69 72 73 74 41 64 6a 75 73 74 6d 65 | SerializedProperty.firstAdjustme |
| 14f80 | 6e 74 52 65 63 6f 72 64 20 3d 20 72 65 63 6f 72 64 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 | ntRecord.=.record.FindPropertyRe |
| 14fa0 | 6c 61 74 69 76 65 28 22 6d 5f 46 69 72 73 74 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 22 | lative("m_FirstAdjustmentRecord" |
| 14fc0 | 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 53 65 72 69 61 6c 69 7a 65 64 50 72 | );..................SerializedPr |
| 14fe0 | 6f 70 65 72 74 79 20 73 65 63 6f 6e 64 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 20 3d 20 | operty.secondAdjustmentRecord.=. |
| 15000 | 72 65 63 6f 72 64 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 53 | record.FindPropertyRelative("m_S |
| 15020 | 65 63 6f 6e 64 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 22 29 3b 0d 0a 0d 0a 20 20 20 20 | econdAdjustmentRecord");........ |
| 15040 | 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 66 69 72 73 74 47 6c 79 70 68 20 3d 20 66 69 72 | ............int.firstGlyph.=.fir |
| 15060 | 73 74 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 2e 46 69 6e 64 50 72 6f 70 65 72 74 79 52 | stAdjustmentRecord.FindPropertyR |
| 15080 | 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 49 6e 64 65 78 22 29 2e 69 6e 74 56 61 6c 75 65 | elative("m_GlyphIndex").intValue |
| 150a0 | 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 73 65 63 6f 6e 64 47 6c 79 | ;..................int.secondGly |
| 150c0 | 70 68 20 3d 20 73 65 63 6f 6e 64 41 64 6a 75 73 74 6d 65 6e 74 52 65 63 6f 72 64 2e 46 69 6e 64 | ph.=.secondAdjustmentRecord.Find |
| 150e0 | 50 72 6f 70 65 72 74 79 52 65 6c 61 74 69 76 65 28 22 6d 5f 47 6c 79 70 68 49 6e 64 65 78 22 29 | PropertyRelative("m_GlyphIndex") |
| 15100 | 2e 69 6e 74 56 61 6c 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 | .intValue;....................if |
| 15120 | 20 28 66 69 72 73 74 47 6c 79 70 68 49 6e 64 65 78 20 3d 3d 20 66 69 72 73 74 47 6c 79 70 68 20 | .(firstGlyphIndex.==.firstGlyph. |
| 15140 | 26 26 20 73 65 63 6f 6e 64 47 6c 79 70 68 49 6e 64 65 78 20 3d 3d 20 73 65 63 6f 6e 64 47 6c 79 | &&.secondGlyphIndex.==.secondGly |
| 15160 | 70 68 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 52 | ph)......................searchR |
| 15180 | 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | esults.Add(i);.................. |
| 151a0 | 65 6c 73 65 20 69 66 20 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 2e 4c 65 6e 67 74 68 20 3d 3d | else.if.(searchPattern.Length.== |
| 151c0 | 20 31 20 26 26 20 28 66 69 72 73 74 47 6c 79 70 68 49 6e 64 65 78 20 3d 3d 20 66 69 72 73 74 47 | .1.&&.(firstGlyphIndex.==.firstG |
| 151e0 | 6c 79 70 68 20 7c 7c 20 66 69 72 73 74 47 6c 79 70 68 49 6e 64 65 78 20 3d 3d 20 73 65 63 6f 6e | lyph.||.firstGlyphIndex.==.secon |
| 15200 | 64 47 6c 79 70 68 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 | dGlyph))......................se |
| 15220 | 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 | archResults.Add(i);............. |
| 15240 | 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 66 69 72 73 74 47 6c 79 70 68 2e 54 6f 53 74 72 69 6e | .....else.if.(firstGlyph.ToStrin |
| 15260 | 67 28 29 2e 43 6f 6e 74 61 69 6e 73 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 | g().Contains(searchPattern)).... |
| 15280 | 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e | ..................searchResults. |
| 152a0 | 41 64 64 28 69 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 | Add(i);..................else.if |
| 152c0 | 20 28 73 65 63 6f 6e 64 47 6c 79 70 68 2e 54 6f 53 74 72 69 6e 67 28 29 2e 43 6f 6e 74 61 69 6e | .(secondGlyph.ToString().Contain |
| 152e0 | 73 28 73 65 61 72 63 68 50 61 74 74 65 72 6e 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 | s(searchPattern))............... |
| 15300 | 20 20 20 20 20 20 20 73 65 61 72 63 68 52 65 73 75 6c 74 73 2e 41 64 64 28 69 29 3b 0d 0a 20 20 | .......searchResults.Add(i);.... |
| 15320 | 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 7d | ..........}..........}......}..} |
| 15340 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 13 00 00 00 54 4d 50 5f 46 6f 6e 74 | ........................TMP_Font |
| 15360 | 41 73 73 65 74 45 64 69 74 6f 72 00 15 00 00 00 54 4d 50 72 6f 2e 45 64 69 74 6f 72 55 74 69 6c | AssetEditor.....TMPro.EditorUtil |
| 15380 | 69 74 69 65 73 00 00 00 | ities... |