예제 #1
0
        internal static DialogPanel Instance(Node parent, GMData.Mod.GEvent eventObj)
        {
            var dialogNode = (DialogPanel)ResourceLoader.Load <PackedScene>(path).Instance();

            dialogNode.gEventObj = eventObj;

            parent.AddChild(dialogNode);

            return(dialogNode);
        }
예제 #2
0
        public Mod(string name, string path)
        {
            this.name = name;
            this.path = path;

            languages   = Language.Load(path + "/language");
            initSelects = InitSelect.Load(name, path + "/init_select");
            personName  = PersonName.Load(path + "/person_name");
            parties     = Party.Load(name, path + "/party");
            departs     = Depart.Load(name, path + "/depart");
            pops        = Pop.Load(name, path + "/pop");
            common      = Common.Load(name, path + "/common");
            events      = GEvent.Load(name, path + "/event");
            warns       = Warn.Load(name, path + "/warn");
            risks       = Risk.Load(name, path + "/risk");
            adjusts     = Adjust.Load(name, path + "/adjust");
        }