1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace AnyThinkAds.Api{
- public class ATNativeItemProperty {
- public int x;
- public int y;
- public int width;
- public int height;
- public bool usesPixel;
- public string backgroundColor;
- public string textColor; //只是针对text的view有效
- public int textSize; //只是针对text的view有效
- public bool isCustomClick; //只针对Android
- public ATNativeItemProperty(int x, int y, int width, int height, string backgroundColor, string textColor, int textSize, bool usesPixel, bool isCustomClick)
- {
- this.x = x;
- this.y = y;
- this.width = width;
- this.height = height;
- this.usesPixel = usesPixel;
- this.backgroundColor = backgroundColor;
- this.textColor = textColor;
- this.textSize = textSize;
- this.isCustomClick = isCustomClick;
- }
- public ATNativeItemProperty(int x, int y, int width, int height, string backgroundColor, string textColor, int textSize, bool usesPixel)
- {
- this.x = x;
- this.y = y;
- this.width = width;
- this.height = height;
- this.usesPixel = usesPixel;
- this.backgroundColor = backgroundColor;
- this.textColor = textColor;
- this.textSize = textSize;
- }
- public ATNativeItemProperty(int x,int y,int width,int height,string backgroundColor,string textColor,int textSize){
- this.x = x;
- this.y = y;
- this.width = width;
- this.height = height;
- this.backgroundColor = backgroundColor;
- this.textColor = textColor;
- this.textSize = textSize;
- #if UNITY_ANDROID
- this.usesPixel = true;
- #else
- this.usesPixel = false;
- #endif
- }
- }
- }
|