Jump to content

BeginFunctionOp and accessing Flash


TeamDragonpunk

Recommended Posts

Hi,

So, I'm adding the Intel Options panel from UIMission_GPIntelOptions to the rest of the missions (7 subtypes). The intel coding is straightforward (only about 200 lines of code), but I'm not getting anything (even a redscreen). I think I'm stuck at the Flash function BeginFunctionOp. Other than a utility class, we have no way of accessing or manipulating the Flash code, correct? The standard Options Panel for AlienFacility looks like this.

simulated function BuildOptionsPanel()
{
	LibraryPanel.MC.BeginFunctionOp("UpdateGoldenPathIntel");
	LibraryPanel.MC.QueueString("");
	LibraryPanel.MC.QueueString("");
	LibraryPanel.MC.QueueString("");
	LibraryPanel.MC.QueueString("");
	LibraryPanel.MC.QueueString("");
	LibraryPanel.MC.EndOp();

	// ---------------------

	LibraryPanel.MC.BeginFunctionOp("UpdateGoldenPathButtonBlade");
	LibraryPanel.MC.QueueString("");
	LibraryPanel.MC.QueueString(m_strLaunchMission);
	LibraryPanel.MC.QueueString(class'UIUtilities_Text'.default.m_strGenericCancel);

The intel options code before the Broadcast Tower mission looks like this..

simulated function BuildOptionsPanel()
{
	LibraryPanel.MC.BeginFunctionOp("UpdateGoldenPathIntelButtonBlade");
	LibraryPanel.MC.QueueString(IntelOptionsLabel);
	LibraryPanel.MC.QueueString(m_strLaunchMission);
	LibraryPanel.MC.QueueString(class'UIUtilities_Text'.default.m_strGenericCancel);

I was hoping I could use the internal intel logic in the class plus LibraryPanel.MC.QueueString(IntelOptionsLabel); to add the panel. Again though, nothing shows up. Now I'm wondering if it's something to do with the difference between BeginFunctionOp("UpdateGoldenPathButtonBlade" and BeginFunctionOp("UpdateGoldenPathIntelButtonBlade", but I'm not seeing any way to access the Flash code to test.

 

Thanks for any and all insight!

Link to comment
Share on other sites

  On 5/20/2016 at 5:20 PM, Dragon32 said:

RealityMachina's Intelligence Spending (Steam Workshop) sounds like it does what you're looking to do. Maybe have a look at that mod's source?

 

Just did. Looks like he ran into the same problem that I did, so he just copy pasted the entire panel from the broadcast tower. I was hoping to integrate it. We're both talking on Discord now with Elad about just creating a separate screen. So, the question of accessing the Flash still remains unfortunately.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...