Forum rules - please read before posting.

Gather text in ActionListEditorWindow

edited November 2016 in Technical Q&A
u5.3.6p8
ac1.54c

Hi.

I'm working on a hack that I can gather text (add new line ids and update text for existing actions) for the currently open ActionList in the ActionListEditorWindow.
The gather text button in the settings takes a long time and always kicks me out of the scene and opens a random one.

I added 

if (ToolbarButton (position.width-(buttonWidth*7f), buttonWidth*1.5f, showLabel, "Gather text", 6))
{
if (isAsset)
{
AC.KickStarter.speechManager.ProcessActionListAsset(windowData.targetAsset,true);
}
else
{
AC.KickStarter.speechManager.ProcessActionList(windowData.target,true);
}


in the ActionListEditorWindow.cs and set the ProcessAction... public in the speech manager.
public void ProcessActionListAsset (ActionListAsset actionListAsset, bool onlySeekNew)
public void ProcessActionList (ActionList actionList, bool onlySeekNew)


Now ...
If onlySeekNew = true
It sets new ids for new speech actions, which is good.
But it doesn't update the speech actions where I changed text.

so when onlySeekNew = false
I face the problem that all actions get new lineids

Could you give me a hint?





Comments

  • I got an idea on how to get me stuff working without touching the gather text code and without needing the line ids and texts in sync.
    I'll try it soon

    I think it's better to leave AC-code alone :)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.