aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs37
1 files changed, 25 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs b/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs
index c23cea5..35ce2cb 100644
--- a/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs
+++ b/OpenSim/Region/CoreModules/Scripting/LoadImageURL/LoadImageURLModule.cs
@@ -29,6 +29,7 @@ using System;
29using System.Drawing; 29using System.Drawing;
30using System.IO; 30using System.IO;
31using System.Net; 31using System.Net;
32using Mono.Addins;
32using Nini.Config; 33using Nini.Config;
33using OpenMetaverse; 34using OpenMetaverse;
34using OpenMetaverse.Imaging; 35using OpenMetaverse.Imaging;
@@ -39,7 +40,8 @@ using System.Reflection;
39 40
40namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL 41namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL
41{ 42{
42 public class LoadImageURLModule : IRegionModule, IDynamicTextureRender 43 [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
44 public class LoadImageURLModule : ISharedRegionModule, IDynamicTextureRender
43 { 45 {
44 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 46 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
45 47
@@ -97,20 +99,28 @@ namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL
97 99
98 #endregion 100 #endregion
99 101
100 #region IRegionModule Members 102 #region ISharedRegionModule Members
101 103
102 public void Initialise(Scene scene, IConfigSource config) 104 public void Initialise(IConfigSource config)
105 {
106 m_proxyurl = config.Configs["Startup"].GetString("HttpProxy");
107 m_proxyexcepts = config.Configs["Startup"].GetString("HttpProxyExceptions");
108 }
109
110 public void AddRegion(Scene scene)
103 { 111 {
104 if (m_scene == null) 112 if (m_scene == null)
105 { 113 {
106 m_scene = scene; 114 m_scene = scene;
107 } 115 }
108
109 m_proxyurl = config.Configs["Startup"].GetString("HttpProxy");
110 m_proxyexcepts = config.Configs["Startup"].GetString("HttpProxyExceptions");
111 } 116 }
112 117
113 public void PostInitialise() 118 public Type ReplaceableInterface
119 {
120 get { return null; }
121 }
122
123 public void RegionLoaded(Scene scene)
114 { 124 {
115 m_textureManager = m_scene.RequestModuleInterface<IDynamicTextureManager>(); 125 m_textureManager = m_scene.RequestModuleInterface<IDynamicTextureManager>();
116 if (m_textureManager != null) 126 if (m_textureManager != null)
@@ -119,18 +129,21 @@ namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL
119 } 129 }
120 } 130 }
121 131
122 public void Close() 132 public void RemoveRegion(Scene scene)
123 { 133 {
124 } 134 }
125 135
126 public string Name 136 public void PostInitialise()
127 { 137 {
128 get { return m_name; }
129 } 138 }
130 139
131 public bool IsSharedModule 140 public void Close()
132 { 141 {
133 get { return true; } 142 }
143
144 public string Name
145 {
146 get { return m_name; }
134 } 147 }
135 148
136 #endregion 149 #endregion