summaryrefslogtreecommitdiff
path: root/Library/Artifacts/d6/d60270576172625e2e048e46ca449016
blob: 3effd83a1690d1b22e2dc81a700a507dae7dc03c (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 7c d8 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......|.............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 78 6c 00 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 xl..............................
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 0a 00 00 00 43 6c 69 70 44 72 61 77 65 72 00 00 fe 6b 00 00 75 73 69 6e ............ClipDrawer...k..usin
10a0 67 20 53 79 73 74 65 6d 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 54 69 6d 65 g.System;.using.UnityEngine.Time
10c0 6c 69 6e 65 3b 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 3b 0a 75 73 69 6e 67 20 53 line;.using.UnityEngine;.using.S
10e0 79 73 74 65 6d 2e 4c 69 6e 71 3b 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 ystem.Linq;.using.System.Collect
1100 69 6f 6e 73 2e 47 65 6e 65 72 69 63 3b 0a 0a 6e 61 6d 65 73 70 61 63 65 20 55 6e 69 74 79 45 64 ions.Generic;..namespace.UnityEd
1120 69 74 6f 72 2e 54 69 6d 65 6c 69 6e 65 0a 7b 0a 20 20 20 20 65 6e 75 6d 20 42 6c 65 6e 64 4b 69 itor.Timeline.{.....enum.BlendKi
1140 6e 64 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 4e 6f 6e 65 2c 0a 20 20 20 20 20 20 20 20 45 nd.....{.........None,.........E
1160 61 73 65 2c 0a 20 20 20 20 20 20 20 20 4d 69 78 0a 20 20 20 20 7d 0a 0a 20 20 20 20 65 6e 75 6d ase,.........Mix.....}......enum
1180 20 42 6c 65 6e 64 41 6e 67 6c 65 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 44 65 73 63 65 6e .BlendAngle.....{.........Descen
11a0 64 69 6e 67 2c 0a 20 20 20 20 20 20 20 20 41 73 63 65 6e 64 69 6e 67 0a 20 20 20 20 7d 0a 0a 20 ding,.........Ascending.....}...
11c0 20 20 20 73 74 72 75 63 74 20 49 63 6f 6e 44 61 74 61 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 ...struct.IconData.....{........
11e0 20 70 75 62 6c 69 63 20 65 6e 75 6d 20 53 69 64 65 20 7b 20 4c 65 66 74 20 3d 20 2d 31 2c 20 52 .public.enum.Side.{.Left.=.-1,.R
1200 69 67 68 74 20 3d 20 31 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 54 65 78 74 75 ight.=.1.}..........public.Textu
1220 72 65 32 44 20 69 63 6f 6e 3b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 43 6f 6c 6f 72 20 re2D.icon;.........public.Color.
1240 74 69 6e 74 3b 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 66 6c 6f 61 74 20 77 69 64 74 tint;..........public.float.widt
1260 68 20 7b 20 67 65 74 20 7b 20 72 65 74 75 72 6e 20 31 36 3b 20 7d 20 7d 0a 20 20 20 20 20 20 20 h.{.get.{.return.16;.}.}........
1280 20 70 75 62 6c 69 63 20 66 6c 6f 61 74 20 68 65 69 67 68 74 20 7b 20 67 65 74 20 7b 20 72 65 74 .public.float.height.{.get.{.ret
12a0 75 72 6e 20 31 36 3b 20 7d 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 63 6f 6e urn.16;.}.}..........public.Icon
12c0 44 61 74 61 28 54 65 78 74 75 72 65 32 44 20 69 63 6f 6e 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 Data(Texture2D.icon).........{..
12e0 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 69 63 6f 6e 20 3d 20 69 63 6f 6e 3b 0a 20 20 20 ...........this.icon.=.icon;....
1300 20 20 20 20 20 20 20 20 20 74 69 6e 74 20 3d 20 43 6f 6c 6f 72 2e 77 68 69 74 65 3b 0a 20 20 20 .........tint.=.Color.white;....
1320 20 20 20 20 20 7d 0a 20 20 20 20 7d 0a 0a 20 20 20 20 63 6c 61 73 73 20 43 6c 69 70 42 6f 72 64 .....}.....}......class.ClipBord
1340 65 72 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 72 65 61 64 6f 6e 6c 79 er.....{.........public.readonly
1360 20 43 6f 6c 6f 72 20 63 6f 6c 6f 72 3b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 72 65 61 .Color.color;.........public.rea
1380 64 6f 6e 6c 79 20 66 6c 6f 61 74 20 74 68 69 63 6b 6e 65 73 73 3b 0a 0a 20 20 20 20 20 20 20 20 donly.float.thickness;..........
13a0 43 6c 69 70 42 6f 72 64 65 72 28 43 6f 6c 6f 72 20 63 6f 6c 6f 72 2c 20 66 6c 6f 61 74 20 74 68 ClipBorder(Color.color,.float.th
13c0 69 63 6b 6e 65 73 73 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 ickness).........{.............t
13e0 68 69 73 2e 63 6f 6c 6f 72 20 3d 20 63 6f 6c 6f 72 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 his.color.=.color;.............t
1400 68 69 73 2e 74 68 69 63 6b 6e 65 73 73 20 3d 20 74 68 69 63 6b 6e 65 73 73 3b 0a 20 20 20 20 20 his.thickness.=.thickness;......
1420 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 66 6c 6f 61 74 20 6b 5f 43 6c 69 70 ...}..........const.float.k_Clip
1440 53 65 6c 65 63 74 69 6f 6e 42 6f 72 64 65 72 20 3d 20 31 2e 30 66 3b 0a 20 20 20 20 20 20 20 20 SelectionBorder.=.1.0f;.........
1460 63 6f 6e 73 74 20 66 6c 6f 61 74 20 6b 5f 43 6c 69 70 52 65 63 6f 72 64 69 6e 67 42 6f 72 64 65 const.float.k_ClipRecordingBorde
1480 72 20 3d 20 32 2e 30 66 3b 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 r.=.2.0f;..........public.static
14a0 20 43 6c 69 70 42 6f 72 64 65 72 20 52 65 63 6f 72 64 69 6e 67 28 29 0a 20 20 20 20 20 20 20 20 .ClipBorder.Recording().........
14c0 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 65 77 20 43 6c 69 70 42 6f 72 {.............return.new.ClipBor
14e0 64 65 72 28 44 69 72 65 63 74 6f 72 53 74 79 6c 65 73 2e 49 6e 73 74 61 6e 63 65 2e 63 75 73 74 der(DirectorStyles.Instance.cust
1500 6f 6d 53 6b 69 6e 2e 63 6f 6c 6f 72 52 65 63 6f 72 64 69 6e 67 43 6c 69 70 4f 75 74 6c 69 6e 65 omSkin.colorRecordingClipOutline
1520 2c 20 6b 5f 43 6c 69 70 52 65 63 6f 72 64 69 6e 67 42 6f 72 64 65 72 29 3b 0a 20 20 20 20 20 20 ,.k_ClipRecordingBorder);.......
1540 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 43 6c 69 70 42 ..}..........public.static.ClipB
1560 6f 72 64 65 72 20 53 65 6c 65 63 74 69 6f 6e 28 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 order.Selection().........{.....
1580 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 65 77 20 43 6c 69 70 42 6f 72 64 65 72 28 43 6f ........return.new.ClipBorder(Co
15a0 6c 6f 72 2e 77 68 69 74 65 2c 20 6b 5f 43 6c 69 70 53 65 6c 65 63 74 69 6f 6e 42 6f 72 64 65 72 lor.white,.k_ClipSelectionBorder
15c0 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 );.........}..........public.sta
15e0 74 69 63 20 43 6c 69 70 42 6f 72 64 65 72 20 44 65 66 61 75 6c 74 28 29 0a 20 20 20 20 20 20 20 tic.ClipBorder.Default()........
1600 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 65 77 20 43 6c 69 70 42 6f .{.............return.new.ClipBo
1620 72 64 65 72 28 44 69 72 65 63 74 6f 72 53 74 79 6c 65 73 2e 49 6e 73 74 61 6e 63 65 2e 63 75 73 rder(DirectorStyles.Instance.cus
1640 74 6f 6d 53 6b 69 6e 2e 63 6c 69 70 42 6f 72 64 65 72 43 6f 6c 6f 72 2c 20 6b 5f 43 6c 69 70 53 tomSkin.clipBorderColor,.k_ClipS
1660 65 6c 65 63 74 69 6f 6e 42 6f 72 64 65 72 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 7d electionBorder);.........}.....}
1680 0a 0a 20 20 20 20 73 74 72 75 63 74 20 43 6c 69 70 42 6c 65 6e 64 73 0a 20 20 20 20 7b 0a 20 20 ......struct.ClipBlends.....{...
16a0 20 20 20 20 20 20 70 75 62 6c 69 63 20 72 65 61 64 6f 6e 6c 79 20 42 6c 65 6e 64 4b 69 6e 64 20 ......public.readonly.BlendKind.
16c0 69 6e 4b 69 6e 64 3b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 72 65 61 64 6f 6e 6c 79 20 inKind;.........public.readonly.
16e0 52 65 63 74 20 69 6e 52 65 63 74 3b 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 72 65 61 Rect.inRect;..........public.rea
1700 64 6f 6e 6c 79 20 42 6c 65 6e 64 4b 69 6e 64 20 6f 75 74 4b 69 6e 64 3b 0a 20 20 20 20 20 20 20 donly.BlendKind.outKind;........
1720 20 70 75 62 6c 69 63 20 72 65 61 64 6f 6e 6c 79 20 52 65 63 74 20 6f 75 74 52 65 63 74 3b 0a 0a .public.readonly.Rect.outRect;..
1740 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 43 6c 69 70 42 6c 65 6e 64 73 28 42 6c 65 6e 64 4b ........public.ClipBlends(BlendK
1760 69 6e 64 20 69 6e 4b 69 6e 64 2c 20 52 65 63 74 20 69 6e 52 65 63 74 2c 20 42 6c 65 6e 64 4b 69 ind.inKind,.Rect.inRect,.BlendKi
1780 6e 64 20 6f 75 74 4b 69 6e 64 2c 20 52 65 63 74 20 6f 75 74 52 65 63 74 29 0a 20 20 20 20 20 20 nd.outKind,.Rect.outRect).......
17a0 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 69 6e 4b 69 6e 64 20 3d 20 69 6e ..{.............this.inKind.=.in
17c0 4b 69 6e 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 69 6e 52 65 63 74 20 3d 20 Kind;.............this.inRect.=.
17e0 69 6e 52 65 63 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 6f 75 74 4b 69 6e 64 inRect;.............this.outKind
1800 20 3d 20 6f 75 74 4b 69 6e 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 6f 75 74 .=.outKind;.............this.out
1820 52 65 63 74 20 3d 20 6f 75 74 52 65 63 74 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 Rect.=.outRect;.........}.......
1840 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 43 6c 69 70 42 6c ...public.static.readonly.ClipBl
1860 65 6e 64 73 20 6b 4e 6f 6e 65 20 3d 20 6e 65 77 20 43 6c 69 70 42 6c 65 6e 64 73 28 42 6c 65 6e ends.kNone.=.new.ClipBlends(Blen
1880 64 4b 69 6e 64 2e 4e 6f 6e 65 2c 20 52 65 63 74 2e 7a 65 72 6f 2c 20 42 6c 65 6e 64 4b 69 6e 64 dKind.None,.Rect.zero,.BlendKind
18a0 2e 4e 6f 6e 65 2c 20 52 65 63 74 2e 7a 65 72 6f 29 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 73 74 .None,.Rect.zero);.....}......st
18c0 72 75 63 74 20 43 6c 69 70 44 72 61 77 44 61 74 61 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 ruct.ClipDrawData.....{.........
18e0 70 75 62 6c 69 63 20 54 69 6d 65 6c 69 6e 65 43 6c 69 70 20 63 6c 69 70 3b 20 20 20 20 20 20 20 public.TimelineClip.clip;.......
1900 20 20 20 20 20 20 2f 2f 20 63 6c 69 70 20 62 65 69 6e 67 20 64 72 61 77 6e 0a 20 20 20 20 20 20 ......//.clip.being.drawn.......
1920 20 20 70 75 62 6c 69 63 20 52 65 63 74 20 74 61 72 67 65 74 52 65 63 74 3b 20 20 20 20 20 20 20 ..public.Rect.targetRect;.......
1940 20 20 20 20 20 20 20 20 2f 2f 20 72 65 63 74 61 6e 67 6c 65 20 74 6f 20 64 72 61 77 20 74 6f 0a ........//.rectangle.to.draw.to.
1960 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 52 65 63 74 20 75 6e 63 6c 69 70 70 65 64 52 65 63 ........public.Rect.unclippedRec
1980 74 3b 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 68 65 20 63 6c 69 70 27 73 20 75 6e 63 6c t;............//.the.clip's.uncl
19a0 69 70 70 65 64 20 72 65 63 74 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 52 65 63 74 20 63 ipped.rect.........public.Rect.c
19c0 6c 69 70 70 65 64 52 65 63 74 3b 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 74 68 65 20 lippedRect;..............//.the.
19e0 63 6c 69 70 27 73 20 63 6c 69 70 70 65 64 20 72 65 63 74 20 74 6f 20 74 68 65 20 76 69 73 69 62 clip's.clipped.rect.to.the.visib
1a00 6c 65 20 74 69 6d 65 20 61 72 65 61 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 52 65 63 74 le.time.area.........public.Rect
1a20 20 63 6c 69 70 43 65 6e 74 65 72 53 65 63 74 69 6f 6e 3b 20 20 20 20 20 20 20 20 2f 2f 20 63 6c .clipCenterSection;........//.cl
1a40 69 70 20 63 65 6e 74 65 72 20 73 65 63 74 69 6f 6e 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 ip.center.section.........public
1a60 20 73 74 72 69 6e 67 20 74 69 74 6c 65 3b 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .string.title;..................
1a80 2f 2f 20 63 6c 69 70 20 74 69 74 6c 65 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f //.clip.title.........public.boo
1aa0 6c 20 73 65 6c 65 63 74 65 64 3b 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 69 l.selected;.................//.i
1ac0 73 20 74 68 65 20 63 6c 69 70 20 73 65 6c 65 63 74 65 64 0a 20 20 20 20 20 20 20 20 70 75 62 6c s.the.clip.selected.........publ
1ae0 69 63 20 62 6f 6f 6c 20 69 6e 6c 69 6e 65 43 75 72 76 65 73 53 65 6c 65 63 74 65 64 3b 20 20 20 ic.bool.inlineCurvesSelected;...
1b00 20 20 2f 2f 20 69 73 20 74 68 65 20 69 6e 6c 69 6e 65 20 63 75 72 76 65 20 6f 66 20 74 68 65 20 ..//.is.the.inline.curve.of.the.
1b20 63 6c 69 70 20 73 65 6c 65 63 74 65 64 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 64 6f 75 clip.selected.........public.dou
1b40 62 6c 65 20 6c 6f 63 61 6c 56 69 73 69 62 6c 65 53 74 61 72 74 54 69 6d 65 3b 0a 20 20 20 20 20 ble.localVisibleStartTime;......
1b60 20 20 20 70 75 62 6c 69 63 20 64 6f 75 62 6c 65 20 6c 6f 63 61 6c 56 69 73 69 62 6c 65 45 6e 64 ...public.double.localVisibleEnd
1b80 54 69 6d 65 3b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 63 6f 6e 44 61 74 61 5b 5d 20 Time;.........public.IconData[].
1ba0 6c 65 66 74 49 63 6f 6e 73 3b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 49 63 6f 6e 44 61 leftIcons;.........public.IconDa
1bc0 74 61 5b 5d 20 72 69 67 68 74 49 63 6f 6e 73 3b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 ta[].rightIcons;.........public.
1be0 54 69 6d 65 6c 69 6e 65 43 6c 69 70 20 70 72 65 76 69 6f 75 73 43 6c 69 70 3b 0a 20 20 20 20 20 TimelineClip.previousClip;......
1c00 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 70 72 65 76 69 6f 75 73 43 6c 69 70 53 65 6c 65 63 ...public.bool.previousClipSelec
1c20 74 65 64 3b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 62 6f 6f 6c 20 73 75 70 70 6f 72 74 ted;.........public.bool.support
1c40 73 4c 6f 6f 70 69 6e 67 3b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 69 6e 74 20 6d 69 6e sLooping;.........public.int.min
1c60 4c 6f 6f 70 49 6e 64 65 78 3b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 4c 69 73 74 3c 52 LoopIndex;.........public.List<R
1c80 65 63 74 3e 20 6c 6f 6f 70 52 65 63 74 73 3b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 43 ect>.loopRects;.........public.C
1ca0 6c 69 70 42 6c 65 6e 64 73 20 63 6c 69 70 42 6c 65 6e 64 73 3b 0a 20 20 20 20 20 20 20 20 70 75 lipBlends.clipBlends;.........pu
1cc0 62 6c 69 63 20 43 6c 69 70 44 72 61 77 4f 70 74 69 6f 6e 73 20 43 6c 69 70 44 72 61 77 4f 70 74 blic.ClipDrawOptions.ClipDrawOpt
1ce0 69 6f 6e 73 3b 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 43 6c 69 70 45 64 69 74 6f 72 20 ions;.........public.ClipEditor.
1d00 63 6c 69 70 45 64 69 74 6f 72 3b 0a 20 20 20 20 7d 0a 0a 20 20 20 20 73 74 61 74 69 63 20 63 6c clipEditor;.....}......static.cl
1d20 61 73 73 20 43 6c 69 70 44 72 61 77 65 72 0a 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 70 75 62 ass.ClipDrawer.....{.........pub
1d40 6c 69 63 20 73 74 61 74 69 63 20 63 6c 61 73 73 20 53 74 79 6c 65 73 0a 20 20 20 20 20 20 20 20 lic.static.class.Styles.........
1d60 7b 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 63 20 72 65 61 64 {.............public.static.read
1d80 6f 6e 6c 79 20 54 65 78 74 75 72 65 32 44 20 69 63 6f 6e 57 61 72 6e 20 3d 20 45 64 69 74 6f 72 only.Texture2D.iconWarn.=.Editor
1da0 47 55 49 55 74 69 6c 69 74 79 2e 4c 6f 61 64 49 63 6f 6e 52 65 71 75 69 72 65 64 28 22 63 6f 6e GUIUtility.LoadIconRequired("con
1dc0 73 6f 6c 65 2e 77 61 72 6e 69 63 6f 6e 2e 69 6e 61 63 74 69 76 65 2e 73 6d 6c 22 29 3b 0a 20 20 sole.warnicon.inactive.sml");...
1de0 20 20 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 ..........public.static.readonly
1e00 20 73 74 72 69 6e 67 20 48 6f 6c 64 54 65 78 74 20 3d 20 4c 6f 63 61 6c 69 7a 61 74 69 6f 6e 44 .string.HoldText.=.LocalizationD
1e20 61 74 61 62 61 73 65 2e 47 65 74 4c 6f 63 61 6c 69 7a 65 64 53 74 72 69 6e 67 28 22 48 4f 4c 44 atabase.GetLocalizedString("HOLD
1e40 22 29 3b 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 63 20 72 65 ");.............public.static.re
1e60 61 64 6f 6e 6c 79 20 54 65 78 74 75 72 65 32 44 20 73 5f 49 63 6f 6e 4e 6f 52 65 63 6f 72 64 20 adonly.Texture2D.s_IconNoRecord.
1e80 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 4c 6f 61 64 49 63 6f 6e 28 22 63 6f 6e =.EditorGUIUtility.LoadIcon("con
1ea0 73 6f 6c 65 2e 65 72 72 6f 72 69 63 6f 6e 2e 73 6d 6c 22 29 3b 0a 20 20 20 20 20 20 20 20 20 20 sole.erroricon.sml");...........
1ec0 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 ..public.static.readonly.GUICont
1ee0 65 6e 74 20 73 5f 43 6c 69 70 4e 6f 74 52 65 63 6f 72 61 62 6c 65 20 3d 20 45 64 69 74 6f 72 47 ent.s_ClipNotRecorable.=.EditorG
1f00 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 28 22 22 2c 20 22 54 68 69 UIUtility.TrTextContent("",."Thi
1f20 73 20 63 6c 69 70 20 69 73 20 6e 6f 74 20 72 65 63 6f 72 64 61 62 6c 65 22 29 3b 0a 20 20 20 20 s.clip.is.not.recordable");.....
1f40 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 47 ........public.static.readonly.G
1f60 55 49 43 6f 6e 74 65 6e 74 20 73 5f 43 6c 69 70 4e 6f 52 65 63 6f 72 64 49 6e 42 6c 65 6e 64 20 UIContent.s_ClipNoRecordInBlend.
1f80 3d 20 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 54 72 54 65 78 74 43 6f 6e 74 65 6e 74 =.EditorGUIUtility.TrTextContent
1fa0 28 22 22 2c 20 22 52 65 63 6f 72 64 69 6e 67 20 69 6e 20 62 6c 65 6e 64 73 20 69 6e 20 70 72 6f ("",."Recording.in.blends.in.pro
1fc0 68 69 62 69 74 65 64 22 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 63 6f hibited");.........}..........co
1fe0 6e 73 74 20 66 6c 6f 61 74 20 6b 5f 43 6c 69 70 53 77 61 74 63 68 4c 69 6e 65 54 68 69 63 6b 6e nst.float.k_ClipSwatchLineThickn
2000 65 73 73 20 3d 20 34 2e 30 66 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 66 6c 6f 61 74 20 ess.=.4.0f;.........const.float.
2020 6b 5f 4d 69 6e 43 6c 69 70 57 69 64 74 68 20 3d 20 37 2e 30 66 3b 0a 20 20 20 20 20 20 20 20 63 k_MinClipWidth.=.7.0f;.........c
2040 6f 6e 73 74 20 66 6c 6f 61 74 20 6b 5f 43 6c 69 70 49 6e 4f 75 74 4d 69 6e 57 69 64 74 68 20 3d onst.float.k_ClipInOutMinWidth.=
2060 20 31 35 2e 30 66 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 66 6c 6f 61 74 20 6b 5f 43 6c .15.0f;.........const.float.k_Cl
2080 69 70 4c 6f 6f 70 73 4d 69 6e 57 69 64 74 68 20 3d 20 32 30 2e 30 66 3b 0a 20 20 20 20 20 20 20 ipLoopsMinWidth.=.20.0f;........
20a0 20 63 6f 6e 73 74 20 66 6c 6f 61 74 20 6b 5f 43 6c 69 70 4c 61 62 65 6c 50 61 64 64 69 6e 67 20 .const.float.k_ClipLabelPadding.
20c0 3d 20 36 2e 30 66 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 66 6c 6f 61 74 20 6b 5f 43 6c =.6.0f;.........const.float.k_Cl
20e0 69 70 4c 61 62 65 6c 4d 69 6e 57 69 64 74 68 20 3d 20 31 30 2e 30 66 3b 0a 20 20 20 20 20 20 20 ipLabelMinWidth.=.10.0f;........
2100 20 63 6f 6e 73 74 20 66 6c 6f 61 74 20 6b 5f 49 63 6f 6e 73 50 61 64 64 69 6e 67 20 3d 20 31 2e .const.float.k_IconsPadding.=.1.
2120 30 66 3b 0a 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 66 6c 6f 61 74 20 6b 5f 43 6c 69 70 49 6e 0f;.........const.float.k_ClipIn
2140 6c 69 6e 65 57 69 64 74 68 20 3d 20 31 2e 30 66 3b 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 lineWidth.=.1.0f;..........stati
2160 63 20 72 65 61 64 6f 6e 6c 79 20 47 55 49 43 6f 6e 74 65 6e 74 20 73 5f 54 69 74 6c 65 43 6f 6e c.readonly.GUIContent.s_TitleCon
2180 74 65 6e 74 20 3d 20 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 29 3b 0a 20 20 20 20 20 20 20 tent.=.new.GUIContent();........
21a0 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 49 63 6f 6e 44 61 74 61 5b 5d 20 6b 5f 43 6c .static.readonly.IconData[].k_Cl
21c0 69 70 45 72 72 6f 72 49 63 6f 6e 73 20 3d 20 20 7b 20 6e 65 77 20 49 63 6f 6e 44 61 74 61 20 7b ipErrorIcons.=..{.new.IconData.{
21e0 69 63 6f 6e 20 3d 20 53 74 79 6c 65 73 2e 69 63 6f 6e 57 61 72 6e 2c 20 74 69 6e 74 20 3d 20 44 icon.=.Styles.iconWarn,.tint.=.D
2200 69 72 65 63 74 6f 72 53 74 79 6c 65 73 2e 6b 43 6c 69 70 45 72 72 6f 72 43 6f 6c 6f 72 7d 20 7d irectorStyles.kClipErrorColor}.}
2220 3b 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 44 69 63 74 69 6f ;.........static.readonly.Dictio
2240 6e 61 72 79 3c 69 6e 74 2c 20 73 74 72 69 6e 67 3e 20 73 5f 4c 6f 6f 70 53 74 72 69 6e 67 43 61 nary<int,.string>.s_LoopStringCa
2260 63 68 65 20 3d 20 6e 65 77 20 44 69 63 74 69 6f 6e 61 72 79 3c 69 6e 74 2c 20 73 74 72 69 6e 67 che.=.new.Dictionary<int,.string
2280 3e 28 31 30 30 29 3b 0a 0a 20 20 20 20 20 20 20 20 2f 2f 20 63 61 63 68 65 73 20 74 68 65 20 6c >(100);..........//.caches.the.l
22a0 6f 6f 70 73 74 72 69 6e 67 20 74 6f 20 61 76 6f 69 64 20 61 6c 6c 6f 63 61 74 69 6f 6e 20 66 72 oopstring.to.avoid.allocation.fr
22c0 6f 6d 20 73 74 72 69 6e 67 20 63 6f 6e 63 61 74 73 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 om.string.concats.........static
22e0 20 73 74 72 69 6e 67 20 47 65 74 4c 6f 6f 70 53 74 72 69 6e 67 28 69 6e 74 20 6c 6f 6f 70 49 6e .string.GetLoopString(int.loopIn
2300 64 65 78 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 74 72 69 6e dex).........{.............strin
2320 67 20 6c 6f 6f 70 53 74 72 69 6e 67 20 3d 20 6e 75 6c 6c 3b 0a 20 20 20 20 20 20 20 20 20 20 20 g.loopString.=.null;............
2340 20 69 66 20 28 21 73 5f 4c 6f 6f 70 53 74 72 69 6e 67 43 61 63 68 65 2e 54 72 79 47 65 74 56 61 .if.(!s_LoopStringCache.TryGetVa
2360 6c 75 65 28 6c 6f 6f 70 49 6e 64 65 78 2c 20 6f 75 74 20 6c 6f 6f 70 53 74 72 69 6e 67 29 29 0a lue(loopIndex,.out.loopString)).
2380 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 6f ............{.................lo
23a0 6f 70 53 74 72 69 6e 67 20 3d 20 22 4c 22 20 2b 20 6c 6f 6f 70 49 6e 64 65 78 3b 0a 20 20 20 20 opString.=."L".+.loopIndex;.....
23c0 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 4c 6f 6f 70 53 74 72 69 6e 67 43 61 63 68 65 5b 6c 6f ............s_LoopStringCache[lo
23e0 6f 70 49 6e 64 65 78 5d 20 3d 20 6c 6f 6f 70 53 74 72 69 6e 67 3b 0a 20 20 20 20 20 20 20 20 20 opIndex].=.loopString;..........
2400 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6c 6f 6f 70 53 74 72 69 ...}.............return.loopStri
2420 6e 67 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 76 6f ng;.........}..........static.vo
2440 69 64 20 44 72 61 77 4c 6f 6f 70 73 28 43 6c 69 70 44 72 61 77 44 61 74 61 20 64 72 61 77 44 61 id.DrawLoops(ClipDrawData.drawDa
2460 74 61 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 72 ta).........{.............if.(dr
2480 61 77 44 61 74 61 2e 6c 6f 6f 70 52 65 63 74 73 20 3d 3d 20 6e 75 6c 6c 20 7c 7c 20 64 72 61 77 awData.loopRects.==.null.||.draw
24a0 44 61 74 61 2e 6c 6f 6f 70 52 65 63 74 73 2e 43 6f 75 6e 74 20 3d 3d 20 30 29 0a 20 20 20 20 20 Data.loopRects.Count.==.0)......
24c0 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 ...........return;..............
24e0 76 61 72 20 6f 6c 64 43 6f 6c 6f 72 20 3d 20 47 55 49 2e 63 6f 6c 6f 72 3b 0a 0a 20 20 20 20 20 var.oldColor.=.GUI.color;.......
2500 20 20 20 20 20 20 20 69 6e 74 20 6c 6f 6f 70 49 6e 64 65 78 20 3d 20 64 72 61 77 44 61 74 61 2e .......int.loopIndex.=.drawData.
2520 6d 69 6e 4c 6f 6f 70 49 6e 64 65 78 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 minLoopIndex;.............for.(i
2540 6e 74 20 6c 20 3d 20 30 3b 20 6c 20 3c 20 64 72 61 77 44 61 74 61 2e 6c 6f 6f 70 52 65 63 74 73 nt.l.=.0;.l.<.drawData.loopRects
2560 2e 43 6f 75 6e 74 3b 20 6c 2b 2b 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 .Count;.l++).............{......
2580 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 74 68 65 52 65 63 74 20 3d 20 64 72 61 77 44 61 ...........Rect.theRect.=.drawDa
25a0 74 61 2e 6c 6f 6f 70 52 65 63 74 73 5b 6c 5d 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ta.loopRects[l];................
25c0 20 74 68 65 52 65 63 74 2e 78 20 2d 3d 20 64 72 61 77 44 61 74 61 2e 75 6e 63 6c 69 70 70 65 64 .theRect.x.-=.drawData.unclipped
25e0 52 65 63 74 2e 78 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65 52 65 63 74 2e Rect.x;.................theRect.
2600 78 20 2b 3d 20 31 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 65 52 65 63 74 2e x.+=.1;.................theRect.
2620 77 69 64 74 68 20 2d 3d 20 32 2e 30 66 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 width.-=.2.0f;.................t
2640 68 65 52 65 63 74 2e 79 20 3d 20 35 2e 30 66 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 heRect.y.=.5.0f;................
2660 20 74 68 65 52 65 63 74 2e 68 65 69 67 68 74 20 2d 3d 20 34 2e 30 66 3b 0a 20 20 20 20 20 20 20 .theRect.height.-=.4.0f;........
2680 20 20 20 20 20 20 20 20 20 74 68 65 52 65 63 74 2e 78 4d 69 6e 20 2d 3d 20 34 66 3b 0a 0a 20 20 .........theRect.xMin.-=.4f;....
26a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 68 65 52 65 63 74 2e 77 69 64 74 68 20 ..............if.(theRect.width.
26c0 3e 3d 20 35 66 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 >=.5f).................{........
26e0 20 20 20 20 20 20 20 20 20 20 20 20 20 75 73 69 6e 67 20 28 6e 65 77 20 47 55 49 56 69 65 77 70 .............using.(new.GUIViewp
2700 6f 72 74 53 63 6f 70 65 28 64 72 61 77 44 61 74 61 2e 63 6c 69 70 43 65 6e 74 65 72 53 65 63 74 ortScope(drawData.clipCenterSect
2720 69 6f 6e 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 ion)).....................{.....
2740 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 6f 6c 6f 72 20 3d 20 ....................GUI.color.=.
2760 6e 65 77 20 43 6f 6c 6f 72 28 30 2e 30 66 2c 20 30 2e 30 66 2c 20 30 2e 30 66 2c 20 30 2e 32 66 new.Color(0.0f,.0.0f,.0.0f,.0.2f
2780 29 3b 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 2e 4c );.........................GUI.L
27a0 61 62 65 6c 28 74 68 65 52 65 63 74 2c 20 47 55 49 43 6f 6e 74 65 6e 74 2e 6e 6f 6e 65 2c 20 44 abel(theRect,.GUIContent.none,.D
27c0 69 72 65 63 74 6f 72 53 74 79 6c 65 73 2e 49 6e 73 74 61 6e 63 65 2e 64 69 73 70 6c 61 79 42 61 irectorStyles.Instance.displayBa
27e0 63 6b 67 72 6f 75 6e 64 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ckground);......................
2800 20 20 20 20 69 66 20 28 74 68 65 52 65 63 74 2e 77 69 64 74 68 20 3e 20 33 36 2e 30 66 29 0a 20 ....if.(theRect.width.>.36.0f)..
2820 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 .......................{........
2840 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 79 6c 65 20 3d .....................var.style.=
2860 20 44 69 72 65 63 74 6f 72 53 74 79 6c 65 73 2e 49 6e 73 74 61 6e 63 65 2e 66 6f 6e 74 43 6c 69 .DirectorStyles.Instance.fontCli
2880 70 4c 6f 6f 70 3b 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 pLoop;..........................
28a0 20 20 20 47 55 49 2e 63 6f 6c 6f 72 20 3d 20 6e 65 77 20 43 6f 6c 6f 72 28 30 2e 30 66 2c 20 30 ...GUI.color.=.new.Color(0.0f,.0
28c0 2e 30 66 2c 20 30 2e 30 66 2c 20 30 2e 33 66 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .0f,.0.0f,.0.3f);...............
28e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6c 6f 6f 70 43 6f 6e 74 65 6e 74 20 3d 20 ..............var.loopContent.=.
2900 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 64 72 61 77 44 61 74 61 2e 73 75 70 70 6f 72 74 73 new.GUIContent(drawData.supports
2920 4c 6f 6f 70 69 6e 67 20 3f 20 47 65 74 4c 6f 6f 70 53 74 72 69 6e 67 28 6c 6f 6f 70 49 6e 64 65 Looping.?.GetLoopString(loopInde
2940 78 29 20 3a 20 53 74 79 6c 65 73 2e 48 6f 6c 64 54 65 78 74 29 3b 0a 20 20 20 20 20 20 20 20 20 x).:.Styles.HoldText);..........
2960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 74 68 65 ...................GUI.Label(the
2980 52 65 63 74 2c 20 6c 6f 6f 70 43 6f 6e 74 65 6e 74 2c 20 73 74 79 6c 65 29 3b 0a 20 20 20 20 20 Rect,.loopContent,.style);......
29a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 ...................}............
29c0 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 .........}.................}....
29e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 6f 6f 70 49 6e 64 65 78 2b 2b 3b 0a 0a 20 20 20 20 ..............loopIndex++;......
2a00 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 64 72 61 77 44 61 74 61 2e 73 75 70 70 6f 72 ............if.(!drawData.suppor
2a20 74 73 4c 6f 6f 70 69 6e 67 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 tsLooping).....................b
2a40 72 65 61 6b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 reak;.............}.............
2a60 20 47 55 49 2e 63 6f 6c 6f 72 20 3d 20 6f 6c 64 43 6f 6c 6f 72 3b 0a 20 20 20 20 20 20 20 20 7d .GUI.color.=.oldColor;.........}
2a80 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 43 6c 69 70 42 6f ..........static.void.DrawClipBo
2aa0 72 64 65 72 28 43 6c 69 70 44 72 61 77 44 61 74 61 20 64 72 61 77 44 61 74 61 29 0a 20 20 20 20 rder(ClipDrawData.drawData).....
2ac0 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 61 6e 69 6d 54 72 61 63 6b 20 ....{.............var.animTrack.
2ae0 3d 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e 70 61 72 65 6e 74 54 72 61 63 6b 20 61 73 20 41 =.drawData.clip.parentTrack.as.A
2b00 6e 69 6d 61 74 69 6f 6e 54 72 61 63 6b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 nimationTrack;.............var.s
2b20 65 6c 65 63 74 69 6f 6e 42 6f 72 64 65 72 20 3d 20 43 6c 69 70 42 6f 72 64 65 72 2e 53 65 6c 65 electionBorder.=.ClipBorder.Sele
2b40 63 74 69 6f 6e 28 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 54 69 6d 65 6c 69 ction();..............if.(Timeli
2b60 6e 65 57 69 6e 64 6f 77 2e 69 6e 73 74 61 6e 63 65 2e 73 74 61 74 65 2e 72 65 63 6f 72 64 69 6e neWindow.instance.state.recordin
2b80 67 20 26 26 20 61 6e 69 6d 54 72 61 63 6b 20 3d 3d 20 6e 75 6c 6c 20 26 26 20 64 72 61 77 44 61 g.&&.animTrack.==.null.&&.drawDa
2ba0 74 61 2e 63 6c 69 70 2e 70 61 72 65 6e 74 54 72 61 63 6b 2e 49 73 52 65 63 6f 72 64 69 6e 67 54 ta.clip.parentTrack.IsRecordingT
2bc0 6f 43 6c 69 70 28 64 72 61 77 44 61 74 61 2e 63 6c 69 70 29 29 0a 20 20 20 20 20 20 20 20 20 20 oClip(drawData.clip))...........
2be0 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c 69 70 53 65 6c 65 ..{.................DrawClipSele
2c00 63 74 69 6f 6e 42 6f 72 64 65 72 28 64 72 61 77 44 61 74 61 2e 63 6c 69 70 43 65 6e 74 65 72 53 ctionBorder(drawData.clipCenterS
2c20 65 63 74 69 6f 6e 2c 20 73 65 6c 65 63 74 69 6f 6e 42 6f 72 64 65 72 2c 20 64 72 61 77 44 61 74 ection,.selectionBorder,.drawDat
2c40 61 2e 63 6c 69 70 42 6c 65 6e 64 73 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 a.clipBlends);.................r
2c60 65 74 75 72 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 eturn;.............}............
2c80 20 20 44 72 61 77 43 6c 69 70 44 65 66 61 75 6c 74 42 6f 72 64 65 72 28 64 72 61 77 44 61 74 61 ..DrawClipDefaultBorder(drawData
2ca0 2e 63 6c 69 70 43 65 6e 74 65 72 53 65 63 74 69 6f 6e 2c 20 43 6c 69 70 42 6f 72 64 65 72 2e 44 .clipCenterSection,.ClipBorder.D
2cc0 65 66 61 75 6c 74 28 29 2c 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 42 6c 65 6e 64 73 29 3b 0a efault(),.drawData.clipBlends);.
2ce0 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 72 61 77 44 61 74 61 2e 73 65 6c 65 63 74 .............if.(drawData.select
2d00 65 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c 69 70 53 65 6c 65 ed).................DrawClipSele
2d20 63 74 69 6f 6e 42 6f 72 64 65 72 28 64 72 61 77 44 61 74 61 2e 63 6c 69 70 43 65 6e 74 65 72 53 ctionBorder(drawData.clipCenterS
2d40 65 63 74 69 6f 6e 2c 20 73 65 6c 65 63 74 69 6f 6e 42 6f 72 64 65 72 2c 20 64 72 61 77 44 61 74 ection,.selectionBorder,.drawDat
2d60 61 2e 63 6c 69 70 42 6c 65 6e 64 73 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 a.clipBlends);..............if.(
2d80 64 72 61 77 44 61 74 61 2e 70 72 65 76 69 6f 75 73 43 6c 69 70 20 21 3d 20 6e 75 6c 6c 20 26 26 drawData.previousClip.!=.null.&&
2da0 20 64 72 61 77 44 61 74 61 2e 70 72 65 76 69 6f 75 73 43 6c 69 70 53 65 6c 65 63 74 65 64 29 0a .drawData.previousClipSelected).
2dc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c 69 70 42 6c 65 6e 64 53 65 6c ................DrawClipBlendSel
2de0 65 63 74 69 6f 6e 42 6f 72 64 65 72 28 64 72 61 77 44 61 74 61 2e 63 6c 69 70 43 65 6e 74 65 72 ectionBorder(drawData.clipCenter
2e00 53 65 63 74 69 6f 6e 2c 20 73 65 6c 65 63 74 69 6f 6e 42 6f 72 64 65 72 2c 20 64 72 61 77 44 61 Section,.selectionBorder,.drawDa
2e20 74 61 2e 63 6c 69 70 42 6c 65 6e 64 73 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 ta.clipBlends);.........}.......
2e40 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 43 6c 69 70 53 65 ...public.static.void.DrawClipSe
2e60 6c 65 63 74 69 6f 6e 42 6f 72 64 65 72 28 52 65 63 74 20 63 6c 69 70 52 65 63 74 2c 20 43 6c 69 lectionBorder(Rect.clipRect,.Cli
2e80 70 42 6f 72 64 65 72 20 62 6f 72 64 65 72 2c 20 43 6c 69 70 42 6c 65 6e 64 73 20 62 6c 65 6e 64 pBorder.border,.ClipBlends.blend
2ea0 73 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 68 69 s).........{.............var.thi
2ec0 63 6b 6e 65 73 73 20 3d 20 62 6f 72 64 65 72 2e 74 68 69 63 6b 6e 65 73 73 3b 0a 20 20 20 20 20 ckness.=.border.thickness;......
2ee0 20 20 20 20 20 20 20 76 61 72 20 63 6f 6c 6f 72 20 3d 20 62 6f 72 64 65 72 2e 63 6f 6c 6f 72 3b .......var.color.=.border.color;
2f00 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 69 6e 20 3d 20 63 6c 69 70 52 65 63 74 2e .............var.min.=.clipRect.
2f20 6d 69 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6d 61 78 20 3d 20 63 6c 69 70 52 min;.............var.max.=.clipR
2f40 65 63 74 2e 6d 61 78 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 4c 65 66 74 20 6c 69 6e ect.max;..............//Left.lin
2f60 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 62 6c 65 6e 64 73 2e 69 6e 4b 69 6e 64 20 e.............if.(blends.inKind.
2f80 3d 3d 20 42 6c 65 6e 64 4b 69 6e 64 2e 4e 6f 6e 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ==.BlendKind.None)..............
2fa0 20 20 20 45 64 69 74 6f 72 47 55 49 2e 44 72 61 77 52 65 63 74 28 6e 65 77 20 52 65 63 74 28 6d ...EditorGUI.DrawRect(new.Rect(m
2fc0 69 6e 2e 78 2c 20 6d 69 6e 2e 79 2c 20 74 68 69 63 6b 6e 65 73 73 2c 20 6d 61 78 2e 79 20 2d 20 in.x,.min.y,.thickness,.max.y.-.
2fe0 6d 69 6e 2e 79 29 2c 20 63 6f 6c 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 min.y),.color);.............else
3000 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 42 6c 65 6e 64 4c 69 6e 65 28 62 .................DrawBlendLine(b
3020 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2c 20 62 6c 65 6e 64 73 2e 69 6e 4b 69 6e 64 20 3d 3d 20 42 lends.inRect,.blends.inKind.==.B
3040 6c 65 6e 64 4b 69 6e 64 2e 4d 69 78 20 3f 20 42 6c 65 6e 64 41 6e 67 6c 65 2e 44 65 73 63 65 6e lendKind.Mix.?.BlendAngle.Descen
3060 64 69 6e 67 20 3a 20 42 6c 65 6e 64 41 6e 67 6c 65 2e 41 73 63 65 6e 64 69 6e 67 2c 20 74 68 69 ding.:.BlendAngle.Ascending,.thi
3080 63 6b 6e 65 73 73 2c 20 63 6f 6c 6f 72 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 52 ckness,.color);..............//R
30a0 69 67 68 74 20 6c 69 6e 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 62 6c 65 6e 64 73 ight.line.............if.(blends
30c0 2e 6f 75 74 4b 69 6e 64 20 3d 3d 20 42 6c 65 6e 64 4b 69 6e 64 2e 4e 6f 6e 65 29 0a 20 20 20 20 .outKind.==.BlendKind.None).....
30e0 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 44 72 61 77 52 65 63 74 28 6e ............EditorGUI.DrawRect(n
3100 65 77 20 52 65 63 74 28 6d 61 78 2e 78 20 2d 20 74 68 69 63 6b 6e 65 73 73 2c 20 6d 69 6e 2e 79 ew.Rect(max.x.-.thickness,.min.y
3120 2c 20 74 68 69 63 6b 6e 65 73 73 2c 20 6d 61 78 2e 79 20 2d 20 6d 69 6e 2e 79 29 2c 20 63 6f 6c ,.thickness,.max.y.-.min.y),.col
3140 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 or);.............else...........
3160 20 20 20 20 20 20 44 72 61 77 42 6c 65 6e 64 4c 69 6e 65 28 62 6c 65 6e 64 73 2e 6f 75 74 52 65 ......DrawBlendLine(blends.outRe
3180 63 74 2c 20 42 6c 65 6e 64 41 6e 67 6c 65 2e 44 65 73 63 65 6e 64 69 6e 67 2c 20 74 68 69 63 6b ct,.BlendAngle.Descending,.thick
31a0 6e 65 73 73 2c 20 63 6f 6c 6f 72 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 54 6f 70 ness,.color);..............//Top
31c0 20 6c 69 6e 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 78 54 6f 70 31 20 3d 20 62 6c .line.............var.xTop1.=.bl
31e0 65 6e 64 73 2e 69 6e 4b 69 6e 64 20 3d 3d 20 42 6c 65 6e 64 4b 69 6e 64 2e 4d 69 78 20 3f 20 62 ends.inKind.==.BlendKind.Mix.?.b
3200 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 78 4d 69 6e 20 3a 20 6d 69 6e 2e 78 3b 0a 20 20 20 20 20 lends.inRect.xMin.:.min.x;......
3220 20 20 20 20 20 20 20 76 61 72 20 78 54 6f 70 32 20 3d 20 6d 61 78 2e 78 3b 0a 20 20 20 20 20 20 .......var.xTop2.=.max.x;.......
3240 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 44 72 61 77 52 65 63 74 28 6e 65 77 20 52 65 63 ......EditorGUI.DrawRect(new.Rec
3260 74 28 78 54 6f 70 31 2c 20 6d 69 6e 2e 79 2c 20 78 54 6f 70 32 20 2d 20 78 54 6f 70 31 2c 20 74 t(xTop1,.min.y,.xTop2.-.xTop1,.t
3280 68 69 63 6b 6e 65 73 73 29 2c 20 63 6f 6c 6f 72 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 hickness),.color);..............
32a0 2f 2f 42 6f 74 74 6f 6d 20 6c 69 6e 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 78 42 //Bottom.line.............var.xB
32c0 6f 74 74 6f 6d 31 20 3d 20 62 6c 65 6e 64 73 2e 69 6e 4b 69 6e 64 20 3d 3d 20 42 6c 65 6e 64 4b ottom1.=.blends.inKind.==.BlendK
32e0 69 6e 64 2e 45 61 73 65 20 3f 20 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 78 4d 69 6e 20 3a 20 ind.Ease.?.blends.inRect.xMin.:.
3300 6d 69 6e 2e 78 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 78 42 6f 74 74 6f 6d 32 20 min.x;.............var.xBottom2.
3320 3d 20 62 6c 65 6e 64 73 2e 6f 75 74 4b 69 6e 64 20 3d 3d 20 42 6c 65 6e 64 4b 69 6e 64 2e 4e 6f =.blends.outKind.==.BlendKind.No
3340 6e 65 20 3f 20 6d 61 78 2e 78 20 3a 20 62 6c 65 6e 64 73 2e 6f 75 74 52 65 63 74 2e 78 4d 61 78 ne.?.max.x.:.blends.outRect.xMax
3360 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 44 72 61 77 52 65 63 74 ;.............EditorGUI.DrawRect
3380 28 6e 65 77 20 52 65 63 74 28 78 42 6f 74 74 6f 6d 31 2c 20 6d 61 78 2e 79 20 2d 20 74 68 69 63 (new.Rect(xBottom1,.max.y.-.thic
33a0 6b 6e 65 73 73 2c 20 78 42 6f 74 74 6f 6d 32 20 2d 20 78 42 6f 74 74 6f 6d 31 2c 20 74 68 69 63 kness,.xBottom2.-.xBottom1,.thic
33c0 6b 6e 65 73 73 29 2c 20 63 6f 6c 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 kness),.color);.........}.......
33e0 20 20 20 73 74 61 74 69 63 20 56 65 63 74 6f 72 33 5b 5d 20 73 5f 42 6c 65 6e 64 4c 69 6e 65 73 ...static.Vector3[].s_BlendLines
3400 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 5b 34 5d 3b 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 .=.new.Vector3[4];.........stati
3420 63 20 76 6f 69 64 20 44 72 61 77 42 6c 65 6e 64 4c 69 6e 65 28 52 65 63 74 20 72 65 63 74 2c 20 c.void.DrawBlendLine(Rect.rect,.
3440 42 6c 65 6e 64 41 6e 67 6c 65 20 62 6c 65 6e 64 41 6e 67 6c 65 2c 20 66 6c 6f 61 74 20 77 69 64 BlendAngle.blendAngle,.float.wid
3460 74 68 2c 20 43 6f 6c 6f 72 20 63 6f 6c 6f 72 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 th,.Color.color).........{......
3480 20 20 20 20 20 20 20 76 61 72 20 68 61 6c 66 57 69 64 74 68 20 3d 20 77 69 64 74 68 20 2f 20 32 .......var.halfWidth.=.width./.2
34a0 2e 30 66 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 56 65 63 74 6f 72 32 20 70 30 2c 20 70 31 3b .0f;.............Vector2.p0,.p1;
34c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 6e 76 65 72 73 65 20 3d 20 31 2e 30 66 3b .............var.inverse.=.1.0f;
34e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 62 6c 65 6e 64 41 6e 67 6c 65 20 3d 3d 20 42 .............if.(blendAngle.==.B
3500 6c 65 6e 64 41 6e 67 6c 65 2e 44 65 73 63 65 6e 64 69 6e 67 29 0a 20 20 20 20 20 20 20 20 20 20 lendAngle.Descending)...........
3520 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 30 20 3d 20 72 65 63 74 2e 6d 69 ..{.................p0.=.rect.mi
3540 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 31 20 3d 20 72 65 63 74 2e 6d 61 78 n;.................p1.=.rect.max
3560 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 ;.............}.............else
3580 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 .............{.................p
35a0 30 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 72 65 63 74 2e 78 4d 61 78 2c 20 72 65 63 74 2e 0.=.new.Vector2(rect.xMax,.rect.
35c0 79 4d 69 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 31 20 3d 20 6e 65 77 20 yMin);.................p1.=.new.
35e0 56 65 63 74 6f 72 32 28 72 65 63 74 2e 78 4d 69 6e 2c 20 72 65 63 74 2e 79 4d 61 78 29 3b 0a 20 Vector2(rect.xMin,.rect.yMax);..
3600 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 76 65 72 73 65 20 3d 20 2d 31 2e 30 66 3b 0a ...............inverse.=.-1.0f;.
3620 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 42 6c 65 6e ............}.............s_Blen
3640 64 4c 69 6e 65 73 5b 30 5d 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 28 70 30 2e 78 20 2d 20 68 dLines[0].=.new.Vector3(p0.x.-.h
3660 61 6c 66 57 69 64 74 68 2c 20 70 30 2e 79 20 2b 20 68 61 6c 66 57 69 64 74 68 20 2a 20 69 6e 76 alfWidth,.p0.y.+.halfWidth.*.inv
3680 65 72 73 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 42 6c 65 6e 64 4c 69 6e 65 73 5b erse);.............s_BlendLines[
36a0 31 5d 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 28 70 31 2e 78 20 2d 20 68 61 6c 66 57 69 64 74 1].=.new.Vector3(p1.x.-.halfWidt
36c0 68 2c 20 70 31 2e 79 20 2b 20 68 61 6c 66 57 69 64 74 68 20 2a 20 69 6e 76 65 72 73 65 29 3b 0a h,.p1.y.+.halfWidth.*.inverse);.
36e0 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 42 6c 65 6e 64 4c 69 6e 65 73 5b 32 5d 20 3d 20 6e 65 ............s_BlendLines[2].=.ne
3700 77 20 56 65 63 74 6f 72 33 28 70 31 2e 78 20 2b 20 68 61 6c 66 57 69 64 74 68 2c 20 70 31 2e 79 w.Vector3(p1.x.+.halfWidth,.p1.y
3720 20 2d 20 68 61 6c 66 57 69 64 74 68 20 2a 20 69 6e 76 65 72 73 65 29 3b 0a 20 20 20 20 20 20 20 .-.halfWidth.*.inverse);........
3740 20 20 20 20 20 73 5f 42 6c 65 6e 64 4c 69 6e 65 73 5b 33 5d 20 3d 20 6e 65 77 20 56 65 63 74 6f .....s_BlendLines[3].=.new.Vecto
3760 72 33 28 70 30 2e 78 20 2b 20 68 61 6c 66 57 69 64 74 68 2c 20 70 30 2e 79 20 2d 20 68 61 6c 66 r3(p0.x.+.halfWidth,.p0.y.-.half
3780 57 69 64 74 68 20 2a 20 69 6e 76 65 72 73 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 72 Width.*.inverse);.............Gr
37a0 61 70 68 69 63 73 2e 44 72 61 77 50 6f 6c 79 67 6f 6e 41 41 28 63 6f 6c 6f 72 2c 20 73 5f 42 6c aphics.DrawPolygonAA(color,.s_Bl
37c0 65 6e 64 4c 69 6e 65 73 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 endLines);.........}..........st
37e0 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 43 6c 69 70 42 6c 65 6e 64 53 65 6c 65 63 74 69 6f 6e atic.void.DrawClipBlendSelection
3800 42 6f 72 64 65 72 28 52 65 63 74 20 63 6c 69 70 52 65 63 74 2c 20 43 6c 69 70 42 6f 72 64 65 72 Border(Rect.clipRect,.ClipBorder
3820 20 62 6f 72 64 65 72 2c 20 43 6c 69 70 42 6c 65 6e 64 73 20 62 6c 65 6e 64 73 29 0a 20 20 20 20 .border,.ClipBlends.blends).....
3840 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6c 6f 72 20 3d 20 62 6f ....{.............var.color.=.bo
3860 72 64 65 72 2e 63 6f 6c 6f 72 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 68 69 63 rder.color;.............var.thic
3880 6b 6e 65 73 73 20 3d 20 62 6f 72 64 65 72 2e 74 68 69 63 6b 6e 65 73 73 3b 0a 20 20 20 20 20 20 kness.=.border.thickness;.......
38a0 20 20 20 20 20 20 69 66 20 28 62 6c 65 6e 64 73 2e 69 6e 4b 69 6e 64 20 3d 3d 20 42 6c 65 6e 64 ......if.(blends.inKind.==.Blend
38c0 4b 69 6e 64 2e 4d 69 78 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 Kind.Mix).............{.........
38e0 20 20 20 20 20 20 20 20 44 72 61 77 42 6c 65 6e 64 4c 69 6e 65 28 62 6c 65 6e 64 73 2e 69 6e 52 ........DrawBlendLine(blends.inR
3900 65 63 74 2c 20 42 6c 65 6e 64 41 6e 67 6c 65 2e 44 65 73 63 65 6e 64 69 6e 67 2c 20 74 68 69 63 ect,.BlendAngle.Descending,.thic
3920 6b 6e 65 73 73 2c 20 63 6f 6c 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 kness,.color);.................v
3940 61 72 20 78 42 6f 74 74 6f 6d 31 20 3d 20 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 78 4d 69 6e ar.xBottom1.=.blends.inRect.xMin
3960 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 78 42 6f 74 74 6f 6d 32 20 3d ;.................var.xBottom2.=
3980 20 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 78 4d 61 78 3b 0a 20 20 20 20 20 20 20 20 20 20 20 .blends.inRect.xMax;............
39a0 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 44 72 61 77 52 65 63 74 28 6e 65 77 20 52 65 63 74 .....EditorGUI.DrawRect(new.Rect
39c0 28 78 42 6f 74 74 6f 6d 31 2c 20 63 6c 69 70 52 65 63 74 2e 6d 61 78 2e 79 20 2d 20 74 68 69 63 (xBottom1,.clipRect.max.y.-.thic
39e0 6b 6e 65 73 73 2c 20 78 42 6f 74 74 6f 6d 32 20 2d 20 78 42 6f 74 74 6f 6d 31 2c 20 74 68 69 63 kness,.xBottom2.-.xBottom1,.thic
3a00 6b 6e 65 73 73 29 2c 20 63 6f 6c 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 kness),.color);.............}...
3a20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 ......}..........static.void.Dra
3a40 77 43 6c 69 70 44 65 66 61 75 6c 74 42 6f 72 64 65 72 28 52 65 63 74 20 63 6c 69 70 52 65 63 74 wClipDefaultBorder(Rect.clipRect
3a60 2c 20 43 6c 69 70 42 6f 72 64 65 72 20 62 6f 72 64 65 72 2c 20 43 6c 69 70 42 6c 65 6e 64 73 20 ,.ClipBorder.border,.ClipBlends.
3a80 62 6c 65 6e 64 73 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 blends).........{.............va
3aa0 72 20 63 6f 6c 6f 72 20 3d 20 62 6f 72 64 65 72 2e 63 6f 6c 6f 72 3b 0a 20 20 20 20 20 20 20 20 r.color.=.border.color;.........
3ac0 20 20 20 20 76 61 72 20 74 68 69 63 6b 6e 65 73 73 20 3d 20 62 6f 72 64 65 72 2e 74 68 69 63 6b ....var.thickness.=.border.thick
3ae0 6e 65 73 73 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 77 20 76 65 72 74 69 ness;..............//.Draw.verti
3b00 63 61 6c 20 6c 69 6e 65 73 20 61 74 20 74 68 65 20 65 64 67 65 73 20 6f 66 20 74 68 65 20 63 6c cal.lines.at.the.edges.of.the.cl
3b20 69 70 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 44 72 61 77 52 65 63 ip.............EditorGUI.DrawRec
3b40 74 28 6e 65 77 20 52 65 63 74 28 63 6c 69 70 52 65 63 74 2e 78 4d 69 6e 2c 20 63 6c 69 70 52 65 t(new.Rect(clipRect.xMin,.clipRe
3b60 63 74 2e 79 2c 20 74 68 69 63 6b 6e 65 73 73 2c 20 63 6c 69 70 52 65 63 74 2e 68 65 69 67 68 74 ct.y,.thickness,.clipRect.height
3b80 29 2c 20 63 6f 6c 6f 72 29 3b 20 2f 2f 6c 65 66 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f ),.color);.//left.............//
3ba0 6f 6e 6c 79 20 64 72 61 77 20 74 68 65 20 72 69 67 68 74 20 6f 6e 65 20 77 68 65 6e 20 6e 6f 20 only.draw.the.right.one.when.no.
3bc0 6f 75 74 20 6d 69 78 20 62 6c 65 6e 64 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 62 6c out.mix.blend.............if.(bl
3be0 65 6e 64 73 2e 6f 75 74 4b 69 6e 64 20 21 3d 20 42 6c 65 6e 64 4b 69 6e 64 2e 4d 69 78 29 0a 20 ends.outKind.!=.BlendKind.Mix)..
3c00 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 44 72 61 77 52 65 63 ...............EditorGUI.DrawRec
3c20 74 28 6e 65 77 20 52 65 63 74 28 63 6c 69 70 52 65 63 74 2e 78 4d 61 78 20 2d 20 74 68 69 63 6b t(new.Rect(clipRect.xMax.-.thick
3c40 6e 65 73 73 2c 20 63 6c 69 70 52 65 63 74 2e 79 2c 20 74 68 69 63 6b 6e 65 73 73 2c 20 63 6c 69 ness,.clipRect.y,.thickness,.cli
3c60 70 52 65 63 74 2e 68 65 69 67 68 74 29 2c 20 63 6f 6c 6f 72 29 3b 20 2f 2f 72 69 67 68 74 0a 20 pRect.height),.color);.//right..
3c80 20 20 20 20 20 20 20 20 20 20 20 2f 2f 64 72 61 77 20 61 20 76 65 72 74 69 63 61 6c 20 6c 69 6e ...........//draw.a.vertical.lin
3ca0 65 20 66 6f 72 20 74 68 65 20 70 72 65 76 69 6f 75 73 20 63 6c 69 70 0a 20 20 20 20 20 20 20 20 e.for.the.previous.clip.........
3cc0 20 20 20 20 69 66 20 28 62 6c 65 6e 64 73 2e 69 6e 4b 69 6e 64 20 3d 3d 20 42 6c 65 6e 64 4b 69 ....if.(blends.inKind.==.BlendKi
3ce0 6e 64 2e 4d 69 78 29 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 nd.Mix).................EditorGU
3d00 49 2e 44 72 61 77 52 65 63 74 28 6e 65 77 20 52 65 63 74 28 62 6c 65 6e 64 73 2e 69 6e 52 65 63 I.DrawRect(new.Rect(blends.inRec
3d20 74 2e 78 4d 69 6e 2c 20 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 79 2c 20 74 68 69 63 6b 6e 65 t.xMin,.blends.inRect.y,.thickne
3d40 73 73 2c 20 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 68 65 69 67 68 74 29 2c 20 63 6f 6c 6f 72 ss,.blends.inRect.height),.color
3d60 29 3b 20 2f 2f 6c 65 66 74 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 44 72 61 77 20 62 6c );.//left..............//Draw.bl
3d80 65 6e 64 20 6c 69 6e 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 62 6c 65 6e 64 73 2e end.line.............if.(blends.
3da0 69 6e 4b 69 6e 64 20 3d 3d 20 42 6c 65 6e 64 4b 69 6e 64 2e 4d 69 78 29 0a 20 20 20 20 20 20 20 inKind.==.BlendKind.Mix)........
3dc0 20 20 20 20 20 20 20 20 20 44 72 61 77 42 6c 65 6e 64 4c 69 6e 65 28 62 6c 65 6e 64 73 2e 69 6e .........DrawBlendLine(blends.in
3de0 52 65 63 74 2c 20 42 6c 65 6e 64 41 6e 67 6c 65 2e 44 65 73 63 65 6e 64 69 6e 67 2c 20 74 68 69 Rect,.BlendAngle.Descending,.thi
3e00 63 6b 6e 65 73 73 2c 20 63 6f 6c 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 ckness,.color);.........}.......
3e20 20 20 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 43 6c 69 70 54 69 6d 65 73 63 61 6c 65 ...static.void.DrawClipTimescale
3e40 28 52 65 63 74 20 74 61 72 67 65 74 52 65 63 74 2c 20 52 65 63 74 20 63 6c 69 70 70 65 64 52 65 (Rect.targetRect,.Rect.clippedRe
3e60 63 74 2c 20 64 6f 75 62 6c 65 20 74 69 6d 65 53 63 61 6c 65 29 0a 20 20 20 20 20 20 20 20 7b 0a ct,.double.timeScale).........{.
3e80 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 69 6d 65 53 63 61 6c 65 20 21 3d 20 31 2e 30 ............if.(timeScale.!=.1.0
3ea0 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ).............{.................
3ec0 63 6f 6e 73 74 20 66 6c 6f 61 74 20 78 4f 66 66 73 65 74 20 3d 20 34 2e 30 66 3b 0a 20 20 20 20 const.float.xOffset.=.4.0f;.....
3ee0 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 73 74 20 66 6c 6f 61 74 20 79 4f 66 66 73 65 74 20 ............const.float.yOffset.
3f00 3d 20 36 2e 30 66 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 65 67 6d =.6.0f;.................var.segm
3f20 65 6e 74 4c 65 6e 67 74 68 20 3d 20 74 69 6d 65 53 63 61 6c 65 20 3e 20 31 2e 30 66 20 3f 20 35 entLength.=.timeScale.>.1.0f.?.5
3f40 2e 30 66 20 3a 20 31 35 2e 30 66 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f .0f.:.15.0f;..................//
3f60 20 63 6c 61 6d 70 20 74 6f 20 74 68 65 20 76 69 73 69 62 6c 65 20 72 65 67 69 6f 6e 20 74 6f 20 .clamp.to.the.visible.region.to.
3f80 72 65 64 75 63 65 20 74 68 65 20 6c 69 6e 65 20 63 6f 75 6e 74 20 28 63 61 73 65 20 31 32 31 33 reduce.the.line.count.(case.1213
3fa0 31 38 39 29 2c 20 62 75 74 20 61 64 6a 65 63 74 20 74 68 65 20 73 74 61 72 74 20 73 65 67 6d 65 189),.but.adject.the.start.segme
3fc0 6e 74 20 74 6f 20 6d 61 74 63 68 20 74 68 65 20 76 69 73 75 61 6c 73 20 6f 66 20 64 72 61 77 69 nt.to.match.the.visuals.of.drawi
3fe0 6e 67 20 74 61 72 67 65 74 52 65 63 74 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 ng.targetRect.................va
4000 72 20 73 74 61 72 74 58 20 3d 20 63 6c 69 70 70 65 64 52 65 63 74 2e 6d 69 6e 2e 78 20 2d 20 28 r.startX.=.clippedRect.min.x.-.(
4020 28 63 6c 69 70 70 65 64 52 65 63 74 2e 6d 69 6e 2e 78 20 2d 20 74 61 72 67 65 74 52 65 63 74 2e (clippedRect.min.x.-.targetRect.
4040 6d 69 6e 2e 78 29 20 25 20 28 73 65 67 6d 65 6e 74 4c 65 6e 67 74 68 2a 32 29 29 3b 0a 20 20 20 min.x).%.(segmentLength*2));....
4060 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 65 6e 64 58 20 3d 20 63 6c 69 70 70 65 64 52 .............var.endX.=.clippedR
4080 65 63 74 2e 6d 61 78 2e 78 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 ect.max.x;..................var.
40a0 73 74 61 72 74 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 28 73 74 61 72 74 58 20 2b 20 78 4f 66 start.=.new.Vector3(startX.+.xOf
40c0 66 73 65 74 2c 20 74 61 72 67 65 74 52 65 63 74 2e 6d 69 6e 2e 79 20 2b 20 79 4f 66 66 73 65 74 fset,.targetRect.min.y.+.yOffset
40e0 2c 20 30 2e 30 66 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 65 6e 64 ,.0.0f);.................var.end
4100 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 28 65 6e 64 58 20 2d 20 78 4f 66 66 73 65 74 2c 20 74 .=.new.Vector3(endX.-.xOffset,.t
4120 61 72 67 65 74 52 65 63 74 2e 6d 69 6e 2e 79 20 2b 20 79 4f 66 66 73 65 74 2c 20 30 2e 30 66 29 argetRect.min.y.+.yOffset,.0.0f)
4140 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 72 61 70 68 69 63 73 2e 44 72 61 77 ;..................Graphics.Draw
4160 44 6f 74 74 65 64 4c 69 6e 65 28 73 74 61 72 74 2c 20 65 6e 64 2c 20 73 65 67 6d 65 6e 74 4c 65 DottedLine(start,.end,.segmentLe
4180 6e 67 74 68 2c 20 44 69 72 65 63 74 6f 72 53 74 79 6c 65 73 2e 49 6e 73 74 61 6e 63 65 2e 63 75 ngth,.DirectorStyles.Instance.cu
41a0 73 74 6f 6d 53 6b 69 6e 2e 63 6f 6c 6f 72 43 6c 69 70 46 6f 6e 74 29 3b 0a 20 20 20 20 20 20 20 stomSkin.colorClipFont);........
41c0 20 20 20 20 20 20 20 20 20 47 72 61 70 68 69 63 73 2e 44 72 61 77 44 6f 74 74 65 64 4c 69 6e 65 .........Graphics.DrawDottedLine
41e0 28 73 74 61 72 74 20 2b 20 6e 65 77 20 56 65 63 74 6f 72 33 28 30 2e 30 66 2c 20 31 2e 30 66 2c (start.+.new.Vector3(0.0f,.1.0f,
4200 20 30 2e 30 66 29 2c 20 65 6e 64 20 2b 20 6e 65 77 20 56 65 63 74 6f 72 33 28 30 2e 30 66 2c 20 .0.0f),.end.+.new.Vector3(0.0f,.
4220 31 2e 30 66 2c 20 30 2e 30 66 29 2c 20 73 65 67 6d 65 6e 74 4c 65 6e 67 74 68 2c 20 44 69 72 65 1.0f,.0.0f),.segmentLength,.Dire
4240 63 74 6f 72 53 74 79 6c 65 73 2e 49 6e 73 74 61 6e 63 65 2e 63 75 73 74 6f 6d 53 6b 69 6e 2e 63 ctorStyles.Instance.customSkin.c
4260 6f 6c 6f 72 43 6c 69 70 46 6f 6e 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 olorClipFont);.............}....
4280 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 .....}..........static.void.Draw
42a0 43 6c 69 70 49 6e 4f 75 74 28 52 65 63 74 20 74 61 72 67 65 74 52 65 63 74 2c 20 54 69 6d 65 6c ClipInOut(Rect.targetRect,.Timel
42c0 69 6e 65 43 6c 69 70 20 63 6c 69 70 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 ineClip.clip).........{.........
42e0 20 20 20 20 76 61 72 20 61 73 73 65 74 44 75 72 61 74 69 6f 6e 20 3d 20 54 69 6d 65 6c 69 6e 65 ....var.assetDuration.=.Timeline
4300 48 65 6c 70 65 72 73 2e 47 65 74 43 6c 69 70 41 73 73 65 74 45 6e 64 54 69 6d 65 28 63 6c 69 70 Helpers.GetClipAssetEndTime(clip
4320 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 64 72 61 77 43 6c 69 70 4f 75 74 );..............bool.drawClipOut
4340 20 3d 20 61 73 73 65 74 44 75 72 61 74 69 6f 6e 3c 64 6f 75 62 6c 65 2e 4d 61 78 56 61 6c 75 65 .=.assetDuration<double.MaxValue
4360 20 26 26 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 .&&.............................
4380 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 73 73 65 74 44 75 72 61 74 69 6f 6e 20 2d .................assetDuration.-
43a0 20 63 6c 69 70 2e 65 6e 64 3e 20 54 69 6d 65 55 74 69 6c 69 74 79 2e 6b 54 69 6d 65 45 70 73 69 .clip.end>.TimeUtility.kTimeEpsi
43c0 6c 6f 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 62 6f 6f 6c 20 64 72 61 77 43 6c 69 70 49 lon;..............bool.drawClipI
43e0 6e 20 3d 20 63 6c 69 70 2e 63 6c 69 70 49 6e 20 3e 20 30 2e 30 3b 0a 0a 20 20 20 20 20 20 20 20 n.=.clip.clipIn.>.0.0;..........
4400 20 20 20 20 69 66 20 28 21 64 72 61 77 43 6c 69 70 49 6e 20 26 26 20 21 64 72 61 77 43 6c 69 70 ....if.(!drawClipIn.&&.!drawClip
4420 4f 75 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 Out).................return;....
4440 20 20 20 20 20 20 20 20 20 20 76 61 72 20 72 65 63 74 20 3d 20 74 61 72 67 65 74 52 65 63 74 3b ..........var.rect.=.targetRect;
4460 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 72 61 77 43 6c 69 70 4f 75 74 29 0a 20 ..............if.(drawClipOut)..
4480 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 ...........{.................var
44a0 20 69 63 6f 6e 20 3d 20 44 69 72 65 63 74 6f 72 53 74 79 6c 65 73 2e 49 6e 73 74 61 6e 63 65 2e .icon.=.DirectorStyles.Instance.
44c0 63 6c 69 70 4f 75 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 63 6f clipOut;.................var.ico
44e0 6e 52 65 63 74 20 3d 20 6e 65 77 20 52 65 63 74 28 72 65 63 74 2e 78 4d 61 78 20 2d 20 69 63 6f nRect.=.new.Rect(rect.xMax.-.ico
4500 6e 2e 66 69 78 65 64 57 69 64 74 68 20 2d 20 32 2e 30 66 2c 0a 20 20 20 20 20 20 20 20 20 20 20 n.fixedWidth.-.2.0f,............
4520 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 79 4d 69 6e 20 2b 20 28 72 65 63 74 2e 68 65 69 67 68 .........rect.yMin.+.(rect.heigh
4540 74 20 2d 20 69 63 6f 6e 2e 66 69 78 65 64 48 65 69 67 68 74 29 20 2a 20 30 2e 35 66 2c 0a 20 20 t.-.icon.fixedHeight).*.0.5f,...
4560 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 63 6f 6e 2e 66 69 78 65 64 57 69 64 74 ..................icon.fixedWidt
4580 68 2c 20 69 63 6f 6e 2e 66 69 78 65 64 48 65 69 67 68 74 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 h,.icon.fixedHeight);...........
45a0 20 20 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 69 63 6f 6e 52 65 63 74 2c 20 47 55 49 43 6f .......GUI.Label(iconRect,.GUICo
45c0 6e 74 65 6e 74 2e 6e 6f 6e 65 2c 20 69 63 6f 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d ntent.none,.icon);.............}
45e0 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 72 61 77 43 6c 69 70 49 6e 29 0a 20 20 ..............if.(drawClipIn)...
4600 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 ..........{.................var.
4620 69 63 6f 6e 20 3d 20 44 69 72 65 63 74 6f 72 53 74 79 6c 65 73 2e 49 6e 73 74 61 6e 63 65 2e 63 icon.=.DirectorStyles.Instance.c
4640 6c 69 70 49 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 63 6f 6e 52 lipIn;.................var.iconR
4660 65 63 74 20 3d 20 6e 65 77 20 52 65 63 74 28 32 2e 30 66 20 2b 20 72 65 63 74 2e 78 4d 69 6e 2c ect.=.new.Rect(2.0f.+.rect.xMin,
4680 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 63 74 2e 79 4d 69 6e 20 2b .....................rect.yMin.+
46a0 20 28 72 65 63 74 2e 68 65 69 67 68 74 20 2d 20 69 63 6f 6e 2e 66 69 78 65 64 48 65 69 67 68 74 .(rect.height.-.icon.fixedHeight
46c0 29 20 2a 20 30 2e 35 66 2c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 63 ).*.0.5f,.....................ic
46e0 6f 6e 2e 66 69 78 65 64 57 69 64 74 68 2c 20 69 63 6f 6e 2e 66 69 78 65 64 48 65 69 67 68 74 29 on.fixedWidth,.icon.fixedHeight)
4700 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 69 63 6f ;..................GUI.Label(ico
4720 6e 52 65 63 74 2c 20 47 55 49 43 6f 6e 74 65 6e 74 2e 6e 6f 6e 65 2c 20 69 63 6f 6e 29 3b 0a 20 nRect,.GUIContent.none,.icon);..
4740 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 ...........}.........}..........
4760 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 43 6c 69 70 4c 61 62 65 6c 28 43 6c 69 70 44 72 static.void.DrawClipLabel(ClipDr
4780 61 77 44 61 74 61 20 64 61 74 61 2c 20 52 65 63 74 20 61 76 61 69 6c 61 62 6c 65 52 65 63 74 2c awData.data,.Rect.availableRect,
47a0 20 43 6f 6c 6f 72 20 63 6f 6c 6f 72 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 .Color.color).........{.........
47c0 20 20 20 20 76 61 72 20 65 72 72 6f 72 54 65 78 74 20 3d 20 64 61 74 61 2e 43 6c 69 70 44 72 61 ....var.errorText.=.data.ClipDra
47e0 77 4f 70 74 69 6f 6e 73 2e 65 72 72 6f 72 54 65 78 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 wOptions.errorText;.............
4800 76 61 72 20 68 61 73 45 72 72 6f 72 20 3d 20 21 73 74 72 69 6e 67 2e 49 73 4e 75 6c 6c 4f 72 45 var.hasError.=.!string.IsNullOrE
4820 6d 70 74 79 28 65 72 72 6f 72 54 65 78 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 mpty(errorText);.............var
4840 20 74 65 78 74 43 6f 6c 6f 72 20 3d 20 68 61 73 45 72 72 6f 72 20 3f 20 44 69 72 65 63 74 6f 72 .textColor.=.hasError.?.Director
4860 53 74 79 6c 65 73 2e 6b 43 6c 69 70 45 72 72 6f 72 43 6f 6c 6f 72 20 3a 20 63 6f 6c 6f 72 3b 0a Styles.kClipErrorColor.:.color;.
4880 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 6f 6f 6c 74 69 70 20 3d 20 68 61 73 45 72 72 ............var.tooltip.=.hasErr
48a0 6f 72 20 3f 20 65 72 72 6f 72 54 65 78 74 20 3a 20 64 61 74 61 2e 43 6c 69 70 44 72 61 77 4f 70 or.?.errorText.:.data.ClipDrawOp
48c0 74 69 6f 6e 73 2e 74 6f 6f 6c 74 69 70 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 tions.tooltip;..............if.(
48e0 68 61 73 45 72 72 6f 72 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c hasError).................DrawCl
4900 69 70 4c 61 62 65 6c 28 64 61 74 61 2e 74 69 74 6c 65 2c 20 61 76 61 69 6c 61 62 6c 65 52 65 63 ipLabel(data.title,.availableRec
4920 74 2c 20 74 65 78 74 43 6f 6c 6f 72 2c 20 6b 5f 43 6c 69 70 45 72 72 6f 72 49 63 6f 6e 73 2c 20 t,.textColor,.k_ClipErrorIcons,.
4940 6e 75 6c 6c 2c 20 74 6f 6f 6c 74 69 70 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 null,.tooltip);.............else
4960 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c 69 70 4c 61 62 65 6c 28 64 .................DrawClipLabel(d
4980 61 74 61 2e 74 69 74 6c 65 2c 20 61 76 61 69 6c 61 62 6c 65 52 65 63 74 2c 20 74 65 78 74 43 6f ata.title,.availableRect,.textCo
49a0 6c 6f 72 2c 20 64 61 74 61 2e 6c 65 66 74 49 63 6f 6e 73 2c 20 64 61 74 61 2e 72 69 67 68 74 49 lor,.data.leftIcons,.data.rightI
49c0 63 6f 6e 73 2c 20 74 6f 6f 6c 74 69 70 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 cons,.tooltip);.........}.......
49e0 20 20 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 43 6c 69 70 4c 61 62 65 6c 28 73 74 72 ...static.void.DrawClipLabel(str
4a00 69 6e 67 20 74 69 74 6c 65 2c 20 52 65 63 74 20 61 76 61 69 6c 61 62 6c 65 52 65 63 74 2c 20 43 ing.title,.Rect.availableRect,.C
4a20 6f 6c 6f 72 20 63 6f 6c 6f 72 2c 20 73 74 72 69 6e 67 20 65 72 72 6f 72 54 65 78 74 20 3d 20 22 olor.color,.string.errorText.=."
4a40 22 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 68 61 73 ").........{.............var.has
4a60 45 72 72 6f 72 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 65 72 Error.=.!string.IsNullOrEmpty(er
4a80 72 6f 72 54 65 78 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 65 78 74 43 6f rorText);.............var.textCo
4aa0 6c 6f 72 20 3d 20 68 61 73 45 72 72 6f 72 20 3f 20 44 69 72 65 63 74 6f 72 53 74 79 6c 65 73 2e lor.=.hasError.?.DirectorStyles.
4ac0 6b 43 6c 69 70 45 72 72 6f 72 43 6f 6c 6f 72 20 3a 20 63 6f 6c 6f 72 3b 0a 0a 20 20 20 20 20 20 kClipErrorColor.:.color;........
4ae0 20 20 20 20 20 20 69 66 20 28 68 61 73 45 72 72 6f 72 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 ......if.(hasError).............
4b00 20 20 20 20 44 72 61 77 43 6c 69 70 4c 61 62 65 6c 28 74 69 74 6c 65 2c 20 61 76 61 69 6c 61 62 ....DrawClipLabel(title,.availab
4b20 6c 65 52 65 63 74 2c 20 74 65 78 74 43 6f 6c 6f 72 2c 20 6b 5f 43 6c 69 70 45 72 72 6f 72 49 63 leRect,.textColor,.k_ClipErrorIc
4b40 6f 6e 73 2c 20 6e 75 6c 6c 2c 20 65 72 72 6f 72 54 65 78 74 29 3b 0a 20 20 20 20 20 20 20 20 20 ons,.null,.errorText);..........
4b60 20 20 20 65 6c 73 65 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c 69 70 ...else.................DrawClip
4b80 4c 61 62 65 6c 28 74 69 74 6c 65 2c 20 61 76 61 69 6c 61 62 6c 65 52 65 63 74 2c 20 74 65 78 74 Label(title,.availableRect,.text
4ba0 43 6f 6c 6f 72 2c 20 6e 75 6c 6c 2c 20 6e 75 6c 6c 2c 20 65 72 72 6f 72 54 65 78 74 29 3b 0a 20 Color,.null,.null,.errorText);..
4bc0 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 .......}..........static.void.Dr
4be0 61 77 43 6c 69 70 4c 61 62 65 6c 28 73 74 72 69 6e 67 20 74 69 74 6c 65 2c 20 52 65 63 74 20 61 awClipLabel(string.title,.Rect.a
4c00 76 61 69 6c 61 62 6c 65 52 65 63 74 2c 20 43 6f 6c 6f 72 20 74 65 78 74 43 6f 6c 6f 72 2c 20 49 vailableRect,.Color.textColor,.I
4c20 63 6f 6e 44 61 74 61 5b 5d 20 6c 65 66 74 49 63 6f 6e 73 2c 20 49 63 6f 6e 44 61 74 61 5b 5d 20 conData[].leftIcons,.IconData[].
4c40 72 69 67 68 74 49 63 6f 6e 73 2c 20 73 74 72 69 6e 67 20 74 6f 6f 6c 74 69 70 4d 65 73 73 61 67 rightIcons,.string.tooltipMessag
4c60 65 20 3d 20 22 22 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 73 5f e.=."").........{.............s_
4c80 54 69 74 6c 65 43 6f 6e 74 65 6e 74 2e 74 65 78 74 20 3d 20 74 69 74 6c 65 3b 0a 20 20 20 20 20 TitleContent.text.=.title;......
4ca0 20 20 20 20 20 20 20 76 61 72 20 6e 65 65 64 65 64 54 65 78 74 57 69 64 74 68 20 3d 20 44 69 72 .......var.neededTextWidth.=.Dir
4cc0 65 63 74 6f 72 53 74 79 6c 65 73 2e 49 6e 73 74 61 6e 63 65 2e 66 6f 6e 74 43 6c 69 70 2e 43 61 ectorStyles.Instance.fontClip.Ca
4ce0 6c 63 53 69 7a 65 28 73 5f 54 69 74 6c 65 43 6f 6e 74 65 6e 74 29 2e 78 3b 0a 20 20 20 20 20 20 lcSize(s_TitleContent).x;.......
4d00 20 20 20 20 20 20 76 61 72 20 6e 65 65 64 65 64 49 63 6f 6e 57 69 64 74 68 4c 65 66 74 20 3d 20 ......var.neededIconWidthLeft.=.
4d20 30 2e 30 66 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 65 64 65 64 49 63 6f 6e 0.0f;.............var.neededIcon
4d40 57 69 64 74 68 52 69 67 68 74 20 3d 20 30 2e 30 66 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 WidthRight.=.0.0f;..............
4d60 69 66 20 28 6c 65 66 74 49 63 6f 6e 73 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 if.(leftIcons.!=.null)..........
4d80 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 2c 20 6e 20 3d 20 6c 65 66 74 49 .......for.(int.i.=.0,.n.=.leftI
4da0 63 6f 6e 73 2e 4c 65 6e 67 74 68 3b 20 69 20 3c 20 6e 3b 20 2b 2b 69 29 0a 20 20 20 20 20 20 20 cons.Length;.i.<.n;.++i)........
4dc0 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 65 64 65 64 49 63 6f 6e 57 69 64 74 68 4c 65 66 74 .............neededIconWidthLeft
4de0 20 2b 3d 20 6c 65 66 74 49 63 6f 6e 73 5b 69 5d 2e 77 69 64 74 68 20 2b 20 6b 5f 49 63 6f 6e 73 .+=.leftIcons[i].width.+.k_Icons
4e00 50 61 64 64 69 6e 67 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 72 69 67 68 74 49 Padding;..............if.(rightI
4e20 63 6f 6e 73 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f cons.!=.null).................fo
4e40 72 20 28 69 6e 74 20 69 20 3d 20 30 2c 20 6e 20 3d 20 72 69 67 68 74 49 63 6f 6e 73 2e 4c 65 6e r.(int.i.=.0,.n.=.rightIcons.Len
4e60 67 74 68 3b 20 69 20 3c 20 6e 3b 20 2b 2b 69 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 gth;.i.<.n;.++i)................
4e80 20 20 20 20 20 6e 65 65 64 65 64 49 63 6f 6e 57 69 64 74 68 52 69 67 68 74 20 2b 3d 20 72 69 67 .....neededIconWidthRight.+=.rig
4ea0 68 74 49 63 6f 6e 73 5b 69 5d 2e 77 69 64 74 68 20 2b 20 6b 5f 49 63 6f 6e 73 50 61 64 64 69 6e htIcons[i].width.+.k_IconsPaddin
4ec0 67 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6e 65 65 64 65 64 49 63 6f 6e 57 69 g;..............var.neededIconWi
4ee0 64 74 68 20 3d 20 4d 61 74 68 66 2e 4d 61 78 28 6e 65 65 64 65 64 49 63 6f 6e 57 69 64 74 68 4c dth.=.Mathf.Max(neededIconWidthL
4f00 65 66 74 2c 20 6e 65 65 64 65 64 49 63 6f 6e 57 69 64 74 68 52 69 67 68 74 29 3b 0a 0a 20 20 20 eft,.neededIconWidthRight);.....
4f20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 74 6f 6d 69 63 20 6f 70 65 72 61 74 69 6f 6e 3a 20 57 65 .........//.Atomic.operation:.We
4f40 20 65 69 74 68 65 72 20 73 68 6f 77 20 61 6c 6c 20 69 63 6f 6e 73 20 6f 72 20 6e 6f 20 69 63 6f .either.show.all.icons.or.no.ico
4f60 6e 73 20 61 74 20 61 6c 6c 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 68 6f 77 49 63 ns.at.all.............var.showIc
4f80 6f 6e 73 20 3d 20 6e 65 65 64 65 64 54 65 78 74 57 69 64 74 68 20 2f 20 32 2e 30 66 20 2b 20 6e ons.=.neededTextWidth./.2.0f.+.n
4fa0 65 65 64 65 64 49 63 6f 6e 57 69 64 74 68 20 3c 20 61 76 61 69 6c 61 62 6c 65 52 65 63 74 2e 77 eededIconWidth.<.availableRect.w
4fc0 69 64 74 68 20 2f 20 32 2e 30 66 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 68 idth./.2.0f;..............if.(sh
4fe0 6f 77 49 63 6f 6e 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 owIcons).............{..........
5000 20 20 20 20 20 20 20 69 66 20 28 6c 65 66 74 49 63 6f 6e 73 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 .......if.(leftIcons.!=.null)...
5020 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c 69 70 49 63 6f 6e 73 28 ..................DrawClipIcons(
5040 6c 65 66 74 49 63 6f 6e 73 2c 20 49 63 6f 6e 44 61 74 61 2e 53 69 64 65 2e 4c 65 66 74 2c 20 6e leftIcons,.IconData.Side.Left,.n
5060 65 65 64 65 64 54 65 78 74 57 69 64 74 68 2c 20 61 76 61 69 6c 61 62 6c 65 52 65 63 74 29 3b 0a eededTextWidth,.availableRect);.
5080 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 72 69 67 68 74 49 63 6f 6e 73 20 .................if.(rightIcons.
50a0 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 !=.null).....................Dra
50c0 77 43 6c 69 70 49 63 6f 6e 73 28 72 69 67 68 74 49 63 6f 6e 73 2c 20 49 63 6f 6e 44 61 74 61 2e wClipIcons(rightIcons,.IconData.
50e0 53 69 64 65 2e 52 69 67 68 74 2c 20 6e 65 65 64 65 64 54 65 78 74 57 69 64 74 68 2c 20 61 76 61 Side.Right,.neededTextWidth,.ava
5100 69 6c 61 62 6c 65 52 65 63 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 ilableRect);.............}......
5120 20 20 20 20 20 20 20 20 69 66 20 28 6e 65 65 64 65 64 54 65 78 74 57 69 64 74 68 20 3e 20 61 76 ........if.(neededTextWidth.>.av
5140 61 69 6c 61 62 6c 65 52 65 63 74 2e 77 69 64 74 68 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ailableRect.width)..............
5160 20 20 20 73 5f 54 69 74 6c 65 43 6f 6e 74 65 6e 74 2e 74 65 78 74 20 3d 20 44 69 72 65 63 74 6f ...s_TitleContent.text.=.Directo
5180 72 53 74 79 6c 65 73 2e 45 6c 69 70 73 69 66 79 28 74 69 74 6c 65 2c 20 61 76 61 69 6c 61 62 6c rStyles.Elipsify(title,.availabl
51a0 65 52 65 63 74 2e 77 69 64 74 68 2c 20 6e 65 65 64 65 64 54 65 78 74 57 69 64 74 68 29 3b 0a 0a eRect.width,.neededTextWidth);..
51c0 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 54 69 74 6c 65 43 6f 6e 74 65 6e 74 2e 74 6f 6f 6c 74 ............s_TitleContent.toolt
51e0 69 70 20 3d 20 74 6f 6f 6c 74 69 70 4d 65 73 73 61 67 65 3b 0a 20 20 20 20 20 20 20 20 20 20 20 ip.=.tooltipMessage;............
5200 20 44 72 61 77 43 6c 69 70 4e 61 6d 65 28 61 76 61 69 6c 61 62 6c 65 52 65 63 74 2c 20 73 5f 54 .DrawClipName(availableRect,.s_T
5220 69 74 6c 65 43 6f 6e 74 65 6e 74 2c 20 74 65 78 74 43 6f 6c 6f 72 29 3b 0a 20 20 20 20 20 20 20 itleContent,.textColor);........
5240 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 43 6c 69 70 .}..........static.void.DrawClip
5260 49 63 6f 6e 73 28 49 63 6f 6e 44 61 74 61 5b 5d 20 69 63 6f 6e 73 2c 20 49 63 6f 6e 44 61 74 61 Icons(IconData[].icons,.IconData
5280 2e 53 69 64 65 20 73 69 64 65 2c 20 66 6c 6f 61 74 20 6c 61 62 65 6c 57 69 64 74 68 2c 20 52 65 .Side.side,.float.labelWidth,.Re
52a0 63 74 20 61 76 61 69 6c 61 62 6c 65 52 65 63 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 ct.availableRect).........{.....
52c0 20 20 20 20 20 20 20 20 76 61 72 20 68 61 6c 66 54 65 78 74 20 3d 20 6c 61 62 65 6c 57 69 64 74 ........var.halfText.=.labelWidt
52e0 68 20 2f 20 32 2e 30 66 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 66 66 73 65 74 h./.2.0f;.............var.offset
5300 20 3d 20 68 61 6c 66 54 65 78 74 20 2b 20 6b 5f 49 63 6f 6e 73 50 61 64 64 69 6e 67 3b 0a 0a 20 .=.halfText.+.k_IconsPadding;...
5320 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 65 61 63 68 20 28 76 61 72 20 69 63 6f 6e 44 61 74 61 ...........foreach.(var.iconData
5340 20 69 6e 20 69 63 6f 6e 73 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 .in.icons).............{........
5360 20 20 20 20 20 20 20 20 20 6f 66 66 73 65 74 20 2b 3d 20 69 63 6f 6e 44 61 74 61 2e 77 69 64 74 .........offset.+=.iconData.widt
5380 68 20 2f 20 32 2e 30 66 20 2b 20 6b 5f 49 63 6f 6e 73 50 61 64 64 69 6e 67 3b 0a 0a 20 20 20 20 h./.2.0f.+.k_IconsPadding;......
53a0 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 63 6f 6e 52 65 63 74 20 3d 0a 20 20 20 20 20 ............var.iconRect.=......
53c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6e 65 77 20 52 65 63 74 28 30 2e 30 66 2c 20 30 2e ...............new.Rect(0.0f,.0.
53e0 30 66 2c 20 69 63 6f 6e 44 61 74 61 2e 77 69 64 74 68 2c 20 69 63 6f 6e 44 61 74 61 2e 68 65 69 0f,.iconData.width,.iconData.hei
5400 67 68 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 ght).................{..........
5420 20 20 20 20 20 20 20 20 20 20 20 63 65 6e 74 65 72 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 ...........center.=.new.Vector2(
5440 61 76 61 69 6c 61 62 6c 65 52 65 63 74 2e 63 65 6e 74 65 72 2e 78 20 2b 20 6f 66 66 73 65 74 20 availableRect.center.x.+.offset.
5460 2a 20 28 69 6e 74 29 73 69 64 65 2c 20 61 76 61 69 6c 61 62 6c 65 52 65 63 74 2e 63 65 6e 74 65 *.(int)side,.availableRect.cente
5480 72 2e 79 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 3b 0a 0a 20 20 20 20 20 20 20 r.y).................};.........
54a0 20 20 20 20 20 20 20 20 20 44 72 61 77 49 63 6f 6e 28 69 63 6f 6e 52 65 63 74 2c 20 69 63 6f 6e .........DrawIcon(iconRect,.icon
54c0 44 61 74 61 2e 74 69 6e 74 2c 20 69 63 6f 6e 44 61 74 61 2e 69 63 6f 6e 29 3b 0a 0a 20 20 20 20 Data.tint,.iconData.icon);......
54e0 20 20 20 20 20 20 20 20 20 20 20 20 6f 66 66 73 65 74 20 2b 3d 20 69 63 6f 6e 44 61 74 61 2e 77 ............offset.+=.iconData.w
5500 69 64 74 68 20 2f 20 32 2e 30 66 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 idth./.2.0f;.............}......
5520 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 43 6c ...}..........static.void.DrawCl
5540 69 70 4e 61 6d 65 28 52 65 63 74 20 72 65 63 74 2c 20 47 55 49 43 6f 6e 74 65 6e 74 20 63 6f 6e ipName(Rect.rect,.GUIContent.con
5560 74 65 6e 74 2c 20 43 6f 6c 6f 72 20 74 65 78 74 43 6f 6c 6f 72 29 0a 20 20 20 20 20 20 20 20 7b tent,.Color.textColor).........{
5580 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 72 61 70 68 69 63 73 2e 53 68 61 64 6f 77 4c 61 62 65 .............Graphics.ShadowLabe
55a0 6c 28 72 65 63 74 2c 20 63 6f 6e 74 65 6e 74 2c 20 44 69 72 65 63 74 6f 72 53 74 79 6c 65 73 2e l(rect,.content,.DirectorStyles.
55c0 49 6e 73 74 61 6e 63 65 2e 66 6f 6e 74 43 6c 69 70 2c 20 74 65 78 74 43 6f 6c 6f 72 2c 20 43 6f Instance.fontClip,.textColor,.Co
55e0 6c 6f 72 2e 62 6c 61 63 6b 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 lor.black);.........}..........s
5600 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 49 63 6f 6e 28 52 65 63 74 20 69 6d 61 67 65 52 65 tatic.void.DrawIcon(Rect.imageRe
5620 63 74 2c 20 43 6f 6c 6f 72 20 63 6f 6c 6f 72 2c 20 54 65 78 74 75 72 65 32 44 20 69 63 6f 6e 29 ct,.Color.color,.Texture2D.icon)
5640 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 44 72 61 77 54 .........{.............GUI.DrawT
5660 65 78 74 75 72 65 28 69 6d 61 67 65 52 65 63 74 2c 20 69 63 6f 6e 2c 20 53 63 61 6c 65 4d 6f 64 exture(imageRect,.icon,.ScaleMod
5680 65 2e 53 63 61 6c 65 41 6e 64 43 72 6f 70 2c 20 74 72 75 65 2c 20 30 2c 20 63 6f 6c 6f 72 2c 20 e.ScaleAndCrop,.true,.0,.color,.
56a0 30 2c 20 30 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 0,.0);.........}..........static
56c0 20 76 6f 69 64 20 44 72 61 77 43 6c 69 70 42 61 63 6b 67 72 6f 75 6e 64 28 52 65 63 74 20 63 6c .void.DrawClipBackground(Rect.cl
56e0 69 70 43 65 6e 74 65 72 53 65 63 74 69 6f 6e 2c 20 62 6f 6f 6c 20 73 65 6c 65 63 74 65 64 29 0a ipCenterSection,.bool.selected).
5700 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 76 65 6e 74 2e ........{.............if.(Event.
5720 63 75 72 72 65 6e 74 2e 74 79 70 65 20 21 3d 20 45 76 65 6e 74 54 79 70 65 2e 52 65 70 61 69 6e current.type.!=.EventType.Repain
5740 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 t).................return;......
5760 20 20 20 20 20 20 20 20 76 61 72 20 63 6f 6c 6f 72 20 3d 20 73 65 6c 65 63 74 65 64 20 3f 20 44 ........var.color.=.selected.?.D
5780 69 72 65 63 74 6f 72 53 74 79 6c 65 73 2e 49 6e 73 74 61 6e 63 65 2e 63 75 73 74 6f 6d 53 6b 69 irectorStyles.Instance.customSki
57a0 6e 2e 63 6c 69 70 53 65 6c 65 63 74 65 64 42 63 6b 67 20 3a 20 44 69 72 65 63 74 6f 72 53 74 79 n.clipSelectedBckg.:.DirectorSty
57c0 6c 65 73 2e 49 6e 73 74 61 6e 63 65 2e 63 75 73 74 6f 6d 53 6b 69 6e 2e 63 6c 69 70 42 63 6b 67 les.Instance.customSkin.clipBckg
57e0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 44 72 61 77 52 65 63 74 ;.............EditorGUI.DrawRect
5800 28 63 6c 69 70 43 65 6e 74 65 72 53 65 63 74 69 6f 6e 2c 20 63 6f 6c 6f 72 29 3b 0a 20 20 20 20 (clipCenterSection,.color);.....
5820 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 56 65 63 74 6f 72 33 5b 5d 20 ....}..........static.Vector3[].
5840 73 5f 42 6c 65 6e 64 56 65 72 74 69 63 65 73 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 5b 33 5d s_BlendVertices.=.new.Vector3[3]
5860 3b 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 43 6c 69 70 42 6c ;.........static.void.DrawClipBl
5880 65 6e 64 73 28 43 6c 69 70 42 6c 65 6e 64 73 20 62 6c 65 6e 64 73 2c 20 43 6f 6c 6f 72 20 69 6e ends(ClipBlends.blends,.Color.in
58a0 43 6f 6c 6f 72 2c 20 43 6f 6c 6f 72 20 6f 75 74 43 6f 6c 6f 72 2c 20 43 6f 6c 6f 72 20 62 61 63 Color,.Color.outColor,.Color.bac
58c0 6b 67 72 6f 75 6e 64 43 6f 6c 6f 72 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 kgroundColor).........{.........
58e0 20 20 20 20 73 77 69 74 63 68 20 28 62 6c 65 6e 64 73 2e 69 6e 4b 69 6e 64 29 0a 20 20 20 20 20 ....switch.(blends.inKind)......
5900 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 42 6c .......{.................case.Bl
5920 65 6e 64 4b 69 6e 64 2e 45 61 73 65 3a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 endKind.Ease:...................
5940 20 20 2f 2f 20 20 20 20 20 32 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f ..//.....2...................../
5960 2f 20 20 20 2f 20 7c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 /.../.|.....................//..
5980 2f 20 20 7c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 30 2d 2d 2d /..|.....................//.0---
59a0 31 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 2e 1.....................EditorGUI.
59c0 44 72 61 77 52 65 63 74 28 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2c 20 62 61 63 6b 67 72 6f 75 DrawRect(blends.inRect,.backgrou
59e0 6e 64 43 6f 6c 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f ndColor);.....................s_
5a00 42 6c 65 6e 64 56 65 72 74 69 63 65 73 5b 30 5d 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 28 62 BlendVertices[0].=.new.Vector3(b
5a20 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 78 4d 69 6e 2c 20 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 lends.inRect.xMin,.blends.inRect
5a40 2e 79 4d 61 78 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 42 6c .yMax);.....................s_Bl
5a60 65 6e 64 56 65 72 74 69 63 65 73 5b 31 5d 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 28 62 6c 65 endVertices[1].=.new.Vector3(ble
5a80 6e 64 73 2e 69 6e 52 65 63 74 2e 78 4d 61 78 2c 20 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 79 nds.inRect.xMax,.blends.inRect.y
5aa0 4d 61 78 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 42 6c 65 6e Max);.....................s_Blen
5ac0 64 56 65 72 74 69 63 65 73 5b 32 5d 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 28 62 6c 65 6e 64 dVertices[2].=.new.Vector3(blend
5ae0 73 2e 69 6e 52 65 63 74 2e 78 4d 61 78 2c 20 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 79 4d 69 s.inRect.xMax,.blends.inRect.yMi
5b00 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 72 61 70 68 69 63 73 n);.....................Graphics
5b20 2e 44 72 61 77 50 6f 6c 79 67 6f 6e 41 41 28 69 6e 43 6f 6c 6f 72 2c 20 73 5f 42 6c 65 6e 64 56 .DrawPolygonAA(inColor,.s_BlendV
5b40 65 72 74 69 63 65 73 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 ertices);.....................br
5b60 65 61 6b 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 42 6c 65 6e 64 4b eak;.................case.BlendK
5b80 69 6e 64 2e 4d 69 78 3a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 ind.Mix:.....................//.
5ba0 30 2d 2d 2d 32 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 5c 20 0---2.....................//..\.
5bc0 20 7c 0a 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 5c 20 7c 0a .|.....................//...\.|.
5be0 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 31 0a 20 20 20 ....................//.....1....
5c00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 42 6c 65 6e 64 56 65 72 74 69 63 65 73 .................s_BlendVertices
5c20 5b 30 5d 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 28 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e [0].=.new.Vector3(blends.inRect.
5c40 78 4d 69 6e 2c 20 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 79 4d 69 6e 29 3b 0a 20 20 20 20 20 xMin,.blends.inRect.yMin);......
5c60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 42 6c 65 6e 64 56 65 72 74 69 63 65 73 5b 31 ...............s_BlendVertices[1
5c80 5d 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 28 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 78 4d ].=.new.Vector3(blends.inRect.xM
5ca0 61 78 2c 20 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 79 4d 61 78 29 3b 0a 20 20 20 20 20 20 20 ax,.blends.inRect.yMax);........
5cc0 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 42 6c 65 6e 64 56 65 72 74 69 63 65 73 5b 32 5d 20 .............s_BlendVertices[2].
5ce0 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 28 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 78 4d 61 78 =.new.Vector3(blends.inRect.xMax
5d00 2c 20 62 6c 65 6e 64 73 2e 69 6e 52 65 63 74 2e 79 4d 69 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 ,.blends.inRect.yMin);..........
5d20 20 20 20 20 20 20 20 20 20 20 20 47 72 61 70 68 69 63 73 2e 44 72 61 77 50 6f 6c 79 67 6f 6e 41 ...........Graphics.DrawPolygonA
5d40 41 28 69 6e 43 6f 6c 6f 72 2c 20 73 5f 42 6c 65 6e 64 56 65 72 74 69 63 65 73 29 3b 0a 20 20 20 A(inColor,.s_BlendVertices);....
5d60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0a 20 20 20 20 20 20 20 20 .................break;.........
5d80 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 62 6c 65 6e 64 73 2e 6f 75 ....}..............if.(blends.ou
5da0 74 4b 69 6e 64 20 21 3d 20 42 6c 65 6e 64 4b 69 6e 64 2e 4e 6f 6e 65 29 0a 20 20 20 20 20 20 20 tKind.!=.BlendKind.None)........
5dc0 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 62 6c 65 6e 64 .....{.................if.(blend
5de0 73 2e 6f 75 74 4b 69 6e 64 20 3d 3d 20 42 6c 65 6e 64 4b 69 6e 64 2e 45 61 73 65 29 0a 20 20 20 s.outKind.==.BlendKind.Ease)....
5e00 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 44 72 61 77 52 .................EditorGUI.DrawR
5e20 65 63 74 28 62 6c 65 6e 64 73 2e 6f 75 74 52 65 63 74 2c 20 62 61 63 6b 67 72 6f 75 6e 64 43 6f ect(blends.outRect,.backgroundCo
5e40 6c 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 30 0a 20 20 20 20 20 lor);.................//.0......
5e60 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 7c 20 5c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...........//.|.\...............
5e80 20 20 2f 2f 20 7c 20 20 5c 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 31 2d 2d ..//.|..\.................//.1--
5ea0 2d 32 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 42 6c 65 6e 64 56 65 72 74 69 63 -2.................s_BlendVertic
5ec0 65 73 5b 30 5d 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 28 62 6c 65 6e 64 73 2e 6f 75 74 52 65 es[0].=.new.Vector3(blends.outRe
5ee0 63 74 2e 78 4d 69 6e 2c 20 62 6c 65 6e 64 73 2e 6f 75 74 52 65 63 74 2e 79 4d 69 6e 29 3b 0a 20 ct.xMin,.blends.outRect.yMin);..
5f00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 5f 42 6c 65 6e 64 56 65 72 74 69 63 65 73 5b 31 ...............s_BlendVertices[1
5f20 5d 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 33 28 62 6c 65 6e 64 73 2e 6f 75 74 52 65 63 74 2e 78 ].=.new.Vector3(blends.outRect.x
5f40 4d 69 6e 2c 20 62 6c 65 6e 64 73 2e 6f 75 74 52 65 63 74 2e 79 4d 61 78 29 3b 0a 20 20 20 20 20 Min,.blends.outRect.yMax);......
5f60 20 20 20 20 20 20 20 20 20 20 20 73 5f 42 6c 65 6e 64 56 65 72 74 69 63 65 73 5b 32 5d 20 3d 20 ...........s_BlendVertices[2].=.
5f80 6e 65 77 20 56 65 63 74 6f 72 33 28 62 6c 65 6e 64 73 2e 6f 75 74 52 65 63 74 2e 78 4d 61 78 2c new.Vector3(blends.outRect.xMax,
5fa0 20 62 6c 65 6e 64 73 2e 6f 75 74 52 65 63 74 2e 79 4d 61 78 29 3b 0a 20 20 20 20 20 20 20 20 20 .blends.outRect.yMax);..........
5fc0 20 20 20 20 20 20 20 47 72 61 70 68 69 63 73 2e 44 72 61 77 50 6f 6c 79 67 6f 6e 41 41 28 6f 75 .......Graphics.DrawPolygonAA(ou
5fe0 74 43 6f 6c 6f 72 2c 20 73 5f 42 6c 65 6e 64 56 65 72 74 69 63 65 73 29 3b 0a 20 20 20 20 20 20 tColor,.s_BlendVertices);.......
6000 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 ......}.........}..........stati
6020 63 20 76 6f 69 64 20 44 72 61 77 43 6c 69 70 53 77 61 74 63 68 28 52 65 63 74 20 74 61 72 67 65 c.void.DrawClipSwatch(Rect.targe
6040 74 52 65 63 74 2c 20 43 6f 6c 6f 72 20 73 77 61 74 63 68 43 6f 6c 6f 72 29 0a 20 20 20 20 20 20 tRect,.Color.swatchColor).......
6060 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 72 61 77 20 43 6f 6c 6f 72 65 64 20 ..{.............//.Draw.Colored.
6080 4c 69 6e 65 20 61 74 20 74 68 65 20 62 6f 74 74 6f 6d 2e 0a 20 20 20 20 20 20 20 20 20 20 20 20 Line.at.the.bottom..............
60a0 76 61 72 20 63 6f 6c 6f 72 52 65 63 74 20 3d 20 74 61 72 67 65 74 52 65 63 74 3b 0a 20 20 20 20 var.colorRect.=.targetRect;.....
60c0 20 20 20 20 20 20 20 20 63 6f 6c 6f 72 52 65 63 74 2e 79 4d 69 6e 20 3d 20 63 6f 6c 6f 72 52 65 ........colorRect.yMin.=.colorRe
60e0 63 74 2e 79 4d 61 78 20 2d 20 6b 5f 43 6c 69 70 53 77 61 74 63 68 4c 69 6e 65 54 68 69 63 6b 6e ct.yMax.-.k_ClipSwatchLineThickn
6100 65 73 73 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 44 72 61 77 52 ess;.............EditorGUI.DrawR
6120 65 63 74 28 63 6f 6c 6f 72 52 65 63 74 2c 20 73 77 61 74 63 68 43 6f 6c 6f 72 29 3b 0a 20 20 20 ect(colorRect,.swatchColor);....
6140 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f .....}..........public.static.vo
6160 69 64 20 44 72 61 77 53 69 6d 70 6c 65 43 6c 69 70 28 54 69 6d 65 6c 69 6e 65 43 6c 69 70 20 63 id.DrawSimpleClip(TimelineClip.c
6180 6c 69 70 2c 20 52 65 63 74 20 74 61 72 67 65 74 52 65 63 74 2c 20 43 6c 69 70 42 6f 72 64 65 72 lip,.Rect.targetRect,.ClipBorder
61a0 20 62 6f 72 64 65 72 2c 20 43 6f 6c 6f 72 20 6f 76 65 72 6c 61 79 2c 20 43 6c 69 70 44 72 61 77 .border,.Color.overlay,.ClipDraw
61c0 4f 70 74 69 6f 6e 73 20 64 72 61 77 4f 70 74 69 6f 6e 73 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 Options.drawOptions).........{..
61e0 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 42 65 67 69 6e 43 6c 69 70 28 74 61 72 67 65 74 52 ...........GUI.BeginClip(targetR
6200 65 63 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 6c 69 70 52 65 63 74 20 3d ect);.............var.clipRect.=
6220 20 6e 65 77 20 52 65 63 74 28 30 2e 30 66 2c 20 30 2e 30 66 2c 20 74 61 72 67 65 74 52 65 63 74 .new.Rect(0.0f,.0.0f,.targetRect
6240 2e 77 69 64 74 68 2c 20 74 61 72 67 65 74 52 65 63 74 2e 68 65 69 67 68 74 29 3b 0a 0a 20 20 20 .width,.targetRect.height);.....
6260 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 72 67 43 6f 6c 6f 72 20 3d 20 47 55 49 2e 63 6f 6c 6f .........var.orgColor.=.GUI.colo
6280 72 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 63 6f 6c 6f 72 20 3d 20 6f 76 65 72 6c r;.............GUI.color.=.overl
62a0 61 79 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c 69 70 42 61 63 6b 67 72 6f ay;..............DrawClipBackgro
62c0 75 6e 64 28 63 6c 69 70 52 65 63 74 2c 20 66 61 6c 73 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 und(clipRect,.false);...........
62e0 20 20 47 55 49 2e 63 6f 6c 6f 72 20 3d 20 6f 72 67 43 6f 6c 6f 72 3b 0a 0a 20 20 20 20 20 20 20 ..GUI.color.=.orgColor;.........
6300 20 20 20 20 20 69 66 20 28 63 6c 69 70 52 65 63 74 2e 77 69 64 74 68 20 3c 3d 20 6b 5f 4d 69 6e .....if.(clipRect.width.<=.k_Min
6320 43 6c 69 70 57 69 64 74 68 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 ClipWidth).............{........
6340 20 20 20 20 20 20 20 20 20 63 6c 69 70 52 65 63 74 2e 77 69 64 74 68 20 3d 20 6b 5f 4d 69 6e 43 .........clipRect.width.=.k_MinC
6360 6c 69 70 57 69 64 74 68 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 lipWidth;.............}.........
6380 20 20 20 20 20 44 72 61 77 43 6c 69 70 53 77 61 74 63 68 28 74 61 72 67 65 74 52 65 63 74 2c 20 .....DrawClipSwatch(targetRect,.
63a0 64 72 61 77 4f 70 74 69 6f 6e 73 2e 68 69 67 68 6c 69 67 68 74 43 6f 6c 6f 72 20 2a 20 6f 76 65 drawOptions.highlightColor.*.ove
63c0 72 6c 61 79 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 61 72 67 65 74 52 65 rlay);..............if.(targetRe
63e0 63 74 2e 77 69 64 74 68 20 3e 3d 20 6b 5f 43 6c 69 70 49 6e 4f 75 74 4d 69 6e 57 69 64 74 68 29 ct.width.>=.k_ClipInOutMinWidth)
6400 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c 69 70 49 6e 4f 75 74 28 63 .................DrawClipInOut(c
6420 6c 69 70 52 65 63 74 2c 20 63 6c 69 70 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 lipRect,.clip);..............var
6440 20 74 65 78 74 52 65 63 74 20 3d 20 63 6c 69 70 52 65 63 74 3b 0a 0a 20 20 20 20 20 20 20 20 20 .textRect.=.clipRect;...........
6460 20 20 20 74 65 78 74 52 65 63 74 2e 78 4d 69 6e 20 2b 3d 20 6b 5f 43 6c 69 70 4c 61 62 65 6c 50 ...textRect.xMin.+=.k_ClipLabelP
6480 61 64 64 69 6e 67 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 65 78 74 52 65 63 74 2e 78 4d 61 adding;.............textRect.xMa
64a0 78 20 2d 3d 20 6b 5f 43 6c 69 70 4c 61 62 65 6c 50 61 64 64 69 6e 67 3b 0a 0a 20 20 20 20 20 20 x.-=.k_ClipLabelPadding;........
64c0 20 20 20 20 20 20 69 66 20 28 74 65 78 74 52 65 63 74 2e 77 69 64 74 68 20 3e 20 6b 5f 43 6c 69 ......if.(textRect.width.>.k_Cli
64e0 70 4c 61 62 65 6c 4d 69 6e 57 69 64 74 68 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 pLabelMinWidth).................
6500 44 72 61 77 43 6c 69 70 4c 61 62 65 6c 28 63 6c 69 70 2e 64 69 73 70 6c 61 79 4e 61 6d 65 2c 20 DrawClipLabel(clip.displayName,.
6520 74 65 78 74 52 65 63 74 2c 20 43 6f 6c 6f 72 2e 77 68 69 74 65 2c 20 64 72 61 77 4f 70 74 69 6f textRect,.Color.white,.drawOptio
6540 6e 73 2e 65 72 72 6f 72 54 65 78 74 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 ns.errorText);..............if.(
6560 62 6f 72 64 65 72 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 border.!=.null).................
6580 44 72 61 77 43 6c 69 70 53 65 6c 65 63 74 69 6f 6e 42 6f 72 64 65 72 28 63 6c 69 70 52 65 63 74 DrawClipSelectionBorder(clipRect
65a0 2c 20 62 6f 72 64 65 72 2c 20 43 6c 69 70 42 6c 65 6e 64 73 2e 6b 4e 6f 6e 65 29 3b 0a 0a 20 20 ,.border,.ClipBlends.kNone);....
65c0 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 45 6e 64 43 6c 69 70 28 29 3b 0a 20 20 20 20 20 20 20 ..........GUI.EndClip();........
65e0 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 .}..........public.static.void.D
6600 72 61 77 44 65 66 61 75 6c 74 43 6c 69 70 28 43 6c 69 70 44 72 61 77 44 61 74 61 20 64 72 61 77 rawDefaultClip(ClipDrawData.draw
6620 44 61 74 61 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 Data).........{.............var.
6640 63 75 73 74 6f 6d 53 6b 69 6e 20 3d 20 44 69 72 65 63 74 6f 72 53 74 79 6c 65 73 2e 49 6e 73 74 customSkin.=.DirectorStyles.Inst
6660 61 6e 63 65 2e 63 75 73 74 6f 6d 53 6b 69 6e 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 ance.customSkin;.............var
6680 20 62 6c 65 6e 64 49 6e 43 6f 6c 6f 72 20 3d 20 64 72 61 77 44 61 74 61 2e 73 65 6c 65 63 74 65 .blendInColor.=.drawData.selecte
66a0 64 20 3f 20 63 75 73 74 6f 6d 53 6b 69 6e 2e 63 6c 69 70 42 6c 65 6e 64 49 6e 53 65 6c 65 63 74 d.?.customSkin.clipBlendInSelect
66c0 65 64 20 3a 20 63 75 73 74 6f 6d 53 6b 69 6e 2e 63 6c 69 70 42 6c 65 6e 64 49 6e 3b 0a 20 20 20 ed.:.customSkin.clipBlendIn;....
66e0 20 20 20 20 20 20 20 20 20 76 61 72 20 62 6c 65 6e 64 4f 75 74 43 6f 6c 6f 72 20 3d 20 64 72 61 .........var.blendOutColor.=.dra
6700 77 44 61 74 61 2e 73 65 6c 65 63 74 65 64 20 3f 20 63 75 73 74 6f 6d 53 6b 69 6e 2e 63 6c 69 70 wData.selected.?.customSkin.clip
6720 42 6c 65 6e 64 4f 75 74 53 65 6c 65 63 74 65 64 20 3a 20 63 75 73 74 6f 6d 53 6b 69 6e 2e 63 6c BlendOutSelected.:.customSkin.cl
6740 69 70 42 6c 65 6e 64 4f 75 74 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 65 61 73 65 ipBlendOut;.............var.ease
6760 42 61 63 6b 67 72 6f 75 6e 64 43 6f 6c 6f 72 20 3d 20 63 75 73 74 6f 6d 53 6b 69 6e 2e 63 6c 69 BackgroundColor.=.customSkin.cli
6780 70 45 61 73 65 42 63 6b 67 43 6f 6c 6f 72 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 pEaseBckgColor;..............Dra
67a0 77 43 6c 69 70 42 6c 65 6e 64 73 28 64 72 61 77 44 61 74 61 2e 63 6c 69 70 42 6c 65 6e 64 73 2c wClipBlends(drawData.clipBlends,
67c0 20 62 6c 65 6e 64 49 6e 43 6f 6c 6f 72 2c 20 62 6c 65 6e 64 4f 75 74 43 6f 6c 6f 72 2c 20 65 61 .blendInColor,.blendOutColor,.ea
67e0 73 65 42 61 63 6b 67 72 6f 75 6e 64 43 6f 6c 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 seBackgroundColor);.............
6800 44 72 61 77 43 6c 69 70 42 61 63 6b 67 72 6f 75 6e 64 28 64 72 61 77 44 61 74 61 2e 63 6c 69 70 DrawClipBackground(drawData.clip
6820 43 65 6e 74 65 72 53 65 63 74 69 6f 6e 2c 20 64 72 61 77 44 61 74 61 2e 73 65 6c 65 63 74 65 64 CenterSection,.drawData.selected
6840 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 72 61 77 44 61 74 61 2e 74 61 72 );..............if.(drawData.tar
6860 67 65 74 52 65 63 74 2e 77 69 64 74 68 20 3e 20 6b 5f 4d 69 6e 43 6c 69 70 57 69 64 74 68 29 0a getRect.width.>.k_MinClipWidth).
6880 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 ............{.................Dr
68a0 61 77 43 6c 69 70 45 64 69 74 6f 72 42 61 63 6b 67 72 6f 75 6e 64 28 64 72 61 77 44 61 74 61 29 awClipEditorBackground(drawData)
68c0 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 ;.............}.............else
68e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 .............{.................d
6900 72 61 77 44 61 74 61 2e 74 61 72 67 65 74 52 65 63 74 2e 77 69 64 74 68 20 3d 20 6b 5f 4d 69 6e rawData.targetRect.width.=.k_Min
6920 43 6c 69 70 57 69 64 74 68 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 72 61 77 44 ClipWidth;.................drawD
6940 61 74 61 2e 63 6c 69 70 43 65 6e 74 65 72 53 65 63 74 69 6f 6e 2e 77 69 64 74 68 20 3d 20 6b 5f ata.clipCenterSection.width.=.k_
6960 4d 69 6e 43 6c 69 70 57 69 64 74 68 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 MinClipWidth;.............}.....
6980 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c 69 70 54 69 6d 65 73 63 61 6c 65 28 64 72 61 77 44 .........DrawClipTimescale(drawD
69a0 61 74 61 2e 74 61 72 67 65 74 52 65 63 74 2c 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 70 65 64 ata.targetRect,.drawData.clipped
69c0 52 65 63 74 2c 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e 74 69 6d 65 53 63 61 6c 65 29 3b 0a Rect,.drawData.clip.timeScale);.
69e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 72 61 77 44 61 74 61 2e 74 61 72 67 65 74 .............if.(drawData.target
6a00 52 65 63 74 2e 77 69 64 74 68 20 3e 3d 20 6b 5f 43 6c 69 70 49 6e 4f 75 74 4d 69 6e 57 69 64 74 Rect.width.>=.k_ClipInOutMinWidt
6a20 68 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c 69 70 49 6e 4f 75 74 h).................DrawClipInOut
6a40 28 64 72 61 77 44 61 74 61 2e 74 61 72 67 65 74 52 65 63 74 2c 20 64 72 61 77 44 61 74 61 2e 63 (drawData.targetRect,.drawData.c
6a60 6c 69 70 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6c 61 62 65 6c 52 65 63 74 lip);..............var.labelRect
6a80 20 3d 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 43 65 6e 74 65 72 53 65 63 74 69 6f 6e 3b 0a 0a .=.drawData.clipCenterSection;..
6aa0 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 72 61 77 44 61 74 61 2e 74 61 72 67 65 74 52 ............if.(drawData.targetR
6ac0 65 63 74 2e 77 69 64 74 68 20 3e 3d 20 6b 5f 43 6c 69 70 4c 6f 6f 70 73 4d 69 6e 57 69 64 74 68 ect.width.>=.k_ClipLoopsMinWidth
6ae0 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ).............{.................
6b00 62 6f 6f 6c 20 73 65 6c 65 63 74 65 64 20 3d 20 64 72 61 77 44 61 74 61 2e 73 65 6c 65 63 74 65 bool.selected.=.drawData.selecte
6b20 64 20 7c 7c 20 64 72 61 77 44 61 74 61 2e 69 6e 6c 69 6e 65 43 75 72 76 65 73 53 65 6c 65 63 74 d.||.drawData.inlineCurvesSelect
6b40 65 64 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 65 6c 65 63 74 65 ed;..................if.(selecte
6b60 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 d).................{............
6b80 20 20 20 20 20 20 20 20 20 69 66 20 28 64 72 61 77 44 61 74 61 2e 6c 6f 6f 70 52 65 63 74 73 20 .........if.(drawData.loopRects.
6ba0 21 3d 20 6e 75 6c 6c 20 26 26 20 64 72 61 77 44 61 74 61 2e 6c 6f 6f 70 52 65 63 74 73 2e 41 6e !=.null.&&.drawData.loopRects.An
6bc0 79 28 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 y()).....................{......
6be0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 4c 6f 6f 70 73 28 64 72 61 ...................DrawLoops(dra
6c00 77 44 61 74 61 29 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 wData);.........................
6c20 20 76 61 72 20 6c 20 3d 20 64 72 61 77 44 61 74 61 2e 6c 6f 6f 70 52 65 63 74 73 5b 30 5d 3b 0a .var.l.=.drawData.loopRects[0];.
6c40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6c 61 62 65 6c 52 65 63 ........................labelRec
6c60 74 2e 78 4d 61 78 20 3d 20 4d 61 74 68 2e 4d 69 6e 28 6c 61 62 65 6c 52 65 63 74 2e 78 4d 61 78 t.xMax.=.Math.Min(labelRect.xMax
6c80 2c 20 6c 2e 78 20 2d 20 64 72 61 77 44 61 74 61 2e 75 6e 63 6c 69 70 70 65 64 52 65 63 74 2e 78 ,.l.x.-.drawData.unclippedRect.x
6ca0 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 );.....................}........
6cc0 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 .........}.............}........
6ce0 20 20 20 20 20 20 6c 61 62 65 6c 52 65 63 74 2e 78 4d 69 6e 20 2b 3d 20 6b 5f 43 6c 69 70 4c 61 ......labelRect.xMin.+=.k_ClipLa
6d00 62 65 6c 50 61 64 64 69 6e 67 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 6c 61 62 65 6c 52 65 63 belPadding;.............labelRec
6d20 74 2e 78 4d 61 78 20 2d 3d 20 6b 5f 43 6c 69 70 4c 61 62 65 6c 50 61 64 64 69 6e 67 3b 0a 0a 20 t.xMax.-=.k_ClipLabelPadding;...
6d40 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6c 61 62 65 6c 52 65 63 74 2e 77 69 64 74 68 20 3e ...........if.(labelRect.width.>
6d60 20 6b 5f 43 6c 69 70 4c 61 62 65 6c 4d 69 6e 57 69 64 74 68 29 0a 20 20 20 20 20 20 20 20 20 20 .k_ClipLabelMinWidth)...........
6d80 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c 69 70 4c 61 62 65 ..{.................DrawClipLabe
6da0 6c 28 64 72 61 77 44 61 74 61 2c 20 6c 61 62 65 6c 52 65 63 74 2c 20 43 6f 6c 6f 72 2e 77 68 69 l(drawData,.labelRect,.Color.whi
6dc0 74 65 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 te);.............}..............
6de0 44 72 61 77 43 6c 69 70 53 77 61 74 63 68 28 64 72 61 77 44 61 74 61 2e 74 61 72 67 65 74 52 65 DrawClipSwatch(drawData.targetRe
6e00 63 74 2c 20 64 72 61 77 44 61 74 61 2e 43 6c 69 70 44 72 61 77 4f 70 74 69 6f 6e 73 2e 68 69 67 ct,.drawData.ClipDrawOptions.hig
6e20 68 6c 69 67 68 74 43 6f 6c 6f 72 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c hlightColor);.............DrawCl
6e40 69 70 42 6f 72 64 65 72 28 64 72 61 77 44 61 74 61 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 ipBorder(drawData);.........}...
6e60 20 20 20 20 20 20 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 43 6c 69 70 45 64 69 74 6f .......static.void.DrawClipEdito
6e80 72 42 61 63 6b 67 72 6f 75 6e 64 28 43 6c 69 70 44 72 61 77 44 61 74 61 20 64 72 61 77 44 61 74 rBackground(ClipDrawData.drawDat
6ea0 61 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 69 73 52 a).........{.............var.isR
6ec0 65 70 61 69 6e 74 20 3d 20 28 45 76 65 6e 74 2e 63 75 72 72 65 6e 74 2e 74 79 70 65 20 3d 3d 20 epaint.=.(Event.current.type.==.
6ee0 45 76 65 6e 74 54 79 70 65 2e 52 65 70 61 69 6e 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 EventType.Repaint);.............
6f00 69 66 20 28 69 73 52 65 70 61 69 6e 74 20 26 26 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 45 64 if.(isRepaint.&&.drawData.clipEd
6f20 69 74 6f 72 20 21 3d 20 6e 75 6c 6c 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 itor.!=.null).............{.....
6f40 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 63 75 73 74 6f 6d 42 6f 64 79 52 65 63 74 20 3d ............var.customBodyRect.=
6f60 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 70 65 64 52 65 63 74 3b 0a 20 20 20 20 20 20 20 20 20 .drawData.clippedRect;..........
6f80 20 20 20 20 20 20 20 63 75 73 74 6f 6d 42 6f 64 79 52 65 63 74 2e 79 4d 69 6e 20 2b 3d 20 6b 5f .......customBodyRect.yMin.+=.k_
6fa0 43 6c 69 70 49 6e 6c 69 6e 65 57 69 64 74 68 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ClipInlineWidth;................
6fc0 20 63 75 73 74 6f 6d 42 6f 64 79 52 65 63 74 2e 79 4d 61 78 20 2d 3d 20 6b 5f 43 6c 69 70 53 77 .customBodyRect.yMax.-=.k_ClipSw
6fe0 61 74 63 68 4c 69 6e 65 54 68 69 63 6b 6e 65 73 73 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 atchLineThickness;..............
7000 20 20 20 76 61 72 20 72 65 67 69 6f 6e 20 3d 20 6e 65 77 20 43 6c 69 70 42 61 63 6b 67 72 6f 75 ...var.region.=.new.ClipBackgrou
7020 6e 64 52 65 67 69 6f 6e 28 63 75 73 74 6f 6d 42 6f 64 79 52 65 63 74 2c 20 64 72 61 77 44 61 74 ndRegion(customBodyRect,.drawDat
7040 61 2e 6c 6f 63 61 6c 56 69 73 69 62 6c 65 53 74 61 72 74 54 69 6d 65 2c 20 64 72 61 77 44 61 74 a.localVisibleStartTime,.drawDat
7060 61 2e 6c 6f 63 61 6c 56 69 73 69 62 6c 65 45 6e 64 54 69 6d 65 29 3b 0a 20 20 20 20 20 20 20 20 a.localVisibleEndTime);.........
7080 20 20 20 20 20 20 20 20 74 72 79 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 ........try.................{...
70a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 45 ..................drawData.clipE
70c0 64 69 74 6f 72 2e 44 72 61 77 42 61 63 6b 67 72 6f 75 6e 64 28 64 72 61 77 44 61 74 61 2e 63 6c ditor.DrawBackground(drawData.cl
70e0 69 70 2c 20 72 65 67 69 6f 6e 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 ip,.region);.................}..
7100 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 74 63 68 20 28 45 78 63 65 70 74 69 6f 6e 20 ...............catch.(Exception.
7120 65 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 e).................{............
7140 20 20 20 20 20 20 20 20 20 44 65 62 75 67 2e 4c 6f 67 45 78 63 65 70 74 69 6f 6e 28 65 29 3b 0a .........Debug.LogException(e);.
7160 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a ................}.............}.
7180 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 ........}..........public.static
71a0 20 76 6f 69 64 20 44 72 61 77 41 6e 69 6d 61 74 69 6f 6e 52 65 63 6f 72 64 42 6f 72 64 65 72 28 .void.DrawAnimationRecordBorder(
71c0 43 6c 69 70 44 72 61 77 44 61 74 61 20 64 72 61 77 44 61 74 61 29 0a 20 20 20 20 20 20 20 20 7b ClipDrawData.drawData).........{
71e0 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 21 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e .............if.(!drawData.clip.
7200 70 61 72 65 6e 74 54 72 61 63 6b 2e 49 73 52 65 63 6f 72 64 69 6e 67 54 6f 43 6c 69 70 28 64 72 parentTrack.IsRecordingToClip(dr
7220 61 77 44 61 74 61 2e 63 6c 69 70 29 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 awData.clip)).................re
7240 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 69 6d 65 20 3d 20 6e 65 turn;..............var.time.=.ne
7260 77 20 44 69 73 63 72 65 74 65 54 69 6d 65 28 54 69 6d 65 6c 69 6e 65 57 69 6e 64 6f 77 2e 69 6e w.DiscreteTime(TimelineWindow.in
7280 73 74 61 6e 63 65 2e 73 74 61 74 65 2e 65 64 69 74 53 65 71 75 65 6e 63 65 2e 74 69 6d 65 29 3b stance.state.editSequence.time);
72a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 74 61 72 74 20 3d 20 6e 65 77 20 44 69 73 .............var.start.=.new.Dis
72c0 63 72 65 74 65 54 69 6d 65 28 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e 73 74 61 72 74 20 2b 20 creteTime(drawData.clip.start.+.
72e0 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e 6d 69 78 49 6e 44 75 72 61 74 69 6f 6e 29 3b 0a 20 20 drawData.clip.mixInDuration);...
7300 20 20 20 20 20 20 20 20 20 20 76 61 72 20 65 6e 64 20 3d 20 6e 65 77 20 44 69 73 63 72 65 74 65 ..........var.end.=.new.Discrete
7320 54 69 6d 65 28 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e 65 6e 64 20 2d 20 64 72 61 77 44 61 74 Time(drawData.clip.end.-.drawDat
7340 61 2e 63 6c 69 70 2e 6d 69 78 4f 75 74 44 75 72 61 74 69 6f 6e 29 3b 0a 0a 20 20 20 20 20 20 20 a.clip.mixOutDuration);.........
7360 20 20 20 20 20 69 66 20 28 74 69 6d 65 20 3c 20 73 74 61 72 74 20 7c 7c 20 74 69 6d 65 20 3e 3d .....if.(time.<.start.||.time.>=
7380 20 65 6e 64 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 .end).................return;...
73a0 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 43 6c 69 70 53 65 6c 65 63 74 69 6f 6e 42 6f 72 64 ...........DrawClipSelectionBord
73c0 65 72 28 64 72 61 77 44 61 74 61 2e 63 6c 69 70 43 65 6e 74 65 72 53 65 63 74 69 6f 6e 2c 20 43 er(drawData.clipCenterSection,.C
73e0 6c 69 70 42 6f 72 64 65 72 2e 52 65 63 6f 72 64 69 6e 67 28 29 2c 20 43 6c 69 70 42 6c 65 6e 64 lipBorder.Recording(),.ClipBlend
7400 73 2e 6b 4e 6f 6e 65 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 s.kNone);.........}..........pub
7420 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 52 65 63 6f 72 64 50 72 6f 68 69 62 lic.static.void.DrawRecordProhib
7440 69 74 65 64 28 43 6c 69 70 44 72 61 77 44 61 74 61 20 64 72 61 77 44 61 74 61 29 0a 20 20 20 20 ited(ClipDrawData.drawData).....
7460 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 72 61 77 52 65 63 6f 72 64 49 6e 76 61 ....{.............DrawRecordInva
7480 6c 69 64 43 6c 69 70 28 64 72 61 77 44 61 74 61 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 44 lidClip(drawData);.............D
74a0 72 61 77 52 65 63 6f 72 64 4f 6e 42 6c 65 6e 64 28 64 72 61 77 44 61 74 61 29 3b 0a 20 20 20 20 rawRecordOnBlend(drawData);.....
74c0 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 ....}..........public.static.voi
74e0 64 20 44 72 61 77 52 65 63 6f 72 64 4f 6e 42 6c 65 6e 64 28 43 6c 69 70 44 72 61 77 44 61 74 61 d.DrawRecordOnBlend(ClipDrawData
7500 20 64 72 61 77 44 61 74 61 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 .drawData).........{............
7520 20 64 6f 75 62 6c 65 20 74 69 6d 65 20 3d 20 54 69 6d 65 6c 69 6e 65 57 69 6e 64 6f 77 2e 69 6e .double.time.=.TimelineWindow.in
7540 73 74 61 6e 63 65 2e 73 74 61 74 65 2e 65 64 69 74 53 65 71 75 65 6e 63 65 2e 74 69 6d 65 3b 0a stance.state.editSequence.time;.
7560 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 69 6d 65 20 3e 3d 20 64 72 61 77 44 61 74 61 ............if.(time.>=.drawData
7580 2e 63 6c 69 70 2e 73 74 61 72 74 20 26 26 20 74 69 6d 65 20 3c 20 64 72 61 77 44 61 74 61 2e 63 .clip.start.&&.time.<.drawData.c
75a0 6c 69 70 2e 73 74 61 72 74 20 2b 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e 6d 69 78 49 6e 44 lip.start.+.drawData.clip.mixInD
75c0 75 72 61 74 69 6f 6e 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 uration).............{..........
75e0 20 20 20 20 20 20 20 52 65 63 74 20 72 20 3d 20 52 65 63 74 2e 4d 69 6e 4d 61 78 52 65 63 74 28 .......Rect.r.=.Rect.MinMaxRect(
7600 64 72 61 77 44 61 74 61 2e 63 6c 69 70 70 65 64 52 65 63 74 2e 78 4d 69 6e 2c 20 64 72 61 77 44 drawData.clippedRect.xMin,.drawD
7620 61 74 61 2e 63 6c 69 70 70 65 64 52 65 63 74 2e 79 4d 69 6e 2c 20 64 72 61 77 44 61 74 61 2e 63 ata.clippedRect.yMin,.drawData.c
7640 6c 69 70 43 65 6e 74 65 72 53 65 63 74 69 6f 6e 2e 78 4d 69 6e 2c 20 64 72 61 77 44 61 74 61 2e lipCenterSection.xMin,.drawData.
7660 63 6c 69 70 70 65 64 52 65 63 74 2e 79 4d 61 78 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 clippedRect.yMax);..............
7680 20 20 20 44 72 61 77 49 6e 76 61 6c 69 64 52 65 63 6f 72 64 49 63 6f 6e 28 72 2c 20 53 74 79 6c ...DrawInvalidRecordIcon(r,.Styl
76a0 65 73 2e 73 5f 43 6c 69 70 4e 6f 52 65 63 6f 72 64 49 6e 42 6c 65 6e 64 29 3b 0a 20 20 20 20 20 es.s_ClipNoRecordInBlend);......
76c0 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 69 6d 65 20 3c .......}..............if.(time.<
76e0 3d 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e 65 6e 64 20 26 26 20 74 69 6d 65 20 3e 20 64 72 =.drawData.clip.end.&&.time.>.dr
7700 61 77 44 61 74 61 2e 63 6c 69 70 2e 65 6e 64 20 2d 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e awData.clip.end.-.drawData.clip.
7720 6d 69 78 4f 75 74 44 75 72 61 74 69 6f 6e 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0a 20 20 mixOutDuration).............{...
7740 20 20 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 72 20 3d 20 52 65 63 74 2e 4d 69 6e 4d ..............Rect.r.=.Rect.MinM
7760 61 78 52 65 63 74 28 64 72 61 77 44 61 74 61 2e 63 6c 69 70 43 65 6e 74 65 72 53 65 63 74 69 6f axRect(drawData.clipCenterSectio
7780 6e 2e 78 4d 61 78 2c 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 70 65 64 52 65 63 74 2e 79 4d 69 n.xMax,.drawData.clippedRect.yMi
77a0 6e 2c 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 70 65 64 52 65 63 74 2e 78 4d 61 78 2c 20 64 72 n,.drawData.clippedRect.xMax,.dr
77c0 61 77 44 61 74 61 2e 63 6c 69 70 70 65 64 52 65 63 74 2e 79 4d 61 78 29 3b 0a 20 20 20 20 20 20 awData.clippedRect.yMax);.......
77e0 20 20 20 20 20 20 20 20 20 20 44 72 61 77 49 6e 76 61 6c 69 64 52 65 63 6f 72 64 49 63 6f 6e 28 ..........DrawInvalidRecordIcon(
7800 72 2c 20 53 74 79 6c 65 73 2e 73 5f 43 6c 69 70 4e 6f 52 65 63 6f 72 64 49 6e 42 6c 65 6e 64 29 r,.Styles.s_ClipNoRecordInBlend)
7820 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 20 20 20 ;.............}.........}.......
7840 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 52 65 63 6f 72 64 ...public.static.void.DrawRecord
7860 49 6e 76 61 6c 69 64 43 6c 69 70 28 43 6c 69 70 44 72 61 77 44 61 74 61 20 64 72 61 77 44 61 74 InvalidClip(ClipDrawData.drawDat
7880 61 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 64 72 61 a).........{.............if.(dra
78a0 77 44 61 74 61 2e 63 6c 69 70 2e 72 65 63 6f 72 64 61 62 6c 65 29 0a 20 20 20 20 20 20 20 20 20 wData.clip.recordable)..........
78c0 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 6f 75 62 .......return;..............doub
78e0 6c 65 20 74 69 6d 65 20 3d 20 54 69 6d 65 6c 69 6e 65 57 69 6e 64 6f 77 2e 69 6e 73 74 61 6e 63 le.time.=.TimelineWindow.instanc
7900 65 2e 73 74 61 74 65 2e 65 64 69 74 53 65 71 75 65 6e 63 65 2e 74 69 6d 65 3b 0a 20 20 20 20 20 e.state.editSequence.time;......
7920 20 20 20 20 20 20 20 69 66 20 28 74 69 6d 65 20 3c 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e .......if.(time.<.drawData.clip.
7940 73 74 61 72 74 20 2b 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e 6d 69 78 49 6e 44 75 72 61 74 start.+.drawData.clip.mixInDurat
7960 69 6f 6e 20 7c 7c 20 74 69 6d 65 20 3e 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e 65 6e 64 20 ion.||.time.>.drawData.clip.end.
7980 2d 20 64 72 61 77 44 61 74 61 2e 63 6c 69 70 2e 6d 69 78 4f 75 74 44 75 72 61 74 69 6f 6e 29 0a -.drawData.clip.mixOutDuration).
79a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 ................return;.........
79c0 20 20 20 20 20 44 72 61 77 49 6e 76 61 6c 69 64 52 65 63 6f 72 64 49 63 6f 6e 28 64 72 61 77 44 .....DrawInvalidRecordIcon(drawD
79e0 61 74 61 2e 63 6c 69 70 43 65 6e 74 65 72 53 65 63 74 69 6f 6e 2c 20 53 74 79 6c 65 73 2e 73 5f ata.clipCenterSection,.Styles.s_
7a00 43 6c 69 70 4e 6f 74 52 65 63 6f 72 61 62 6c 65 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 0a 20 20 ClipNotRecorable);.........}....
7a20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 76 6f 69 64 20 44 72 61 77 49 6e 76 ......public.static.void.DrawInv
7a40 61 6c 69 64 52 65 63 6f 72 64 49 63 6f 6e 28 52 65 63 74 20 72 65 63 74 2c 20 47 55 49 43 6f 6e alidRecordIcon(Rect.rect,.GUICon
7a60 74 65 6e 74 20 68 65 6c 70 54 65 78 74 29 0a 20 20 20 20 20 20 20 20 7b 0a 20 20 20 20 20 20 20 tent.helpText).........{........
7a80 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 44 72 61 77 52 65 63 74 28 72 65 63 74 2c 20 6e 65 .....EditorGUI.DrawRect(rect,.ne
7aa0 77 20 43 6f 6c 6f 72 28 30 2c 20 30 2c 20 30 2c 20 30 2e 33 30 66 29 29 3b 0a 0a 20 20 20 20 20 w.Color(0,.0,.0,.0.30f));.......
7ac0 20 20 20 20 20 20 20 76 61 72 20 69 63 6f 6e 20 3d 20 53 74 79 6c 65 73 2e 73 5f 49 63 6f 6e 4e .......var.icon.=.Styles.s_IconN
7ae0 6f 52 65 63 6f 72 64 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 72 65 63 74 2e 77 69 oRecord;.............if.(rect.wi
7b00 64 74 68 20 3c 20 69 63 6f 6e 2e 77 69 64 74 68 20 7c 7c 20 72 65 63 74 2e 68 65 69 67 68 74 20 dth.<.icon.width.||.rect.height.
7b20 3c 20 69 63 6f 6e 2e 68 65 69 67 68 74 29 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 <.icon.height).................r
7b40 65 74 75 72 6e 3b 0a 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 78 20 3d 20 72 65 eturn;..............float.x.=.re
7b60 63 74 2e 78 20 2b 20 28 72 65 63 74 2e 77 69 64 74 68 20 2d 20 69 63 6f 6e 2e 77 69 64 74 68 29 ct.x.+.(rect.width.-.icon.width)
7b80 20 2a 20 30 2e 35 66 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 20 79 20 3d 20 72 .*.0.5f;.............float.y.=.r
7ba0 65 63 74 2e 79 20 2b 20 28 72 65 63 74 2e 68 65 69 67 68 74 20 2d 20 69 63 6f 6e 2e 68 65 69 67 ect.y.+.(rect.height.-.icon.heig
7bc0 68 74 29 20 2a 20 30 2e 35 66 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 72 20 3d ht).*.0.5f;.............Rect.r.=
7be0 20 6e 65 77 20 52 65 63 74 28 78 2c 20 79 2c 20 69 63 6f 6e 2e 77 69 64 74 68 2c 20 69 63 6f 6e .new.Rect(x,.y,.icon.width,.icon
7c00 2e 68 65 69 67 68 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 4c 61 62 65 6c 28 .height);.............GUI.Label(
7c20 72 2c 20 68 65 6c 70 54 65 78 74 29 3b 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 2e 44 72 r,.helpText);.............GUI.Dr
7c40 61 77 54 65 78 74 75 72 65 28 72 2c 20 69 63 6f 6e 2c 20 53 63 61 6c 65 4d 6f 64 65 2e 53 63 61 awTexture(r,.icon,.ScaleMode.Sca
7c60 6c 65 41 6e 64 43 72 6f 70 2c 20 74 72 75 65 2c 20 30 2c 20 43 6f 6c 6f 72 2e 77 68 69 74 65 2c leAndCrop,.true,.0,.Color.white,
7c80 20 30 2c 20 30 29 3b 0a 20 20 20 20 20 20 20 20 7d 0a 20 20 20 20 7d 0a 7d 0a 00 00 00 00 00 00 .0,.0);.........}.....}.}.......
7ca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0a 00 00 00 43 6c 69 70 44 72 61 77 65 72 00 00 ....................ClipDrawer..
7cc0 14 00 00 00 55 6e 69 74 79 45 64 69 74 6f 72 2e 54 69 6d 65 6c 69 6e 65 ....UnityEditor.Timeline