Wiki

Clone wiki

template / Files Edited in Fungus

DialogInput.cs -

#!C#

if (Input.GetMouseButtonDown (0)

to

#!C#


if (Input.GetMouseButtonDown (0) && !MiscHelper.isPointerOverPauseItems () && !G2WBackButtonHelper.isPauseOn) { 

                    SetNextLineFlag();
                }

SaveManager.cs - Edit LoadSavedGame so that user can start from Chapter start if he uses the shortcut buttons at Level Selection.

#!C#

 protected virtual void LoadSavedGame(string saveDataKey)
        {

            if (GameConstants.isUnlockedBuild)
            {
                var flowchart = GameObject.FindObjectsOfType<Flowchart>();

                foreach (Flowchart f in flowchart)
                {
                    if (f.GetComponentInChildren<Comment>() != null)
                    {
                        Block b = f.FindBlock("New Block");
                        f.ExecuteBlock(b, f.GetComponentInChildren<Comment>().CommandIndex + 1);
                    }
                }
                GameConstants.isUnlockedBuild = false;
            }
            else
            {

                if (ReadSaveHistory(saveDataKey))
                {
                    saveHistory.ClearRewoundSavePoints();
                    saveHistory.LoadLatestSavePoint();
                }
            }
        }

Updated