Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
Fixes Audience definition UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Str4tos committed Feb 23, 2021
1 parent da5329a commit 2bc8335
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
37 changes: 18 additions & 19 deletions Prefabs/ConsentUITemplate.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ MonoBehaviour:
- id: 34
text: Acepto
- id: 35
text: "Jag godk\xE4nner"
text: "Jag\_godk\xE4nner"
- id: 37
text: Kabul ediyorum
- id: 39
Expand Down Expand Up @@ -733,7 +733,7 @@ MonoBehaviour:
- id: 34
text: Cancelalo todo
- id: 35
text: Avbryt alla
text: Avbryt allt
- id: 37
text: Hepsini iptal et
- id: 39
Expand Down Expand Up @@ -1058,7 +1058,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &48348063199003343
RectTransform:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1962,11 +1962,10 @@ MonoBehaviour:
socio con respecto a las tecnolog\xEDas y m\xE9todos de recopilaci\xF3n de la
informaci\xF3n. En un caso necesario, es posible desactivar cualquier red publicitaria."
- id: 35
text: "Genom att klicka p\xE5 knappen \u201DJag godk\xE4nner\u201D godk\xE4nner
du att tredjepartnerna som anges nedan anv\xE4nder din personliga information.
Du kan ocks\xE5 bekanta dig med varje partners sekretesspolicy ang\xE5ende teknik
och metoder f\xF6r att samla in information. Alla annonsn\xE4tverk kan inaktiveras
vid behov."
text: "Genom att klicka p\xE5 knappen \"Jag\_godk\xE4nner\" accepterar du att
tredjepartspartnerna som anges nedan anv\xE4nder dina personuppgifter. Du kan
l\xE4sa mer om varje partners sekretesspolicy ang\xE5ende teknik och metoder
f\xF6r insamling av information. Alla annonsn\xE4tverk kan inaktiveras vid behov."
- id: 37
text: "Kabul Ediyorum'u t\u0131klayarak ki\u015Fisel bilgilerinizin a\u015Fa\u011F\u0131da
listelenen \xFC\xE7\xFCnc\xFC taraf ortaklar\u0131n kullanmalar\u0131na izin
Expand Down Expand Up @@ -2847,7 +2846,7 @@ MonoBehaviour:
- id: 10
text: Refuse
- id: 30
text: "\u6211\u62D2\u7EDD"
text: "\u041E\u0442\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0441\u044C"
- id: 1
text: "\u0623\u0631\u0641\u0636"
- id: 6
Expand Down Expand Up @@ -4038,7 +4037,7 @@ MonoBehaviour:
- id: 34
text: "\xBFEst\xE1s listo para jugar?"
- id: 35
text: Ska vi spela?
text: "L\xE5t oss spela?"
- id: 37
text: "Oynayal\u0131m m\u0131?"
- id: 39
Expand Down Expand Up @@ -4309,7 +4308,7 @@ MonoBehaviour:
- id: 34
text: Acepto
- id: 35
text: "Jag godk\xE4nner"
text: "Jag\_godk\xE4nner"
- id: 37
text: Kabul ediyorum
- id: 39
Expand Down Expand Up @@ -4965,14 +4964,14 @@ MonoBehaviour:
obtener m\xE1s informaci\xF3n sobre el almacenamiento y el uso de los datos
que recibimos."
- id: 35
text: "Interne k\xF6p, mellansidesannonser och annonser f\xF6r bel\xF6ning \xE4r
en del av v\xE5r mobilapp. Ett internt k\xF6p \xE4r ett k\xF6p av varor med
riktiga pengar som debiteras fr\xE5n ditt riktiga bankkort. Du kan avbryta eller
justera alternativen f\xF6r interna ink\xF6p i enhetens inst\xE4llningar. Appen
samlar in och bearbetar din personliga information f\xF6r att f\xF6rb\xE4ttra
kvaliteten p\xE5 tj\xE4nsterna. Genom att klicka p\xE5 knappen \u201DJag godk\xE4nner\u201D
godk\xE4nner du dessa villkor. L\xE4s v\xE5r sekretesspolicy f\xF6r mer information
om lagring och anv\xE4ndning av de uppgifter vi f\xE5r."
text: "K\xF6p i appar, mellansidesannonser och bel\xF6ningsannonser \xE4r en del
av v\xE5r mobilapp. Ett k\xF6p i en app \xE4r ett k\xF6p av varor med riktiga
pengar som debiteras fr\xE5n ditt riktiga bankkort. Du kan avbryta eller justera
alternativen f\xF6r interna ink\xF6p i enhetens inst\xE4llningar. Appen samlar
in och behandlar dina personuppgifter f\xF6r att f\xF6rb\xE4ttra appens kvalitet.
Genom att klicka p\xE5 knappen \"Jag\_godk\xE4nner\" accepterar\_du dessa villkor.
L\xE4s v\xE5r sekretesspolicy f\xF6r mer information om lagring och anv\xE4ndning
av de uppgifter vi f\xE5r."
- id: 37
text: "\u0130\xE7 al\u0131\u015Fveri\u015Fler, ge\xE7i\u015F reklamlar\u0131 ve
\xF6d\xFCl reklamlar\u0131 mobil uygulamam\u0131z\u0131n bir par\xE7as\u0131d\u0131r.
Expand Down
7 changes: 3 additions & 4 deletions Runtime/AudienceDefinitionUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,14 @@ private void Start()
selectedYearColor = Color.clear;
}
currentYear = DateTime.Now.Year;
textPositions = new Vector2[components.Count];
textPositions = new Vector2[components.Count];
selectedYear = currentYear - userInitialAge;
for (int i = 0; i < components.Count; i++)
{
textPositions[i] = components[i].transform.position;
components[i].text = ( currentYear - userInitialAge + 2 - i ).ToString();
components[i].text = ( selectedYear + 2 - i ).ToString();
}

selectedYear = currentYear - userInitialAge;

SetTextColors();
}

Expand Down
6 changes: 4 additions & 2 deletions Runtime/ConsentRequestParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ public sealed class ConsentRequestParameters : ScriptableObject
#region Fileds
public const string defaultAssetPath = "CASConsentRequestParameters";

public Action OnConsent;

public Action OnConsent;

#pragma warning disable 649 // is never assigned to, and will always have its default value null
[SerializeField]
internal bool showInEditor = true;
[SerializeField]
Expand All @@ -34,6 +35,7 @@ public sealed class ConsentRequestParameters : ScriptableObject
private TypedText[] privacyPolicyUrl;
[SerializeField]
private TypedText[] termsOfUseUrl;
#pragma warning restore 649

internal int resetStatus = 0;
#endregion
Expand Down

0 comments on commit 2bc8335

Please sign in to comment.