home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 June / Chip_06_2000.iso / games / WheelofTime / WoTDemo.exe / System / UWindow.u / ScriptText1.TextBuffer < prev    next >
Unknown  |  1999-11-02  |  20.7 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 53 cb 02 63 6c 61 73 73 |........|S..class|
|00000010| 20 55 57 69 6e 64 6f 77 | 57 69 6e 39 35 4c 6f 6f | UWindow|Win95Loo|
|00000020| 6b 41 6e 64 46 65 65 6c | 20 65 78 70 61 6e 64 73 |kAndFeel| expands|
|00000030| 20 55 57 69 6e 64 6f 77 | 4c 6f 6f 6b 41 6e 64 46 | UWindow|LookAndF|
|00000040| 65 65 6c 3b 0d 0a 0d 0a | 23 65 78 65 63 20 54 45 |eel;....|#exec TE|
|00000050| 58 54 55 52 45 20 49 4d | 50 4f 52 54 20 4e 41 4d |XTURE IM|PORT NAM|
|00000060| 45 3d 41 63 74 69 76 65 | 46 72 61 6d 65 20 46 49 |E=Active|Frame FI|
|00000070| 4c 45 3d 54 65 78 74 75 | 72 65 73 5c 41 63 74 69 |LE=Textu|res\Acti|
|00000080| 76 65 46 72 61 6d 65 2e | 62 6d 70 20 47 52 4f 55 |veFrame.|bmp GROU|
|00000090| 50 3d 22 49 63 6f 6e 73 | 22 20 46 4c 41 47 53 3d |P="Icons|" FLAGS=|
|000000a0| 32 20 4d 49 50 53 3d 4f | 46 46 0d 0a 23 65 78 65 |2 MIPS=O|FF..#exe|
|000000b0| 63 20 54 45 58 54 55 52 | 45 20 49 4d 50 4f 52 54 |c TEXTUR|E IMPORT|
|000000c0| 20 4e 41 4d 45 3d 49 6e | 61 63 74 69 76 65 46 72 | NAME=In|activeFr|
|000000d0| 61 6d 65 20 46 49 4c 45 | 3d 54 65 78 74 75 72 65 |ame FILE|=Texture|
|000000e0| 73 5c 49 6e 61 63 74 69 | 76 65 46 72 61 6d 65 2e |s\Inacti|veFrame.|
|000000f0| 62 6d 70 20 47 52 4f 55 | 50 3d 22 49 63 6f 6e 73 |bmp GROU|P="Icons|
|00000100| 22 20 46 4c 41 47 53 3d | 32 20 4d 49 50 53 3d 4f |" FLAGS=|2 MIPS=O|
|00000110| 46 46 0d 0a 23 65 78 65 | 63 20 54 45 58 54 55 52 |FF..#exe|c TEXTUR|
|00000120| 45 20 49 4d 50 4f 52 54 | 20 4e 41 4d 45 3d 41 63 |E IMPORT| NAME=Ac|
|00000130| 74 69 76 65 46 72 61 6d | 65 53 20 46 49 4c 45 3d |tiveFram|eS FILE=|
|00000140| 54 65 78 74 75 72 65 73 | 5c 41 63 74 69 76 65 46 |Textures|\ActiveF|
|00000150| 72 61 6d 65 53 2e 62 6d | 70 20 47 52 4f 55 50 3d |rameS.bm|p GROUP=|
|00000160| 22 49 63 6f 6e 73 22 20 | 46 4c 41 47 53 3d 32 20 |"Icons" |FLAGS=2 |
|00000170| 4d 49 50 53 3d 4f 46 46 | 0d 0a 23 65 78 65 63 20 |MIPS=OFF|..#exec |
|00000180| 54 45 58 54 55 52 45 20 | 49 4d 50 4f 52 54 20 4e |TEXTURE |IMPORT N|
|00000190| 41 4d 45 3d 49 6e 61 63 | 74 69 76 65 46 72 61 6d |AME=Inac|tiveFram|
|000001a0| 65 53 20 46 49 4c 45 3d | 54 65 78 74 75 72 65 73 |eS FILE=|Textures|
|000001b0| 5c 49 6e 61 63 74 69 76 | 65 46 72 61 6d 65 53 2e |\Inactiv|eFrameS.|
|000001c0| 62 6d 70 20 47 52 4f 55 | 50 3d 22 49 63 6f 6e 73 |bmp GROU|P="Icons|
|000001d0| 22 20 46 4c 41 47 53 3d | 32 20 4d 49 50 53 3d 4f |" FLAGS=|2 MIPS=O|
|000001e0| 46 46 0d 0a 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |FF....#e|xec TEXT|
|000001f0| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|00000200| 4d 69 73 63 20 46 49 4c | 45 3d 54 65 78 74 75 72 |Misc FIL|E=Textur|
|00000210| 65 73 5c 4d 69 73 63 2e | 62 6d 70 20 47 52 4f 55 |es\Misc.|bmp GROU|
|00000220| 50 3d 22 49 63 6f 6e 73 | 22 20 4d 49 50 53 3d 4f |P="Icons|" MIPS=O|
|00000230| 46 46 0d 0a 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |FF....#e|xec TEXT|
|00000240| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|00000250| 43 68 6b 43 68 65 63 6b | 65 64 20 46 49 4c 45 3d |ChkCheck|ed FILE=|
|00000260| 54 65 78 74 75 72 65 73 | 5c 43 68 6b 43 68 65 63 |Textures|\ChkChec|
|00000270| 6b 65 64 2e 62 6d 70 20 | 47 52 4f 55 50 3d 22 49 |ked.bmp |GROUP="I|
|00000280| 63 6f 6e 73 22 20 46 4c | 41 47 53 3d 32 20 4d 49 |cons" FL|AGS=2 MI|
|00000290| 50 53 3d 4f 46 46 0d 0a | 23 65 78 65 63 20 54 45 |PS=OFF..|#exec TE|
|000002a0| 58 54 55 52 45 20 49 4d | 50 4f 52 54 20 4e 41 4d |XTURE IM|PORT NAM|
|000002b0| 45 3d 43 68 6b 55 6e 63 | 68 65 63 6b 65 64 20 46 |E=ChkUnc|hecked F|
|000002c0| 49 4c 45 3d 54 65 78 74 | 75 72 65 73 5c 43 68 6b |ILE=Text|ures\Chk|
|000002d0| 55 6e 63 68 65 63 6b 65 | 64 2e 62 6d 70 20 47 52 |Unchecke|d.bmp GR|
|000002e0| 4f 55 50 3d 22 49 63 6f | 6e 73 22 20 46 4c 41 47 |OUP="Ico|ns" FLAG|
|000002f0| 53 3d 32 20 4d 49 50 53 | 3d 4f 46 46 0d 0a 23 65 |S=2 MIPS|=OFF..#e|
|00000300| 78 65 63 20 54 45 58 54 | 55 52 45 20 49 4d 50 4f |xec TEXT|URE IMPO|
|00000310| 52 54 20 4e 41 4d 45 3d | 43 68 6b 43 68 65 63 6b |RT NAME=|ChkCheck|
|00000320| 65 64 44 69 73 61 62 6c | 65 64 20 46 49 4c 45 3d |edDisabl|ed FILE=|
|00000330| 54 65 78 74 75 72 65 73 | 5c 43 68 6b 43 68 65 63 |Textures|\ChkChec|
|00000340| 6b 65 64 44 69 73 61 62 | 6c 65 64 2e 62 6d 70 20 |kedDisab|led.bmp |
|00000350| 47 52 4f 55 50 3d 22 49 | 63 6f 6e 73 22 20 46 4c |GROUP="I|cons" FL|
|00000360| 41 47 53 3d 32 20 4d 49 | 50 53 3d 4f 46 46 0d 0a |AGS=2 MI|PS=OFF..|
|00000370| 23 65 78 65 63 20 54 45 | 58 54 55 52 45 20 49 4d |#exec TE|XTURE IM|
|00000380| 50 4f 52 54 20 4e 41 4d | 45 3d 43 68 6b 55 6e 63 |PORT NAM|E=ChkUnc|
|00000390| 68 65 63 6b 65 64 44 69 | 73 61 62 6c 65 64 20 46 |heckedDi|sabled F|
|000003a0| 49 4c 45 3d 54 65 78 74 | 75 72 65 73 5c 43 68 6b |ILE=Text|ures\Chk|
|000003b0| 55 6e 63 68 65 63 6b 65 | 64 44 69 73 61 62 6c 65 |Unchecke|dDisable|
|000003c0| 64 2e 62 6d 70 20 47 52 | 4f 55 50 3d 22 49 63 6f |d.bmp GR|OUP="Ico|
|000003d0| 6e 73 22 20 46 4c 41 47 | 53 3d 32 20 4d 49 50 53 |ns" FLAG|S=2 MIPS|
|000003e0| 3d 4f 46 46 0d 0a 0d 0a | 23 65 78 65 63 20 54 45 |=OFF....|#exec TE|
|000003f0| 58 54 55 52 45 20 49 4d | 50 4f 52 54 20 4e 41 4d |XTURE IM|PORT NAM|
|00000400| 45 3d 4d 65 6e 75 42 61 | 72 20 46 49 4c 45 3d 54 |E=MenuBa|r FILE=T|
|00000410| 65 78 74 75 72 65 73 5c | 4d 65 6e 75 42 61 72 2e |extures\|MenuBar.|
|00000420| 62 6d 70 20 47 52 4f 55 | 50 3d 22 49 63 6f 6e 73 |bmp GROU|P="Icons|
|00000430| 22 20 4d 49 50 53 3d 4f | 46 46 0d 0a 23 65 78 65 |" MIPS=O|FF..#exe|
|00000440| 63 20 54 45 58 54 55 52 | 45 20 49 4d 50 4f 52 54 |c TEXTUR|E IMPORT|
|00000450| 20 4e 41 4d 45 3d 4d 65 | 6e 75 48 69 67 68 6c 69 | NAME=Me|nuHighli|
|00000460| 67 68 74 4c 20 46 49 4c | 45 3d 54 65 78 74 75 72 |ghtL FIL|E=Textur|
|00000470| 65 73 5c 4d 65 6e 75 48 | 69 67 68 6c 69 67 68 74 |es\MenuH|ighlight|
|00000480| 4c 2e 62 6d 70 20 46 4c | 41 47 53 3d 32 20 47 52 |L.bmp FL|AGS=2 GR|
|00000490| 4f 55 50 3d 22 49 63 6f | 6e 73 22 20 4d 49 50 53 |OUP="Ico|ns" MIPS|
|000004a0| 3d 4f 46 46 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |=OFF..#e|xec TEXT|
|000004b0| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|000004c0| 4d 65 6e 75 48 69 67 68 | 6c 69 67 68 74 4d 20 46 |MenuHigh|lightM F|
|000004d0| 49 4c 45 3d 54 65 78 74 | 75 72 65 73 5c 4d 65 6e |ILE=Text|ures\Men|
|000004e0| 75 48 69 67 68 6c 69 67 | 68 74 4d 2e 62 6d 70 20 |uHighlig|htM.bmp |
|000004f0| 46 4c 41 47 53 3d 32 20 | 47 52 4f 55 50 3d 22 49 |FLAGS=2 |GROUP="I|
|00000500| 63 6f 6e 73 22 20 4d 49 | 50 53 3d 4f 46 46 0d 0a |cons" MI|PS=OFF..|
|00000510| 23 65 78 65 63 20 54 45 | 58 54 55 52 45 20 49 4d |#exec TE|XTURE IM|
|00000520| 50 4f 52 54 20 4e 41 4d | 45 3d 4d 65 6e 75 48 69 |PORT NAM|E=MenuHi|
|00000530| 67 68 6c 69 67 68 74 52 | 20 46 49 4c 45 3d 54 65 |ghlightR| FILE=Te|
|00000540| 78 74 75 72 65 73 5c 4d | 65 6e 75 48 69 67 68 6c |xtures\M|enuHighl|
|00000550| 69 67 68 74 52 2e 62 6d | 70 20 46 4c 41 47 53 3d |ightR.bm|p FLAGS=|
|00000560| 32 20 47 52 4f 55 50 3d | 22 49 63 6f 6e 73 22 20 |2 GROUP=|"Icons" |
|00000570| 4d 49 50 53 3d 4f 46 46 | 0d 0a 0d 0a 23 65 78 65 |MIPS=OFF|....#exe|
|00000580| 63 20 54 45 58 54 55 52 | 45 20 49 4d 50 4f 52 54 |c TEXTUR|E IMPORT|
|00000590| 20 4e 41 4d 45 3d 4d 65 | 6e 75 41 72 65 61 20 46 | NAME=Me|nuArea F|
|000005a0| 49 4c 45 3d 54 65 78 74 | 75 72 65 73 5c 4d 65 6e |ILE=Text|ures\Men|
|000005b0| 75 41 72 65 61 2e 62 6d | 70 20 47 52 4f 55 50 3d |uArea.bm|p GROUP=|
|000005c0| 22 49 63 6f 6e 73 22 20 | 4d 49 50 53 3d 4f 46 46 |"Icons" |MIPS=OFF|
|000005d0| 0d 0a 23 65 78 65 63 20 | 54 45 58 54 55 52 45 20 |..#exec |TEXTURE |
|000005e0| 49 4d 50 4f 52 54 20 4e | 41 4d 45 3d 4d 65 6e 75 |IMPORT N|AME=Menu|
|000005f0| 54 4c 20 46 49 4c 45 3d | 54 65 78 74 75 72 65 73 |TL FILE=|Textures|
|00000600| 5c 4d 65 6e 75 54 4c 2e | 62 6d 70 20 47 52 4f 55 |\MenuTL.|bmp GROU|
|00000610| 50 3d 22 49 63 6f 6e 73 | 22 20 4d 49 50 53 3d 4f |P="Icons|" MIPS=O|
|00000620| 46 46 0d 0a 23 65 78 65 | 63 20 54 45 58 54 55 52 |FF..#exe|c TEXTUR|
|00000630| 45 20 49 4d 50 4f 52 54 | 20 4e 41 4d 45 3d 4d 65 |E IMPORT| NAME=Me|
|00000640| 6e 75 54 20 46 49 4c 45 | 3d 54 65 78 74 75 72 65 |nuT FILE|=Texture|
|00000650| 73 5c 4d 65 6e 75 54 2e | 62 6d 70 20 47 52 4f 55 |s\MenuT.|bmp GROU|
|00000660| 50 3d 22 49 63 6f 6e 73 | 22 20 4d 49 50 53 3d 4f |P="Icons|" MIPS=O|
|00000670| 46 46 0d 0a 23 65 78 65 | 63 20 54 45 58 54 55 52 |FF..#exe|c TEXTUR|
|00000680| 45 20 49 4d 50 4f 52 54 | 20 4e 41 4d 45 3d 4d 65 |E IMPORT| NAME=Me|
|00000690| 6e 75 54 52 20 46 49 4c | 45 3d 54 65 78 74 75 72 |nuTR FIL|E=Textur|
|000006a0| 65 73 5c 4d 65 6e 75 54 | 52 2e 62 6d 70 20 47 52 |es\MenuT|R.bmp GR|
|000006b0| 4f 55 50 3d 22 49 63 6f | 6e 73 22 20 4d 49 50 53 |OUP="Ico|ns" MIPS|
|000006c0| 3d 4f 46 46 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |=OFF..#e|xec TEXT|
|000006d0| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|000006e0| 4d 65 6e 75 4c 20 46 49 | 4c 45 3d 54 65 78 74 75 |MenuL FI|LE=Textu|
|000006f0| 72 65 73 5c 4d 65 6e 75 | 4c 2e 62 6d 70 20 47 52 |res\Menu|L.bmp GR|
|00000700| 4f 55 50 3d 22 49 63 6f | 6e 73 22 20 4d 49 50 53 |OUP="Ico|ns" MIPS|
|00000710| 3d 4f 46 46 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |=OFF..#e|xec TEXT|
|00000720| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|00000730| 4d 65 6e 75 52 20 46 49 | 4c 45 3d 54 65 78 74 75 |MenuR FI|LE=Textu|
|00000740| 72 65 73 5c 4d 65 6e 75 | 52 2e 62 6d 70 20 47 52 |res\Menu|R.bmp GR|
|00000750| 4f 55 50 3d 22 49 63 6f | 6e 73 22 20 4d 49 50 53 |OUP="Ico|ns" MIPS|
|00000760| 3d 4f 46 46 0d 0a 23 65 | 78 65 63 20 54 45 58 54 |=OFF..#e|xec TEXT|
|00000770| 55 52 45 20 49 4d 50 4f | 52 54 20 4e 41 4d 45 3d |URE IMPO|RT NAME=|
|00000780| 4d 65 6e 75 42 4c 20 46 | 49 4c 45 3d 54 65 78 74 |MenuBL F|ILE=Text|
|00000790| 75 72 65 73 5c 4d 65 6e | 75 42 4c 2e 62 6d 70 20 |ures\Men|uBL.bmp |
|000007a0| 47 52 4f 55 50 3d 22 49 | 63 6f 6e 73 22 20 4d 49 |GROUP="I|cons" MI|
|000007b0| 50 53 3d 4f 46 46 0d 0a | 23 65 78 65 63 20 54 45 |PS=OFF..|#exec TE|
|000007c0| 58 54 55 52 45 20 49 4d | 50 4f 52 54 20 4e 41 4d |XTURE IM|PORT NAM|
|000007d0| 45 3d 4d 65 6e 75 42 20 | 46 49 4c 45 3d 54 65 78 |E=MenuB |FILE=Tex|
|000007e0| 74 75 72 65 73 5c 4d 65 | 6e 75 42 2e 62 6d 70 20 |tures\Me|nuB.bmp |
|000007f0| 47 52 4f 55 50 3d 22 49 | 63 6f 6e 73 22 20 4d 49 |GROUP="I|cons" MI|
|00000800| 50 53 3d 4f 46 46 0d 0a | 23 65 78 65 63 20 54 45 |PS=OFF..|#exec TE|
|00000810| 58 54 55 52 45 20 49 4d | 50 4f 52 54 20 4e 41 4d |XTURE IM|PORT NAM|
|00000820| 45 3d 4d 65 6e 75 42 52 | 20 46 49 4c 45 3d 54 65 |E=MenuBR| FILE=Te|
|00000830| 78 74 75 72 65 73 5c 4d | 65 6e 75 42 52 2e 62 6d |xtures\M|enuBR.bm|
|00000840| 70 20 47 52 4f 55 50 3d | 22 49 63 6f 6e 73 22 20 |p GROUP=|"Icons" |
|00000850| 4d 49 50 53 3d 4f 46 46 | 0d 0a 23 65 78 65 63 20 |MIPS=OFF|..#exec |
|00000860| 54 45 58 54 55 52 45 20 | 49 4d 50 4f 52 54 20 4e |TEXTURE |IMPORT N|
|00000870| 41 4d 45 3d 4d 65 6e 75 | 48 69 67 68 6c 69 67 68 |AME=Menu|Highligh|
|00000880| 74 20 46 49 4c 45 3d 54 | 65 78 74 75 72 65 73 5c |t FILE=T|extures\|
|00000890| 4d 65 6e 75 48 69 67 68 | 6c 69 67 68 74 2e 62 6d |MenuHigh|light.bm|
|000008a0| 70 20 47 52 4f 55 50 3d | 22 49 63 6f 6e 73 22 20 |p GROUP=|"Icons" |
|000008b0| 4d 49 50 53 3d 4f 46 46 | 0d 0a 0d 0a 76 61 72 28 |MIPS=OFF|....var(|
|000008c0| 29 20 52 65 67 69 6f 6e | 09 53 42 55 70 55 70 3b |) Region|.SBUpUp;|
|000008d0| 0d 0a 76 61 72 28 29 20 | 52 65 67 69 6f 6e 09 53 |..var() |Region.S|
|000008e0| 42 55 70 44 6f 77 6e 3b | 0d 0a 76 61 72 28 29 20 |BUpDown;|..var() |
|000008f0| 52 65 67 69 6f 6e 09 53 | 42 55 70 44 69 73 61 62 |Region.S|BUpDisab|
|00000900| 6c 65 64 3b 0d 0a 0d 0a | 76 61 72 28 29 20 52 65 |led;....|var() Re|
|00000910| 67 69 6f 6e 09 53 42 44 | 6f 77 6e 55 70 3b 0d 0a |gion.SBD|ownUp;..|
|00000920| 76 61 72 28 29 20 52 65 | 67 69 6f 6e 09 53 42 44 |var() Re|gion.SBD|
|00000930| 6f 77 6e 44 6f 77 6e 3b | 0d 0a 76 61 72 28 29 20 |ownDown;|..var() |
|00000940| 52 65 67 69 6f 6e 09 53 | 42 44 6f 77 6e 44 69 73 |Region.S|BDownDis|
|00000950| 61 62 6c 65 64 3b 0d 0a | 0d 0a 76 61 72 28 29 20 |abled;..|..var() |
|00000960| 52 65 67 69 6f 6e 09 53 | 42 4c 65 66 74 55 70 3b |Region.S|BLeftUp;|
|00000970| 0d 0a 76 61 72 28 29 20 | 52 65 67 69 6f 6e 09 53 |..var() |Region.S|
|00000980| 42 4c 65 66 74 44 6f 77 | 6e 3b 0d 0a 76 61 72 28 |BLeftDow|n;..var(|
|00000990| 29 20 52 65 67 69 6f 6e | 09 53 42 4c 65 66 74 44 |) Region|.SBLeftD|
|000009a0| 69 73 61 62 6c 65 64 3b | 0d 0a 0d 0a 76 61 72 28 |isabled;|....var(|
|000009b0| 29 20 52 65 67 69 6f 6e | 09 53 42 52 69 67 68 74 |) Region|.SBRight|
|000009c0| 55 70 3b 0d 0a 76 61 72 | 28 29 20 52 65 67 69 6f |Up;..var|() Regio|
|000009d0| 6e 09 53 42 52 69 67 68 | 74 44 6f 77 6e 3b 0d 0a |n.SBRigh|tDown;..|
|000009e0| 76 61 72 28 29 20 52 65 | 67 69 6f 6e 09 53 42 52 |var() Re|gion.SBR|
|000009f0| 69 67 68 74 44 69 73 61 | 62 6c 65 64 3b 0d 0a 0d |ightDisa|bled;...|
|00000a00| 0a 76 61 72 28 29 20 52 | 65 67 69 6f 6e 09 53 42 |.var() R|egion.SB|
|00000a10| 42 61 63 6b 67 72 6f 75 | 6e 64 3b 0d 0a 0d 0a 76 |Backgrou|nd;....v|
|00000a20| 61 72 28 29 20 52 65 67 | 69 6f 6e 09 46 72 61 6d |ar() Reg|ion.Fram|
|00000a30| 65 53 42 4c 3b 0d 0a 76 | 61 72 28 29 20 52 65 67 |eSBL;..v|ar() Reg|
|00000a40| 69 6f 6e 09 46 72 61 6d | 65 53 42 3b 0d 0a 76 61 |ion.Fram|eSB;..va|
|00000a50| 72 28 29 20 52 65 67 69 | 6f 6e 09 46 72 61 6d 65 |r() Regi|on.Frame|
|00000a60| 53 42 52 3b 0d 0a 0d 0a | 76 61 72 28 29 20 52 65 |SBR;....|var() Re|
|00000a70| 67 69 6f 6e 09 43 6c 6f | 73 65 42 6f 78 55 70 3b |gion.Clo|seBoxUp;|
|00000a80| 0d 0a 76 61 72 28 29 20 | 52 65 67 69 6f 6e 09 43 |..var() |Region.C|
|00000a90| 6c 6f 73 65 42 6f 78 44 | 6f 77 6e 3b 0d 0a 76 61 |loseBoxD|own;..va|
|00000aa0| 72 28 29 20 69 6e 74 09 | 09 43 6c 6f 73 65 42 6f |r() int.|.CloseBo|
|00000ab0| 78 4f 66 66 73 65 74 58 | 3b 0d 0a 76 61 72 28 29 |xOffsetX|;..var()|
|00000ac0| 20 69 6e 74 09 09 43 6c | 6f 73 65 42 6f 78 4f 66 | int..Cl|oseBoxOf|
|00000ad0| 66 73 65 74 59 3b 0d 0a | 0d 0a 0d 0a 63 6f 6e 73 |fsetY;..|....cons|
|00000ae0| 74 20 53 49 5a 45 42 4f | 52 44 45 52 20 3d 20 33 |t SIZEBO|RDER = 3|
|00000af0| 3b 0d 0a 63 6f 6e 73 74 | 20 42 52 53 49 5a 45 42 |;..const| BRSIZEB|
|00000b00| 4f 52 44 45 52 20 3d 20 | 31 35 3b 0d 0a 0d 0a 2f |ORDER = |15;..../|
|00000b10| 2a 20 46 72 61 6d 65 64 | 20 57 69 6e 64 6f 77 20 |* Framed| Window |
|00000b20| 44 72 61 77 69 6e 67 20 | 46 75 6e 63 74 69 6f 6e |Drawing |Function|
|00000b30| 73 20 2a 2f 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 46 |s */..fu|nction F|
|00000b40| 57 5f 44 72 61 77 57 69 | 6e 64 6f 77 46 72 61 6d |W_DrawWi|ndowFram|
|00000b50| 65 28 55 57 69 6e 64 6f | 77 46 72 61 6d 65 64 57 |e(UWindo|wFramedW|
|00000b60| 69 6e 64 6f 77 20 57 2c | 20 43 61 6e 76 61 73 20 |indow W,| Canvas |
|00000b70| 43 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 54 65 |C)..{...|local Te|
|00000b80| 78 74 75 72 65 20 54 3b | 0d 0a 09 6c 6f 63 61 6c |xture T;|...local|
|00000b90| 20 52 65 67 69 6f 6e 20 | 52 2c 20 54 65 6d 70 3b | Region |R, Temp;|
|00000ba0| 0d 0a 0d 0a 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |.....C.D|rawColor|
|00000bb0| 2e 72 20 3d 20 32 35 35 | 3b 0d 0a 09 43 2e 44 72 |.r = 255|;...C.Dr|
|00000bc0| 61 77 43 6f 6c 6f 72 2e | 67 20 3d 20 32 35 35 3b |awColor.|g = 255;|
|00000bd0| 0d 0a 09 43 2e 44 72 61 | 77 43 6f 6c 6f 72 2e 62 |...C.Dra|wColor.b|
|00000be0| 20 3d 20 32 35 35 3b 0d | 0a 0d 0a 09 54 20 3d 20 | = 255;.|....T = |
|00000bf0| 57 2e 47 65 74 4c 6f 6f | 6b 41 6e 64 46 65 65 6c |W.GetLoo|kAndFeel|
|00000c00| 54 65 78 74 75 72 65 28 | 29 3b 0d 0a 0d 0a 09 52 |Texture(|);.....R|
|00000c10| 20 3d 20 46 72 61 6d 65 | 54 4c 3b 0d 0a 09 57 2e | = Frame|TL;...W.|
|00000c20| 44 72 61 77 53 74 72 65 | 74 63 68 65 64 54 65 78 |DrawStre|tchedTex|
|00000c30| 74 75 72 65 53 65 67 6d | 65 6e 74 28 20 43 2c 20 |tureSegm|ent( C, |
|00000c40| 30 2c 20 30 2c 20 52 2e | 57 2c 20 52 2e 48 2c 20 |0, 0, R.|W, R.H, |
|00000c50| 52 2e 58 2c 20 52 2e 59 | 2c 20 52 2e 57 2c 20 52 |R.X, R.Y|, R.W, R|
|00000c60| 2e 48 2c 20 54 20 29 3b | 0d 0a 0d 0a 09 52 20 3d |.H, T );|.....R =|
|00000c70| 20 46 72 61 6d 65 54 3b | 0d 0a 09 57 2e 44 72 61 | FrameT;|...W.Dra|
|00000c80| 77 53 74 72 65 74 63 68 | 65 64 54 65 78 74 75 72 |wStretch|edTextur|
|00000c90| 65 53 65 67 6d 65 6e 74 | 28 20 43 2c 20 46 72 61 |eSegment|( C, Fra|
|00000ca0| 6d 65 54 4c 2e 57 2c 20 | 30 2c 20 0d 0a 09 09 09 |meTL.W, |0, .....|
|00000cb0| 09 09 09 09 09 09 57 2e | 57 69 6e 57 69 64 74 68 |......W.|WinWidth|
|00000cc0| 20 2d 20 46 72 61 6d 65 | 54 4c 2e 57 0d 0a 09 09 | - Frame|TL.W....|
|00000cd0| 09 09 09 09 09 09 09 2d | 20 46 72 61 6d 65 54 52 |.......-| FrameTR|
|00000ce0| 2e 57 2c 0d 0a 09 09 09 | 09 09 09 09 09 09 52 2e |.W,.....|......R.|
|00000cf0| 48 2c 20 52 2e 58 2c 20 | 52 2e 59 2c 20 52 2e 57 |H, R.X, |R.Y, R.W|
|00000d00| 2c 20 52 2e 48 2c 20 54 | 20 29 3b 0d 0a 0d 0a 09 |, R.H, T| );.....|
|00000d10| 52 20 3d 20 46 72 61 6d | 65 54 52 3b 0d 0a 09 57 |R = Fram|eTR;...W|
|00000d20| 2e 44 72 61 77 53 74 72 | 65 74 63 68 65 64 54 65 |.DrawStr|etchedTe|
|00000d30| 78 74 75 72 65 53 65 67 | 6d 65 6e 74 28 20 43 2c |xtureSeg|ment( C,|
|00000d40| 20 57 2e 57 69 6e 57 69 | 64 74 68 20 2d 20 52 2e | W.WinWi|dth - R.|
|00000d50| 57 2c 20 30 2c 20 52 2e | 57 2c 20 52 2e 48 2c 20 |W, 0, R.|W, R.H, |
|00000d60| 52 2e 58 2c 20 52 2e 59 | 2c 20 52 2e 57 2c 20 52 |R.X, R.Y|, R.W, R|
|00000d70| 2e 48 2c 20 54 20 29 3b | 0d 0a 09 0d 0a 0d 0a 09 |.H, T );|........|
|00000d80| 69 66 28 57 2e 62 53 74 | 61 74 75 73 42 61 72 29 |if(W.bSt|atusBar)|
|00000d90| 0d 0a 09 09 54 65 6d 70 | 20 3d 20 46 72 61 6d 65 |....Temp| = Frame|
|00000da0| 53 42 4c 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 54 |SBL;...e|lse....T|
|00000db0| 65 6d 70 20 3d 20 46 72 | 61 6d 65 42 4c 3b 0d 0a |emp = Fr|ameBL;..|
|00000dc0| 09 0d 0a 09 52 20 3d 20 | 46 72 61 6d 65 4c 3b 0d |....R = |FrameL;.|
|00000dd0| 0a 09 57 2e 44 72 61 77 | 53 74 72 65 74 63 68 65 |..W.Draw|Stretche|
|00000de0| 64 54 65 78 74 75 72 65 | 53 65 67 6d 65 6e 74 28 |dTexture|Segment(|
|00000df0| 20 43 2c 20 30 2c 20 46 | 72 61 6d 65 54 4c 2e 48 | C, 0, F|rameTL.H|
|00000e00| 2c 0d 0a 09 09 09 09 09 | 09 09 09 09 52 2e 57 2c |,.......|....R.W,|
|00000e10| 20 20 0d 0a 09 09 09 09 | 09 09 09 09 09 57 2e 57 | ......|.....W.W|
|00000e20| 69 6e 48 65 69 67 68 74 | 20 2d 20 46 72 61 6d 65 |inHeight| - Frame|
|00000e30| 54 4c 2e 48 0d 0a 09 09 | 09 09 09 09 09 09 09 2d |TL.H....|.......-|
|00000e40| 20 54 65 6d 70 2e 48 2c | 0d 0a 09 09 09 09 09 09 | Temp.H,|........|
|00000e50| 09 09 09 52 2e 58 2c 20 | 52 2e 59 2c 20 52 2e 57 |...R.X, |R.Y, R.W|
|00000e60| 2c 20 52 2e 48 2c 20 54 | 20 29 3b 0d 0a 0d 0a 09 |, R.H, T| );.....|
|00000e70| 52 20 3d 20 46 72 61 6d | 65 52 3b 0d 0a 09 57 2e |R = Fram|eR;...W.|
|00000e80| 44 72 61 77 53 74 72 65 | 74 63 68 65 64 54 65 78 |DrawStre|tchedTex|
|00000e90| 74 75 72 65 53 65 67 6d | 65 6e 74 28 20 43 2c 20 |tureSegm|ent( C, |
|00000ea0| 57 2e 57 69 6e 57 69 64 | 74 68 20 2d 20 52 2e 57 |W.WinWid|th - R.W|
|00000eb0| 2c 20 46 72 61 6d 65 54 | 4c 2e 48 2c 0d 0a 09 09 |, FrameT|L.H,....|
|00000ec0| 09 09 09 09 09 09 09 52 | 2e 57 2c 20 20 0d 0a 09 |.......R|.W, ...|
|00000ed0| 09 09 09 09 09 09 09 09 | 57 2e 57 69 6e 48 65 69 |........|W.WinHei|
|00000ee0| 67 68 74 20 2d 20 46 72 | 61 6d 65 54 4c 2e 48 0d |ght - Fr|ameTL.H.|
|00000ef0| 0a 09 09 09 09 09 09 09 | 09 09 2d 20 54 65 6d 70 |........|..- Temp|
|00000f00| 2e 48 2c 0d 0a 09 09 09 | 09 09 09 09 09 09 52 2e |.H,.....|......R.|
|00000f10| 58 2c 20 52 2e 59 2c 20 | 52 2e 57 2c 20 52 2e 48 |X, R.Y, |R.W, R.H|
|00000f20| 2c 20 54 20 29 3b 0d 0a | 0d 0a 09 69 66 28 57 2e |, T );..|...if(W.|
|00000f30| 62 53 74 61 74 75 73 42 | 61 72 29 0d 0a 09 09 52 |bStatusB|ar)....R|
|00000f40| 20 3d 20 46 72 61 6d 65 | 53 42 4c 3b 0d 0a 09 65 | = Frame|SBL;...e|
|00000f50| 6c 73 65 0d 0a 09 09 52 | 20 3d 20 46 72 61 6d 65 |lse....R| = Frame|
|00000f60| 42 4c 3b 0d 0a 09 57 2e | 44 72 61 77 53 74 72 65 |BL;...W.|DrawStre|
|00000f70| 74 63 68 65 64 54 65 78 | 74 75 72 65 53 65 67 6d |tchedTex|tureSegm|
|00000f80| 65 6e 74 28 20 43 2c 20 | 30 2c 20 57 2e 57 69 6e |ent( C, |0, W.Win|
|00000f90| 48 65 69 67 68 74 20 2d | 20 52 2e 48 2c 20 52 2e |Height -| R.H, R.|
|00000fa0| 57 2c 20 52 2e 48 2c 20 | 52 2e 58 2c 20 52 2e 59 |W, R.H, |R.X, R.Y|
|00000fb0| 2c 20 52 2e 57 2c 20 52 | 2e 48 2c 20 54 20 29 3b |, R.W, R|.H, T );|
|00000fc0| 0d 0a 0d 0a 09 69 66 28 | 57 2e 62 53 74 61 74 75 |.....if(|W.bStatu|
|00000fd0| 73 42 61 72 29 0d 0a 09 | 7b 0d 0a 09 09 52 20 3d |sBar)...|{....R =|
|00000fe0| 20 46 72 61 6d 65 53 42 | 3b 0d 0a 09 09 57 2e 44 | FrameSB|;....W.D|
|00000ff0| 72 61 77 53 74 72 65 74 | 63 68 65 64 54 65 78 74 |rawStret|chedText|
|00001000| 75 72 65 53 65 67 6d 65 | 6e 74 28 20 43 2c 20 46 |ureSegme|nt( C, F|
|00001010| 72 61 6d 65 42 4c 2e 57 | 2c 20 57 2e 57 69 6e 48 |rameBL.W|, W.WinH|
|00001020| 65 69 67 68 74 20 2d 20 | 52 2e 48 2c 20 0d 0a 09 |eight - |R.H, ...|
|00001030| 09 09 09 09 09 09 09 09 | 09 57 2e 57 69 6e 57 69 |........|.W.WinWi|
|00001040| 64 74 68 20 2d 20 46 72 | 61 6d 65 53 42 4c 2e 57 |dth - Fr|ameSBL.W|
|00001050| 0d 0a 09 09 09 09 09 09 | 09 09 09 09 2d 20 46 72 |........|....- Fr|
|00001060| 61 6d 65 53 42 52 2e 57 | 2c 0d 0a 09 09 09 09 09 |ameSBR.W|,.......|
|00001070| 09 09 09 09 09 52 2e 48 | 2c 20 52 2e 58 2c 20 52 |.....R.H|, R.X, R|
|00001080| 2e 59 2c 20 52 2e 57 2c | 20 52 2e 48 2c 20 54 20 |.Y, R.W,| R.H, T |
|00001090| 29 3b 0d 0a 09 7d 0d 0a | 09 65 6c 73 65 0d 0a 09 |);...}..|.else...|
|000010a0| 7b 0d 0a 09 09 52 20 3d | 20 46 72 61 6d 65 42 3b |{....R =| FrameB;|
|000010b0| 0d 0a 09 09 57 2e 44 72 | 61 77 53 74 72 65 74 63 |....W.Dr|awStretc|
|000010c0| 68 65 64 54 65 78 74 75 | 72 65 53 65 67 6d 65 6e |hedTextu|reSegmen|
|000010d0| 74 28 20 43 2c 20 46 72 | 61 6d 65 42 4c 2e 57 2c |t( C, Fr|ameBL.W,|
|000010e0| 20 57 2e 57 69 6e 48 65 | 69 67 68 74 20 2d 20 52 | W.WinHe|ight - R|
|000010f0| 2e 48 2c 20 0d 0a 09 09 | 09 09 09 09 09 09 09 09 |.H, ....|........|
|00001100| 57 2e 57 69 6e 57 69 64 | 74 68 20 2d 20 46 72 61 |W.WinWid|th - Fra|
|00001110| 6d 65 42 4c 2e 57 0d 0a | 09 09 09 09 09 09 09 09 |meBL.W..|........|
|00001120| 09 09 2d 20 46 72 61 6d | 65 42 52 2e 57 2c 0d 0a |..- Fram|eBR.W,..|
|00001130| 09 09 09 09 09 09 09 09 | 09 09 52 2e 48 2c 20 52 |........|..R.H, R|
|00001140| 2e 58 2c 20 52 2e 59 2c | 20 52 2e 57 2c 20 52 2e |.X, R.Y,| R.W, R.|
|00001150| 48 2c 20 54 20 29 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |H, T );.|..}.....|
|00001160| 69 66 28 57 2e 62 53 74 | 61 74 75 73 42 61 72 29 |if(W.bSt|atusBar)|
|00001170| 0d 0a 09 09 52 20 3d 20 | 46 72 61 6d 65 53 42 52 |....R = |FrameSBR|
|00001180| 3b 0d 0a 09 65 6c 73 65 | 0d 0a 09 09 52 20 3d 20 |;...else|....R = |
|00001190| 46 72 61 6d 65 42 52 3b | 0d 0a 09 57 2e 44 72 61 |FrameBR;|...W.Dra|
|000011a0| 77 53 74 72 65 74 63 68 | 65 64 54 65 78 74 75 72 |wStretch|edTextur|
|000011b0| 65 53 65 67 6d 65 6e 74 | 28 20 43 2c 20 57 2e 57 |eSegment|( C, W.W|
|000011c0| 69 6e 57 69 64 74 68 20 | 2d 20 52 2e 57 2c 20 57 |inWidth |- R.W, W|
|000011d0| 2e 57 69 6e 48 65 69 67 | 68 74 20 2d 20 52 2e 48 |.WinHeig|ht - R.H|
|000011e0| 2c 20 52 2e 57 2c 20 52 | 2e 48 2c 20 52 2e 58 2c |, R.W, R|.H, R.X,|
|000011f0| 20 52 2e 59 2c 20 0d 0a | 09 09 09 09 09 09 09 09 | R.Y, ..|........|
|00001200| 09 52 2e 57 2c 20 52 2e | 48 2c 20 54 20 29 3b 0d |.R.W, R.|H, T );.|
|00001210| 0a 0d 0a 0d 0a 09 43 2e | 46 6f 6e 74 20 3d 20 57 |......C.|Font = W|
|00001220| 2e 52 6f 6f 74 2e 46 6f | 6e 74 73 5b 57 2e 46 5f |.Root.Fo|nts[W.F_|
|00001230| 4e 6f 72 6d 61 6c 5d 3b | 0d 0a 09 69 66 28 57 2e |Normal];|...if(W.|
|00001240| 50 61 72 65 6e 74 57 69 | 6e 64 6f 77 2e 41 63 74 |ParentWi|ndow.Act|
|00001250| 69 76 65 57 69 6e 64 6f | 77 20 3d 3d 20 57 29 0d |iveWindo|w == W).|
|00001260| 0a 09 09 43 2e 44 72 61 | 77 43 6f 6c 6f 72 20 3d |...C.Dra|wColor =|
|00001270| 20 46 72 61 6d 65 41 63 | 74 69 76 65 54 69 74 6c | FrameAc|tiveTitl|
|00001280| 65 43 6f 6c 6f 72 3b 0d | 0a 09 65 6c 73 65 0d 0a |eColor;.|..else..|
|00001290| 09 09 43 2e 44 72 61 77 | 43 6f 6c 6f 72 20 3d 20 |..C.Draw|Color = |
|000012a0| 46 72 61 6d 65 49 6e 61 | 63 74 69 76 65 54 69 74 |FrameIna|ctiveTit|
|000012b0| 6c 65 43 6f 6c 6f 72 3b | 0d 0a 0d 0a 0d 0a 09 57 |leColor;|.......W|
|000012c0| 2e 43 6c 69 70 54 65 78 | 74 57 69 64 74 68 28 43 |.ClipTex|tWidth(C|
|000012d0| 2c 20 46 72 61 6d 65 54 | 69 74 6c 65 58 2c 20 46 |, FrameT|itleX, F|
|000012e0| 72 61 6d 65 54 69 74 6c | 65 59 2c 20 0d 0a 09 09 |rameTitl|eY, ....|
|000012f0| 09 09 09 57 2e 57 69 6e | 64 6f 77 54 69 74 6c 65 |...W.Win|dowTitle|
|00001300| 2c 20 57 2e 57 69 6e 57 | 69 64 74 68 20 2d 20 32 |, W.WinW|idth - 2|
|00001310| 32 29 3b 0d 0a 0d 0a 09 | 69 66 28 57 2e 62 53 74 |2);.....|if(W.bSt|
|00001320| 61 74 75 73 42 61 72 29 | 20 0d 0a 09 7b 0d 0a 09 |atusBar)| ...{...|
|00001330| 09 43 2e 44 72 61 77 43 | 6f 6c 6f 72 2e 72 20 3d |.C.DrawC|olor.r =|
|00001340| 20 30 3b 0d 0a 09 09 43 | 2e 44 72 61 77 43 6f 6c | 0;....C|.DrawCol|
|00001350| 6f 72 2e 67 20 3d 20 30 | 3b 0d 0a 09 09 43 2e 44 |or.g = 0|;....C.D|
|00001360| 72 61 77 43 6f 6c 6f 72 | 2e 62 20 3d 20 30 3b 0d |rawColor|.b = 0;.|
|00001370| 0a 0d 0a 09 09 57 2e 43 | 6c 69 70 54 65 78 74 57 |.....W.C|lipTextW|
|00001380| 69 64 74 68 28 43 2c 20 | 36 2c 20 57 2e 57 69 6e |idth(C, |6, W.Win|
|00001390| 48 65 69 67 68 74 20 2d | 20 31 33 2c 20 57 2e 53 |Height -| 13, W.S|
|000013a0| 74 61 74 75 73 42 61 72 | 54 65 78 74 2c 20 57 2e |tatusBar|Text, W.|
|000013b0| 57 69 6e 57 69 64 74 68 | 20 2d 20 32 32 29 3b 0d |WinWidth| - 22);.|
|000013c0| 0a 0d 0a 09 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |.....C.D|rawColor|
|000013d0| 2e 72 20 3d 20 32 35 35 | 3b 0d 0a 09 09 43 2e 44 |.r = 255|;....C.D|
|000013e0| 72 61 77 43 6f 6c 6f 72 | 2e 67 20 3d 20 32 35 35 |rawColor|.g = 255|
|000013f0| 3b 0d 0a 09 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |;....C.D|rawColor|
|00001400| 2e 62 20 3d 20 32 35 35 | 3b 0d 0a 09 7d 0d 0a 7d |.b = 255|;...}..}|
|00001410| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 46 57 5f |....func|tion FW_|
|00001420| 53 65 74 75 70 46 72 61 | 6d 65 42 75 74 74 6f 6e |SetupFra|meButton|
|00001430| 73 28 55 57 69 6e 64 6f | 77 46 72 61 6d 65 64 57 |s(UWindo|wFramedW|
|00001440| 69 6e 64 6f 77 20 57 2c | 20 43 61 6e 76 61 73 20 |indow W,| Canvas |
|00001450| 43 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 54 65 |C)..{...|local Te|
|00001460| 78 74 75 72 65 20 54 3b | 0d 0a 0d 0a 09 54 20 3d |xture T;|.....T =|
|00001470| 20 57 2e 47 65 74 4c 6f | 6f 6b 41 6e 64 46 65 65 | W.GetLo|okAndFee|
|00001480| 6c 54 65 78 74 75 72 65 | 28 29 3b 0d 0a 0d 0a 09 |lTexture|();.....|
|00001490| 57 2e 43 6c 6f 73 65 42 | 6f 78 2e 57 69 6e 4c 65 |W.CloseB|ox.WinLe|
|000014a0| 66 74 20 3d 20 57 2e 57 | 69 6e 57 69 64 74 68 20 |ft = W.W|inWidth |
|000014b0| 2d 20 43 6c 6f 73 65 42 | 6f 78 4f 66 66 73 65 74 |- CloseB|oxOffset|
|000014c0| 58 20 2d 20 43 6c 6f 73 | 65 42 6f 78 55 70 2e 57 |X - Clos|eBoxUp.W|
|000014d0| 3b 0d 0a 09 57 2e 43 6c | 6f 73 65 42 6f 78 2e 57 |;...W.Cl|oseBox.W|
|000014e0| 69 6e 54 6f 70 20 3d 20 | 43 6c 6f 73 65 42 6f 78 |inTop = |CloseBox|
|000014f0| 4f 66 66 73 65 74 59 3b | 0d 0a 0d 0a 09 57 2e 43 |OffsetY;|.....W.C|
|00001500| 6c 6f 73 65 42 6f 78 2e | 53 65 74 53 69 7a 65 28 |loseBox.|SetSize(|
|00001510| 43 6c 6f 73 65 42 6f 78 | 55 70 2e 57 2c 20 43 6c |CloseBox|Up.W, Cl|
|00001520| 6f 73 65 42 6f 78 55 70 | 2e 48 29 3b 0d 0a 09 57 |oseBoxUp|.H);...W|
|00001530| 2e 43 6c 6f 73 65 42 6f | 78 2e 62 55 73 65 52 65 |.CloseBo|x.bUseRe|
|00001540| 67 69 6f 6e 20 3d 20 54 | 72 75 65 3b 0d 0a 0d 0a |gion = T|rue;....|
|00001550| 09 57 2e 43 6c 6f 73 65 | 42 6f 78 2e 55 70 54 65 |.W.Close|Box.UpTe|
|00001560| 78 74 75 72 65 20 3d 20 | 54 3b 0d 0a 09 57 2e 43 |xture = |T;...W.C|
|00001570| 6c 6f 73 65 42 6f 78 2e | 44 6f 77 6e 54 65 78 74 |loseBox.|DownText|
|00001580| 75 72 65 20 3d 20 54 3b | 0d 0a 09 57 2e 43 6c 6f |ure = T;|...W.Clo|
|00001590| 73 65 42 6f 78 2e 4f 76 | 65 72 54 65 78 74 75 72 |seBox.Ov|erTextur|
|000015a0| 65 20 3d 20 54 3b 0d 0a | 09 57 2e 43 6c 6f 73 65 |e = T;..|.W.Close|
|000015b0| 42 6f 78 2e 44 69 73 61 | 62 6c 65 64 54 65 78 74 |Box.Disa|bledText|
|000015c0| 75 72 65 20 3d 20 54 3b | 0d 0a 0d 0a 09 57 2e 43 |ure = T;|.....W.C|
|000015d0| 6c 6f 73 65 42 6f 78 2e | 55 70 52 65 67 69 6f 6e |loseBox.|UpRegion|
|000015e0| 20 3d 20 43 6c 6f 73 65 | 42 6f 78 55 70 3b 0d 0a | = Close|BoxUp;..|
|000015f0| 09 57 2e 43 6c 6f 73 65 | 42 6f 78 2e 44 6f 77 6e |.W.Close|Box.Down|
|00001600| 52 65 67 69 6f 6e 20 3d | 20 43 6c 6f 73 65 42 6f |Region =| CloseBo|
|00001610| 78 44 6f 77 6e 3b 0d 0a | 09 57 2e 43 6c 6f 73 65 |xDown;..|.W.Close|
|00001620| 42 6f 78 2e 4f 76 65 72 | 52 65 67 69 6f 6e 20 3d |Box.Over|Region =|
|00001630| 20 43 6c 6f 73 65 42 6f | 78 55 70 3b 0d 0a 09 57 | CloseBo|xUp;...W|
|00001640| 2e 43 6c 6f 73 65 42 6f | 78 2e 44 69 73 61 62 6c |.CloseBo|x.Disabl|
|00001650| 65 64 52 65 67 69 6f 6e | 20 3d 20 43 6c 6f 73 65 |edRegion| = Close|
|00001660| 42 6f 78 55 70 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |BoxUp;..|}....fun|
|00001670| 63 74 69 6f 6e 20 52 65 | 67 69 6f 6e 20 46 57 5f |ction Re|gion FW_|
|00001680| 47 65 74 43 6c 69 65 6e | 74 41 72 65 61 28 55 57 |GetClien|tArea(UW|
|00001690| 69 6e 64 6f 77 46 72 61 | 6d 65 64 57 69 6e 64 6f |indowFra|medWindo|
|000016a0| 77 20 57 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |w W)..{.|..local |
|000016b0| 52 65 67 69 6f 6e 20 52 | 3b 0d 0a 0d 0a 09 52 2e |Region R|;.....R.|
|000016c0| 58 20 3d 20 46 72 61 6d | 65 4c 2e 57 3b 0d 0a 09 |X = Fram|eL.W;...|
|000016d0| 52 2e 59 09 3d 20 46 72 | 61 6d 65 54 2e 48 3b 0d |R.Y.= Fr|ameT.H;.|
|000016e0| 0a 09 52 2e 57 20 3d 20 | 57 2e 57 69 6e 57 69 64 |..R.W = |W.WinWid|
|000016f0| 74 68 20 2d 20 28 46 72 | 61 6d 65 4c 2e 57 20 2b |th - (Fr|ameL.W +|
|00001700| 20 46 72 61 6d 65 52 2e | 57 29 3b 0d 0a 09 69 66 | FrameR.|W);...if|
|00001710| 28 57 2e 62 53 74 61 74 | 75 73 42 61 72 29 20 0d |(W.bStat|usBar) .|
|00001720| 0a 09 09 52 2e 48 20 3d | 20 57 2e 57 69 6e 48 65 |...R.H =| W.WinHe|
|00001730| 69 67 68 74 20 2d 20 28 | 46 72 61 6d 65 54 2e 48 |ight - (|FrameT.H|
|00001740| 20 2b 20 46 72 61 6d 65 | 53 42 2e 48 29 3b 0d 0a | + Frame|SB.H);..|
|00001750| 09 65 6c 73 65 0d 0a 09 | 09 52 2e 48 20 3d 20 57 |.else...|.R.H = W|
|00001760| 2e 57 69 6e 48 65 69 67 | 68 74 20 2d 20 28 46 72 |.WinHeig|ht - (Fr|
|00001770| 61 6d 65 54 2e 48 20 2b | 20 46 72 61 6d 65 42 2e |ameT.H +| FrameB.|
|00001780| 48 29 3b 0d 0a 0d 0a 09 | 72 65 74 75 72 6e 20 52 |H);.....|return R|
|00001790| 3b 0d 0a 7d 0d 0a 0d 0a | 0d 0a 66 75 6e 63 74 69 |;..}....|..functi|
|000017a0| 6f 6e 20 46 72 61 6d 65 | 48 69 74 54 65 73 74 20 |on Frame|HitTest |
|000017b0| 46 57 5f 48 69 74 54 65 | 73 74 28 55 57 69 6e 64 |FW_HitTe|st(UWind|
|000017c0| 6f 77 46 72 61 6d 65 64 | 57 69 6e 64 6f 77 20 57 |owFramed|Window W|
|000017d0| 2c 20 66 6c 6f 61 74 20 | 58 2c 20 66 6c 6f 61 74 |, float |X, float|
|000017e0| 20 59 29 0d 0a 7b 0d 0a | 09 69 66 28 28 58 20 3e | Y)..{..|.if((X >|
|000017f0| 3d 20 33 29 20 26 26 20 | 28 58 20 3c 3d 20 57 2e |= 3) && |(X <= W.|
|00001800| 57 69 6e 57 69 64 74 68 | 2d 33 29 20 26 26 20 28 |WinWidth|-3) && (|
|00001810| 59 20 3e 3d 20 33 29 20 | 26 26 20 28 59 20 3c 3d |Y >= 3) |&& (Y <=|
|00001820| 20 31 34 29 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 | 14))...|.return |
|00001830| 48 54 5f 54 69 74 6c 65 | 42 61 72 3b 0d 0a 09 69 |HT_Title|Bar;...i|
|00001840| 66 28 28 58 20 3c 20 42 | 52 53 49 5a 45 42 4f 52 |f((X < B|RSIZEBOR|
|00001850| 44 45 52 20 26 26 20 59 | 20 3c 20 53 49 5a 45 42 |DER && Y| < SIZEB|
|00001860| 4f 52 44 45 52 29 20 7c | 7c 20 28 58 20 3c 20 53 |ORDER) ||| (X < S|
|00001870| 49 5a 45 42 4f 52 44 45 | 52 20 26 26 20 59 20 3c |IZEBORDE|R && Y <|
|00001880| 20 42 52 53 49 5a 45 42 | 4f 52 44 45 52 29 29 20 | BRSIZEB|ORDER)) |
|00001890| 0d 0a 09 09 72 65 74 75 | 72 6e 20 48 54 5f 4e 57 |....retu|rn HT_NW|
|000018a0| 3b 0d 0a 09 69 66 28 28 | 58 20 3e 20 57 2e 57 69 |;...if((|X > W.Wi|
|000018b0| 6e 57 69 64 74 68 20 2d | 20 53 49 5a 45 42 4f 52 |nWidth -| SIZEBOR|
|000018c0| 44 45 52 20 26 26 20 59 | 20 3c 20 42 52 53 49 5a |DER && Y| < BRSIZ|
|000018d0| 45 42 4f 52 44 45 52 29 | 20 7c 7c 20 28 58 20 3e |EBORDER)| || (X >|
|000018e0| 20 57 2e 57 69 6e 57 69 | 64 74 68 20 2d 20 42 52 | W.WinWi|dth - BR|
|000018f0| 53 49 5a 45 42 4f 52 44 | 45 52 20 26 26 20 59 20 |SIZEBORD|ER && Y |
|00001900| 3c 20 53 49 5a 45 42 4f | 52 44 45 52 29 29 0d 0a |< SIZEBO|RDER))..|
|00001910| 09 09 72 65 74 75 72 6e | 20 48 54 5f 4e 45 3b 0d |..return| HT_NE;.|
|00001920| 0a 09 69 66 28 28 58 20 | 3c 20 42 52 53 49 5a 45 |..if((X |< BRSIZE|
|00001930| 42 4f 52 44 45 52 20 26 | 26 20 59 20 3e 20 57 2e |BORDER &|& Y > W.|
|00001940| 57 69 6e 48 65 69 67 68 | 74 20 2d 20 53 49 5a 45 |WinHeigh|t - SIZE|
|00001950| 42 4f 52 44 45 52 29 7c | 7c 20 28 58 20 3c 20 53 |BORDER)||| (X < S|
|00001960| 49 5a 45 42 4f 52 44 45 | 52 20 26 26 20 59 20 3e |IZEBORDE|R && Y >|
|00001970| 20 57 2e 57 69 6e 48 65 | 69 67 68 74 20 2d 20 42 | W.WinHe|ight - B|
|00001980| 52 53 49 5a 45 42 4f 52 | 44 45 52 29 29 20 0d 0a |RSIZEBOR|DER)) ..|
|00001990| 09 09 72 65 74 75 72 6e | 20 48 54 5f 53 57 3b 0d |..return| HT_SW;.|
|000019a0| 0a 09 69 66 28 28 58 20 | 3e 20 57 2e 57 69 6e 57 |..if((X |> W.WinW|
|000019b0| 69 64 74 68 20 2d 20 42 | 52 53 49 5a 45 42 4f 52 |idth - B|RSIZEBOR|
|000019c0| 44 45 52 29 20 26 26 20 | 28 59 20 3e 20 57 2e 57 |DER) && |(Y > W.W|
|000019d0| 69 6e 48 65 69 67 68 74 | 20 2d 20 42 52 53 49 5a |inHeight| - BRSIZ|
|000019e0| 45 42 4f 52 44 45 52 29 | 29 0d 0a 09 09 72 65 74 |EBORDER)|)....ret|
|000019f0| 75 72 6e 20 48 54 5f 53 | 45 3b 0d 0a 09 69 66 28 |urn HT_S|E;...if(|
|00001a00| 59 20 3c 20 53 49 5a 45 | 42 4f 52 44 45 52 29 0d |Y < SIZE|BORDER).|
|00001a10| 0a 09 09 72 65 74 75 72 | 6e 20 48 54 5f 4e 3b 0d |...retur|n HT_N;.|
|00001a20| 0a 09 69 66 28 59 20 3e | 20 57 2e 57 69 6e 48 65 |..if(Y >| W.WinHe|
|00001a30| 69 67 68 74 20 2d 20 53 | 49 5a 45 42 4f 52 44 45 |ight - S|IZEBORDE|
|00001a40| 52 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 48 54 5f |R)....re|turn HT_|
|00001a50| 53 3b 0d 0a 09 69 66 28 | 58 20 3c 20 53 49 5a 45 |S;...if(|X < SIZE|
|00001a60| 42 4f 52 44 45 52 29 0d | 0a 09 09 72 65 74 75 72 |BORDER).|...retur|
|00001a70| 6e 20 48 54 5f 57 3b 0d | 0a 09 69 66 28 58 20 3e |n HT_W;.|..if(X >|
|00001a80| 20 57 2e 57 69 6e 57 69 | 64 74 68 20 2d 20 53 49 | W.WinWi|dth - SI|
|00001a90| 5a 45 42 4f 52 44 45 52 | 29 09 0d 0a 09 09 72 65 |ZEBORDER|).....re|
|00001aa0| 74 75 72 6e 20 48 54 5f | 45 3b 0d 0a 0d 0a 09 72 |turn HT_|E;.....r|
|00001ab0| 65 74 75 72 6e 20 48 54 | 5f 4e 6f 6e 65 3b 09 0d |eturn HT|_None;..|
|00001ac0| 0a 7d 0d 0a 0d 0a 2f 2a | 20 43 6c 69 65 6e 74 20 |.}..../*| Client |
|00001ad0| 41 72 65 61 20 44 72 61 | 77 69 6e 67 20 46 75 6e |Area Dra|wing Fun|
|00001ae0| 63 74 69 6f 6e 73 20 2a | 2f 0d 0a 66 75 6e 63 74 |ctions *|/..funct|
|00001af0| 69 6f 6e 20 44 72 61 77 | 43 6c 69 65 6e 74 41 72 |ion Draw|ClientAr|
|00001b00| 65 61 28 55 57 69 6e 64 | 6f 77 43 6c 69 65 6e 74 |ea(UWind|owClient|
|00001b10| 57 69 6e 64 6f 77 20 57 | 2c 20 43 61 6e 76 61 73 |Window W|, Canvas|
|00001b20| 20 43 29 0d 0a 7b 0d 0a | 2f 2f 23 69 66 20 31 20 | C)..{..|//#if 1 |
|00001b30| 2f 2f 4e 45 57 0d 0a 09 | 57 2e 44 72 61 77 53 74 |//NEW...|W.DrawSt|
|00001b40| 72 65 74 63 68 65 64 54 | 65 78 74 75 72 65 28 43 |retchedT|exture(C|
|00001b50| 2c 20 30 2c 20 30 2c 20 | 57 2e 57 69 6e 57 69 64 |, 0, 0, |W.WinWid|
|00001b60| 74 68 2c 20 57 2e 57 69 | 6e 48 65 69 67 68 74 2c |th, W.Wi|nHeight,|
|00001b70| 20 54 65 78 74 75 72 65 | 27 42 61 63 6b 67 72 6f | Texture|'Backgro|
|00001b80| 75 6e 64 27 29 3b 0d 0a | 2f 2f 23 65 6c 73 65 0d |und');..|//#else.|
|00001b90| 0a 2f 2f 09 57 2e 44 72 | 61 77 53 74 72 65 74 63 |.//.W.Dr|awStretc|
|00001ba0| 68 65 64 54 65 78 74 75 | 72 65 28 43 2c 20 30 2c |hedTextu|re(C, 0,|
|00001bb0| 20 30 2c 20 57 2e 57 69 | 6e 57 69 64 74 68 2c 20 | 0, W.Wi|nWidth, |
|00001bc0| 57 2e 57 69 6e 48 65 69 | 67 68 74 2c 20 54 65 78 |W.WinHei|ght, Tex|
|00001bd0| 74 75 72 65 27 42 6c 61 | 63 6b 54 65 78 74 75 72 |ture'Bla|ckTextur|
|00001be0| 65 27 29 3b 0d 0a 2f 2f | 23 65 6e 64 69 66 0d 0a |e');..//|#endif..|
|00001bf0| 7d 0d 0a 0d 0a 0d 0a 2f | 2a 20 43 6f 6d 62 6f 20 |}....../|* Combo |
|00001c00| 44 72 61 77 69 6e 67 20 | 46 75 6e 63 74 69 6f 6e |Drawing |Function|
|00001c10| 73 20 2a 2f 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 43 |s */..fu|nction C|
|00001c20| 6f 6d 62 6f 5f 53 65 74 | 75 70 53 69 7a 65 73 28 |ombo_Set|upSizes(|
|00001c30| 55 57 69 6e 64 6f 77 43 | 6f 6d 62 6f 43 6f 6e 74 |UWindowC|omboCont|
|00001c40| 72 6f 6c 20 57 2c 20 43 | 61 6e 76 61 73 20 43 29 |rol W, C|anvas C)|
|00001c50| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 66 6c 6f 61 |..{...lo|cal floa|
|00001c60| 74 20 54 57 2c 20 54 48 | 3b 0d 0a 0d 0a 09 43 2e |t TW, TH|;.....C.|
|00001c70| 46 6f 6e 74 20 3d 20 57 | 2e 52 6f 6f 74 2e 46 6f |Font = W|.Root.Fo|
|00001c80| 6e 74 73 5b 57 2e 46 6f | 6e 74 5d 3b 0d 0a 09 57 |nts[W.Fo|nt];...W|
|00001c90| 2e 54 65 78 74 53 69 7a | 65 28 43 2c 20 57 2e 54 |.TextSiz|e(C, W.T|
|00001ca0| 65 78 74 2c 20 54 57 2c | 20 54 48 29 3b 0d 0a 09 |ext, TW,| TH);...|
|00001cb0| 0d 0a 09 57 2e 57 69 6e | 48 65 69 67 68 74 20 3d |...W.Win|Height =|
|00001cc0| 20 31 32 20 2b 20 4d 69 | 73 63 42 65 76 65 6c 54 | 12 + Mi|scBevelT|
|00001cd0| 5b 32 5d 2e 48 20 2b 20 | 4d 69 73 63 42 65 76 65 |[2].H + |MiscBeve|
|00001ce0| 6c 42 5b 32 5d 2e 48 3b | 0d 0a 09 0d 0a 09 73 77 |lB[2].H;|......sw|
|00001cf0| 69 74 63 68 28 57 2e 41 | 6c 69 67 6e 29 0d 0a 09 |itch(W.A|lign)...|
|00001d00| 7b 0d 0a 09 63 61 73 65 | 20 54 41 5f 4c 65 66 74 |{...case| TA_Left|
|00001d10| 3a 0d 0a 09 09 57 2e 45 | 64 69 74 41 72 65 61 44 |:....W.E|ditAreaD|
|00001d20| 72 61 77 58 20 3d 20 57 | 2e 57 69 6e 57 69 64 74 |rawX = W|.WinWidt|
|00001d30| 68 20 2d 20 57 2e 45 64 | 69 74 42 6f 78 57 69 64 |h - W.Ed|itBoxWid|
|00001d40| 74 68 3b 0d 0a 09 09 57 | 2e 54 65 78 74 58 20 3d |th;....W|.TextX =|
|00001d50| 20 30 3b 0d 0a 09 09 62 | 72 65 61 6b 3b 0d 0a 09 | 0;....b|reak;...|
|00001d60| 63 61 73 65 20 54 41 5f | 52 69 67 68 74 3a 0d 0a |case TA_|Right:..|
|00001d70| 09 09 57 2e 45 64 69 74 | 41 72 65 61 44 72 61 77 |..W.Edit|AreaDraw|
|00001d80| 58 20 3d 20 30 3b 09 0d | 0a 09 09 57 2e 54 65 78 |X = 0;..|...W.Tex|
|00001d90| 74 58 20 3d 20 57 2e 57 | 69 6e 57 69 64 74 68 20 |tX = W.W|inWidth |
|00001da0| 2d 20 54 57 3b 0d 0a 09 | 09 62 72 65 61 6b 3b 0d |- TW;...|.break;.|
|00001db0| 0a 09 63 61 73 65 20 54 | 41 5f 43 65 6e 74 65 72 |..case T|A_Center|
|00001dc0| 3a 0d 0a 09 09 57 2e 45 | 64 69 74 41 72 65 61 44 |:....W.E|ditAreaD|
|00001dd0| 72 61 77 58 20 3d 20 28 | 57 2e 57 69 6e 57 69 64 |rawX = (|W.WinWid|
|00001de0| 74 68 20 2d 20 57 2e 45 | 64 69 74 42 6f 78 57 69 |th - W.E|ditBoxWi|
|00001df0| 64 74 68 29 20 2f 20 32 | 3b 0d 0a 09 09 57 2e 54 |dth) / 2|;....W.T|
|00001e00| 65 78 74 58 20 3d 20 28 | 57 2e 57 69 6e 57 69 64 |extX = (|W.WinWid|
|00001e10| 74 68 20 2d 20 54 57 29 | 20 2f 20 32 3b 0d 0a 09 |th - TW)| / 2;...|
|00001e20| 09 62 72 65 61 6b 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |.break;.|..}.....|
|00001e30| 57 2e 45 64 69 74 41 72 | 65 61 44 72 61 77 59 20 |W.EditAr|eaDrawY |
|00001e40| 3d 20 28 57 2e 57 69 6e | 48 65 69 67 68 74 20 2d |= (W.Win|Height -|
|00001e50| 20 32 29 20 2f 20 32 3b | 0d 0a 09 57 2e 54 65 78 | 2) / 2;|...W.Tex|
|00001e60| 74 59 20 3d 20 28 57 2e | 57 69 6e 48 65 69 67 68 |tY = (W.|WinHeigh|
|00001e70| 74 20 2d 20 54 48 29 20 | 2f 20 32 3b 0d 0a 0d 0a |t - TH) |/ 2;....|
|00001e80| 09 57 2e 45 64 69 74 42 | 6f 78 2e 57 69 6e 4c 65 |.W.EditB|ox.WinLe|
|00001e90| 66 74 20 3d 20 57 2e 45 | 64 69 74 41 72 65 61 44 |ft = W.E|ditAreaD|
|00001ea0| 72 61 77 58 20 2b 20 4d | 69 73 63 42 65 76 65 6c |rawX + M|iscBevel|
|00001eb0| 4c 5b 32 5d 2e 57 3b 0d | 0a 09 57 2e 45 64 69 74 |L[2].W;.|..W.Edit|
|00001ec0| 42 6f 78 2e 57 69 6e 54 | 6f 70 20 3d 20 4d 69 73 |Box.WinT|op = Mis|
|00001ed0| 63 42 65 76 65 6c 54 5b | 32 5d 2e 48 3b 0d 0a 09 |cBevelT[|2].H;...|
|00001ee0| 57 2e 42 75 74 74 6f 6e | 2e 57 69 6e 57 69 64 74 |W.Button|.WinWidt|
|00001ef0| 68 20 3d 20 43 6f 6d 62 | 6f 42 74 6e 55 70 2e 57 |h = Comb|oBtnUp.W|
|00001f00| 3b 0d 0a 0d 0a 09 69 66 | 28 57 2e 62 42 75 74 74 |;.....if|(W.bButt|
|00001f10| 6f 6e 73 29 0d 0a 09 7b | 0d 0a 09 09 57 2e 45 64 |ons)...{|....W.Ed|
|00001f20| 69 74 42 6f 78 2e 57 69 | 6e 57 69 64 74 68 20 3d |itBox.Wi|nWidth =|
|00001f30| 20 57 2e 45 64 69 74 42 | 6f 78 57 69 64 74 68 20 | W.EditB|oxWidth |
|00001f40| 2d 20 4d 69 73 63 42 65 | 76 65 6c 4c 5b 32 5d 2e |- MiscBe|velL[2].|
|00001f50| 57 20 2d 20 4d 69 73 63 | 42 65 76 65 6c 52 5b 32 |W - Misc|BevelR[2|
|00001f60| 5d 2e 57 20 2d 20 43 6f | 6d 62 6f 42 74 6e 55 70 |].W - Co|mboBtnUp|
|00001f70| 2e 57 20 2d 20 53 42 4c | 65 66 74 55 70 2e 57 20 |.W - SBL|eftUp.W |
|00001f80| 2d 20 53 42 52 69 67 68 | 74 55 70 2e 57 3b 0d 0a |- SBRigh|tUp.W;..|
|00001f90| 09 09 57 2e 45 64 69 74 | 42 6f 78 2e 57 69 6e 48 |..W.Edit|Box.WinH|
|00001fa0| 65 69 67 68 74 20 3d 20 | 57 2e 57 69 6e 48 65 69 |eight = |W.WinHei|
|00001fb0| 67 68 74 20 2d 20 4d 69 | 73 63 42 65 76 65 6c 54 |ght - Mi|scBevelT|
|00001fc0| 5b 32 5d 2e 48 20 2d 20 | 4d 69 73 63 42 65 76 65 |[2].H - |MiscBeve|
|00001fd0| 6c 42 5b 32 5d 2e 48 3b | 0d 0a 09 09 57 2e 42 75 |lB[2].H;|....W.Bu|
|00001fe0| 74 74 6f 6e 2e 57 69 6e | 4c 65 66 74 20 3d 20 57 |tton.Win|Left = W|
|00001ff0| 2e 57 69 6e 57 69 64 74 | 68 20 2d 20 43 6f 6d 62 |.WinWidt|h - Comb|
|00002000| 6f 42 74 6e 55 70 2e 57 | 20 2d 20 4d 69 73 63 42 |oBtnUp.W| - MiscB|
|00002010| 65 76 65 6c 52 5b 32 5d | 2e 57 20 2d 20 53 42 4c |evelR[2]|.W - SBL|
|00002020| 65 66 74 55 70 2e 57 20 | 2d 20 53 42 52 69 67 68 |eftUp.W |- SBRigh|
|00002030| 74 55 70 2e 57 3b 0d 0a | 09 09 57 2e 42 75 74 74 |tUp.W;..|..W.Butt|
|00002040| 6f 6e 2e 57 69 6e 54 6f | 70 20 3d 20 57 2e 45 64 |on.WinTo|p = W.Ed|
|00002050| 69 74 42 6f 78 2e 57 69 | 6e 54 6f 70 3b 0d 0a 0d |itBox.Wi|nTop;...|
|00002060| 0a 09 09 57 2e 4c 65 66 | 74 42 75 74 74 6f 6e 2e |...W.Lef|tButton.|
|00002070| 57 69 6e 4c 65 66 74 20 | 3d 20 57 2e 57 69 6e 57 |WinLeft |= W.WinW|
|00002080| 69 64 74 68 20 2d 20 4d | 69 73 63 42 65 76 65 6c |idth - M|iscBevel|
|00002090| 52 5b 32 5d 2e 57 20 2d | 20 53 42 4c 65 66 74 55 |R[2].W -| SBLeftU|
|000020a0| 70 2e 57 20 2d 20 53 42 | 52 69 67 68 74 55 70 2e |p.W - SB|RightUp.|
|000020b0| 57 3b 0d 0a 09 09 57 2e | 4c 65 66 74 42 75 74 74 |W;....W.|LeftButt|
|000020c0| 6f 6e 2e 57 69 6e 54 6f | 70 20 3d 20 57 2e 45 64 |on.WinTo|p = W.Ed|
|000020d0| 69 74 42 6f 78 2e 57 69 | 6e 54 6f 70 3b 0d 0a 09 |itBox.Wi|nTop;...|
|000020e0| 09 57 2e 52 69 67 68 74 | 42 75 74 74 6f 6e 2e 57 |.W.Right|Button.W|
|000020f0| 69 6e 4c 65 66 74 20 3d | 20 57 2e 57 69 6e 57 69 |inLeft =| W.WinWi|
|00002100| 64 74 68 20 2d 20 4d 69 | 73 63 42 65 76 65 6c 52 |dth - Mi|scBevelR|
|00002110| 5b 32 5d 2e 57 20 2d 20 | 53 42 52 69 67 68 74 55 |[2].W - |SBRightU|
|00002120| 70 2e 57 3b 0d 0a 09 09 | 57 2e 52 69 67 68 74 42 |p.W;....|W.RightB|
|00002130| 75 74 74 6f 6e 2e 57 69 | 6e 54 6f 70 20 3d 20 57 |utton.Wi|nTop = W|
|00002140| 2e 45 64 69 74 42 6f 78 | 2e 57 69 6e 54 6f 70 3b |.EditBox|.WinTop;|
|00002150| 0d 0a 0d 0a 09 09 57 2e | 4c 65 66 74 42 75 74 74 |......W.|LeftButt|
|00002160| 6f 6e 2e 57 69 6e 57 69 | 64 74 68 20 3d 20 53 42 |on.WinWi|dth = SB|
|00002170| 4c 65 66 74 55 70 2e 57 | 3b 0d 0a 09 09 57 2e 4c |LeftUp.W|;....W.L|
|00002180| 65 66 74 42 75 74 74 6f | 6e 2e 57 69 6e 48 65 69 |eftButto|n.WinHei|
|00002190| 67 68 74 20 3d 20 53 42 | 4c 65 66 74 55 70 2e 48 |ght = SB|LeftUp.H|
|000021a0| 3b 0d 0a 09 09 57 2e 52 | 69 67 68 74 42 75 74 74 |;....W.R|ightButt|
|000021b0| 6f 6e 2e 57 69 6e 57 69 | 64 74 68 20 3d 20 53 42 |on.WinWi|dth = SB|
|000021c0| 52 69 67 68 74 55 70 2e | 57 3b 0d 0a 09 09 57 2e |RightUp.|W;....W.|
|000021d0| 52 69 67 68 74 42 75 74 | 74 6f 6e 2e 57 69 6e 48 |RightBut|ton.WinH|
|000021e0| 65 69 67 68 74 20 3d 20 | 53 42 52 69 67 68 74 55 |eight = |SBRightU|
|000021f0| 70 2e 48 3b 0d 0a 09 7d | 0d 0a 09 65 6c 73 65 0d |p.H;...}|...else.|
|00002200| 0a 09 7b 0d 0a 09 09 57 | 2e 45 64 69 74 42 6f 78 |..{....W|.EditBox|
|00002210| 2e 57 69 6e 57 69 64 74 | 68 20 3d 20 57 2e 45 64 |.WinWidt|h = W.Ed|
|00002220| 69 74 42 6f 78 57 69 64 | 74 68 20 2d 20 4d 69 73 |itBoxWid|th - Mis|
|00002230| 63 42 65 76 65 6c 4c 5b | 32 5d 2e 57 20 2d 20 4d |cBevelL[|2].W - M|
|00002240| 69 73 63 42 65 76 65 6c | 52 5b 32 5d 2e 57 20 2d |iscBevel|R[2].W -|
|00002250| 20 43 6f 6d 62 6f 42 74 | 6e 55 70 2e 57 3b 0d 0a | ComboBt|nUp.W;..|
|00002260| 09 09 57 2e 45 64 69 74 | 42 6f 78 2e 57 69 6e 48 |..W.Edit|Box.WinH|
|00002270| 65 69 67 68 74 20 3d 20 | 57 2e 57 69 6e 48 65 69 |eight = |W.WinHei|
|00002280| 67 68 74 20 2d 20 4d 69 | 73 63 42 65 76 65 6c 54 |ght - Mi|scBevelT|
|00002290| 5b 32 5d 2e 48 20 2d 20 | 4d 69 73 63 42 65 76 65 |[2].H - |MiscBeve|
|000022a0| 6c 42 5b 32 5d 2e 48 3b | 0d 0a 09 09 57 2e 42 75 |lB[2].H;|....W.Bu|
|000022b0| 74 74 6f 6e 2e 57 69 6e | 4c 65 66 74 20 3d 20 57 |tton.Win|Left = W|
|000022c0| 2e 57 69 6e 57 69 64 74 | 68 20 2d 20 43 6f 6d 62 |.WinWidt|h - Comb|
|000022d0| 6f 42 74 6e 55 70 2e 57 | 20 2d 20 4d 69 73 63 42 |oBtnUp.W| - MiscB|
|000022e0| 65 76 65 6c 52 5b 32 5d | 2e 57 3b 0d 0a 09 09 57 |evelR[2]|.W;....W|
|000022f0| 2e 42 75 74 74 6f 6e 2e | 57 69 6e 54 6f 70 20 3d |.Button.|WinTop =|
|00002300| 20 57 2e 45 64 69 74 42 | 6f 78 2e 57 69 6e 54 6f | W.EditB|ox.WinTo|
|00002310| 70 3b 0d 0a 09 7d 0d 0a | 09 57 2e 42 75 74 74 6f |p;...}..|.W.Butto|
|00002320| 6e 2e 57 69 6e 48 65 69 | 67 68 74 20 3d 20 57 2e |n.WinHei|ght = W.|
|00002330| 45 64 69 74 42 6f 78 2e | 57 69 6e 48 65 69 67 68 |EditBox.|WinHeigh|
|00002340| 74 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |t;..}...|.functio|
|00002350| 6e 20 43 6f 6d 62 6f 5f | 44 72 61 77 28 55 57 69 |n Combo_|Draw(UWi|
|00002360| 6e 64 6f 77 43 6f 6d 62 | 6f 43 6f 6e 74 72 6f 6c |ndowComb|oControl|
|00002370| 20 57 2c 20 43 61 6e 76 | 61 73 20 43 29 0d 0a 7b | W, Canv|as C)..{|
|00002380| 0d 0a 09 57 2e 44 72 61 | 77 4d 69 73 63 42 65 76 |...W.Dra|wMiscBev|
|00002390| 65 6c 28 43 2c 20 57 2e | 45 64 69 74 41 72 65 61 |el(C, W.|EditArea|
|000023a0| 44 72 61 77 58 2c 20 30 | 2c 20 57 2e 45 64 69 74 |DrawX, 0|, W.Edit|
|000023b0| 42 6f 78 57 69 64 74 68 | 2c 20 57 2e 57 69 6e 48 |BoxWidth|, W.WinH|
|000023c0| 65 69 67 68 74 2c 20 4d | 69 73 63 2c 20 32 29 3b |eight, M|isc, 2);|
|000023d0| 0d 0a 0d 0a 09 69 66 28 | 57 2e 54 65 78 74 20 21 |.....if(|W.Text !|
|000023e0| 3d 20 22 22 29 0d 0a 09 | 7b 0d 0a 09 09 43 2e 44 |= "")...|{....C.D|
|000023f0| 72 61 77 43 6f 6c 6f 72 | 20 3d 20 57 2e 54 65 78 |rawColor| = W.Tex|
|00002400| 74 43 6f 6c 6f 72 3b 0d | 0a 09 09 57 2e 43 6c 69 |tColor;.|...W.Cli|
|00002410| 70 54 65 78 74 28 43 2c | 20 57 2e 54 65 78 74 58 |pText(C,| W.TextX|
|00002420| 2c 20 57 2e 54 65 78 74 | 59 2c 20 57 2e 54 65 78 |, W.Text|Y, W.Tex|
|00002430| 74 29 3b 0d 0a 09 09 43 | 2e 44 72 61 77 43 6f 6c |t);....C|.DrawCol|
|00002440| 6f 72 2e 52 20 3d 20 32 | 35 35 3b 0d 0a 09 09 43 |or.R = 2|55;....C|
|00002450| 2e 44 72 61 77 43 6f 6c | 6f 72 2e 47 20 3d 20 32 |.DrawCol|or.G = 2|
|00002460| 35 35 3b 0d 0a 09 09 43 | 2e 44 72 61 77 43 6f 6c |55;....C|.DrawCol|
|00002470| 6f 72 2e 42 20 3d 20 32 | 35 35 3b 0d 0a 09 7d 0d |or.B = 2|55;...}.|
|00002480| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 43 |.}....fu|nction C|
|00002490| 6f 6d 62 6f 4c 69 73 74 | 5f 44 72 61 77 42 61 63 |omboList|_DrawBac|
|000024a0| 6b 67 72 6f 75 6e 64 28 | 55 57 69 6e 64 6f 77 43 |kground(|UWindowC|
|000024b0| 6f 6d 62 6f 4c 69 73 74 | 20 57 2c 20 43 61 6e 76 |omboList| W, Canv|
|000024c0| 61 73 20 43 29 0d 0a 7b | 0d 0a 09 57 2e 44 72 61 |as C)..{|...W.Dra|
|000024d0| 77 43 6c 69 70 70 65 64 | 54 65 78 74 75 72 65 28 |wClipped|Texture(|
|000024e0| 43 2c 20 30 2c 20 30 2c | 20 54 65 78 74 75 72 65 |C, 0, 0,| Texture|
|000024f0| 27 55 57 69 6e 64 6f 77 | 2e 4d 65 6e 75 54 4c 27 |'UWindow|.MenuTL'|
|00002500| 29 3b 0d 0a 09 57 2e 44 | 72 61 77 53 74 72 65 74 |);...W.D|rawStret|
|00002510| 63 68 65 64 54 65 78 74 | 75 72 65 28 43 2c 20 34 |chedText|ure(C, 4|
|00002520| 2c 20 30 2c 20 57 2e 57 | 69 6e 57 69 64 74 68 2d |, 0, W.W|inWidth-|
|00002530| 38 2c 20 34 2c 20 54 65 | 78 74 75 72 65 27 55 57 |8, 4, Te|xture'UW|
|00002540| 69 6e 64 6f 77 2e 4d 65 | 6e 75 54 27 29 3b 0d 0a |indow.Me|nuT');..|
|00002550| 09 57 2e 44 72 61 77 43 | 6c 69 70 70 65 64 54 65 |.W.DrawC|lippedTe|
|00002560| 78 74 75 72 65 28 43 2c | 20 57 2e 57 69 6e 57 69 |xture(C,| W.WinWi|
|00002570| 64 74 68 2d 34 2c 20 30 | 2c 20 54 65 78 74 75 72 |dth-4, 0|, Textur|
|00002580| 65 27 55 57 69 6e 64 6f | 77 2e 4d 65 6e 75 54 52 |e'UWindo|w.MenuTR|
|00002590| 27 29 3b 0d 0a 0d 0a 09 | 57 2e 44 72 61 77 43 6c |');.....|W.DrawCl|
|000025a0| 69 70 70 65 64 54 65 78 | 74 75 72 65 28 43 2c 20 |ippedTex|ture(C, |
|000025b0| 30 2c 20 57 2e 57 69 6e | 48 65 69 67 68 74 2d 34 |0, W.Win|Height-4|
|000025c0| 2c 20 54 65 78 74 75 72 | 65 27 55 57 69 6e 64 6f |, Textur|e'UWindo|
|000025d0| 77 2e 4d 65 6e 75 42 4c | 27 29 3b 0d 0a 09 57 2e |w.MenuBL|');...W.|
|000025e0| 44 72 61 77 53 74 72 65 | 74 63 68 65 64 54 65 78 |DrawStre|tchedTex|
|000025f0| 74 75 72 65 28 43 2c 20 | 34 2c 20 57 2e 57 69 6e |ture(C, |4, W.Win|
|00002600| 48 65 69 67 68 74 2d 34 | 2c 20 57 2e 57 69 6e 57 |Height-4|, W.WinW|
|00002610| 69 64 74 68 2d 38 2c 20 | 34 2c 20 54 65 78 74 75 |idth-8, |4, Textu|
|00002620| 72 65 27 55 57 69 6e 64 | 6f 77 2e 4d 65 6e 75 42 |re'UWind|ow.MenuB|
|00002630| 27 29 3b 0d 0a 09 57 2e | 44 72 61 77 43 6c 69 70 |');...W.|DrawClip|
|00002640| 70 65 64 54 65 78 74 75 | 72 65 28 43 2c 20 57 2e |pedTextu|re(C, W.|
|00002650| 57 69 6e 57 69 64 74 68 | 2d 34 2c 20 57 2e 57 69 |WinWidth|-4, W.Wi|
|00002660| 6e 48 65 69 67 68 74 2d | 34 2c 20 54 65 78 74 75 |nHeight-|4, Textu|
|00002670| 72 65 27 55 57 69 6e 64 | 6f 77 2e 4d 65 6e 75 42 |re'UWind|ow.MenuB|
|00002680| 52 27 29 3b 0d 0a 0d 0a | 09 57 2e 44 72 61 77 53 |R');....|.W.DrawS|
|00002690| 74 72 65 74 63 68 65 64 | 54 65 78 74 75 72 65 28 |tretched|Texture(|
|000026a0| 43 2c 20 30 2c 20 34 2c | 20 34 2c 20 57 2e 57 69 |C, 0, 4,| 4, W.Wi|
|000026b0| 6e 48 65 69 67 68 74 2d | 38 2c 20 54 65 78 74 75 |nHeight-|8, Textu|
|000026c0| 72 65 27 55 57 69 6e 64 | 6f 77 2e 4d 65 6e 75 4c |re'UWind|ow.MenuL|
|000026d0| 27 29 3b 0d 0a 09 57 2e | 44 72 61 77 53 74 72 65 |');...W.|DrawStre|
|000026e0| 74 63 68 65 64 54 65 78 | 74 75 72 65 28 43 2c 20 |tchedTex|ture(C, |
|000026f0| 57 2e 57 69 6e 57 69 64 | 74 68 2d 34 2c 20 34 2c |W.WinWid|th-4, 4,|
|00002700| 20 34 2c 20 57 2e 57 69 | 6e 48 65 69 67 68 74 2d | 4, W.Wi|nHeight-|
|00002710| 38 2c 20 54 65 78 74 75 | 72 65 27 55 57 69 6e 64 |8, Textu|re'UWind|
|00002720| 6f 77 2e 4d 65 6e 75 52 | 27 29 3b 0d 0a 0d 0a 09 |ow.MenuR|');.....|
|00002730| 57 2e 44 72 61 77 53 74 | 72 65 74 63 68 65 64 54 |W.DrawSt|retchedT|
|00002740| 65 78 74 75 72 65 28 43 | 2c 20 34 2c 20 34 2c 20 |exture(C|, 4, 4, |
|00002750| 57 2e 57 69 6e 57 69 64 | 74 68 2d 38 2c 20 57 2e |W.WinWid|th-8, W.|
|00002760| 57 69 6e 48 65 69 67 68 | 74 2d 38 2c 20 54 65 78 |WinHeigh|t-8, Tex|
|00002770| 74 75 72 65 27 55 57 69 | 6e 64 6f 77 2e 4d 65 6e |ture'UWi|ndow.Men|
|00002780| 75 41 72 65 61 27 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |uArea');|..}....f|
|00002790| 75 6e 63 74 69 6f 6e 20 | 43 6f 6d 62 6f 4c 69 73 |unction |ComboLis|
|000027a0| 74 5f 44 72 61 77 49 74 | 65 6d 28 55 57 69 6e 64 |t_DrawIt|em(UWind|
|000027b0| 6f 77 43 6f 6d 62 6f 4c | 69 73 74 20 43 6f 6d 62 |owComboL|ist Comb|
|000027c0| 6f 2c 20 43 61 6e 76 61 | 73 20 43 2c 20 66 6c 6f |o, Canva|s C, flo|
|000027d0| 61 74 20 58 2c 20 66 6c | 6f 61 74 20 59 2c 20 66 |at X, fl|oat Y, f|
|000027e0| 6c 6f 61 74 20 57 2c 20 | 66 6c 6f 61 74 20 48 2c |loat W, |float H,|
|000027f0| 20 73 74 72 69 6e 67 20 | 54 65 78 74 2c 20 62 6f | string |Text, bo|
|00002800| 6f 6c 20 62 53 65 6c 65 | 63 74 65 64 29 0d 0a 7b |ol bSele|cted)..{|
|00002810| 0d 0a 09 43 2e 44 72 61 | 77 43 6f 6c 6f 72 2e 52 |...C.Dra|wColor.R|
|00002820| 20 3d 20 32 35 35 3b 0d | 0a 09 43 2e 44 72 61 77 | = 255;.|..C.Draw|
|00002830| 43 6f 6c 6f 72 2e 47 20 | 3d 20 32 35 35 3b 0d 0a |Color.G |= 255;..|
|00002840| 09 43 2e 44 72 61 77 43 | 6f 6c 6f 72 2e 42 20 3d |.C.DrawC|olor.B =|
|00002850| 20 32 35 35 3b 0d 0a 0d | 0a 09 69 66 28 62 53 65 | 255;...|..if(bSe|
|00002860| 6c 65 63 74 65 64 29 0d | 0a 09 7b 0d 0a 09 09 43 |lected).|..{....C|
|00002870| 6f 6d 62 6f 2e 44 72 61 | 77 53 74 72 65 74 63 68 |ombo.Dra|wStretch|
|00002880| 65 64 54 65 78 74 75 72 | 65 28 43 2c 20 58 2c 20 |edTextur|e(C, X, |
|00002890| 59 2c 20 57 2c 20 48 2c | 20 54 65 78 74 75 72 65 |Y, W, H,| Texture|
|000028a0| 27 55 57 69 6e 64 6f 77 | 2e 4d 65 6e 75 48 69 67 |'UWindow|.MenuHig|
|000028b0| 68 6c 69 67 68 74 27 29 | 3b 0d 0a 09 09 43 2e 44 |hlight')|;....C.D|
|000028c0| 72 61 77 43 6f 6c 6f 72 | 2e 52 20 3d 20 30 3b 0d |rawColor|.R = 0;.|
|000028d0| 0a 09 09 43 2e 44 72 61 | 77 43 6f 6c 6f 72 2e 47 |...C.Dra|wColor.G|
|000028e0| 20 3d 20 30 3b 0d 0a 09 | 09 43 2e 44 72 61 77 43 | = 0;...|.C.DrawC|
|000028f0| 6f 6c 6f 72 2e 42 20 3d | 20 30 3b 0d 0a 09 7d 0d |olor.B =| 0;...}.|
|00002900| 0a 09 65 6c 73 65 0d 0a | 09 7b 0d 0a 09 09 43 2e |..else..|.{....C.|
|00002910| 44 72 61 77 43 6f 6c 6f | 72 2e 52 20 3d 20 30 3b |DrawColo|r.R = 0;|
|00002920| 0d 0a 09 09 43 2e 44 72 | 61 77 43 6f 6c 6f 72 2e |....C.Dr|awColor.|
|00002930| 47 20 3d 20 30 3b 0d 0a | 09 09 43 2e 44 72 61 77 |G = 0;..|..C.Draw|
|00002940| 43 6f 6c 6f 72 2e 42 20 | 3d 20 30 3b 0d 0a 09 7d |Color.B |= 0;...}|
|00002950| 0d 0a 0d 0a 09 43 6f 6d | 62 6f 2e 43 6c 69 70 54 |.....Com|bo.ClipT|
|00002960| 65 78 74 28 43 2c 20 58 | 20 2b 20 43 6f 6d 62 6f |ext(C, X| + Combo|
|00002970| 2e 54 65 78 74 42 6f 72 | 64 65 72 20 2b 20 32 2c |.TextBor|der + 2,|
|00002980| 20 59 20 2b 20 33 2c 20 | 54 65 78 74 29 3b 0d 0a | Y + 3, |Text);..|
|00002990| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 43 68 |}....fun|ction Ch|
|000029a0| 65 63 6b 62 6f 78 5f 53 | 65 74 75 70 53 69 7a 65 |eckbox_S|etupSize|
|000029b0| 73 28 55 57 69 6e 64 6f | 77 43 68 65 63 6b 62 6f |s(UWindo|wCheckbo|
|000029c0| 78 20 57 2c 20 43 61 6e | 76 61 73 20 43 29 0d 0a |x W, Can|vas C)..|
|000029d0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 66 6c 6f 61 74 20 |{...loca|l float |
|000029e0| 54 57 2c 20 54 48 3b 0d | 0a 0d 0a 09 57 2e 54 65 |TW, TH;.|....W.Te|
|000029f0| 78 74 53 69 7a 65 28 43 | 2c 20 57 2e 54 65 78 74 |xtSize(C|, W.Text|
|00002a00| 2c 20 54 57 2c 20 54 48 | 29 3b 0d 0a 09 57 2e 57 |, TW, TH|);...W.W|
|00002a10| 69 6e 48 65 69 67 68 74 | 20 3d 20 4d 61 78 28 54 |inHeight| = Max(T|
|00002a20| 48 2b 31 2c 20 31 36 29 | 3b 0d 0a 09 0d 0a 09 73 |H+1, 16)|;......s|
|00002a30| 77 69 74 63 68 28 57 2e | 41 6c 69 67 6e 29 0d 0a |witch(W.|Align)..|
|00002a40| 09 7b 0d 0a 09 63 61 73 | 65 20 54 41 5f 4c 65 66 |.{...cas|e TA_Lef|
|00002a50| 74 3a 0d 0a 09 09 57 2e | 49 6d 61 67 65 58 20 3d |t:....W.|ImageX =|
|00002a60| 20 57 2e 57 69 6e 57 69 | 64 74 68 20 2d 20 31 36 | W.WinWi|dth - 16|
|00002a70| 3b 0d 0a 09 09 57 2e 54 | 65 78 74 58 20 3d 20 30 |;....W.T|extX = 0|
|00002a80| 3b 0d 0a 09 09 62 72 65 | 61 6b 3b 0d 0a 09 63 61 |;....bre|ak;...ca|
|00002a90| 73 65 20 54 41 5f 52 69 | 67 68 74 3a 0d 0a 09 09 |se TA_Ri|ght:....|
|00002aa0| 57 2e 49 6d 61 67 65 58 | 20 3d 20 30 3b 09 0d 0a |W.ImageX| = 0;...|
|00002ab0| 09 09 57 2e 54 65 78 74 | 58 20 3d 20 57 2e 57 69 |..W.Text|X = W.Wi|
|00002ac0| 6e 57 69 64 74 68 20 2d | 20 54 57 3b 0d 0a 09 09 |nWidth -| TW;....|
|00002ad0| 62 72 65 61 6b 3b 0d 0a | 09 63 61 73 65 20 54 41 |break;..|.case TA|
|00002ae0| 5f 43 65 6e 74 65 72 3a | 0d 0a 09 09 57 2e 49 6d |_Center:|....W.Im|
|00002af0| 61 67 65 58 20 3d 20 28 | 57 2e 57 69 6e 57 69 64 |ageX = (|W.WinWid|
|00002b00| 74 68 20 2d 20 31 36 29 | 20 2f 20 32 3b 0d 0a 09 |th - 16)| / 2;...|
|00002b10| 09 57 2e 54 65 78 74 58 | 20 3d 20 28 57 2e 57 69 |.W.TextX| = (W.Wi|
|00002b20| 6e 57 69 64 74 68 20 2d | 20 54 57 29 20 2f 20 32 |nWidth -| TW) / 2|
|00002b30| 3b 0d 0a 09 09 62 72 65 | 61 6b 3b 0d 0a 09 7d 0d |;....bre|ak;...}.|
|00002b40| 0a 0d 0a 09 57 2e 49 6d | 61 67 65 59 20 3d 20 28 |....W.Im|ageY = (|
|00002b50| 57 2e 57 69 6e 48 65 69 | 67 68 74 20 2d 20 31 36 |W.WinHei|ght - 16|
|00002b60| 29 20 2f 20 32 3b 0d 0a | 09 57 2e 54 65 78 74 59 |) / 2;..|.W.TextY|
|00002b70| 20 3d 20 28 57 2e 57 69 | 6e 48 65 69 67 68 74 20 | = (W.Wi|nHeight |
|00002b80| 2d 20 54 48 29 20 2f 20 | 32 3b 0d 0a 0d 0a 09 69 |- TH) / |2;.....i|
|00002b90| 66 28 57 2e 62 43 68 65 | 63 6b 65 64 29 20 0d 0a |f(W.bChe|cked) ..|
|00002ba0| 09 7b 0d 0a 09 09 57 2e | 55 70 54 65 78 74 75 72 |.{....W.|UpTextur|
|00002bb0| 65 20 3d 20 54 65 78 74 | 75 72 65 27 43 68 6b 43 |e = Text|ure'ChkC|
|00002bc0| 68 65 63 6b 65 64 27 3b | 0d 0a 09 09 57 2e 44 6f |hecked';|....W.Do|
|00002bd0| 77 6e 54 65 78 74 75 72 | 65 20 3d 20 54 65 78 74 |wnTextur|e = Text|
|00002be0| 75 72 65 27 43 68 6b 43 | 68 65 63 6b 65 64 27 3b |ure'ChkC|hecked';|
|00002bf0| 0d 0a 09 09 57 2e 4f 76 | 65 72 54 65 78 74 75 72 |....W.Ov|erTextur|
|00002c00| 65 20 3d 20 54 65 78 74 | 75 72 65 27 43 68 6b 43 |e = Text|ure'ChkC|
|00002c10| 68 65 63 6b 65 64 27 3b | 0d 0a 09 09 57 2e 44 69 |hecked';|....W.Di|
|00002c20| 73 61 62 6c 65 64 54 65 | 78 74 75 72 65 20 3d 20 |sabledTe|xture = |
|00002c30| 54 65 78 74 75 72 65 27 | 43 68 6b 43 68 65 63 6b |Texture'|ChkCheck|
|00002c40| 65 64 44 69 73 61 62 6c | 65 64 27 3b 0d 0a 09 7d |edDisabl|ed';...}|
|00002c50| 0d 0a 09 65 6c 73 65 20 | 0d 0a 09 7b 0d 0a 09 09 |...else |...{....|
|00002c60| 57 2e 55 70 54 65 78 74 | 75 72 65 20 3d 20 54 65 |W.UpText|ure = Te|
|00002c70| 78 74 75 72 65 27 43 68 | 6b 55 6e 63 68 65 63 6b |xture'Ch|kUncheck|
|00002c80| 65 64 27 3b 0d 0a 09 09 | 57 2e 44 6f 77 6e 54 65 |ed';....|W.DownTe|
|00002c90| 78 74 75 72 65 20 3d 20 | 54 65 78 74 75 72 65 27 |xture = |Texture'|
|00002ca0| 43 68 6b 55 6e 63 68 65 | 63 6b 65 64 27 3b 0d 0a |ChkUnche|cked';..|
|00002cb0| 09 09 57 2e 4f 76 65 72 | 54 65 78 74 75 72 65 20 |..W.Over|Texture |
|00002cc0| 3d 20 54 65 78 74 75 72 | 65 27 43 68 6b 55 6e 63 |= Textur|e'ChkUnc|
|00002cd0| 68 65 63 6b 65 64 27 3b | 0d 0a 09 09 57 2e 44 69 |hecked';|....W.Di|
|00002ce0| 73 61 62 6c 65 64 54 65 | 78 74 75 72 65 20 3d 20 |sabledTe|xture = |
|00002cf0| 54 65 78 74 75 72 65 27 | 43 68 6b 55 6e 63 68 65 |Texture'|ChkUnche|
|00002d00| 63 6b 65 64 44 69 73 61 | 62 6c 65 64 27 3b 0d 0a |ckedDisa|bled';..|
|00002d10| 09 7d 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |.}..}...|.functio|
|00002d20| 6e 20 43 6f 6d 62 6f 5f | 47 65 74 42 75 74 74 6f |n Combo_|GetButto|
|00002d30| 6e 42 69 74 6d 61 70 73 | 28 55 57 69 6e 64 6f 77 |nBitmaps|(UWindow|
|00002d40| 43 6f 6d 62 6f 42 75 74 | 74 6f 6e 20 57 29 0d 0a |ComboBut|ton W)..|
|00002d50| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 54 65 78 74 75 72 |{...loca|l Textur|
|00002d60| 65 20 54 3b 0d 0a 0d 0a | 09 54 20 3d 20 57 2e 47 |e T;....|.T = W.G|
|00002d70| 65 74 4c 6f 6f 6b 41 6e | 64 46 65 65 6c 54 65 78 |etLookAn|dFeelTex|
|00002d80| 74 75 72 65 28 29 3b 0d | 0a 09 0d 0a 09 57 2e 62 |ture();.|.....W.b|
|00002d90| 55 73 65 52 65 67 69 6f | 6e 20 3d 20 54 72 75 65 |UseRegio|n = True|
|00002da0| 3b 0d 0a 0d 0a 09 57 2e | 55 70 54 65 78 74 75 72 |;.....W.|UpTextur|
|00002db0| 65 20 3d 20 54 3b 0d 0a | 09 57 2e 44 6f 77 6e 54 |e = T;..|.W.DownT|
|00002dc0| 65 78 74 75 72 65 20 3d | 20 54 3b 0d 0a 09 57 2e |exture =| T;...W.|
|00002dd0| 4f 76 65 72 54 65 78 74 | 75 72 65 20 3d 20 54 3b |OverText|ure = T;|
|00002de0| 0d 0a 09 57 2e 44 69 73 | 61 62 6c 65 64 54 65 78 |...W.Dis|abledTex|
|00002df0| 74 75 72 65 20 3d 20 54 | 3b 0d 0a 0d 0a 09 57 2e |ture = T|;.....W.|
|00002e00| 55 70 52 65 67 69 6f 6e | 20 3d 20 43 6f 6d 62 6f |UpRegion| = Combo|
|00002e10| 42 74 6e 55 70 3b 0d 0a | 09 57 2e 44 6f 77 6e 52 |BtnUp;..|.W.DownR|
|00002e20| 65 67 69 6f 6e 20 3d 20 | 43 6f 6d 62 6f 42 74 6e |egion = |ComboBtn|
|00002e30| 44 6f 77 6e 3b 0d 0a 09 | 57 2e 4f 76 65 72 52 65 |Down;...|W.OverRe|
|00002e40| 67 69 6f 6e 20 3d 20 43 | 6f 6d 62 6f 42 74 6e 55 |gion = C|omboBtnU|
|00002e50| 70 3b 0d 0a 09 57 2e 44 | 69 73 61 62 6c 65 64 52 |p;...W.D|isabledR|
|00002e60| 65 67 69 6f 6e 20 3d 20 | 43 6f 6d 62 6f 42 74 6e |egion = |ComboBtn|
|00002e70| 44 69 73 61 62 6c 65 64 | 3b 0d 0a 7d 0d 0a 0d 0a |Disabled|;..}....|
|00002e80| 66 75 6e 63 74 69 6f 6e | 20 45 64 69 74 62 6f 78 |function| Editbox|
|00002e90| 5f 53 65 74 75 70 53 69 | 7a 65 73 28 55 57 69 6e |_SetupSi|zes(UWin|
|00002ea0| 64 6f 77 45 64 69 74 43 | 6f 6e 74 72 6f 6c 20 57 |dowEditC|ontrol W|
|00002eb0| 2c 20 43 61 6e 76 61 73 | 20 43 29 0d 0a 7b 0d 0a |, Canvas| C)..{..|
|00002ec0| 09 6c 6f 63 61 6c 20 66 | 6c 6f 61 74 20 54 57 2c |.local f|loat TW,|
|00002ed0| 20 54 48 3b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 | TH;...l|ocal int|
|00002ee0| 20 42 3b 0d 0a 0d 0a 09 | 42 20 3d 20 45 64 69 74 | B;.....|B = Edit|
|00002ef0| 42 6f 78 42 65 76 65 6c | 3b 0d 0a 09 09 0d 0a 09 |BoxBevel|;.......|
|00002f00| 43 2e 46 6f 6e 74 20 3d | 20 57 2e 52 6f 6f 74 2e |C.Font =| W.Root.|
|00002f10| 46 6f 6e 74 73 5b 57 2e | 46 6f 6e 74 5d 3b 0d 0a |Fonts[W.|Font];..|
|00002f20| 09 57 2e 54 65 78 74 53 | 69 7a 65 28 43 2c 20 57 |.W.TextS|ize(C, W|
|00002f30| 2e 54 65 78 74 2c 20 54 | 57 2c 20 54 48 29 3b 0d |.Text, T|W, TH);.|
|00002f40| 0a 09 0d 0a 09 57 2e 57 | 69 6e 48 65 69 67 68 74 |.....W.W|inHeight|
|00002f50| 20 3d 20 31 32 20 2b 20 | 4d 69 73 63 42 65 76 65 | = 12 + |MiscBeve|
|00002f60| 6c 54 5b 42 5d 2e 48 20 | 2b 20 4d 69 73 63 42 65 |lT[B].H |+ MiscBe|
|00002f70| 76 65 6c 42 5b 42 5d 2e | 48 3b 0d 0a 09 0d 0a 09 |velB[B].|H;......|
|00002f80| 73 77 69 74 63 68 28 57 | 2e 41 6c 69 67 6e 29 0d |switch(W|.Align).|
|00002f90| 0a 09 7b 0d 0a 09 63 61 | 73 65 20 54 41 5f 4c 65 |..{...ca|se TA_Le|
|00002fa0| 66 74 3a 0d 0a 09 09 57 | 2e 45 64 69 74 41 72 65 |ft:....W|.EditAre|
|00002fb0| 61 44 72 61 77 58 20 3d | 20 57 2e 57 69 6e 57 69 |aDrawX =| W.WinWi|
|00002fc0| 64 74 68 20 2d 20 57 2e | 45 64 69 74 42 6f 78 57 |dth - W.|EditBoxW|
|00002fd0| 69 64 74 68 3b 0d 0a 09 | 09 57 2e 54 65 78 74 58 |idth;...|.W.TextX|
|00002fe0| 20 3d 20 30 3b 0d 0a 09 | 09 62 72 65 61 6b 3b 0d | = 0;...|.break;.|
|00002ff0| 0a 09 63 61 73 65 20 54 | 41 5f 52 69 67 68 74 3a |..case T|A_Right:|
|00003000| 0d 0a 09 09 57 2e 45 64 | 69 74 41 72 65 61 44 72 |....W.Ed|itAreaDr|
|00003010| 61 77 58 20 3d 20 30 3b | 09 0d 0a 09 09 57 2e 54 |awX = 0;|.....W.T|
|00003020| 65 78 74 58 20 3d 20 57 | 2e 57 69 6e 57 69 64 74 |extX = W|.WinWidt|
|00003030| 68 20 2d 20 54 57 3b 0d | 0a 09 09 62 72 65 61 6b |h - TW;.|...break|
|00003040| 3b 0d 0a 09 63 61 73 65 | 20 54 41 5f 43 65 6e 74 |;...case| TA_Cent|
|00003050| 65 72 3a 0d 0a 09 09 57 | 2e 45 64 69 74 41 72 65 |er:....W|.EditAre|
|00003060| 61 44 72 61 77 58 20 3d | 20 28 57 2e 57 69 6e 57 |aDrawX =| (W.WinW|
|00003070| 69 64 74 68 20 2d 20 57 | 2e 45 64 69 74 42 6f 78 |idth - W|.EditBox|
|00003080| 57 69 64 74 68 29 20 2f | 20 32 3b 0d 0a 09 09 57 |Width) /| 2;....W|
|00003090| 2e 54 65 78 74 58 20 3d | 20 28 57 2e 57 69 6e 57 |.TextX =| (W.WinW|
|000030a0| 69 64 74 68 20 2d 20 54 | 57 29 20 2f 20 32 3b 0d |idth - T|W) / 2;.|
|000030b0| 0a 09 09 62 72 65 61 6b | 3b 0d 0a 09 7d 0d 0a 0d |...break|;...}...|
|000030c0| 0a 09 57 2e 45 64 69 74 | 41 72 65 61 44 72 61 77 |..W.Edit|AreaDraw|
|000030d0| 59 20 3d 20 28 57 2e 57 | 69 6e 48 65 69 67 68 74 |Y = (W.W|inHeight|
|000030e0| 20 2d 20 32 29 20 2f 20 | 32 3b 0d 0a 09 57 2e 54 | - 2) / |2;...W.T|
|000030f0| 65 78 74 59 20 3d 20 28 | 57 2e 57 69 6e 48 65 69 |extY = (|W.WinHei|
|00003100| 67 68 74 20 2d 20 54 48 | 29 20 2f 20 32 3b 0d 0a |ght - TH|) / 2;..|
|00003110| 0d 0a 09 57 2e 45 64 69 | 74 42 6f 78 2e 57 69 6e |...W.Edi|tBox.Win|
|00003120| 4c 65 66 74 20 3d 20 57 | 2e 45 64 69 74 41 72 65 |Left = W|.EditAre|
|00003130| 61 44 72 61 77 58 20 2b | 20 4d 69 73 63 42 65 76 |aDrawX +| MiscBev|
|00003140| 65 6c 4c 5b 42 5d 2e 57 | 3b 0d 0a 09 57 2e 45 64 |elL[B].W|;...W.Ed|
|00003150| 69 74 42 6f 78 2e 57 69 | 6e 54 6f 70 20 3d 20 4d |itBox.Wi|nTop = M|
|00003160| 69 73 63 42 65 76 65 6c | 54 5b 42 5d 2e 48 3b 0d |iscBevel|T[B].H;.|
|00003170| 0a 09 57 2e 45 64 69 74 | 42 6f 78 2e 57 69 6e 57 |..W.Edit|Box.WinW|
|00003180| 69 64 74 68 20 3d 20 57 | 2e 45 64 69 74 42 6f 78 |idth = W|.EditBox|
|00003190| 57 69 64 74 68 20 2d 20 | 4d 69 73 63 42 65 76 65 |Width - |MiscBeve|
|000031a0| 6c 4c 5b 42 5d 2e 57 20 | 2d 20 4d 69 73 63 42 65 |lL[B].W |- MiscBe|
|000031b0| 76 65 6c 52 5b 42 5d 2e | 57 3b 0d 0a 09 57 2e 45 |velR[B].|W;...W.E|
|000031c0| 64 69 74 42 6f 78 2e 57 | 69 6e 48 65 69 67 68 74 |ditBox.W|inHeight|
|000031d0| 20 3d 20 57 2e 57 69 6e | 48 65 69 67 68 74 20 2d | = W.Win|Height -|
|000031e0| 20 4d 69 73 63 42 65 76 | 65 6c 54 5b 42 5d 2e 48 | MiscBev|elT[B].H|
|000031f0| 20 2d 20 4d 69 73 63 42 | 65 76 65 6c 42 5b 42 5d | - MiscB|evelB[B]|
|00003200| 2e 48 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |.H;..}..|..functi|
|00003210| 6f 6e 20 45 64 69 74 62 | 6f 78 5f 44 72 61 77 28 |on Editb|ox_Draw(|
|00003220| 55 57 69 6e 64 6f 77 45 | 64 69 74 43 6f 6e 74 72 |UWindowE|ditContr|
|00003230| 6f 6c 20 57 2c 20 43 61 | 6e 76 61 73 20 43 29 0d |ol W, Ca|nvas C).|
|00003240| 0a 7b 0d 0a 09 57 2e 44 | 72 61 77 4d 69 73 63 42 |.{...W.D|rawMiscB|
|00003250| 65 76 65 6c 28 43 2c 20 | 57 2e 45 64 69 74 41 72 |evel(C, |W.EditAr|
|00003260| 65 61 44 72 61 77 58 2c | 20 30 2c 20 57 2e 45 64 |eaDrawX,| 0, W.Ed|
|00003270| 69 74 42 6f 78 57 69 64 | 74 68 2c 20 57 2e 57 69 |itBoxWid|th, W.Wi|
|00003280| 6e 48 65 69 67 68 74 2c | 20 4d 69 73 63 2c 20 45 |nHeight,| Misc, E|
|00003290| 64 69 74 42 6f 78 42 65 | 76 65 6c 29 3b 0d 0a 0d |ditBoxBe|vel);...|
|000032a0| 0a 09 69 66 28 57 2e 54 | 65 78 74 20 21 3d 20 22 |..if(W.T|ext != "|
|000032b0| 22 29 0d 0a 09 7b 0d 0a | 09 09 43 2e 44 72 61 77 |")...{..|..C.Draw|
|000032c0| 43 6f 6c 6f 72 20 3d 20 | 57 2e 54 65 78 74 43 6f |Color = |W.TextCo|
|000032d0| 6c 6f 72 3b 0d 0a 09 09 | 57 2e 43 6c 69 70 54 65 |lor;....|W.ClipTe|
|000032e0| 78 74 28 43 2c 20 57 2e | 54 65 78 74 58 2c 20 57 |xt(C, W.|TextX, W|
|000032f0| 2e 54 65 78 74 59 2c 20 | 57 2e 54 65 78 74 29 3b |.TextY, |W.Text);|
|00003300| 0d 0a 09 09 43 2e 44 72 | 61 77 43 6f 6c 6f 72 2e |....C.Dr|awColor.|
|00003310| 52 20 3d 20 32 35 35 3b | 0d 0a 09 09 43 2e 44 72 |R = 255;|....C.Dr|
|00003320| 61 77 43 6f 6c 6f 72 2e | 47 20 3d 20 32 35 35 3b |awColor.|G = 255;|
|00003330| 0d 0a 09 09 43 2e 44 72 | 61 77 43 6f 6c 6f 72 2e |....C.Dr|awColor.|
|00003340| 42 20 3d 20 32 35 35 3b | 0d 0a 09 7d 0d 0a 7d 0d |B = 255;|...}..}.|
|00003350| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 54 61 62 5f |...funct|ion Tab_|
|00003360| 44 72 61 77 54 61 62 28 | 55 57 69 6e 64 6f 77 54 |DrawTab(|UWindowT|
|00003370| 61 62 43 6f 6e 74 72 6f | 6c 54 61 62 41 72 65 61 |abContro|lTabArea|
|00003380| 20 54 61 62 2c 20 43 61 | 6e 76 61 73 20 43 2c 20 | Tab, Ca|nvas C, |
|00003390| 62 6f 6f 6c 20 62 41 63 | 74 69 76 65 54 61 62 2c |bool bAc|tiveTab,|
|000033a0| 20 62 6f 6f 6c 20 62 4c | 65 66 74 6d 6f 73 74 54 | bool bL|eftmostT|
|000033b0| 61 62 2c 20 66 6c 6f 61 | 74 20 58 2c 20 66 6c 6f |ab, floa|t X, flo|
|000033c0| 61 74 20 59 2c 20 66 6c | 6f 61 74 20 57 2c 20 66 |at Y, fl|oat W, f|
|000033d0| 6c 6f 61 74 20 48 2c 20 | 73 74 72 69 6e 67 20 54 |loat H, |string T|
|000033e0| 65 78 74 2c 20 62 6f 6f | 6c 20 62 53 68 6f 77 54 |ext, boo|l bShowT|
|000033f0| 65 78 74 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |ext)..{.|..local |
|00003400| 52 65 67 69 6f 6e 20 52 | 3b 0d 0a 09 6c 6f 63 61 |Region R|;...loca|
|00003410| 6c 20 54 65 78 74 75 72 | 65 20 54 3b 0d 0a 09 6c |l Textur|e T;...l|
|00003420| 6f 63 61 6c 20 66 6c 6f | 61 74 20 54 57 2c 20 54 |ocal flo|at TW, T|
|00003430| 48 3b 0d 0a 0d 0a 09 43 | 2e 44 72 61 77 43 6f 6c |H;.....C|.DrawCol|
|00003440| 6f 72 2e 52 20 3d 20 32 | 35 35 3b 0d 0a 09 43 2e |or.R = 2|55;...C.|
|00003450| 44 72 61 77 43 6f 6c 6f | 72 2e 47 20 3d 20 32 35 |DrawColo|r.G = 25|
|00003460| 35 3b 0d 0a 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |5;...C.D|rawColor|
|00003470| 2e 42 20 3d 20 32 35 35 | 3b 0d 0a 0d 0a 09 54 20 |.B = 255|;.....T |
|00003480| 3d 20 54 61 62 2e 47 65 | 74 4c 6f 6f 6b 41 6e 64 |= Tab.Ge|tLookAnd|
|00003490| 46 65 65 6c 54 65 78 74 | 75 72 65 28 29 3b 0d 0a |FeelText|ure();..|
|000034a0| 09 0d 0a 09 69 66 28 62 | 41 63 74 69 76 65 54 61 |....if(b|ActiveTa|
|000034b0| 62 29 0d 0a 09 7b 0d 0a | 09 09 52 20 3d 20 54 61 |b)...{..|..R = Ta|
|000034c0| 62 53 65 6c 65 63 74 65 | 64 4c 3b 0d 0a 09 09 54 |bSelecte|dL;....T|
|000034d0| 61 62 2e 44 72 61 77 53 | 74 72 65 74 63 68 65 64 |ab.DrawS|tretched|
|000034e0| 54 65 78 74 75 72 65 53 | 65 67 6d 65 6e 74 28 20 |TextureS|egment( |
|000034f0| 43 2c 20 58 2c 20 59 2c | 20 52 2e 57 2c 20 52 2e |C, X, Y,| R.W, R.|
|00003500| 48 2c 20 52 2e 58 2c 20 | 52 2e 59 2c 20 52 2e 57 |H, R.X, |R.Y, R.W|
|00003510| 2c 20 52 2e 48 2c 20 54 | 20 29 3b 0d 0a 0d 0a 09 |, R.H, T| );.....|
|00003520| 09 52 20 3d 20 54 61 62 | 53 65 6c 65 63 74 65 64 |.R = Tab|Selected|
|00003530| 4d 3b 0d 0a 09 09 54 61 | 62 2e 44 72 61 77 53 74 |M;....Ta|b.DrawSt|
|00003540| 72 65 74 63 68 65 64 54 | 65 78 74 75 72 65 53 65 |retchedT|extureSe|
|00003550| 67 6d 65 6e 74 28 20 43 | 2c 20 58 2b 54 61 62 53 |gment( C|, X+TabS|
|00003560| 65 6c 65 63 74 65 64 4c | 2e 57 2c 20 59 2c 20 0d |electedL|.W, Y, .|
|00003570| 0a 09 09 09 09 09 09 09 | 09 09 09 57 20 2d 20 54 |........|...W - T|
|00003580| 61 62 53 65 6c 65 63 74 | 65 64 4c 2e 57 0d 0a 09 |abSelect|edL.W...|
|00003590| 09 09 09 09 09 09 09 09 | 09 2d 20 54 61 62 53 65 |........|.- TabSe|
|000035a0| 6c 65 63 74 65 64 52 2e | 57 2c 0d 0a 09 09 09 09 |lectedR.|W,......|
|000035b0| 09 09 09 09 09 09 52 2e | 48 2c 20 52 2e 58 2c 20 |......R.|H, R.X, |
|000035c0| 52 2e 59 2c 20 52 2e 57 | 2c 20 52 2e 48 2c 20 54 |R.Y, R.W|, R.H, T|
|000035d0| 20 29 3b 0d 0a 0d 0a 09 | 09 52 20 3d 20 54 61 62 | );.....|.R = Tab|
|000035e0| 53 65 6c 65 63 74 65 64 | 52 3b 0d 0a 09 09 54 61 |Selected|R;....Ta|
|000035f0| 62 2e 44 72 61 77 53 74 | 72 65 74 63 68 65 64 54 |b.DrawSt|retchedT|
|00003600| 65 78 74 75 72 65 53 65 | 67 6d 65 6e 74 28 20 43 |extureSe|gment( C|
|00003610| 2c 20 58 20 2b 20 57 20 | 2d 20 52 2e 57 2c 20 59 |, X + W |- R.W, Y|
|00003620| 2c 20 52 2e 57 2c 20 52 | 2e 48 2c 20 52 2e 58 2c |, R.W, R|.H, R.X,|
|00003630| 20 52 2e 59 2c 20 52 2e | 57 2c 20 52 2e 48 2c 20 | R.Y, R.|W, R.H, |
|00003640| 54 20 29 3b 0d 0a 0d 0a | 09 09 43 2e 46 6f 6e 74 |T );....|..C.Font|
|00003650| 20 3d 20 54 61 62 2e 52 | 6f 6f 74 2e 46 6f 6e 74 | = Tab.R|oot.Font|
|00003660| 73 5b 54 61 62 2e 46 5f | 42 6f 6c 64 5d 3b 0d 0a |s[Tab.F_|Bold];..|
|00003670| 09 09 43 2e 44 72 61 77 | 43 6f 6c 6f 72 2e 52 20 |..C.Draw|Color.R |
|00003680| 3d 20 30 3b 0d 0a 09 09 | 43 2e 44 72 61 77 43 6f |= 0;....|C.DrawCo|
|00003690| 6c 6f 72 2e 47 20 3d 20 | 30 3b 0d 0a 09 09 43 2e |lor.G = |0;....C.|
|000036a0| 44 72 61 77 43 6f 6c 6f | 72 2e 42 20 3d 20 30 3b |DrawColo|r.B = 0;|
|000036b0| 0d 0a 0d 0a 09 09 69 66 | 28 62 53 68 6f 77 54 65 |......if|(bShowTe|
|000036c0| 78 74 29 0d 0a 09 09 7b | 0d 0a 09 09 09 54 61 62 |xt)....{|.....Tab|
|000036d0| 2e 54 65 78 74 53 69 7a | 65 28 43 2c 20 54 65 78 |.TextSiz|e(C, Tex|
|000036e0| 74 2c 20 54 57 2c 20 54 | 48 29 3b 0d 0a 09 09 09 |t, TW, T|H);.....|
|000036f0| 54 61 62 2e 43 6c 69 70 | 54 65 78 74 28 43 2c 20 |Tab.Clip|Text(C, |
|00003700| 58 20 2b 20 28 57 2d 54 | 57 29 2f 32 2c 20 59 20 |X + (W-T|W)/2, Y |
|00003710| 2b 20 33 2c 20 54 65 78 | 74 2c 20 54 72 75 65 29 |+ 3, Tex|t, True)|
|00003720| 3b 0d 0a 09 09 7d 0d 0a | 09 7d 0d 0a 09 65 6c 73 |;....}..|.}...els|
|00003730| 65 0d 0a 09 7b 0d 0a 09 | 09 52 20 3d 20 54 61 62 |e...{...|.R = Tab|
|00003740| 55 6e 73 65 6c 65 63 74 | 65 64 4c 3b 0d 0a 09 09 |Unselect|edL;....|
|00003750| 54 61 62 2e 44 72 61 77 | 53 74 72 65 74 63 68 65 |Tab.Draw|Stretche|
|00003760| 64 54 65 78 74 75 72 65 | 53 65 67 6d 65 6e 74 28 |dTexture|Segment(|
|00003770| 20 43 2c 20 58 2c 20 59 | 2c 20 52 2e 57 2c 20 52 | C, X, Y|, R.W, R|
|00003780| 2e 48 2c 20 52 2e 58 2c | 20 52 2e 59 2c 20 52 2e |.H, R.X,| R.Y, R.|
|00003790| 57 2c 20 52 2e 48 2c 20 | 54 20 29 3b 0d 0a 0d 0a |W, R.H, |T );....|
|000037a0| 09 09 52 20 3d 20 54 61 | 62 55 6e 73 65 6c 65 63 |..R = Ta|bUnselec|
|000037b0| 74 65 64 4d 3b 0d 0a 09 | 09 54 61 62 2e 44 72 61 |tedM;...|.Tab.Dra|
|000037c0| 77 53 74 72 65 74 63 68 | 65 64 54 65 78 74 75 72 |wStretch|edTextur|
|000037d0| 65 53 65 67 6d 65 6e 74 | 28 20 43 2c 20 58 2b 54 |eSegment|( C, X+T|
|000037e0| 61 62 55 6e 73 65 6c 65 | 63 74 65 64 4c 2e 57 2c |abUnsele|ctedL.W,|
|000037f0| 20 59 2c 20 0d 0a 09 09 | 09 09 09 09 09 09 09 09 | Y, ....|........|
|00003800| 57 20 2d 20 54 61 62 55 | 6e 73 65 6c 65 63 74 65 |W - TabU|nselecte|
|00003810| 64 4c 2e 57 0d 0a 09 09 | 09 09 09 09 09 09 09 09 |dL.W....|........|
|00003820| 2d 20 54 61 62 55 6e 73 | 65 6c 65 63 74 65 64 52 |- TabUns|electedR|
|00003830| 2e 57 2c 0d 0a 09 09 09 | 09 09 09 09 09 09 09 52 |.W,.....|.......R|
|00003840| 2e 48 2c 20 52 2e 58 2c | 20 52 2e 59 2c 20 52 2e |.H, R.X,| R.Y, R.|
|00003850| 57 2c 20 52 2e 48 2c 20 | 54 20 29 3b 0d 0a 0d 0a |W, R.H, |T );....|
|00003860| 09 09 52 20 3d 20 54 61 | 62 55 6e 73 65 6c 65 63 |..R = Ta|bUnselec|
|00003870| 74 65 64 52 3b 0d 0a 09 | 09 54 61 62 2e 44 72 61 |tedR;...|.Tab.Dra|
|00003880| 77 53 74 72 65 74 63 68 | 65 64 54 65 78 74 75 72 |wStretch|edTextur|
|00003890| 65 53 65 67 6d 65 6e 74 | 28 20 43 2c 20 58 20 2b |eSegment|( C, X +|
|000038a0| 20 57 20 2d 20 52 2e 57 | 2c 20 59 2c 20 52 2e 57 | W - R.W|, Y, R.W|
|000038b0| 2c 20 52 2e 48 2c 20 52 | 2e 58 2c 20 52 2e 59 2c |, R.H, R|.X, R.Y,|
|000038c0| 20 52 2e 57 2c 20 52 2e | 48 2c 20 54 20 29 3b 0d | R.W, R.|H, T );.|
|000038d0| 0a 0d 0a 09 09 43 2e 46 | 6f 6e 74 20 3d 20 54 61 |.....C.F|ont = Ta|
|000038e0| 62 2e 52 6f 6f 74 2e 46 | 6f 6e 74 73 5b 54 61 62 |b.Root.F|onts[Tab|
|000038f0| 2e 46 5f 4e 6f 72 6d 61 | 6c 5d 3b 0d 0a 09 09 43 |.F_Norma|l];....C|
|00003900| 2e 44 72 61 77 43 6f 6c | 6f 72 2e 52 20 3d 20 30 |.DrawCol|or.R = 0|
|00003910| 3b 0d 0a 09 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |;....C.D|rawColor|
|00003920| 2e 47 20 3d 20 30 3b 0d | 0a 09 09 43 2e 44 72 61 |.G = 0;.|...C.Dra|
|00003930| 77 43 6f 6c 6f 72 2e 42 | 20 3d 20 30 3b 0d 0a 0d |wColor.B| = 0;...|
|00003940| 0a 09 09 69 66 28 62 53 | 68 6f 77 54 65 78 74 29 |...if(bS|howText)|
|00003950| 0d 0a 09 09 7b 0d 0a 09 | 09 09 54 61 62 2e 54 65 |....{...|..Tab.Te|
|00003960| 78 74 53 69 7a 65 28 43 | 2c 20 54 65 78 74 2c 20 |xtSize(C|, Text, |
|00003970| 54 57 2c 20 54 48 29 3b | 0d 0a 09 09 09 54 61 62 |TW, TH);|.....Tab|
|00003980| 2e 43 6c 69 70 54 65 78 | 74 28 43 2c 20 58 20 2b |.ClipTex|t(C, X +|
|00003990| 20 28 57 2d 54 57 29 2f | 32 2c 20 59 20 2b 20 34 | (W-TW)/|2, Y + 4|
|000039a0| 2c 20 54 65 78 74 2c 20 | 54 72 75 65 29 3b 0d 0a |, Text, |True);..|
|000039b0| 09 09 7d 0d 0a 09 7d 0d | 0a 7d 0d 0a 0d 0a 66 75 |..}...}.|.}....fu|
|000039c0| 6e 63 74 69 6f 6e 20 53 | 42 5f 53 65 74 75 70 55 |nction S|B_SetupU|
|000039d0| 70 42 75 74 74 6f 6e 28 | 55 57 69 6e 64 6f 77 53 |pButton(|UWindowS|
|000039e0| 42 55 70 42 75 74 74 6f | 6e 20 57 29 0d 0a 7b 0d |BUpButto|n W)..{.|
|000039f0| 0a 09 6c 6f 63 61 6c 20 | 54 65 78 74 75 72 65 20 |..local |Texture |
|00003a00| 54 3b 0d 0a 0d 0a 09 54 | 20 3d 20 57 2e 47 65 74 |T;.....T| = W.Get|
|00003a10| 4c 6f 6f 6b 41 6e 64 46 | 65 65 6c 54 65 78 74 75 |LookAndF|eelTextu|
|00003a20| 72 65 28 29 3b 0d 0a 0d | 0a 09 57 2e 62 55 73 65 |re();...|..W.bUse|
|00003a30| 52 65 67 69 6f 6e 20 3d | 20 54 72 75 65 3b 0d 0a |Region =| True;..|
|00003a40| 0d 0a 09 57 2e 55 70 54 | 65 78 74 75 72 65 20 3d |...W.UpT|exture =|
|00003a50| 20 54 3b 0d 0a 09 57 2e | 44 6f 77 6e 54 65 78 74 | T;...W.|DownText|
|00003a60| 75 72 65 20 3d 20 54 3b | 0d 0a 09 57 2e 4f 76 65 |ure = T;|...W.Ove|
|00003a70| 72 54 65 78 74 75 72 65 | 20 3d 20 54 3b 0d 0a 09 |rTexture| = T;...|
|00003a80| 57 2e 44 69 73 61 62 6c | 65 64 54 65 78 74 75 72 |W.Disabl|edTextur|
|00003a90| 65 20 3d 20 54 3b 0d 0a | 0d 0a 09 57 2e 55 70 52 |e = T;..|...W.UpR|
|00003aa0| 65 67 69 6f 6e 20 3d 20 | 53 42 55 70 55 70 3b 0d |egion = |SBUpUp;.|
|00003ab0| 0a 09 57 2e 44 6f 77 6e | 52 65 67 69 6f 6e 20 3d |..W.Down|Region =|
|00003ac0| 20 53 42 55 70 44 6f 77 | 6e 3b 0d 0a 09 57 2e 4f | SBUpDow|n;...W.O|
|00003ad0| 76 65 72 52 65 67 69 6f | 6e 20 3d 20 53 42 55 70 |verRegio|n = SBUp|
|00003ae0| 55 70 3b 0d 0a 09 57 2e | 44 69 73 61 62 6c 65 64 |Up;...W.|Disabled|
|00003af0| 52 65 67 69 6f 6e 20 3d | 20 53 42 55 70 44 69 73 |Region =| SBUpDis|
|00003b00| 61 62 6c 65 64 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |abled;..|}....fun|
|00003b10| 63 74 69 6f 6e 20 53 42 | 5f 53 65 74 75 70 44 6f |ction SB|_SetupDo|
|00003b20| 77 6e 42 75 74 74 6f 6e | 28 55 57 69 6e 64 6f 77 |wnButton|(UWindow|
|00003b30| 53 42 44 6f 77 6e 42 75 | 74 74 6f 6e 20 57 29 0d |SBDownBu|tton W).|
|00003b40| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 54 65 78 74 75 |.{...loc|al Textu|
|00003b50| 72 65 20 54 3b 0d 0a 0d | 0a 09 54 20 3d 20 57 2e |re T;...|..T = W.|
|00003b60| 47 65 74 4c 6f 6f 6b 41 | 6e 64 46 65 65 6c 54 65 |GetLookA|ndFeelTe|
|00003b70| 78 74 75 72 65 28 29 3b | 0d 0a 0d 0a 09 57 2e 62 |xture();|.....W.b|
|00003b80| 55 73 65 52 65 67 69 6f | 6e 20 3d 20 54 72 75 65 |UseRegio|n = True|
|00003b90| 3b 0d 0a 0d 0a 09 57 2e | 55 70 54 65 78 74 75 72 |;.....W.|UpTextur|
|00003ba0| 65 20 3d 20 54 3b 0d 0a | 09 57 2e 44 6f 77 6e 54 |e = T;..|.W.DownT|
|00003bb0| 65 78 74 75 72 65 20 3d | 20 54 3b 0d 0a 09 57 2e |exture =| T;...W.|
|00003bc0| 4f 76 65 72 54 65 78 74 | 75 72 65 20 3d 20 54 3b |OverText|ure = T;|
|00003bd0| 0d 0a 09 57 2e 44 69 73 | 61 62 6c 65 64 54 65 78 |...W.Dis|abledTex|
|00003be0| 74 75 72 65 20 3d 20 54 | 3b 0d 0a 0d 0a 09 57 2e |ture = T|;.....W.|
|00003bf0| 55 70 52 65 67 69 6f 6e | 20 3d 20 53 42 44 6f 77 |UpRegion| = SBDow|
|00003c00| 6e 55 70 3b 0d 0a 09 57 | 2e 44 6f 77 6e 52 65 67 |nUp;...W|.DownReg|
|00003c10| 69 6f 6e 20 3d 20 53 42 | 44 6f 77 6e 44 6f 77 6e |ion = SB|DownDown|
|00003c20| 3b 0d 0a 09 57 2e 4f 76 | 65 72 52 65 67 69 6f 6e |;...W.Ov|erRegion|
|00003c30| 20 3d 20 53 42 44 6f 77 | 6e 55 70 3b 0d 0a 09 57 | = SBDow|nUp;...W|
|00003c40| 2e 44 69 73 61 62 6c 65 | 64 52 65 67 69 6f 6e 20 |.Disable|dRegion |
|00003c50| 3d 20 53 42 44 6f 77 6e | 44 69 73 61 62 6c 65 64 |= SBDown|Disabled|
|00003c60| 3b 0d 0a 7d 0d 0a 0d 0a | 0d 0a 0d 0a 66 75 6e 63 |;..}....|....func|
|00003c70| 74 69 6f 6e 20 53 42 5f | 53 65 74 75 70 4c 65 66 |tion SB_|SetupLef|
|00003c80| 74 42 75 74 74 6f 6e 28 | 55 57 69 6e 64 6f 77 53 |tButton(|UWindowS|
|00003c90| 42 4c 65 66 74 42 75 74 | 74 6f 6e 20 57 29 0d 0a |BLeftBut|ton W)..|
|00003ca0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 54 65 78 74 75 72 |{...loca|l Textur|
|00003cb0| 65 20 54 3b 0d 0a 0d 0a | 09 54 20 3d 20 57 2e 47 |e T;....|.T = W.G|
|00003cc0| 65 74 4c 6f 6f 6b 41 6e | 64 46 65 65 6c 54 65 78 |etLookAn|dFeelTex|
|00003cd0| 74 75 72 65 28 29 3b 0d | 0a 0d 0a 09 57 2e 62 55 |ture();.|....W.bU|
|00003ce0| 73 65 52 65 67 69 6f 6e | 20 3d 20 54 72 75 65 3b |seRegion| = True;|
|00003cf0| 0d 0a 0d 0a 09 57 2e 55 | 70 54 65 78 74 75 72 65 |.....W.U|pTexture|
|00003d00| 20 3d 20 54 3b 0d 0a 09 | 57 2e 44 6f 77 6e 54 65 | = T;...|W.DownTe|
|00003d10| 78 74 75 72 65 20 3d 20 | 54 3b 0d 0a 09 57 2e 4f |xture = |T;...W.O|
|00003d20| 76 65 72 54 65 78 74 75 | 72 65 20 3d 20 54 3b 0d |verTextu|re = T;.|
|00003d30| 0a 09 57 2e 44 69 73 61 | 62 6c 65 64 54 65 78 74 |..W.Disa|bledText|
|00003d40| 75 72 65 20 3d 20 54 3b | 0d 0a 0d 0a 09 57 2e 55 |ure = T;|.....W.U|
|00003d50| 70 52 65 67 69 6f 6e 20 | 3d 20 53 42 4c 65 66 74 |pRegion |= SBLeft|
|00003d60| 55 70 3b 0d 0a 09 57 2e | 44 6f 77 6e 52 65 67 69 |Up;...W.|DownRegi|
|00003d70| 6f 6e 20 3d 20 53 42 4c | 65 66 74 44 6f 77 6e 3b |on = SBL|eftDown;|
|00003d80| 0d 0a 09 57 2e 4f 76 65 | 72 52 65 67 69 6f 6e 20 |...W.Ove|rRegion |
|00003d90| 3d 20 53 42 4c 65 66 74 | 55 70 3b 0d 0a 09 57 2e |= SBLeft|Up;...W.|
|00003da0| 44 69 73 61 62 6c 65 64 | 52 65 67 69 6f 6e 20 3d |Disabled|Region =|
|00003db0| 20 53 42 4c 65 66 74 44 | 69 73 61 62 6c 65 64 3b | SBLeftD|isabled;|
|00003dc0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00003dd0| 53 42 5f 53 65 74 75 70 | 52 69 67 68 74 42 75 74 |SB_Setup|RightBut|
|00003de0| 74 6f 6e 28 55 57 69 6e | 64 6f 77 53 42 52 69 67 |ton(UWin|dowSBRig|
|00003df0| 68 74 42 75 74 74 6f 6e | 20 57 29 0d 0a 7b 0d 0a |htButton| W)..{..|
|00003e00| 09 6c 6f 63 61 6c 20 54 | 65 78 74 75 72 65 20 54 |.local T|exture T|
|00003e10| 3b 0d 0a 0d 0a 09 54 20 | 3d 20 57 2e 47 65 74 4c |;.....T |= W.GetL|
|00003e20| 6f 6f 6b 41 6e 64 46 65 | 65 6c 54 65 78 74 75 72 |ookAndFe|elTextur|
|00003e30| 65 28 29 3b 0d 0a 0d 0a | 09 57 2e 62 55 73 65 52 |e();....|.W.bUseR|
|00003e40| 65 67 69 6f 6e 20 3d 20 | 54 72 75 65 3b 0d 0a 0d |egion = |True;...|
|00003e50| 0a 09 57 2e 55 70 54 65 | 78 74 75 72 65 20 3d 20 |..W.UpTe|xture = |
|00003e60| 54 3b 0d 0a 09 57 2e 44 | 6f 77 6e 54 65 78 74 75 |T;...W.D|ownTextu|
|00003e70| 72 65 20 3d 20 54 3b 0d | 0a 09 57 2e 4f 76 65 72 |re = T;.|..W.Over|
|00003e80| 54 65 78 74 75 72 65 20 | 3d 20 54 3b 0d 0a 09 57 |Texture |= T;...W|
|00003e90| 2e 44 69 73 61 62 6c 65 | 64 54 65 78 74 75 72 65 |.Disable|dTexture|
|00003ea0| 20 3d 20 54 3b 0d 0a 0d | 0a 09 57 2e 55 70 52 65 | = T;...|..W.UpRe|
|00003eb0| 67 69 6f 6e 20 3d 20 53 | 42 52 69 67 68 74 55 70 |gion = S|BRightUp|
|00003ec0| 3b 0d 0a 09 57 2e 44 6f | 77 6e 52 65 67 69 6f 6e |;...W.Do|wnRegion|
|00003ed0| 20 3d 20 53 42 52 69 67 | 68 74 44 6f 77 6e 3b 0d | = SBRig|htDown;.|
|00003ee0| 0a 09 57 2e 4f 76 65 72 | 52 65 67 69 6f 6e 20 3d |..W.Over|Region =|
|00003ef0| 20 53 42 52 69 67 68 74 | 55 70 3b 0d 0a 09 57 2e | SBRight|Up;...W.|
|00003f00| 44 69 73 61 62 6c 65 64 | 52 65 67 69 6f 6e 20 3d |Disabled|Region =|
|00003f10| 20 53 42 52 69 67 68 74 | 44 69 73 61 62 6c 65 64 | SBRight|Disabled|
|00003f20| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00003f30| 20 53 42 5f 56 44 72 61 | 77 28 55 57 69 6e 64 6f | SB_VDra|w(UWindo|
|00003f40| 77 56 53 63 72 6f 6c 6c | 62 61 72 20 57 2c 20 43 |wVScroll|bar W, C|
|00003f50| 61 6e 76 61 73 20 43 29 | 0d 0a 7b 0d 0a 09 6c 6f |anvas C)|..{...lo|
|00003f60| 63 61 6c 20 52 65 67 69 | 6f 6e 20 52 3b 0d 0a 09 |cal Regi|on R;...|
|00003f70| 6c 6f 63 61 6c 20 54 65 | 78 74 75 72 65 20 54 3b |local Te|xture T;|
|00003f80| 0d 0a 0d 0a 09 54 20 3d | 20 57 2e 47 65 74 4c 6f |.....T =| W.GetLo|
|00003f90| 6f 6b 41 6e 64 46 65 65 | 6c 54 65 78 74 75 72 65 |okAndFee|lTexture|
|00003fa0| 28 29 3b 0d 0a 0d 0a 09 | 52 20 3d 20 53 42 42 61 |();.....|R = SBBa|
|00003fb0| 63 6b 67 72 6f 75 6e 64 | 3b 0d 0a 09 57 2e 44 72 |ckground|;...W.Dr|
|00003fc0| 61 77 53 74 72 65 74 63 | 68 65 64 54 65 78 74 75 |awStretc|hedTextu|
|00003fd0| 72 65 53 65 67 6d 65 6e | 74 28 20 43 2c 20 30 2c |reSegmen|t( C, 0,|
|00003fe0| 20 30 2c 20 57 2e 57 69 | 6e 57 69 64 74 68 2c 20 | 0, W.Wi|nWidth, |
|00003ff0| 57 2e 57 69 6e 48 65 69 | 67 68 74 2c 20 52 2e 58 |W.WinHei|ght, R.X|
|00004000| 2c 20 52 2e 59 2c 20 52 | 2e 57 2c 20 52 2e 48 2c |, R.Y, R|.W, R.H,|
|00004010| 20 54 29 3b 0d 0a 09 0d | 0a 09 69 66 28 21 57 2e | T);....|..if(!W.|
|00004020| 62 44 69 73 61 62 6c 65 | 64 29 0d 0a 09 7b 0d 0a |bDisable|d)...{..|
|00004030| 09 09 57 2e 44 72 61 77 | 55 70 42 65 76 65 6c 28 |..W.Draw|UpBevel(|
|00004040| 20 43 2c 20 30 2c 20 57 | 2e 54 68 75 6d 62 53 74 | C, 0, W|.ThumbSt|
|00004050| 61 72 74 2c 20 53 69 7a | 65 5f 53 63 72 6f 6c 6c |art, Siz|e_Scroll|
|00004060| 62 61 72 57 69 64 74 68 | 2c 09 57 2e 54 68 75 6d |barWidth|,.W.Thum|
|00004070| 62 48 65 69 67 68 74 2c | 20 54 29 3b 0d 0a 09 7d |bHeight,| T);...}|
|00004080| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00004090| 53 42 5f 48 44 72 61 77 | 28 55 57 69 6e 64 6f 77 |SB_HDraw|(UWindow|
|000040a0| 48 53 63 72 6f 6c 6c 62 | 61 72 20 57 2c 20 43 61 |HScrollb|ar W, Ca|
|000040b0| 6e 76 61 73 20 43 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |nvas C).|.{...loc|
|000040c0| 61 6c 20 52 65 67 69 6f | 6e 20 52 3b 0d 0a 09 6c |al Regio|n R;...l|
|000040d0| 6f 63 61 6c 20 54 65 78 | 74 75 72 65 20 54 3b 0d |ocal Tex|ture T;.|
|000040e0| 0a 0d 0a 09 54 20 3d 20 | 57 2e 47 65 74 4c 6f 6f |....T = |W.GetLoo|
|000040f0| 6b 41 6e 64 46 65 65 6c | 54 65 78 74 75 72 65 28 |kAndFeel|Texture(|
|00004100| 29 3b 0d 0a 0d 0a 09 52 | 20 3d 20 53 42 42 61 63 |);.....R| = SBBac|
|00004110| 6b 67 72 6f 75 6e 64 3b | 0d 0a 09 57 2e 44 72 61 |kground;|...W.Dra|
|00004120| 77 53 74 72 65 74 63 68 | 65 64 54 65 78 74 75 72 |wStretch|edTextur|
|00004130| 65 53 65 67 6d 65 6e 74 | 28 20 43 2c 20 30 2c 20 |eSegment|( C, 0, |
|00004140| 30 2c 20 57 2e 57 69 6e | 57 69 64 74 68 2c 20 57 |0, W.Win|Width, W|
|00004150| 2e 57 69 6e 48 65 69 67 | 68 74 2c 20 52 2e 58 2c |.WinHeig|ht, R.X,|
|00004160| 20 52 2e 59 2c 20 52 2e | 57 2c 20 52 2e 48 2c 20 | R.Y, R.|W, R.H, |
|00004170| 54 29 3b 0d 0a 09 0d 0a | 09 69 66 28 21 57 2e 62 |T);.....|.if(!W.b|
|00004180| 44 69 73 61 62 6c 65 64 | 29 20 0d 0a 09 7b 0d 0a |Disabled|) ...{..|
|00004190| 09 09 57 2e 44 72 61 77 | 55 70 42 65 76 65 6c 28 |..W.Draw|UpBevel(|
|000041a0| 20 43 2c 20 57 2e 54 68 | 75 6d 62 53 74 61 72 74 | C, W.Th|umbStart|
|000041b0| 2c 20 30 2c 20 57 2e 54 | 68 75 6d 62 57 69 64 74 |, 0, W.T|humbWidt|
|000041c0| 68 2c 20 53 69 7a 65 5f | 53 63 72 6f 6c 6c 62 61 |h, Size_|Scrollba|
|000041d0| 72 57 69 64 74 68 2c 20 | 54 29 3b 0d 0a 09 7d 0d |rWidth, |T);...}.|
|000041e0| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 54 |.}....fu|nction T|
|000041f0| 61 62 5f 53 65 74 75 70 | 4c 65 66 74 42 75 74 74 |ab_Setup|LeftButt|
|00004200| 6f 6e 28 55 57 69 6e 64 | 6f 77 54 61 62 43 6f 6e |on(UWind|owTabCon|
|00004210| 74 72 6f 6c 4c 65 66 74 | 42 75 74 74 6f 6e 20 57 |trolLeft|Button W|
|00004220| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 54 65 78 |)..{...l|ocal Tex|
|00004230| 74 75 72 65 20 54 3b 0d | 0a 0d 0a 09 54 20 3d 20 |ture T;.|....T = |
|00004240| 57 2e 47 65 74 4c 6f 6f | 6b 41 6e 64 46 65 65 6c |W.GetLoo|kAndFeel|
|00004250| 54 65 78 74 75 72 65 28 | 29 3b 0d 0a 0d 0a 0d 0a |Texture(|);......|
|00004260| 09 57 2e 57 69 6e 57 69 | 64 74 68 20 3d 20 53 69 |.W.WinWi|dth = Si|
|00004270| 7a 65 5f 53 63 72 6f 6c | 6c 62 61 72 42 75 74 74 |ze_Scrol|lbarButt|
|00004280| 6f 6e 48 65 69 67 68 74 | 3b 0d 0a 09 57 2e 57 69 |onHeight|;...W.Wi|
|00004290| 6e 48 65 69 67 68 74 20 | 3d 20 53 69 7a 65 5f 53 |nHeight |= Size_S|
|000042a0| 63 72 6f 6c 6c 62 61 72 | 57 69 64 74 68 3b 0d 0a |crollbar|Width;..|
|000042b0| 09 57 2e 57 69 6e 54 6f | 70 20 3d 20 53 69 7a 65 |.W.WinTo|p = Size|
|000042c0| 5f 54 61 62 41 72 65 61 | 48 65 69 67 68 74 20 2d |_TabArea|Height -|
|000042d0| 20 57 2e 57 69 6e 48 65 | 69 67 68 74 3b 0d 0a 09 | W.WinHe|ight;...|
|000042e0| 57 2e 57 69 6e 4c 65 66 | 74 20 3d 20 57 2e 50 61 |W.WinLef|t = W.Pa|
|000042f0| 72 65 6e 74 57 69 6e 64 | 6f 77 2e 57 69 6e 57 69 |rentWind|ow.WinWi|
|00004300| 64 74 68 20 2d 20 32 2a | 57 2e 57 69 6e 57 69 64 |dth - 2*|W.WinWid|
|00004310| 74 68 3b 0d 0a 0d 0a 09 | 57 2e 62 55 73 65 52 65 |th;.....|W.bUseRe|
|00004320| 67 69 6f 6e 20 3d 20 54 | 72 75 65 3b 0d 0a 0d 0a |gion = T|rue;....|
|00004330| 09 57 2e 55 70 54 65 78 | 74 75 72 65 20 3d 20 54 |.W.UpTex|ture = T|
|00004340| 3b 0d 0a 09 57 2e 44 6f | 77 6e 54 65 78 74 75 72 |;...W.Do|wnTextur|
|00004350| 65 20 3d 20 54 3b 0d 0a | 09 57 2e 4f 76 65 72 54 |e = T;..|.W.OverT|
|00004360| 65 78 74 75 72 65 20 3d | 20 54 3b 0d 0a 09 57 2e |exture =| T;...W.|
|00004370| 44 69 73 61 62 6c 65 64 | 54 65 78 74 75 72 65 20 |Disabled|Texture |
|00004380| 3d 20 54 3b 0d 0a 0d 0a | 09 57 2e 55 70 52 65 67 |= T;....|.W.UpReg|
|00004390| 69 6f 6e 20 3d 20 53 42 | 4c 65 66 74 55 70 3b 0d |ion = SB|LeftUp;.|
|000043a0| 0a 09 57 2e 44 6f 77 6e | 52 65 67 69 6f 6e 20 3d |..W.Down|Region =|
|000043b0| 20 53 42 4c 65 66 74 44 | 6f 77 6e 3b 0d 0a 09 57 | SBLeftD|own;...W|
|000043c0| 2e 4f 76 65 72 52 65 67 | 69 6f 6e 20 3d 20 53 42 |.OverReg|ion = SB|
|000043d0| 4c 65 66 74 55 70 3b 0d | 0a 09 57 2e 44 69 73 61 |LeftUp;.|..W.Disa|
|000043e0| 62 6c 65 64 52 65 67 69 | 6f 6e 20 3d 20 53 42 4c |bledRegi|on = SBL|
|000043f0| 65 66 74 44 69 73 61 62 | 6c 65 64 3b 0d 0a 7d 0d |eftDisab|led;..}.|
|00004400| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 54 61 62 5f |...funct|ion Tab_|
|00004410| 53 65 74 75 70 52 69 67 | 68 74 42 75 74 74 6f 6e |SetupRig|htButton|
|00004420| 28 55 57 69 6e 64 6f 77 | 54 61 62 43 6f 6e 74 72 |(UWindow|TabContr|
|00004430| 6f 6c 52 69 67 68 74 42 | 75 74 74 6f 6e 20 57 29 |olRightB|utton W)|
|00004440| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 54 65 78 74 |..{...lo|cal Text|
|00004450| 75 72 65 20 54 3b 0d 0a | 0d 0a 09 54 20 3d 20 57 |ure T;..|...T = W|
|00004460| 2e 47 65 74 4c 6f 6f 6b | 41 6e 64 46 65 65 6c 54 |.GetLook|AndFeelT|
|00004470| 65 78 74 75 72 65 28 29 | 3b 0d 0a 0d 0a 09 57 2e |exture()|;.....W.|
|00004480| 57 69 6e 57 69 64 74 68 | 20 3d 20 53 69 7a 65 5f |WinWidth| = Size_|
|00004490| 53 63 72 6f 6c 6c 62 61 | 72 42 75 74 74 6f 6e 48 |Scrollba|rButtonH|
|000044a0| 65 69 67 68 74 3b 0d 0a | 09 57 2e 57 69 6e 48 65 |eight;..|.W.WinHe|
|000044b0| 69 67 68 74 20 3d 20 53 | 69 7a 65 5f 53 63 72 6f |ight = S|ize_Scro|
|000044c0| 6c 6c 62 61 72 57 69 64 | 74 68 3b 0d 0a 09 57 2e |llbarWid|th;...W.|
|000044d0| 57 69 6e 54 6f 70 20 3d | 20 53 69 7a 65 5f 54 61 |WinTop =| Size_Ta|
|000044e0| 62 41 72 65 61 48 65 69 | 67 68 74 20 2d 20 57 2e |bAreaHei|ght - W.|
|000044f0| 57 69 6e 48 65 69 67 68 | 74 3b 0d 0a 09 57 2e 57 |WinHeigh|t;...W.W|
|00004500| 69 6e 4c 65 66 74 20 3d | 20 57 2e 50 61 72 65 6e |inLeft =| W.Paren|
|00004510| 74 57 69 6e 64 6f 77 2e | 57 69 6e 57 69 64 74 68 |tWindow.|WinWidth|
|00004520| 20 2d 20 57 2e 57 69 6e | 57 69 64 74 68 3b 0d 0a | - W.Win|Width;..|
|00004530| 0d 0a 09 57 2e 62 55 73 | 65 52 65 67 69 6f 6e 20 |...W.bUs|eRegion |
|00004540| 3d 20 54 72 75 65 3b 0d | 0a 0d 0a 09 57 2e 55 70 |= True;.|....W.Up|
|00004550| 54 65 78 74 75 72 65 20 | 3d 20 54 3b 0d 0a 09 57 |Texture |= T;...W|
|00004560| 2e 44 6f 77 6e 54 65 78 | 74 75 72 65 20 3d 20 54 |.DownTex|ture = T|
|00004570| 3b 0d 0a 09 57 2e 4f 76 | 65 72 54 65 78 74 75 72 |;...W.Ov|erTextur|
|00004580| 65 20 3d 20 54 3b 0d 0a | 09 57 2e 44 69 73 61 62 |e = T;..|.W.Disab|
|00004590| 6c 65 64 54 65 78 74 75 | 72 65 20 3d 20 54 3b 0d |ledTextu|re = T;.|
|000045a0| 0a 0d 0a 09 57 2e 55 70 | 52 65 67 69 6f 6e 20 3d |....W.Up|Region =|
|000045b0| 20 53 42 52 69 67 68 74 | 55 70 3b 0d 0a 09 57 2e | SBRight|Up;...W.|
|000045c0| 44 6f 77 6e 52 65 67 69 | 6f 6e 20 3d 20 53 42 52 |DownRegi|on = SBR|
|000045d0| 69 67 68 74 44 6f 77 6e | 3b 0d 0a 09 57 2e 4f 76 |ightDown|;...W.Ov|
|000045e0| 65 72 52 65 67 69 6f 6e | 20 3d 20 53 42 52 69 67 |erRegion| = SBRig|
|000045f0| 68 74 55 70 3b 0d 0a 09 | 57 2e 44 69 73 61 62 6c |htUp;...|W.Disabl|
|00004600| 65 64 52 65 67 69 6f 6e | 20 3d 20 53 42 52 69 67 |edRegion| = SBRig|
|00004610| 68 74 44 69 73 61 62 6c | 65 64 3b 0d 0a 7d 0d 0a |htDisabl|ed;..}..|
|00004620| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 54 61 62 5f 53 |..functi|on Tab_S|
|00004630| 65 74 54 61 62 50 61 67 | 65 53 69 7a 65 28 55 57 |etTabPag|eSize(UW|
|00004640| 69 6e 64 6f 77 50 61 67 | 65 43 6f 6e 74 72 6f 6c |indowPag|eControl|
|00004650| 20 57 2c 20 55 57 69 6e | 64 6f 77 50 61 67 65 57 | W, UWin|dowPageW|
|00004660| 69 6e 64 6f 77 20 50 29 | 0d 0a 7b 0d 0a 09 50 2e |indow P)|..{...P.|
|00004670| 57 69 6e 4c 65 66 74 20 | 3d 20 32 3b 0d 0a 09 50 |WinLeft |= 2;...P|
|00004680| 2e 57 69 6e 54 6f 70 20 | 3d 20 57 2e 54 61 62 41 |.WinTop |= W.TabA|
|00004690| 72 65 61 2e 57 69 6e 48 | 65 69 67 68 74 2d 28 54 |rea.WinH|eight-(T|
|000046a0| 61 62 53 65 6c 65 63 74 | 65 64 4d 2e 48 2d 54 61 |abSelect|edM.H-Ta|
|000046b0| 62 55 6e 73 65 6c 65 63 | 74 65 64 4d 2e 48 29 20 |bUnselec|tedM.H) |
|000046c0| 2b 20 33 3b 0d 0a 09 50 | 2e 53 65 74 53 69 7a 65 |+ 3;...P|.SetSize|
|000046d0| 28 57 2e 57 69 6e 57 69 | 64 74 68 20 2d 20 34 2c |(W.WinWi|dth - 4,|
|000046e0| 20 57 2e 57 69 6e 48 65 | 69 67 68 74 2d 28 57 2e | W.WinHe|ight-(W.|
|000046f0| 54 61 62 41 72 65 61 2e | 57 69 6e 48 65 69 67 68 |TabArea.|WinHeigh|
|00004700| 74 2d 28 54 61 62 53 65 | 6c 65 63 74 65 64 4d 2e |t-(TabSe|lectedM.|
|00004710| 48 2d 54 61 62 55 6e 73 | 65 6c 65 63 74 65 64 4d |H-TabUns|electedM|
|00004720| 2e 48 29 29 20 2d 20 36 | 29 3b 0d 0a 7d 0d 0a 0d |.H)) - 6|);..}...|
|00004730| 0a 66 75 6e 63 74 69 6f | 6e 20 54 61 62 5f 44 72 |.functio|n Tab_Dr|
|00004740| 61 77 54 61 62 50 61 67 | 65 41 72 65 61 28 55 57 |awTabPag|eArea(UW|
|00004750| 69 6e 64 6f 77 50 61 67 | 65 43 6f 6e 74 72 6f 6c |indowPag|eControl|
|00004760| 20 57 2c 20 43 61 6e 76 | 61 73 20 43 2c 20 55 57 | W, Canv|as C, UW|
|00004770| 69 6e 64 6f 77 50 61 67 | 65 57 69 6e 64 6f 77 20 |indowPag|eWindow |
|00004780| 50 29 0d 0a 7b 0d 0a 09 | 57 2e 44 72 61 77 55 70 |P)..{...|W.DrawUp|
|00004790| 42 65 76 65 6c 28 20 43 | 2c 20 30 2c 20 53 69 7a |Bevel( C|, 0, Siz|
|000047a0| 65 5f 54 61 62 41 72 65 | 61 48 65 69 67 68 74 2c |e_TabAre|aHeight,|
|000047b0| 20 57 2e 57 69 6e 57 69 | 64 74 68 2c 20 57 2e 57 | W.WinWi|dth, W.W|
|000047c0| 69 6e 48 65 69 67 68 74 | 2d 53 69 7a 65 5f 54 61 |inHeight|-Size_Ta|
|000047d0| 62 41 72 65 61 48 65 69 | 67 68 74 2c 20 57 2e 47 |bAreaHei|ght, W.G|
|000047e0| 65 74 4c 6f 6f 6b 41 6e | 64 46 65 65 6c 54 65 78 |etLookAn|dFeelTex|
|000047f0| 74 75 72 65 28 29 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |ture());|..}....f|
|00004800| 75 6e 63 74 69 6f 6e 20 | 54 61 62 5f 47 65 74 54 |unction |Tab_GetT|
|00004810| 61 62 53 69 7a 65 28 55 | 57 69 6e 64 6f 77 54 61 |abSize(U|WindowTa|
|00004820| 62 43 6f 6e 74 72 6f 6c | 54 61 62 41 72 65 61 20 |bControl|TabArea |
|00004830| 54 61 62 2c 20 43 61 6e | 76 61 73 20 43 2c 20 73 |Tab, Can|vas C, s|
|00004840| 74 72 69 6e 67 20 54 65 | 78 74 2c 20 6f 75 74 20 |tring Te|xt, out |
|00004850| 66 6c 6f 61 74 20 57 2c | 20 6f 75 74 20 66 6c 6f |float W,| out flo|
|00004860| 61 74 20 48 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |at H)..{|...local|
|00004870| 20 66 6c 6f 61 74 20 54 | 57 2c 20 54 48 3b 0d 0a | float T|W, TH;..|
|00004880| 0d 0a 09 43 2e 46 6f 6e | 74 20 3d 20 54 61 62 2e |...C.Fon|t = Tab.|
|00004890| 52 6f 6f 74 2e 46 6f 6e | 74 73 5b 54 61 62 2e 46 |Root.Fon|ts[Tab.F|
|000048a0| 5f 4e 6f 72 6d 61 6c 5d | 3b 0d 0a 0d 0a 09 54 61 |_Normal]|;.....Ta|
|000048b0| 62 2e 54 65 78 74 53 69 | 7a 65 28 20 43 2c 20 54 |b.TextSi|ze( C, T|
|000048c0| 65 78 74 2c 20 54 57 2c | 20 54 48 20 29 3b 0d 0a |ext, TW,| TH );..|
|000048d0| 09 57 20 3d 20 54 57 20 | 2b 20 53 69 7a 65 5f 54 |.W = TW |+ Size_T|
|000048e0| 61 62 53 70 61 63 69 6e | 67 3b 0d 0a 09 48 20 3d |abSpacin|g;...H =|
|000048f0| 20 54 48 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 | TH;..}.|...funct|
|00004900| 69 6f 6e 20 4d 65 6e 75 | 5f 44 72 61 77 4d 65 6e |ion Menu|_DrawMen|
|00004910| 75 42 61 72 28 55 57 69 | 6e 64 6f 77 4d 65 6e 75 |uBar(UWi|ndowMenu|
|00004920| 42 61 72 20 57 2c 20 43 | 61 6e 76 61 73 20 43 29 |Bar W, C|anvas C)|
|00004930| 0d 0a 7b 0d 0a 09 57 2e | 44 72 61 77 53 74 72 65 |..{...W.|DrawStre|
|00004940| 74 63 68 65 64 54 65 78 | 74 75 72 65 28 20 43 2c |tchedTex|ture( C,|
|00004950| 20 31 36 2c 20 30 2c 20 | 57 2e 57 69 6e 57 69 64 | 16, 0, |W.WinWid|
|00004960| 74 68 20 2d 20 33 32 2c | 20 31 36 2c 20 54 65 78 |th - 32,| 16, Tex|
|00004970| 74 75 72 65 27 55 57 69 | 6e 64 6f 77 2e 4d 65 6e |ture'UWi|ndow.Men|
|00004980| 75 42 61 72 27 29 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |uBar');.|.}....fu|
|00004990| 6e 63 74 69 6f 6e 20 4d | 65 6e 75 5f 44 72 61 77 |nction M|enu_Draw|
|000049a0| 4d 65 6e 75 42 61 72 49 | 74 65 6d 28 55 57 69 6e |MenuBarI|tem(UWin|
|000049b0| 64 6f 77 4d 65 6e 75 42 | 61 72 20 42 2c 20 55 57 |dowMenuB|ar B, UW|
|000049c0| 69 6e 64 6f 77 4d 65 6e | 75 42 61 72 49 74 65 6d |indowMen|uBarItem|
|000049d0| 20 49 2c 20 66 6c 6f 61 | 74 20 58 2c 20 66 6c 6f | I, floa|t X, flo|
|000049e0| 61 74 20 59 2c 20 66 6c | 6f 61 74 20 57 2c 20 66 |at Y, fl|oat W, f|
|000049f0| 6c 6f 61 74 20 48 2c 20 | 43 61 6e 76 61 73 20 43 |loat H, |Canvas C|
|00004a00| 29 0d 0a 7b 0d 0a 09 69 | 66 28 42 2e 53 65 6c 65 |)..{...i|f(B.Sele|
|00004a10| 63 74 65 64 20 3d 3d 20 | 49 29 0d 0a 09 7b 0d 0a |cted == |I)...{..|
|00004a20| 09 09 42 2e 44 72 61 77 | 43 6c 69 70 70 65 64 54 |..B.Draw|ClippedT|
|00004a30| 65 78 74 75 72 65 28 43 | 2c 20 58 2c 20 31 2c 20 |exture(C|, X, 1, |
|00004a40| 54 65 78 74 75 72 65 27 | 4d 65 6e 75 48 69 67 68 |Texture'|MenuHigh|
|00004a50| 6c 69 67 68 74 4c 27 29 | 3b 0d 0a 09 09 42 2e 44 |lightL')|;....B.D|
|00004a60| 72 61 77 43 6c 69 70 70 | 65 64 54 65 78 74 75 72 |rawClipp|edTextur|
|00004a70| 65 28 43 2c 20 58 2b 57 | 2d 31 2c 20 31 2c 20 54 |e(C, X+W|-1, 1, T|
|00004a80| 65 78 74 75 72 65 27 4d | 65 6e 75 48 69 67 68 6c |exture'M|enuHighl|
|00004a90| 69 67 68 74 52 27 29 3b | 0d 0a 09 09 42 2e 44 72 |ightR');|....B.Dr|
|00004aa0| 61 77 53 74 72 65 74 63 | 68 65 64 54 65 78 74 75 |awStretc|hedTextu|
|00004ab0| 72 65 28 43 2c 20 58 2b | 31 2c 20 31 2c 20 57 2d |re(C, X+|1, 1, W-|
|00004ac0| 32 2c 20 31 36 2c 20 54 | 65 78 74 75 72 65 27 4d |2, 16, T|exture'M|
|00004ad0| 65 6e 75 48 69 67 68 6c | 69 67 68 74 4d 27 29 3b |enuHighl|ightM');|
|00004ae0| 0d 0a 09 7d 0d 0a 0d 0a | 09 43 2e 46 6f 6e 74 20 |...}....|.C.Font |
|00004af0| 3d 20 42 2e 52 6f 6f 74 | 2e 46 6f 6e 74 73 5b 46 |= B.Root|.Fonts[F|
|00004b00| 5f 4e 6f 72 6d 61 6c 5d | 3b 0d 0a 09 43 2e 44 72 |_Normal]|;...C.Dr|
|00004b10| 61 77 43 6f 6c 6f 72 2e | 52 20 3d 20 30 3b 0d 0a |awColor.|R = 0;..|
|00004b20| 09 43 2e 44 72 61 77 43 | 6f 6c 6f 72 2e 47 20 3d |.C.DrawC|olor.G =|
|00004b30| 20 30 3b 0d 0a 09 43 2e | 44 72 61 77 43 6f 6c 6f | 0;...C.|DrawColo|
|00004b40| 72 2e 42 20 3d 20 30 3b | 0d 0a 0d 0a 09 42 2e 43 |r.B = 0;|.....B.C|
|00004b50| 6c 69 70 54 65 78 74 28 | 43 2c 20 58 20 2b 20 42 |lipText(|C, X + B|
|00004b60| 2e 53 70 61 63 69 6e 67 | 20 2f 20 32 2c 20 32 2c |.Spacing| / 2, 2,|
|00004b70| 20 49 2e 43 61 70 74 69 | 6f 6e 2c 20 54 72 75 65 | I.Capti|on, True|
|00004b80| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|00004b90| 6e 20 4d 65 6e 75 5f 44 | 72 61 77 50 75 6c 6c 64 |n Menu_D|rawPulld|
|00004ba0| 6f 77 6e 4d 65 6e 75 42 | 61 63 6b 67 72 6f 75 6e |ownMenuB|ackgroun|
|00004bb0| 64 28 55 57 69 6e 64 6f | 77 50 75 6c 6c 64 6f 77 |d(UWindo|wPulldow|
|00004bc0| 6e 4d 65 6e 75 20 57 2c | 20 43 61 6e 76 61 73 20 |nMenu W,| Canvas |
|00004bd0| 43 29 0d 0a 7b 0d 0a 09 | 57 2e 44 72 61 77 43 6c |C)..{...|W.DrawCl|
|00004be0| 69 70 70 65 64 54 65 78 | 74 75 72 65 28 43 2c 20 |ippedTex|ture(C, |
|00004bf0| 30 2c 20 30 2c 20 54 65 | 78 74 75 72 65 27 55 57 |0, 0, Te|xture'UW|
|00004c00| 69 6e 64 6f 77 2e 4d 65 | 6e 75 54 4c 27 29 3b 0d |indow.Me|nuTL');.|
|00004c10| 0a 09 57 2e 44 72 61 77 | 53 74 72 65 74 63 68 65 |..W.Draw|Stretche|
|00004c20| 64 54 65 78 74 75 72 65 | 28 43 2c 20 32 2c 20 30 |dTexture|(C, 2, 0|
|00004c30| 2c 20 57 2e 57 69 6e 57 | 69 64 74 68 2d 34 2c 20 |, W.WinW|idth-4, |
|00004c40| 32 2c 20 54 65 78 74 75 | 72 65 27 55 57 69 6e 64 |2, Textu|re'UWind|
|00004c50| 6f 77 2e 4d 65 6e 75 54 | 27 29 3b 0d 0a 09 57 2e |ow.MenuT|');...W.|
|00004c60| 44 72 61 77 43 6c 69 70 | 70 65 64 54 65 78 74 75 |DrawClip|pedTextu|
|00004c70| 72 65 28 43 2c 20 57 2e | 57 69 6e 57 69 64 74 68 |re(C, W.|WinWidth|
|00004c80| 2d 32 2c 20 30 2c 20 54 | 65 78 74 75 72 65 27 55 |-2, 0, T|exture'U|
|00004c90| 57 69 6e 64 6f 77 2e 4d | 65 6e 75 54 52 27 29 3b |Window.M|enuTR');|
|00004ca0| 0d 0a 0d 0a 09 57 2e 44 | 72 61 77 43 6c 69 70 70 |.....W.D|rawClipp|
|00004cb0| 65 64 54 65 78 74 75 72 | 65 28 43 2c 20 30 2c 20 |edTextur|e(C, 0, |
|00004cc0| 57 2e 57 69 6e 48 65 69 | 67 68 74 2d 32 2c 20 54 |W.WinHei|ght-2, T|
|00004cd0| 65 78 74 75 72 65 27 55 | 57 69 6e 64 6f 77 2e 4d |exture'U|Window.M|
|00004ce0| 65 6e 75 42 4c 27 29 3b | 0d 0a 09 57 2e 44 72 61 |enuBL');|...W.Dra|
|00004cf0| 77 53 74 72 65 74 63 68 | 65 64 54 65 78 74 75 72 |wStretch|edTextur|
|00004d00| 65 28 43 2c 20 32 2c 20 | 57 2e 57 69 6e 48 65 69 |e(C, 2, |W.WinHei|
|00004d10| 67 68 74 2d 32 2c 20 57 | 2e 57 69 6e 57 69 64 74 |ght-2, W|.WinWidt|
|00004d20| 68 2d 34 2c 20 32 2c 20 | 54 65 78 74 75 72 65 27 |h-4, 2, |Texture'|
|00004d30| 55 57 69 6e 64 6f 77 2e | 4d 65 6e 75 42 27 29 3b |UWindow.|MenuB');|
|00004d40| 0d 0a 09 57 2e 44 72 61 | 77 43 6c 69 70 70 65 64 |...W.Dra|wClipped|
|00004d50| 54 65 78 74 75 72 65 28 | 43 2c 20 57 2e 57 69 6e |Texture(|C, W.Win|
|00004d60| 57 69 64 74 68 2d 32 2c | 20 57 2e 57 69 6e 48 65 |Width-2,| W.WinHe|
|00004d70| 69 67 68 74 2d 32 2c 20 | 54 65 78 74 75 72 65 27 |ight-2, |Texture'|
|00004d80| 55 57 69 6e 64 6f 77 2e | 4d 65 6e 75 42 52 27 29 |UWindow.|MenuBR')|
|00004d90| 3b 0d 0a 0d 0a 09 57 2e | 44 72 61 77 53 74 72 65 |;.....W.|DrawStre|
|00004da0| 74 63 68 65 64 54 65 78 | 74 75 72 65 28 43 2c 20 |tchedTex|ture(C, |
|00004db0| 30 2c 20 32 2c 20 32 2c | 20 57 2e 57 69 6e 48 65 |0, 2, 2,| W.WinHe|
|00004dc0| 69 67 68 74 2d 34 2c 20 | 54 65 78 74 75 72 65 27 |ight-4, |Texture'|
|00004dd0| 55 57 69 6e 64 6f 77 2e | 4d 65 6e 75 4c 27 29 3b |UWindow.|MenuL');|
|00004de0| 0d 0a 09 57 2e 44 72 61 | 77 53 74 72 65 74 63 68 |...W.Dra|wStretch|
|00004df0| 65 64 54 65 78 74 75 72 | 65 28 43 2c 20 57 2e 57 |edTextur|e(C, W.W|
|00004e00| 69 6e 57 69 64 74 68 2d | 32 2c 20 32 2c 20 32 2c |inWidth-|2, 2, 2,|
|00004e10| 20 57 2e 57 69 6e 48 65 | 69 67 68 74 2d 34 2c 20 | W.WinHe|ight-4, |
|00004e20| 54 65 78 74 75 72 65 27 | 55 57 69 6e 64 6f 77 2e |Texture'|UWindow.|
|00004e30| 4d 65 6e 75 52 27 29 3b | 0d 0a 09 57 2e 44 72 61 |MenuR');|...W.Dra|
|00004e40| 77 53 74 72 65 74 63 68 | 65 64 54 65 78 74 75 72 |wStretch|edTextur|
|00004e50| 65 28 43 2c 20 32 2c 20 | 32 2c 20 57 2e 57 69 6e |e(C, 2, |2, W.Win|
|00004e60| 57 69 64 74 68 2d 34 2c | 20 57 2e 57 69 6e 48 65 |Width-4,| W.WinHe|
|00004e70| 69 67 68 74 2d 34 2c 20 | 54 65 78 74 75 72 65 27 |ight-4, |Texture'|
|00004e80| 55 57 69 6e 64 6f 77 2e | 4d 65 6e 75 41 72 65 61 |UWindow.|MenuArea|
|00004e90| 27 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |');..}..|..functi|
|00004ea0| 6f 6e 20 4d 65 6e 75 5f | 44 72 61 77 50 75 6c 6c |on Menu_|DrawPull|
|00004eb0| 64 6f 77 6e 4d 65 6e 75 | 49 74 65 6d 28 55 57 69 |downMenu|Item(UWi|
|00004ec0| 6e 64 6f 77 50 75 6c 6c | 64 6f 77 6e 4d 65 6e 75 |ndowPull|downMenu|
|00004ed0| 20 4d 2c 20 55 57 69 6e | 64 6f 77 50 75 6c 6c 64 | M, UWin|dowPulld|
|00004ee0| 6f 77 6e 4d 65 6e 75 49 | 74 65 6d 20 49 74 65 6d |ownMenuI|tem Item|
|00004ef0| 2c 20 43 61 6e 76 61 73 | 20 43 2c 20 66 6c 6f 61 |, Canvas| C, floa|
|00004f00| 74 20 58 2c 20 66 6c 6f | 61 74 20 59 2c 20 66 6c |t X, flo|at Y, fl|
|00004f10| 6f 61 74 20 57 2c 20 66 | 6c 6f 61 74 20 48 2c 20 |oat W, f|loat H, |
|00004f20| 62 6f 6f 6c 20 62 53 65 | 6c 65 63 74 65 64 29 0d |bool bSe|lected).|
|00004f30| 0a 7b 0d 0a 09 43 2e 44 | 72 61 77 43 6f 6c 6f 72 |.{...C.D|rawColor|
|00004f40| 2e 52 20 3d 20 32 35 35 | 3b 0d 0a 09 43 2e 44 72 |.R = 255|;...C.Dr|
|00004f50| 61 77 43 6f 6c 6f 72 2e | 47 20 3d 20 32 35 35 3b |awColor.|G = 255;|
|00004f60| 0d 0a 09 43 2e 44 72 61 | 77 43 6f 6c 6f 72 2e 42 |...C.Dra|wColor.B|
|00004f70| 20 3d 20 32 35 35 3b 0d | 0a 0d 0a 09 49 74 65 6d | = 255;.|....Item|
|00004f80| 2e 49 74 65 6d 54 6f 70 | 20 3d 20 59 20 2b 20 4d |.ItemTop| = Y + M|
|00004f90| 2e 57 69 6e 54 6f 70 3b | 0d 0a 0d 0a 09 69 66 28 |.WinTop;|.....if(|
|00004fa0| 49 74 65 6d 2e 43 61 70 | 74 69 6f 6e 20 3d 3d 20 |Item.Cap|tion == |
|00004fb0| 22 2d 22 29 0d 0a 09 7b | 0d 0a 09 09 43 2e 44 72 |"-")...{|....C.Dr|
|00004fc0| 61 77 43 6f 6c 6f 72 2e | 52 20 3d 20 32 35 35 3b |awColor.|R = 255;|
|00004fd0| 0d 0a 09 09 43 2e 44 72 | 61 77 43 6f 6c 6f 72 2e |....C.Dr|awColor.|
|00004fe0| 47 20 3d 20 32 35 35 3b | 0d 0a 09 09 43 2e 44 72 |G = 255;|....C.Dr|
|00004ff0| 61 77 43 6f 6c 6f 72 2e | 42 20 3d 20 32 35 35 3b |awColor.|B = 255;|
|00005000| 0d 0a 09 09 4d 2e 44 72 | 61 77 53 74 72 65 74 63 |....M.Dr|awStretc|
|00005010| 68 65 64 54 65 78 74 75 | 72 65 28 43 2c 20 58 2c |hedTextu|re(C, X,|
|00005020| 20 59 2b 35 2c 20 57 2c | 20 32 2c 20 54 65 78 74 | Y+5, W,| 2, Text|
|00005030| 75 72 65 27 55 57 69 6e | 64 6f 77 2e 4d 65 6e 75 |ure'UWin|dow.Menu|
|00005040| 44 69 76 69 64 65 72 27 | 29 3b 0d 0a 09 09 72 65 |Divider'|);....re|
|00005050| 74 75 72 6e 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 43 2e |turn;...|}.....C.|
|00005060| 46 6f 6e 74 20 3d 20 4d | 2e 52 6f 6f 74 2e 46 6f |Font = M|.Root.Fo|
|00005070| 6e 74 73 5b 46 5f 4e 6f | 72 6d 61 6c 5d 3b 0d 0a |nts[F_No|rmal];..|
|00005080| 0d 0a 09 69 66 28 62 53 | 65 6c 65 63 74 65 64 29 |...if(bS|elected)|
|00005090| 0d 0a 09 09 4d 2e 44 72 | 61 77 53 74 72 65 74 63 |....M.Dr|awStretc|
|000050a0| 68 65 64 54 65 78 74 75 | 72 65 28 43 2c 20 58 2c |hedTextu|re(C, X,|
|000050b0| 20 59 2c 20 57 2c 20 48 | 2c 20 54 65 78 74 75 72 | Y, W, H|, Textur|
|000050c0| 65 27 55 57 69 6e 64 6f | 77 2e 4d 65 6e 75 48 69 |e'UWindo|w.MenuHi|
|000050d0| 67 68 6c 69 67 68 74 27 | 29 3b 0d 0a 0d 0a 09 69 |ghlight'|);.....i|
|000050e0| 66 28 49 74 65 6d 2e 62 | 44 69 73 61 62 6c 65 64 |f(Item.b|Disabled|
|000050f0| 29 20 0d 0a 09 7b 0d 0a | 09 09 2f 2f 20 42 6c 61 |) ...{..|..// Bla|
|00005100| 63 6b 20 53 68 61 64 6f | 77 0d 0a 09 09 43 2e 44 |ck Shado|w....C.D|
|00005110| 72 61 77 43 6f 6c 6f 72 | 2e 52 20 3d 20 39 36 3b |rawColor|.R = 96;|
|00005120| 0d 0a 09 09 43 2e 44 72 | 61 77 43 6f 6c 6f 72 2e |....C.Dr|awColor.|
|00005130| 47 20 3d 20 39 36 3b 0d | 0a 09 09 43 2e 44 72 61 |G = 96;.|...C.Dra|
|00005140| 77 43 6f 6c 6f 72 2e 42 | 20 3d 20 39 36 3b 0d 0a |wColor.B| = 96;..|
|00005150| 09 7d 0d 0a 09 65 6c 73 | 65 0d 0a 09 7b 0d 0a 09 |.}...els|e...{...|
|00005160| 09 43 2e 44 72 61 77 43 | 6f 6c 6f 72 2e 52 20 3d |.C.DrawC|olor.R =|
|00005170| 20 30 3b 0d 0a 09 09 43 | 2e 44 72 61 77 43 6f 6c | 0;....C|.DrawCol|
|00005180| 6f 72 2e 47 20 3d 20 30 | 3b 0d 0a 09 09 43 2e 44 |or.G = 0|;....C.D|
|00005190| 72 61 77 43 6f 6c 6f 72 | 2e 42 20 3d 20 30 3b 0d |rawColor|.B = 0;.|
|000051a0| 0a 09 7d 0d 0a 0d 0a 09 | 2f 2f 20 44 72 61 77 43 |..}.....|// DrawC|
|000051b0| 6f 6c 6f 72 20 77 69 6c | 6c 20 72 65 6e 64 65 72 |olor wil|l render|
|000051c0| 20 74 68 65 20 74 69 63 | 6b 20 62 6c 61 63 6b 20 | the tic|k black |
|000051d0| 77 68 69 74 65 20 6f 72 | 20 67 72 61 79 2e 0d 0a |white or| gray...|
|000051e0| 09 69 66 28 49 74 65 6d | 2e 62 43 68 65 63 6b 65 |.if(Item|.bChecke|
|000051f0| 64 29 0d 0a 09 09 4d 2e | 44 72 61 77 43 6c 69 70 |d)....M.|DrawClip|
|00005200| 70 65 64 54 65 78 74 75 | 72 65 28 43 2c 20 58 20 |pedTextu|re(C, X |
|00005210| 2b 20 31 2c 20 59 20 2b | 20 33 2c 20 54 65 78 74 |+ 1, Y +| 3, Text|
|00005220| 75 72 65 27 4d 65 6e 75 | 54 69 63 6b 27 29 3b 0d |ure'Menu|Tick');.|
|00005230| 0a 0d 0a 09 69 66 28 49 | 74 65 6d 2e 53 75 62 4d |....if(I|tem.SubM|
|00005240| 65 6e 75 20 21 3d 20 4e | 6f 6e 65 29 0d 0a 09 09 |enu != N|one)....|
|00005250| 4d 2e 44 72 61 77 43 6c | 69 70 70 65 64 54 65 78 |M.DrawCl|ippedTex|
|00005260| 74 75 72 65 28 43 2c 20 | 58 20 2b 20 57 20 2d 20 |ture(C, |X + W - |
|00005270| 39 2c 20 59 20 2b 20 33 | 2c 20 54 65 78 74 75 72 |9, Y + 3|, Textur|
|00005280| 65 27 4d 65 6e 75 53 75 | 62 41 72 72 6f 77 27 29 |e'MenuSu|bArrow')|
|00005290| 3b 0d 0a 0d 0a 09 4d 2e | 43 6c 69 70 54 65 78 74 |;.....M.|ClipText|
|000052a0| 28 43 2c 20 58 20 2b 20 | 4d 2e 54 65 78 74 42 6f |(C, X + |M.TextBo|
|000052b0| 72 64 65 72 20 2b 20 32 | 2c 20 59 20 2b 20 33 2c |rder + 2|, Y + 3,|
|000052c0| 20 49 74 65 6d 2e 43 61 | 70 74 69 6f 6e 2c 20 54 | Item.Ca|ption, T|
|000052d0| 72 75 65 29 3b 09 0d 0a | 7d 0d 0a 0d 0a 00 |rue);...|}..... |
+--------+-------------------------+-------------------------+--------+--------+