Пример #1
0
    public void UpdateAllData()
    {
        Fungus.AdvUpdateOption _option = GetOption();

        #if UNITY_EDITOR
        int callOrder = 0;
        foreach (AdvSpreadsheet spreadsheet in advSpreadsheets)
        {
            foreach (AdvPagePrefab item in spreadsheet.Pages)
            {
                DelayCall(() => AdvScenarioManagerEditor.AdvUpdatePrefab(webServiceURL, spreadsheet.SpreadsheetID, item.Page_gid, item, _option, false, autoRemoveUnlinkCmd), callOrder);
                callOrder++;
            }
        }
        #endif
    }
Пример #2
0
 public Fungus.AdvUpdateOption GetOption()
 {
     Fungus.AdvUpdateOption _option = new Fungus.AdvUpdateOption()
     {
         sayText       = _sayContentText,
         selectionText = _SelectionContentText,
         sayTerm       = _saySpeakerTerm,
         saySprite     = _sayAvatarSprite,
         sayVoice      = _sayVoice,
         blockName     = _blockName,
         background    = _background,
         CG            = _CG,
         billboard     = _billboard,
         BGM           = _bgm,
     };
     return(_option);
 }
Пример #3
0
    //Mapping adv option and CSVCommandMapping index
    public static bool CheckOptionInIndex(Fungus.AdvUpdateOption option, int index)
    {
        if (index == 0 || index == 1)
        {
            if (option.background)
            {
                return(true);
            }
        }
        if (index == 2 || index == 3)
        {
            if (option.CG)
            {
                return(true);
            }
        }
        if (index == 4 || index == 5 || index == 6 || index == 7)
        {
            if (option.billboard)
            {
                return(true);
            }
        }
        if (index == 8)
        {
            if (option.selection || option.selectionText)
            {
                return(true);
            }
        }
        if (index == 9)
        {
            if (option.jump)
            {
                return(true);
            }
        }
        if (index == 10)
        {
            if (option.timeline)
            {
                return(true);
            }
        }
        if (index == 11)
        {
            if (option.BGM)
            {
                return(true);
            }
        }
        if (index == 12)
        {
            if (option.wait)
            {
                return(true);
            }
        }
        if (index == 13 || index == 14 || index == 15 || index == 16)
        {
            if (option.punch)
            {
                return(true);
            }
        }
        if (index == 17)
        {
            if (option.entrance)
            {
                return(true);
            }
        }

        return(false);
    }
    public static void AdvUpdatePrefab(string sURL, string sID, string gID, AdvPagePrefab page, Fungus.AdvUpdateOption opt, bool popup, bool autoRm = false)
    {
        if (page == null || page.prefab == null)
        {
            return;
        }

        AdvScenarioManagerEditor instance = new AdvScenarioManagerEditor();

        instance.webServiceURL = sURL;
        instance.spreadsheetId = sID;
        instance.sheet_gid     = gID;
        instance.pageRef       = page;
        instance.option        = opt;
        instance.importType    = ImportType.Data;
        instance.autoRemove    = autoRm;
        instance.popupDetal    = popup;
        instance.Import_Google(false);
    }