///////////////////////////////System presence detection/////////////////////////////// public static bool IsPresent(Decal.Adapter.Wrappers.PluginHost pHost, eViewSystem VSystem) { switch (VSystem) { case eViewSystem.DecalInject: return true; case eViewSystem.VirindiViewService: return VirindiViewsPresent(pHost); default: return false; } }
///////////////////////////////System presence detection/////////////////////////////// public static bool IsPresent(Decal.Adapter.Wrappers.PluginHost pHost, eViewSystem VSystem) { switch (VSystem) { case eViewSystem.DecalInject: return(true); case eViewSystem.VirindiViewService: return(VirindiViewsPresent(pHost)); default: return(false); } }
public static IView CreateViewXML(Decal.Adapter.Wrappers.PluginHost pHost, string pXML, eViewSystem VSystem) { if (!IsPresent(pHost, VSystem)) return null; switch (VSystem) { case eViewSystem.DecalInject: return CreateDecalViewXML(pHost, pXML); case eViewSystem.VirindiViewService: #if VVS_REFERENCED return CreateMyHudViewXML(pHost, pXML); #else break; #endif } return null; }
public static IView CreateViewXML(Decal.Adapter.Wrappers.PluginHost pHost, string pXML, eViewSystem VSystem) { if (!IsPresent(pHost, VSystem)) { return(null); } switch (VSystem) { case eViewSystem.DecalInject: return(CreateDecalViewXML(pHost, pXML)); case eViewSystem.VirindiViewService: #if VVS_REFERENCED return(CreateMyHudViewXML(pHost, pXML)); #else break; #endif } return(null); }