public SlotItemAlbumDetailTextureInfo(UISlotItemAlbumDetail.SlotItemAlbumDetailTextureInfo.GraphicType graphicType, int graphicSlotItemId, Vector3 scale, Vector3 offset, int width, int height) { this.mGraphicSlotItemMstId = graphicSlotItemId; this.mGraphicType = graphicType; this.mWidth = width; this.mHeight = height; this.mVector3_Offset = offset; this.mVector3_Scale = scale; this.mNeedPixelPerfect = false; }
public SlotItemAlbumDetailTextureInfo(UISlotItemAlbumDetail.SlotItemAlbumDetailTextureInfo.GraphicType graphicType, int graphicSlotItemId, Vector3 scale, Vector3 offset, bool needPixelPerfect) { this.mGraphicSlotItemMstId = graphicSlotItemId; this.mGraphicType = graphicType; this.mWidth = -1; this.mHeight = -1; this.mVector3_Offset = offset; this.mVector3_Scale = scale; this.mNeedPixelPerfect = needPixelPerfect; }
private Texture LoadTexture(UISlotItemAlbumDetail.SlotItemAlbumDetailTextureInfo.GraphicType graphicType, int graphicShipId) { switch (graphicType) { case UISlotItemAlbumDetail.SlotItemAlbumDetailTextureInfo.GraphicType.First: return(SingletonMonoBehaviour <ResourceManager> .Instance.SlotItemTexture.Load(this.mGraphicSlotItemMstId, 1)); case UISlotItemAlbumDetail.SlotItemAlbumDetailTextureInfo.GraphicType.Second: return(SingletonMonoBehaviour <ResourceManager> .Instance.SlotItemTexture.Load(this.mGraphicSlotItemMstId, 2)); case UISlotItemAlbumDetail.SlotItemAlbumDetailTextureInfo.GraphicType.Third: return(SingletonMonoBehaviour <ResourceManager> .Instance.SlotItemTexture.Load(this.mGraphicSlotItemMstId, 3)); case UISlotItemAlbumDetail.SlotItemAlbumDetailTextureInfo.GraphicType.Fourth: return(SingletonMonoBehaviour <ResourceManager> .Instance.SlotItemTexture.Load(this.mGraphicSlotItemMstId, 4)); default: return(null); } }