Amineri Posted April 29, 2013 Share Posted April 29, 2013 (edited) UPDATE: upk changes are in and working. Wiki article describing changes has been posted here : http://wiki.tesnexus.com/index.php/Six_interceptors_mod_-_XCOM:EU_2012 Here are screenshots of the working mod:http://wiki.tesnexus.com/images/6/64/Six_Ints_per_Continent_Mod_Screenshot.jpg http://wiki.tesnexus.com/images/7/7d/Six_Ints_Launch_Window_Final.jpg I think I'm getting the hang of modding the UI. I built this change to add a 5th and 6th interceptor slot to the hanger shiplist. I've tested it as for as I'm able, and haven't been able to crash the game so far. However, there are a number of additional upk changes that have to be made in order to actually allow more than four interceptors to be built -- I haven't made those changes, or found where they need to be made. I know that a bunch of work has been done on this before, so I'm going to toss this UI mod out there. If someone has figured out all of the places to make the upk changes necessary for adding more interceptors, could you send that info my way? Feel free to also play around with adding the UI mod and testing it. Below is the hex code: original:FF 14 29 00 00 00 DA 00 75 62 FE 8A 14 42 51 D8 75 64 9E 83 94 5C 51 70 01 00 01 14 00 A0 02 00 03 FF D1 38 FF 01 25 D5 92 14 5D F0 47 8C 00 7F 09 A8 00 00 00 DB 00 77 FB 0C C2 FF B0 23 F0 ED 33 1F 00 90 01 FF D1 38 FF 00 00 00 00 00 00 00 28 00 00 3C 70 20 61 6C 69 67 6E 3D 22 6C 65 66 74 22 3E 3C 66 6F 6E 74 20 66 61 63 65 3D 22 24 54 69 74 6C 65 46 6F 6E 74 22 20 73 69 7A 65 3D 22 32 30 22 20 63 6F 6C 6F 72 3D 22 23 66 66 64 31 33 38 22 20 6C 65 74 74 65 72 53 70 61 63 69 6E 67 3D 22 30 2E 30 30 30 30 30 30 22 20 6B 65 72 6E 69 6E 67 3D 22 30 22 3E 43 4C 49 43 4B 20 54 4F 20 4C 41 55 4E 43 48 20 46 49 47 48 54 45 52 3C 2F 66 6F 6E 74 3E 3C 2F 70 3E 00 BF 12 0C 00 00 00 DB 00 48 00 00 00 00 00 00 00 00 00 FF 14 27 00 00 00 DC 00 75 62 5E 87 0B 94 2E 60 75 62 7E 86 8B 96 2E 58 01 00 01 02 00 00 00 80 80 80 FF 01 25 D5 89 8B 97 F0 47 E8 00 7F 09 2E 00 00 00 DD 00 77 FB 0B F0 FF B0 15 50 ED 31 1F 00 90 01 80 80 80 FF 00 00 00 00 00 00 00 28 00 00 49 4E 54 45 52 43 45 50 54 4F 52 20 30 33 35 00 BF 12 0C 00 00 00 DD 00 48 00 00 00 00 00 00 00 00 00 7F 09 2A 00 00 00 DE 00 77 FB 0B ED 7F B0 12 28 ED 31 4B 00 90 01 80 80 80 FF 00 00 00 00 00 00 00 28 00 00 57 65 61 70 6F 6E 20 4E 61 6D 65 00 BF 12 0C 00 00 00 DE 00 48 00 00 00 00 00 00 00 00 00 7F 09 9D 00 00 00 DF 00 77 FB 0B ED 7F B0 12 28 ED 33 4B 00 90 01 80 80 80 FF 00 00 00 00 00 00 00 28 00 00 3C 70 20 61 6C 69 67 6E 3D 22 6C 65 66 74 22 3E 3C 66 6F 6E 74 20 66 61 63 65 3D 22 24 4E 6F 72 6D 61 6C 46 6F 6E 74 22 20 73 69 7A 65 3D 22 32 30 22 20 63 6F 6C 6F 72 3D 22 23 38 30 38 30 38 30 22 20 6C 65 74 74 65 72 53 70 61 63 69 6E 67 3D 22 30 2E 30 30 30 30 30 30 22 20 6B 65 72 6E 69 6E 67 3D 22 30 22 3E 53 68 69 70 20 53 74 61 74 75 73 3C 2F 66 6F 6E 74 3E 3C 2F 70 3E 00 BF 12 0C 00 00 00 DF 00 48 00 00 00 00 00 00 00 00 00 7F 09 A8 00 00 00 E0 00 77 FB 0C C2 FF B0 23 F0 ED 33 1F 00 90 01 FF D1 38 FF 00 00 00 00 00 00 00 28 00 00 3C 70 20 61 6C 69 67 6E 3D 22 6C 65 66 74 22 3E 3C 66 6F 6E 74 20 66 61 63 65 3D 22 24 54 69 74 6C 65 46 6F 6E 74 22 20 73 69 7A 65 3D 22 32 30 22 20 63 6F 6C 6F 72 3D 22 23 66 66 64 31 33 38 22 20 6C 65 74 74 65 72 53 70 61 63 69 6E 67 3D 22 30 2E 30 30 30 30 30 30 22 20 6B 65 72 6E 69 6E 67 3D 22 30 22 3E 43 4C 49 43 4B 20 54 4F 20 4C 41 55 4E 43 48 20 46 49 47 48 54 45 52 3C 2F 66 6F 6E 74 3E 3C 2F 70 3E 00 BF 12 0C 00 00 00 E0 00 48 00 00 00 00 00 00 00 00 00 FF 09 E3 02 00 00 E1 00 35 00 FF 0A 07 00 00 00 6E 6F 72 6D 61 6C 00 86 06 06 03 00 C6 00 00 86 06 06 04 00 C7 00 00 BF 06 0F 00 00 00 26 05 00 C8 00 1D 57 D8 67 80 6E 61 6D 65 00 BF 06 11 00 00 00 26 06 00 C9 00 1D 57 B8 C9 00 77 65 61 70 6F 6E 00 BF 06 11 00 00 00 26 07 00 CA 00 1D 57 B9 03 00 73 74 61 74 75 73 00 BF 06 18 00 00 00 26 08 00 CD 00 C5 5A 3E AD 1F 3A 53 10 E6 40 73 68 69 70 49 63 6F 6E 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 3F 03 02 00 00 00 07 00 40 00 02 07 05 00 02 07 06 00 02 07 07 00 FF 0A 09 00 00 00 64 69 73 61 62 6C 65 64 00 85 06 03 04 00 CE 00 BF 06 11 00 00 00 36 05 00 CF 00 1D 57 D8 67 80 0E 00 6E 61 6D 65 00 BF 06 13 00 00 00 36 06 00 D0 00 1D 57 B8 C9 00 0E 00 77 65 61 70 6F 6E 00 BF 06 13 00 00 00 36 07 00 D1 00 1D 57 B9 03 00 0E 00 73 74 61 74 75 73 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 3F 03 02 00 00 00 07 00 40 00 02 07 05 00 02 07 06 00 02 07 07 00 02 07 08 00 FF 0A 09 00 00 00 73 65 6C 65 63 74 65 64 00 85 06 03 03 00 D2 00 85 06 03 04 00 D3 00 BF 06 11 00 00 00 36 05 00 D4 00 1D 57 D8 67 80 1A 00 6E 61 6D 65 00 BF 06 13 00 00 00 36 06 00 D5 00 1D 57 B8 C9 00 1A 00 77 65 61 70 6F 6E 00 BF 06 13 00 00 00 36 07 00 D6 00 1D 57 B9 03 00 1A 00 73 74 61 74 75 73 00 BF 06 1A 00 00 00 36 08 00 D9 00 C5 5A 3E AD 1F 3A 53 10 E6 40 1A 00 73 68 69 70 49 63 6F 6E 00 86 06 06 0A 00 DA 00 00 BF 06 13 00 00 00 36 0B 00 DB 00 1D 68 59 4F C0 1A 00 6C 61 75 6E 63 68 00 BF 06 18 00 00 00 36 0C 00 3C 00 1D 5F 89 6B 80 1A 00 62 74 6E 48 65 6C 70 49 63 6F 6E 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 3F 03 02 00 00 00 07 00 40 00 02 07 05 00 02 07 06 00 02 07 07 00 02 07 0A 00 02 07 0B 00 FF 0A 12 00 00 00 73 65 6C 65 63 74 65 64 5F 64 69 73 61 62 6C 65 64 00 85 06 03 04 00 DC 00 BF 06 11 00 00 00 36 05 00 DD 00 1D 57 D8 67 80 26 00 6E 61 6D 65 00 BF 06 13 00 00 00 36 06 00 DE 00 1D 57 B8 C9 00 26 00 77 65 61 70 6F 6E 00 BF 06 13 00 00 00 36 07 00 DF 00 1D 57 B9 03 00 26 00 73 74 61 74 75 73 00 BF 06 13 00 00 00 36 0A 00 E0 00 1D 68 59 4F C0 26 00 6C 61 75 6E 63 68 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 3F 03 02 00 00 00 07 00 40 00 00 00 FF 09 60 00 00 00 E2 00 01 00 BF 06 10 00 00 00 26 01 00 E1 00 1C DC 0F B8 00 73 68 69 70 30 00 BF 06 10 00 00 00 26 0E 00 E1 00 1C DC 09 12 E0 73 68 69 70 31 00 BF 06 10 00 00 00 26 1B 00 E1 00 1C DC 0A 6D C0 73 68 69 70 32 00 BF 06 10 00 00 00 26 28 00 E1 00 1C DC 0B C8 A0 73 68 69 70 33 00 40 00 00 00 new:FF 14 29 00 00 00 DA 00 75 62 FE 8A 14 42 51 D8 75 64 9E 83 94 5C 51 70 01 00 01 14 00 A0 02 00 03 FF D1 38 FF 01 25 D5 92 14 5D F0 47 8C 00 7F 09 92 00 00 00 DB 00 77 FB 0C C2 FF B0 23 F0 ED 33 1F 00 90 01 FF D1 38 FF 00 00 00 00 00 00 00 28 00 00 3C 70 20 61 6C 69 67 6E 3D 22 6C 65 66 74 22 3E 3C 66 6F 6E 74 20 66 61 63 65 3D 22 24 54 69 74 6C 65 46 6F 6E 74 22 20 73 69 7A 65 3D 22 32 30 22 20 63 6F 6C 6F 72 3D 22 23 66 66 64 31 33 38 22 20 6C 65 74 74 65 72 53 70 61 63 69 6E 67 3D 22 30 2E 30 22 20 6B 65 72 6E 69 6E 67 3D 22 30 22 3E 4C 41 55 4E 43 48 3C 2F 66 6F 6E 74 3E 3C 2F 70 3E 00 BF 12 0C 00 00 00 DB 00 48 00 00 00 00 00 00 00 00 00 FF 14 27 00 00 00 DC 00 75 62 5E 87 0B 94 2E 60 75 62 7E 86 8B 96 2E 58 01 00 01 02 00 00 00 80 80 80 FF 01 25 D5 89 8B 97 F0 47 E8 00 7F 09 2E 00 00 00 DD 00 77 FB 0B F0 FF B0 15 50 ED 31 1F 00 90 01 80 80 80 FF 00 00 00 00 00 00 00 28 00 00 49 4E 54 45 52 43 45 50 54 4F 52 20 30 33 35 00 BF 12 0C 00 00 00 DD 00 48 00 00 00 00 00 00 00 00 00 7F 09 2A 00 00 00 DE 00 77 FB 0B ED 7F B0 12 28 ED 31 4B 00 90 01 80 80 80 FF 00 00 00 00 00 00 00 28 00 00 57 65 61 70 6F 6E 20 4E 61 6D 65 00 BF 12 0C 00 00 00 DE 00 48 00 00 00 00 00 00 00 00 00 7F 09 9D 00 00 00 DF 00 77 FB 0B ED 7F B0 12 28 ED 33 4B 00 90 01 80 80 80 FF 00 00 00 00 00 00 00 28 00 00 3C 70 20 61 6C 69 67 6E 3D 22 6C 65 66 74 22 3E 3C 66 6F 6E 74 20 66 61 63 65 3D 22 24 4E 6F 72 6D 61 6C 46 6F 6E 74 22 20 73 69 7A 65 3D 22 32 30 22 20 63 6F 6C 6F 72 3D 22 23 38 30 38 30 38 30 22 20 6C 65 74 74 65 72 53 70 61 63 69 6E 67 3D 22 30 2E 30 30 30 30 30 30 22 20 6B 65 72 6E 69 6E 67 3D 22 30 22 3E 53 68 69 70 20 53 74 61 74 75 73 3C 2F 66 6F 6E 74 3E 3C 2F 70 3E 00 BF 12 0C 00 00 00 DF 00 48 00 00 00 00 00 00 00 00 00 7F 09 92 00 00 00 E0 00 77 FB 0C C2 FF B0 23 F0 ED 33 1F 00 90 01 FF D1 38 FF 00 00 00 00 00 00 00 28 00 00 3C 70 20 61 6C 69 67 6E 3D 22 6C 65 66 74 22 3E 3C 66 6F 6E 74 20 66 61 63 65 3D 22 24 54 69 74 6C 65 46 6F 6E 74 22 20 73 69 7A 65 3D 22 32 30 22 20 63 6F 6C 6F 72 3D 22 23 66 66 64 31 33 38 22 20 6C 65 74 74 65 72 53 70 61 63 69 6E 67 3D 22 30 2E 30 22 20 6B 65 72 6E 69 6E 67 3D 22 30 22 3E 4C 41 55 4E 43 48 3C 2F 66 6F 6E 74 3E 3C 2F 70 3E 00 BF 12 0C 00 00 00 E0 00 48 00 00 00 00 00 00 00 00 00 FF 09 E3 02 00 00 E1 00 35 00 FF 0A 07 00 00 00 6E 6F 72 6D 61 6C 00 86 06 06 03 00 C6 00 00 86 06 06 04 00 C7 00 00 BF 06 0F 00 00 00 26 05 00 C8 00 1D 57 D8 67 80 6E 61 6D 65 00 BF 06 11 00 00 00 26 06 00 C9 00 1D 57 B8 C9 00 77 65 61 70 6F 6E 00 BF 06 11 00 00 00 26 07 00 CA 00 1D 57 B9 03 00 73 74 61 74 75 73 00 BF 06 18 00 00 00 26 08 00 CD 00 C5 5A 3E AD 1F 3A 53 10 E6 40 73 68 69 70 49 63 6F 6E 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 3F 03 02 00 00 00 07 00 40 00 02 07 05 00 02 07 06 00 02 07 07 00 FF 0A 09 00 00 00 64 69 73 61 62 6C 65 64 00 85 06 03 04 00 CE 00 BF 06 11 00 00 00 36 05 00 CF 00 1D 57 D8 67 80 0E 00 6E 61 6D 65 00 BF 06 13 00 00 00 36 06 00 D0 00 1D 57 B8 C9 00 0E 00 77 65 61 70 6F 6E 00 BF 06 13 00 00 00 36 07 00 D1 00 1D 57 B9 03 00 0E 00 73 74 61 74 75 73 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 3F 03 02 00 00 00 07 00 40 00 02 07 05 00 02 07 06 00 02 07 07 00 02 07 08 00 FF 0A 09 00 00 00 73 65 6C 65 63 74 65 64 00 85 06 03 03 00 D2 00 85 06 03 04 00 D3 00 BF 06 11 00 00 00 36 05 00 D4 00 1D 57 D8 67 80 1A 00 6E 61 6D 65 00 BF 06 13 00 00 00 36 06 00 D5 00 1D 57 B8 C9 00 1A 00 77 65 61 70 6F 6E 00 BF 06 13 00 00 00 36 07 00 D6 00 1D 57 B9 03 00 1A 00 73 74 61 74 75 73 00 BF 06 1A 00 00 00 36 08 00 D9 00 C5 5A 3E AD 1F 3A 53 10 E6 40 1A 00 73 68 69 70 49 63 6F 6E 00 86 06 06 0A 00 DA 00 00 BF 06 13 00 00 00 36 0B 00 DB 00 1D 68 59 4F C0 1A 00 6C 61 75 6E 63 68 00 BF 06 18 00 00 00 36 0C 00 3C 00 1D 5F 89 6B 80 1A 00 62 74 6E 48 65 6C 70 49 63 6F 6E 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 3F 03 02 00 00 00 07 00 40 00 02 07 05 00 02 07 06 00 02 07 07 00 02 07 0A 00 02 07 0B 00 FF 0A 12 00 00 00 73 65 6C 65 63 74 65 64 5F 64 69 73 61 62 6C 65 64 00 85 06 03 04 00 DC 00 BF 06 11 00 00 00 36 05 00 DD 00 1D 57 D8 67 80 26 00 6E 61 6D 65 00 BF 06 13 00 00 00 36 06 00 DE 00 1D 57 B8 C9 00 26 00 77 65 61 70 6F 6E 00 BF 06 13 00 00 00 36 07 00 DF 00 1D 57 B9 03 00 26 00 73 74 61 74 75 73 00 BF 06 13 00 00 00 36 0A 00 E0 00 1D 68 59 4F C0 26 00 6C 61 75 6E 63 68 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 3F 03 02 00 00 00 07 00 40 00 00 00 FF 09 8C 00 00 00 E2 00 01 00 BF 06 10 00 00 00 26 01 00 E1 00 1C DC 0F B8 00 73 68 69 70 30 00 BF 06 10 00 00 00 26 0E 00 E1 00 1C DC 09 12 E0 73 68 69 70 31 00 BF 06 10 00 00 00 26 1B 00 E1 00 1C DC 0A 6D C0 73 68 69 70 32 00 BF 06 10 00 00 00 26 28 00 E1 00 1C DC 0B C8 A0 73 68 69 70 33 00 BF 06 10 00 00 00 26 35 00 E1 00 1E 6E 05 48 E0 73 68 69 70 34 00 BF 06 10 00 00 00 26 42 00 E1 00 1E 6E 05 9F 98 73 68 69 70 35 00 40 00 00 00 To get this working I stole a some bytes from some (not so near) text strings. Changed "CLICK TO LAUNCH FIGHTER" to simply "LAUNCH" in two locations. To be honest, I'm not even sure where that text is displayed (or if it is). This freed up enough bytes to Change the continent/hanger sprite from: <DefineSprite id='226'> (old size -- 0x60 = 96 bytes) (new size -- 0x8C = 140 bytes) <PlaceObject2 idref='225' name='ship0' depth='1' matrix='t7041,-576'/> <PlaceObject2 idref='225' name='ship1' depth='14' matrix='t7041,2199'/> <PlaceObject2 idref='225' name='ship2' depth='27' matrix='t7041,4974'/> <PlaceObject2 idref='225' name='ship3' depth='40' matrix='t7041,7749'/><ShowFrame/> to: <DefineSprite id='226'> (old size -- 0x60 = 96 bytes) (new size -- 0x8C = 140 bytes) <PlaceObject2 idref='225' name='ship0' depth='1' matrix='t7041,-576'/> <PlaceObject2 idref='225' name='ship1' depth='14' matrix='t7041,2199'/> <PlaceObject2 idref='225' name='ship2' depth='27' matrix='t7041,4974'/> <PlaceObject2 idref='225' name='ship3' depth='40' matrix='t7041,7749'/> <PlaceObject2 idref='225' name='ship4' depth='53' matrix='t7041,10524'/> <PlaceObject2 idref='225' name='ship5' depth='66' matrix='t7041,13299'/><ShowFrame/> More testing is order to make sure I didn't break anything, and that the overall shiplist maintains correct spacing with the additional sprites, but I'm encouraged that the code change actually ran on the first try (or maybe frightened <.<) Edited April 30, 2013 by Amineri Link to comment Share on other sites More sharing options...
Yzaxtol Posted April 29, 2013 Share Posted April 29, 2013 Screenshot or it never happened :D hehe, just kidding but would love to see the UI changes :D Link to comment Share on other sites More sharing options...
johnnylump Posted April 29, 2013 Share Posted April 29, 2013 (edited) Amineri -- Sent you a PM with upk changes from way back when I tried this, and a couple of additional UI code changes that may be also be necessary to get this to work. Beyond this -- and if you're interested in pursuing it -- you might send a PM to twinj, who worked for some time on getting more than 6 X-Com soldiers in the tactical game, but apparently gave it up. He didn't post all of his work on here but said he was close, so your newfound ability to edit the UI may be the missing link in getting it working -- perhaps you could collaborate or ask him to send you all the code changes he made. Just a thought. Edited April 29, 2013 by johnnylump Link to comment Share on other sites More sharing options...
Amineri Posted April 29, 2013 Author Share Posted April 29, 2013 @JLThanks for the hex code. It considerably shortened how long it's taking me to get the upk changes in. Hopefullly I'll have some screenshots today, so Yzaxtol doesn't have to keep going on faith :) ------------------------------ I'm also playing around with another option, which is to open up a phantom "sixth continent" for the purposes of the hangar. This would function as a "Interceptor Storage/Repair". Interceptors could not be launched from here, but could be moved here to make room for buying additional interceptors. I'm also thinking it could act as overflow for building Firestorms, if your main HQ hanger is full. I'm not sure what other side effects adding another continent may have on the rest of the game, though -- definitely some testing will be required. Thoughts? Link to comment Share on other sites More sharing options...
johnnylump Posted April 29, 2013 Share Posted April 29, 2013 IIRC, at the moment, you can't transfer damaged interceptors, so you'd have to enable that option, as well. But with six interceptor slots available per continent, unless I'm missing something I have trouble imagining how much fun potential you would really gain with a storage barn for spares, given it would really only become useful if all 30 interceptor slots were already filled. There's some code I recall for a sixth continental bonus -- diplomacy or somesuch, which might have reduced panic -- but I'm unclear if the devs intended a sixth continent (presumably Oceania) or some kind of rotation of continental bonuses. But you might not have to add another "continent," just another outpost, anyway. Link to comment Share on other sites More sharing options...
Amineri Posted April 29, 2013 Author Share Posted April 29, 2013 Amazingly, the hex changes worked on the first try. The upk code had to be updated in no less than 12 separate locations to open up all six interceptors in all locations. Here is the screenshot for the disbelievers: ;)http://wiki.tesnexus.com/images/6/64/Six_Ints_per_Continent_Mod_Screenshot.jpg Link to comment Share on other sites More sharing options...
Amineri Posted April 29, 2013 Author Share Posted April 29, 2013 The "extra continent" for storage just isn't going to work. The m_arrContinents is used in too many other places. Adding another continent can make the game crash when starting a new game, so I'm going to abandon the idea for now. Link to comment Share on other sites More sharing options...
Amineri Posted April 29, 2013 Author Share Posted April 29, 2013 I've been testing further, and have come across the following glitches: 1) In the situation room, the correct number of interceptor icons is not displayed on the world map The map shows a single interceptor icon if there are six available in the hangar 2) The Launch window can display six windows for launching, but they are too large to all fit on the screen Here is what the launch window is currently looking like:http://wiki.tesnexus.com/images/e/e4/Six_Ints_Launch_Window_Debugging.jpg I can't very easily adjust the size of the indivdual launch windows, but I can move them all up and overlap them a bit. Any other suggestions as to how the layout might be arranged to be more aesthetically pleasing? Link to comment Share on other sites More sharing options...
johnnylump Posted April 29, 2013 Share Posted April 29, 2013 (edited) <p>Huh, I could've sworn that launch-jet UI boxes centered on the middle y on the screen -- it does that with 1 to 4 interceptors. Have you changed all instances of get_max_interceptors? Perhaps it's still centering as if there were 4. And I sure thought there was room for six, but maybe it's only five.</p> Edited April 29, 2013 by johnnylump Link to comment Share on other sites More sharing options...
Amineri Posted April 29, 2013 Author Share Posted April 29, 2013 (edited) I did change the MAX_NUM_INTERCEPTORS, but apparently the height being calculated for the new six-interceptor sprite isn't being returned correctly. It's using a built-in value '_height' to return the height, so I'm not sure where the issue is. I did remove the 50 pixel offset down, but it didn't help much. If there isn't room for six, I can squeeze the individual launch windows together a bit. This may cause some overlap when one is moused-over and expands, but that could be lived with I think. For now I have to figure out why the _height value isn't being returned correctly. EDIT: It's loading : this.shipListDefaultHeight=this.shipListMC._height; duing the package OnLoad() The relative y offset for the entire sprite collection is: this.shipListMC._y=RadarContactAlert.MAX_NUM_INTERCEPTORS/this.numInterceptors*this.shipListDefaultHeight/RadarContactAlert.MAX_NUM_INTERCEPTORS-RadarContactAlert.SHIP_HEIGHT_OFFSET*0.5; as you can see the MAX_NUM_INTERCEPTORS is being factored out, so has no effect. I think that is a logical bug with the original implementation. Edited April 29, 2013 by Amineri Link to comment Share on other sites More sharing options...
Recommended Posts