Exemple #1
0
        protected override void LoadContent(HTMLTextureRenderer renderer, Size size, int slice)
        {
            string patchPath;

            FHost.GetHostPath(out patchPath);
            renderer.LoadString(size, FHtmlIn[slice], FBaseUrlIn[slice], Path.GetDirectoryName(patchPath));
        }
        private void OnPrepareGraph(object sender, EventArgs e)
        {
            var    data = ValueDataHolder.Instance;
            string hostPath;

            FHost.GetHostPath(out hostPath);

            var value = new ScopedValuepread {
                TargetScope = FScopeIn[0], Values = FValueIn, Path = hostPath
            };

            data.UpdateData(FSendStringIn[0], value);
        }
        private void OnRender(object sender, EventArgs e)
        {
            var    data = ValueDataHolder.Instance;
            string hostPath;

            FHost.GetHostPath(out hostPath);

            bool found;
            var  value = data.GetData(FReceiveStringIn[0], out found);

            if (value.TargetScope == Scope.Module && value.Path != hostPath)
            {
                FOutput.SliceCount = 0;
                return;
            }

            FOutput.SliceCount = value.Values.SliceCount;
            FOutput.AssignFrom(value.Values);
        }