Example #1
0
 // Token: 0x06002704 RID: 9988 RVA: 0x0008D6E4 File Offset: 0x0008B8E4
 public static ThemeStyleResource FromSlabStyle(SlabStyleFile style, string owaVersion, bool shouldSkipThemeFolder)
 {
     ResourceTarget.Filter targetFilter = ResourceTarget.Any;
     if (style.IsHighResolutionSprite())
     {
         if (style.IsForLayout(LayoutType.TouchWide))
         {
             targetFilter = ResourceTarget.WideHighResolution;
         }
         if (style.IsForLayout(LayoutType.TouchNarrow))
         {
             targetFilter = ResourceTarget.NarrowHighResolution;
         }
     }
     else
     {
         if (style.IsForLayout(LayoutType.Mouse))
         {
             targetFilter = ResourceTarget.MouseOnly;
         }
         if (style.IsForLayout(LayoutType.TouchWide))
         {
             targetFilter = ResourceTarget.WideOnly;
         }
         if (style.IsForLayout(LayoutType.TouchNarrow))
         {
             targetFilter = ResourceTarget.NarrowOnly;
         }
     }
     if (style.IsSprite())
     {
         return(new ThemeStyleResource(style.Name, targetFilter, owaVersion, shouldSkipThemeFolder));
     }
     return(new LocalizedThemeStyleResource(style.Name, targetFilter, owaVersion, shouldSkipThemeFolder));
 }
Example #2
0
 public ResourceBase(string resourceName, ResourceTarget.Filter targetFilter, string currentOwaVersion, bool hasUserSpecificData)
 {
     if (resourceName != null)
     {
         this.resourceName = resourceName.ToLowerInvariant();
     }
     this.hasUserSpecificData         = hasUserSpecificData;
     this.targetFilter                = targetFilter;
     this.resourcesRelativeFolderPath = ResourcePathBuilderUtilities.GetResourcesRelativeFolderPath(currentOwaVersion);
 }
Example #3
0
 // Token: 0x06002701 RID: 9985 RVA: 0x0008D653 File Offset: 0x0008B853
 public ThemeStyleResource(string resourceName, ResourceTarget.Filter targetFilter, string currentOwaVersion, bool skipThemeFolder) : base(resourceName, targetFilter, currentOwaVersion, true)
 {
     this.skipThemeFolder = skipThemeFolder;
 }
Example #4
0
 public GlobalizeScriptResource(string resourceName, ResourceTarget.Filter targetFilter, string currentVersion, bool hasUserSpecificData = false) : base(resourceName, targetFilter, currentVersion, hasUserSpecificData, true, false)
 {
 }
 public LocalizedExtensibilityStringsScriptResource(string resourceName, ResourceTarget.Filter targetFilter, string currentOwaVersion) : base(resourceName, targetFilter, currentOwaVersion, true, false, false)
 {
 }
 // Token: 0x060026FE RID: 9982 RVA: 0x0008D5F4 File Offset: 0x0008B7F4
 public StyleResource(string resourceName, ResourceTarget.Filter targetFilter, string currentOwaVersion, bool hasUserSpecificData) : base(resourceName, targetFilter, currentOwaVersion, hasUserSpecificData)
 {
 }
Example #7
0
 // Token: 0x060026F3 RID: 9971 RVA: 0x0008D3C0 File Offset: 0x0008B5C0
 public LocalizedStringsScriptResource(string resourceName, ResourceTarget.Filter targetFilter, string currentOwaVersion) : base(resourceName, targetFilter, currentOwaVersion, true, false, false)
 {
     this.resourceName = resourceName;
 }
Example #8
0
 public ScriptResource(string resourceName, ResourceTarget.Filter targetFilter, string currentOwaVersion, bool hasUserSpecificData = false, bool isExternalDrop = false, bool isFullPath = false) : base(resourceName, targetFilter, currentOwaVersion, hasUserSpecificData)
 {
     this.isFullPath     = isFullPath;
     this.isExternalDrop = isExternalDrop;
 }
 public GlobalizeCultureScriptResource(ResourceTarget.Filter targetFilter, string currentOwaVersion) : base(null, targetFilter, currentOwaVersion, true)
 {
 }
Example #10
0
 // Token: 0x06002707 RID: 9991 RVA: 0x0008D7A0 File Offset: 0x0008B9A0
 public LocalizedThemeStyleResource(string resourceName, ResourceTarget.Filter targetFilter, string currentOwaVersion, bool skipThemeFolder) : base(resourceName, targetFilter, currentOwaVersion, skipThemeFolder)
 {
 }