Page 1 of 1

How to work with UI Scaleform in C#?

Posted: Wed Oct 31, 2018 3:50 pm
by noterstone
Hello) How to work with Skaleform in C# solution? Or at this stage it is not possible to work with Skaleform in C#? I know that there is a similar UI system. I need to use exactly Skaleform.
In general, at the moment, C# features are very modest in contrast to C++?)

Re: How to work with UI Scaleform in C#?

Posted: Thu Nov 01, 2018 9:58 am
by bowlmaster
private void CreateAndAccessUI()
{

//Create or Get Instance of UI Element
Common.IUIElement mUIElement = Common.Global.gEnv.pFlashUI.GetUIElement("GFXTest");
mUIElement.SetVisible(true);

//Call a function
TUIData data = new TUIData();
SUIArguments args = new SUIArguments();
SFlashVarValue fVal = new SFlashVarValue("Test");
args.AddArguments(fVal, 1);
mUIElement.CallFunction("TestFunction", args);

}

Re: How to work with UI Scaleform in C#?

Posted: Thu Nov 01, 2018 12:35 pm
by noterstone
Thanks, friend)