Exemplo n.º 1
0
        public static swig.ImageResource LoadAppResource(swig.Native native, string path)
        {
            string appDirectory = GUI.Manager.GetEntryDirectory();
            string fullPath     = Path.Combine(appDirectory, path);

            return(native.LoadImageResource(fullPath));
        }
Exemplo n.º 2
0
        public static void Load(swig.Native native)
        {
            Play     = LoadAppResource(native, "resources/Play.png");
            Stop     = LoadAppResource(native, "resources/Stop.png");
            Pause    = LoadAppResource(native, "resources/Pause.png");
            Step     = LoadAppResource(native, "resources/Step.png");
            BackStep = LoadAppResource(native, "resources/BackStep.png");

            Icons["Copy"]  = LoadAppResource(native, "resources/icons/Copy.png");
            Icons["Paste"] = LoadAppResource(native, "resources/icons/Paste.png");

            Icons["AppIcon"] = LoadAppResource(native, "resources/icon.png");

            Icons["VisibleShow"] = LoadAppResource(native, "resources/icons/Visible_Show.png");
            Icons["VisibleHide"] = LoadAppResource(native, "resources/icons/Visible_Hide.png");

            Icons["EnlargeAnchor"] = LoadAppResource(native, "resources/icons/EnlargeAnchor.png");
            Icons["ShrinkAnchor"]  = LoadAppResource(native, "resources/icons/ShrinkAnchor.png");

            Icons["EnlargeAnchor"] = LoadAppResource(native, "resources/icons/EnlargeAnchor.png");
            Icons["ShrinkAnchor"]  = LoadAppResource(native, "resources/icons/ShrinkAnchor.png");

            Icons["AutoZoom_On"]  = LoadAppResource(native, "resources/icons/AutoZoom_On.png");
            Icons["AutoZoom_Off"] = LoadAppResource(native, "resources/icons/AutoZoom_Off.png");

            Icons["FileViewer_Directory"]     = LoadAppResource(native, "resources/icons/FileViewer_Directory.png");
            Icons["FileViewer_EffekseerProj"] = LoadAppResource(native, "resources/icons/FileViewer_EffekseerProj.png");

            Icons["ButtonMin"]       = LoadAppResource(native, "resources/icons/Button_Min.png");
            Icons["ButtonMax"]       = LoadAppResource(native, "resources/icons/Button_Max.png");
            Icons["ButtonMaxCancel"] = LoadAppResource(native, "resources/icons/Button_MaxCancel.png");
            Icons["ButtonClose"]     = LoadAppResource(native, "resources/icons/Button_Close.png");
        }
Exemplo n.º 3
0
        public static swig.ImageResource LoadAppResource(swig.Native native, string path)
        {
            string appDirectory = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
            string fullPath     = Path.Combine(appDirectory, path);

            return(native.LoadImageResource(fullPath));
        }
Exemplo n.º 4
0
        public static void Load(swig.Native native)
        {
            Play     = LoadAppResource(native, "resources/Play.png");
            Stop     = LoadAppResource(native, "resources/Stop.png");
            Pause    = LoadAppResource(native, "resources/Pause.png");
            Step     = LoadAppResource(native, "resources/Step.png");
            BackStep = LoadAppResource(native, "resources/BackStep.png");

            Icons["Copy"]  = LoadAppResource(native, "resources/icons/Copy.png");
            Icons["Paste"] = LoadAppResource(native, "resources/icons/Paste.png");

            Icons["AppIcon"]    = LoadAppResource(native, "resources/icon.png");
            Icons["NodeEmpty"]  = LoadAppResource(native, "resources/icons/NodeType_Empty.png");
            Icons["NodeModel"]  = LoadAppResource(native, "resources/icons/NodeType_Model.png");
            Icons["NodeRibbon"] = LoadAppResource(native, "resources/icons/NodeType_Ribbon.png");
            Icons["NodeRing"]   = LoadAppResource(native, "resources/icons/NodeType_Ring.png");
            Icons["NodeSprite"] = LoadAppResource(native, "resources/icons/NodeType_Sprite.png");
            Icons["NodeTrack"]  = LoadAppResource(native, "resources/icons/NodeType_Track.png");

            Icons["VisibleShow"] = LoadAppResource(native, "resources/icons/Visible_Show.png");
            Icons["VisibleHide"] = LoadAppResource(native, "resources/icons/Visible_Hide.png");

            Icons["PanelBehavior"]           = LoadAppResource(native, "resources/icons/Panel_Behavior.png");
            Icons["PanelCommon"]             = LoadAppResource(native, "resources/icons/Panel_Common.png");
            Icons["PanelCulling"]            = LoadAppResource(native, "resources/icons/Panel_Culling.png");
            Icons["PanelFCurve"]             = LoadAppResource(native, "resources/icons/Panel_FCurve.png");
            Icons["PanelFileViewer"]         = LoadAppResource(native, "resources/icons/Panel_FileViewer.png");
            Icons["PanelGenerationLocation"] = LoadAppResource(native, "resources/icons/Panel_GenerationLocation.png");
            Icons["PanelLocation"]           = LoadAppResource(native, "resources/icons/Panel_Location.png");
            Icons["PanelLocationAbs"]        = LoadAppResource(native, "resources/icons/Panel_LocationAbs.png");
            Icons["PanelNetwork"]            = LoadAppResource(native, "resources/icons/Panel_Network.png");
            Icons["PanelNodeTree"]           = LoadAppResource(native, "resources/icons/Panel_NodeTree.png");
            Icons["PanelOption"]             = LoadAppResource(native, "resources/icons/Panel_Option.png");
            Icons["PanelEnvironment"]        = LoadAppResource(native, "resources/icons/Panel_Environment.png");
            Icons["PanelRecorder"]           = LoadAppResource(native, "resources/icons/Panel_Recorder.png");
            Icons["PanelRenderer"]           = LoadAppResource(native, "resources/icons/Panel_Renderer.png");
            Icons["PanelRendererCommon"]     = LoadAppResource(native, "resources/icons/Panel_RendererCommon.png");
            Icons["PanelRotation"]           = LoadAppResource(native, "resources/icons/Panel_Rotation.png");
            Icons["PanelScale"]            = LoadAppResource(native, "resources/icons/Panel_Scale.png");
            Icons["PanelSound"]            = LoadAppResource(native, "resources/icons/Panel_Sound.png");
            Icons["PanelViewer"]           = LoadAppResource(native, "resources/icons/Panel_Viewer.png");
            Icons["PanelViewPoint"]        = LoadAppResource(native, "resources/icons/Panel_ViewPoint.png");
            Icons["PanelDepth"]            = LoadAppResource(native, "resources/icons/Panel_Depth.png");
            Icons["PanelGlobal"]           = LoadAppResource(native, "resources/icons/Panel_Global.png");
            Icons["PanelDynamicParameter"] = LoadAppResource(native, "resources/icons/Panel_DynamicParameter.png");

            Icons["EnlargeAnchor"] = LoadAppResource(native, "resources/icons/EnlargeAnchor.png");
            Icons["ShrinkAnchor"]  = LoadAppResource(native, "resources/icons/ShrinkAnchor.png");

            Icons["EnlargeAnchor"] = LoadAppResource(native, "resources/icons/EnlargeAnchor.png");
            Icons["ShrinkAnchor"]  = LoadAppResource(native, "resources/icons/ShrinkAnchor.png");

            Icons["AutoZoom_On"]  = LoadAppResource(native, "resources/icons/AutoZoom_On.png");
            Icons["AutoZoom_Off"] = LoadAppResource(native, "resources/icons/AutoZoom_Off.png");

            Icons["FileViewer_Directory"]     = LoadAppResource(native, "resources/icons/FileViewer_Directory.png");
            Icons["FileViewer_EffekseerProj"] = LoadAppResource(native, "resources/icons/FileViewer_EffekseerProj.png");
        }
Exemplo n.º 5
0
 public static void Load(swig.Native native)
 {
     Icon     = native.LoadImageResource("resources/icon.png");
     Play     = native.LoadImageResource("resources/Play.png");
     Stop     = native.LoadImageResource("resources/Stop.png");
     Pause    = native.LoadImageResource("resources/Pause.png");
     Step     = native.LoadImageResource("resources/Step.png");
     BackStep = native.LoadImageResource("resources/BackStep.png");
 }
Exemplo n.º 6
0
 public static swig.ImageResource Load(swig.Native native, string path)
 {
     if (tempImages.ContainsKey(path))
     {
         return(tempImages[path]);
     }
     else
     {
         var img = native.LoadImageResource(path);
         if (img != null)
         {
             tempImages.Add(path, img);
         }
         return(img);
     }
 }
Exemplo n.º 7
0
        public static void Load(swig.Native native)
        {
            Play     = LoadAppResource(native, "resources/Play.png");
            Stop     = LoadAppResource(native, "resources/Stop.png");
            Pause    = LoadAppResource(native, "resources/Pause.png");
            Step     = LoadAppResource(native, "resources/Step.png");
            BackStep = LoadAppResource(native, "resources/BackStep.png");

            Icons["AppIcon"]    = LoadAppResource(native, "resources/icon.png");
            Icons["NodeEmpty"]  = LoadAppResource(native, "resources/icons/NodeType_Empty.png");
            Icons["NodeModel"]  = LoadAppResource(native, "resources/icons/NodeType_Model.png");
            Icons["NodeRibbon"] = LoadAppResource(native, "resources/icons/NodeType_Ribbon.png");
            Icons["NodeRing"]   = LoadAppResource(native, "resources/icons/NodeType_Ring.png");
            Icons["NodeSprite"] = LoadAppResource(native, "resources/icons/NodeType_Sprite.png");
            Icons["NodeTrack"]  = LoadAppResource(native, "resources/icons/NodeType_Track.png");

            Icons["VisibleShow"] = LoadAppResource(native, "resources/icons/Visible_Show.png");
            Icons["VisibleHide"] = LoadAppResource(native, "resources/icons/Visible_Hide.png");

            Icons["PanelBehavior"]           = LoadAppResource(native, "resources/icons/Panel_Behavior.png");
            Icons["PanelCommon"]             = LoadAppResource(native, "resources/icons/Panel_Common.png");
            Icons["PanelCulling"]            = LoadAppResource(native, "resources/icons/Panel_Culling.png");
            Icons["PanelFCurve"]             = LoadAppResource(native, "resources/icons/Panel_FCurve.png");
            Icons["PanelFileViewer"]         = LoadAppResource(native, "resources/icons/Panel_FileViewer.png");
            Icons["PanelGenerationLocation"] = LoadAppResource(native, "resources/icons/Panel_GenerationLocation.png");
            Icons["PanelLocation"]           = LoadAppResource(native, "resources/icons/Panel_Location.png");
            Icons["PanelLocationAbs"]        = LoadAppResource(native, "resources/icons/Panel_LocationAbs.png");
            Icons["PanelNetwork"]            = LoadAppResource(native, "resources/icons/Panel_Network.png");
            Icons["PanelNodeTree"]           = LoadAppResource(native, "resources/icons/Panel_NodeTree.png");
            Icons["PanelOption"]             = LoadAppResource(native, "resources/icons/Panel_Option.png");
            Icons["PanelRecorder"]           = LoadAppResource(native, "resources/icons/Panel_Recorder.png");
            Icons["PanelRenderer"]           = LoadAppResource(native, "resources/icons/Panel_Renderer.png");
            Icons["PanelRendererCommon"]     = LoadAppResource(native, "resources/icons/Panel_RendererCommon.png");
            Icons["PanelRotation"]           = LoadAppResource(native, "resources/icons/Panel_Rotation.png");
            Icons["PanelScale"]     = LoadAppResource(native, "resources/icons/Panel_Scale.png");
            Icons["PanelSound"]     = LoadAppResource(native, "resources/icons/Panel_Sound.png");
            Icons["PanelViewer"]    = LoadAppResource(native, "resources/icons/Panel_Viewer.png");
            Icons["PanelViewPoint"] = LoadAppResource(native, "resources/icons/Panel_ViewPoint.png");
        }
Exemplo n.º 8
0
        public static swig.ImageResource Load(swig.Native native, string path, bool isRequiredToReload = false)
        {
            if (tempImages.ContainsKey(path) && !isRequiredToReload)
            {
                return(tempImages[path]);
            }
            else
            {
                if (tempImages.ContainsKey(path))
                {
                    tempImages[path].Invalidate();
                    tempImages[path].Validate();
                    return(tempImages[path]);
                }

                var img = native.LoadImageResource(path);
                if (img != null)
                {
                    tempImages.Add(path, img);
                }
                return(img);
            }
        }
Exemplo n.º 9
0
 public static void Load(swig.Native native)
 {
     Icon = native.LoadImageResource("resources/icon.png");
 }