Example #1
0
    private void UpdateQRCode()
    {
        Sticker sticker = new Sticker("", description.text, price.text, "", productOwner.text, 0, template);

        foreach (QROption option in qrOptions)
        {
            option.GetComponentInChildren <RawImage>().texture = StickerQRCode.CreateQRCode(sticker);
        }
    }
Example #2
0
 public void InitiateFavoriteStickerRow(Sticker sticker)
 {
     this.sticker        = sticker;
     stickerName.text    = sticker.stickerName;
     templateNumber.text = sticker.template.templateId;
     stickerSize.text    = sticker.template.size;
     dateTime.text       = sticker.dateSaved;
     qrCode.texture      = StickerQRCode.CreateQRCode(this.sticker);
 }
Example #3
0
    // Use this for initialization
    void Awake()
    {
        UpdateNumberPerSheetText();
        qrOptions = qrPreviewContent.GetComponentsInChildren <QROption>();

        Sticker sticker = new Sticker("", description.text, price.text, "", productOwner.text, 0, template);

        foreach (QROption option in qrOptions)
        {
            option.GetComponentInChildren <RawImage>().texture = StickerQRCode.CreateQRCode(sticker);
        }
    }
Example #4
0
 public void UpdateQRCode()
 {
     qrCode.texture = StickerQRCode.CreateQRCode(sticker);
 }