Commit cbf5e7b9 authored by Yousef Sameh's avatar Yousef Sameh
parents 3ac4649f 838d310a
...@@ -2,30 +2,30 @@ C/C++ Structured Logq ...@@ -2,30 +2,30 @@ C/C++ Structured Logq
o o
mD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\additional_project_files.txtC mD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\additional_project_files.txtC
A A
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  3 ֡3n ?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  3 ֡3n
l l
jD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\android_gradle_build.json  3 ֡3s jD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\android_gradle_build.json  3 ֡3s
q q
oD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\android_gradle_build_mini.json  3 oD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\android_gradle_build_mini.json  3
֡3` ֡3`
^ ^
\D:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\build.ninja  3 ֡3d \D:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\build.ninja  3 ֡3d
b b
`D:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\build.ninja.txt  3i `D:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\build.ninja.txt  3i
g g
eD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\build_file_index.txt  3 ֡3j eD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\build_file_index.txt  3 ֡3j
h h
fD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\compile_commands.json  3 ֡3n fD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\compile_commands.json  3 ֡3n
l l
jD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\compile_commands.json.bin  3  ֡3t jD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\compile_commands.json.bin  3  ֡3t
r r
pD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\metadata_generation_command.txt  3 pD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\metadata_generation_command.txt  3
 ֡3g  ֡3g
e e
cD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\prefab_config.json  3  ֡3l cD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\prefab_config.json  3  ֡3l
j j
hD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\symbol_folder_index.txt  3  ֡3{ hD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\arm64-v8a\symbol_folder_index.txt  3  ֡3{
y y
wD:\Work Games\ssbookminigames\My project\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\cpp\CMakeLists.txt  3  V ա3 wD:\Work Games\ssbookminigames\My project\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\cpp\CMakeLists.txt  3  V ա3
 
D:\Work Games\ssbookminigames\My project\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\cpp\FramePacing\CMakeLists.txt  3 ա3 D:\Work Games\ssbookminigames\My project\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\cpp\FramePacing\CMakeLists.txt  3 ա3
\ No newline at end of file \ No newline at end of file
......
...@@ -2,30 +2,30 @@ C/C++ Structured Logs ...@@ -2,30 +2,30 @@ C/C++ Structured Logs
q q
oD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\additional_project_files.txtC oD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\additional_project_files.txtC
A A
?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  3 ֡3p ?com.android.build.gradle.internal.cxx.io.EncodedFileFingerPrint  3 ֡3p
n n
lD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\android_gradle_build.json  3 ֡3u lD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\android_gradle_build.json  3 ֡3u
s s
qD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\android_gradle_build_mini.json  3 qD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\android_gradle_build_mini.json  3
֡3b ֡3b
` `
^D:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\build.ninja  3 ֡3f ^D:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\build.ninja  3 ֡3f
d d
bD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\build.ninja.txt  3k bD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\build.ninja.txt  3k
i i
gD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\build_file_index.txt  3 ֡3l gD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\build_file_index.txt  3 ֡3l
j j
hD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\compile_commands.json  3 ֡3p hD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\compile_commands.json  3 ֡3p
n n
lD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\compile_commands.json.bin  3  ֡3v lD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\compile_commands.json.bin  3  ֡3v
t t
rD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\metadata_generation_command.txt  3 rD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\metadata_generation_command.txt  3
 ֡3i  ֡3i
g g
eD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\prefab_config.json  3  ֡3n eD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\prefab_config.json  3  ֡3n
l l
jD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\symbol_folder_index.txt  3  ֡3{ jD:\Work Games\ssbookminigames\My project\.utmp\RelWithDebInfo\5i191b1l\armeabi-v7a\symbol_folder_index.txt  3  ֡3{
y y
wD:\Work Games\ssbookminigames\My project\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\cpp\CMakeLists.txt  3  V ա3 wD:\Work Games\ssbookminigames\My project\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\cpp\CMakeLists.txt  3  V ա3
 
D:\Work Games\ssbookminigames\My project\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\cpp\FramePacing\CMakeLists.txt  3 ա3 D:\Work Games\ssbookminigames\My project\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\cpp\FramePacing\CMakeLists.txt  3 ա3
\ No newline at end of file \ No newline at end of file
......
using UnityEngine; using UnityEngine;
using System; using System;
using UnityEngine.Events; using UnityEngine.Events;
using UnityEngine.UIElements;
public sealed class DeepLinkManager : MonoBehaviour public sealed class DeepLinkManager : MonoBehaviour
{ {
[SerializeField] UIDocument UIDocument;
public static DeepLinkManager Instance { get; private set; } public static DeepLinkManager Instance { get; private set; }
public string lastProcessedUrl; public string lastProcessedUrl;
public UnityEvent OnDeepLinkReceived; public UnityEvent OnDeepLinkReceived;
VisualElement updatePasswordPanel;
private void Awake() private void Awake()
{ {
...@@ -32,6 +35,10 @@ public sealed class DeepLinkManager : MonoBehaviour ...@@ -32,6 +35,10 @@ public sealed class DeepLinkManager : MonoBehaviour
Destroy(gameObject); Destroy(gameObject);
} }
} }
private void Start()
{
updatePasswordPanel = UIDocument.rootVisualElement.Q<VisualElement>("UpdatePasswordPanel");
}
private void OnDeepLinkActivated(string url) private void OnDeepLinkActivated(string url)
{ {
...@@ -57,7 +64,11 @@ public sealed class DeepLinkManager : MonoBehaviour ...@@ -57,7 +64,11 @@ public sealed class DeepLinkManager : MonoBehaviour
resetSessionOrError.Switch( resetSessionOrError.Switch(
resetSession => resetSession =>
{ {
updatePasswordPanel.style.display = DisplayStyle.Flex;
updatePasswordPanel.experimental.animation.Start(0, 1, 200, (v, t) =>
{
updatePasswordPanel.style.opacity = t;
});
}, },
error => error =>
{ {
......
<ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False"> <ui:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="False">
<Style src="project://database/Assets/AppUI/NewAppUI/USS/NewStyle.uss?fileID=7433441132597879392&amp;guid=c81297485ce529246b88d7955e887342&amp;type=3"/> <Style src="project://database/Assets/AppUI/NewAppUI/USS/NewStyle.uss?fileID=7433441132597879392&amp;guid=c81297485ce529246b88d7955e887342&amp;type=3#NewStyle"/>
<ui:VisualElement name="Root" style="flex-grow: 0; background-color: rgb(48, 48, 208); width: 200%; flex-direction: row; transition-duration: 0.15s;"> <ui:VisualElement name="Root" style="flex-grow: 0; background-color: rgb(48, 48, 208); width: 200%; flex-direction: row; transition-duration: 0.15s;">
<ui:VisualElement name="Login" style="flex-grow: 0; align-items: center; display: flex; justify-content: center; width: 50%; flex-shrink: 0; overflow: hidden; transition-duration: 0.15s;"> <ui:VisualElement name="Login" style="flex-grow: 0; align-items: center; display: flex; justify-content: center; width: 50%; flex-shrink: 0; overflow: hidden; transition-duration: 0.15s;">
<ui:VisualElement style="flex-grow: 0; position: absolute; height: 500px; width: 500px; background-color: rgba(255, 255, 255, 0.05); border-top-left-radius: 50%; border-top-right-radius: 50%; border-bottom-right-radius: 50%; border-bottom-left-radius: 50%; right: -167px; top: -139px;"/> <ui:VisualElement style="flex-grow: 0; position: absolute; height: 500px; width: 500px; background-color: rgba(255, 255, 255, 0.05); border-top-left-radius: 50%; border-top-right-radius: 50%; border-bottom-right-radius: 50%; border-bottom-left-radius: 50%; right: -167px; top: -139px;"/>
...@@ -22,10 +22,11 @@ ...@@ -22,10 +22,11 @@
<ui:Label text="🔑" name="TextFieldLabel" language-direction="RTL" class="emoji" style="color: rgb(117, 117, 117); margin-bottom: 0; font-size: 40px; -unity-text-align: middle-right; margin-left: 5px;"/> <ui:Label text="🔑" name="TextFieldLabel" language-direction="RTL" class="emoji" style="color: rgb(117, 117, 117); margin-bottom: 0; font-size: 40px; -unity-text-align: middle-right; margin-left: 5px;"/>
<ui:Label text="كلمة المرور" name="TextFieldLabel" language-direction="RTL" class="base-text-light" style="color: rgb(117, 117, 117); margin-bottom: 0; font-size: 35px; -unity-font-definition: url(&quot;project://database/Assets/ALArcade/Hakwaty%20Font/TSHakwaty-DemiBold.otf?fileID=12800000&amp;guid=566b773a07b3d064aa1f4c6ef7b6f6fa&amp;type=3#TSHakwaty-DemiBold&quot;);"/> <ui:Label text="كلمة المرور" name="TextFieldLabel" language-direction="RTL" class="base-text-light" style="color: rgb(117, 117, 117); margin-bottom: 0; font-size: 35px; -unity-font-definition: url(&quot;project://database/Assets/ALArcade/Hakwaty%20Font/TSHakwaty-DemiBold.otf?fileID=12800000&amp;guid=566b773a07b3d064aa1f4c6ef7b6f6fa&amp;type=3#TSHakwaty-DemiBold&quot;);"/>
</ui:VisualElement> </ui:VisualElement>
<ui:TextField label="" placeholder-text="" name="Password" value="" language-direction="RTL" keyboard-type="EmailAddress" password="true" class="textField" style="flex-direction: row-reverse; color: rgb(0, 0, 0); -unity-font-definition: url(&quot;project://database/Assets/UI%20Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss?fileID=2230732570650464555&amp;guid=901fb73b2529c134f9cf372789759383&amp;type=3#NotInter-Regular&quot;); -unity-text-align: upper-right; -unity-text-generator: advanced; justify-content: space-between; align-content: flex-start; white-space: nowrap; text-overflow: clip; align-items: center;"> <ui:TextField label="" placeholder-text="" name="Password" value="" language-direction="RTL" keyboard-type="EmailAddress" password="true" class="textField" style="flex-direction: row-reverse; color: rgb(0, 0, 0); -unity-font-definition: url(&quot;project://database/Assets/UI%20Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss?fileID=2230732570650464555&amp;guid=901fb73b2529c134f9cf372789759383&amp;type=3#NotInter-Regular&quot;); -unity-text-align: upper-right; -unity-text-generator: advanced; justify-content: space-between; align-content: flex-start; white-space: nowrap; text-overflow: clip; align-items: center; margin-bottom: 20px;">
<ui:Image source="project://database/Assets/Art/export/mail@3x.png?fileID=2800000&amp;guid=0d76662a81af3a7408ca3c2975f08b8f&amp;type=3#mail@3x" tint-color="rgb(158, 158, 158)" style="margin-left: 25px; width: 51px; display: none;"/> <ui:Image source="project://database/Assets/Art/export/mail@3x.png?fileID=2800000&amp;guid=0d76662a81af3a7408ca3c2975f08b8f&amp;type=3#mail@3x" tint-color="rgb(158, 158, 158)" style="margin-left: 25px; width: 51px; display: none;"/>
<ui:Button text="" icon-image="" name="ShowPassword" class="show-password-button" style="background-image: url(&quot;project://database/Assets/Art/eye.png?fileID=2800000&amp;guid=b9a46d4f75f79394387c17a050946999&amp;type=3#eye&quot;); -unity-background-image-tint-color: rgb(48, 48, 208); width: 50px;"/> <ui:Button text="" icon-image="" name="ShowPassword" class="show-password-button" style="background-image: url(&quot;project://database/Assets/Art/eye.png?fileID=2800000&amp;guid=b9a46d4f75f79394387c17a050946999&amp;type=3#eye&quot;); -unity-background-image-tint-color: rgb(48, 48, 208); width: 50px;"/>
</ui:TextField> </ui:TextField>
<ui:Button text="نسيت كلمة السر؟" name="OpenForgetPasswordPanel" class="loginPage-button-text" style="font-size: 35px; -unity-text-align: middle-right;"/>
</ui:VisualElement> </ui:VisualElement>
<ui:VisualElement name="Home" style="flex-grow: 0; border-top-left-radius: 30px; border-top-right-radius: 30px; border-bottom-right-radius: 30px; border-bottom-left-radius: 30px; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0;"> <ui:VisualElement name="Home" style="flex-grow: 0; border-top-left-radius: 30px; border-top-right-radius: 30px; border-bottom-right-radius: 30px; border-bottom-left-radius: 30px; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0;">
<ui:VisualElement name="ButtonsParent" style="flex-grow: 0; flex-direction: row; justify-content: space-between; flex-shrink: 0; height: 176px;"> <ui:VisualElement name="ButtonsParent" style="flex-grow: 0; flex-direction: row; justify-content: space-between; flex-shrink: 0; height: 176px;">
...@@ -163,6 +164,73 @@ ...@@ -163,6 +164,73 @@
</ui:VisualElement> </ui:VisualElement>
</ui:ScrollView> </ui:ScrollView>
</ui:VisualElement> </ui:VisualElement>
<ui:VisualElement name="ForgetPasswordPanel" style="flex-grow: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); position: absolute; display: none; opacity: 0; align-items: center; justify-content: center;">
<ui:VisualElement name="Menu" class="padding" style="flex-grow: 0; background-color: rgb(255, 255, 255); height: auto; flex-shrink: 10; border-top-width: 0; border-right-width: 0; border-bottom-width: 7px; border-left-width: 0; border-top-left-radius: 50px; border-top-right-radius: 50px; border-bottom-right-radius: 50px; border-bottom-left-radius: 50px; padding-top: 50px; padding-right: 50px; padding-bottom: 50px; padding-left: 50px; justify-content: space-between; border-left-color: rgba(0, 0, 0, 0.25); border-right-color: rgba(0, 0, 0, 0.25); border-top-color: rgba(0, 0, 0, 0.25); border-bottom-color: rgba(0, 0, 0, 0.25); display: flex; width: 80%;">
<ui:Label text="إعادة تعيين كلمة السر" name="MessageLabel" class="text-bold-black" style="color: rgb(66, 66, 66); align-self: center; font-size: 49px; white-space: pre-wrap; -unity-text-align: middle-center;"/>
<ui:VisualElement name="Line" style="flex-grow: 0; width: 100%; background-color: rgba(0, 0, 0, 0.1); height: 2px; margin-top: 25px; margin-bottom: 25px;"/>
<ui:VisualElement template="Template" name="Email" style="margin-bottom: 50px; display: flex;">
<Style src="project://database/Assets/AppUI/UIToolkit/USS/Style.uss?fileID=7433441132597879392&amp;guid=f90ac983f14f5f043a3437b2c294db62&amp;type=3#Style"/>
<ui:VisualElement name="Text" style="flex-grow: 1; flex-direction: row-reverse; padding-bottom: 20px;">
<ui:Label text="👤" name="TextFieldLabel" language-direction="RTL" class="emoji" style="color: rgb(117, 117, 117); margin-bottom: 0; font-size: 40px; -unity-text-align: middle-right; margin-left: 5px;"/>
<ui:Label text="البريد الإلكتروني" name="TextFieldLabel" language-direction="RTL" class="base-text-light" style="color: rgb(117, 117, 117); margin-bottom: 0; font-size: 35px; -unity-font-definition: url(&quot;project://database/Assets/ALArcade/Hakwaty%20Font/TSHakwaty-DemiBold.otf?fileID=12800000&amp;guid=566b773a07b3d064aa1f4c6ef7b6f6fa&amp;type=3#TSHakwaty-DemiBold&quot;);"/>
</ui:VisualElement>
<ui:TextField label="" placeholder-text="" name="ForgetPasswordEmailField" value="" language-direction="RTL" keyboard-type="EmailAddress" class="textField" style="flex-direction: row-reverse; color: rgb(0, 0, 0); -unity-font-definition: url(&quot;project://database/Assets/UI%20Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss?fileID=2230732570650464555&amp;guid=901fb73b2529c134f9cf372789759383&amp;type=3#NotInter-Regular&quot;); -unity-text-align: upper-right; -unity-text-generator: advanced; justify-content: space-between; align-content: flex-start; white-space: nowrap; text-overflow: clip;">
<ui:Image source="project://database/Assets/Art/export/mail@3x.png?fileID=2800000&amp;guid=0d76662a81af3a7408ca3c2975f08b8f&amp;type=3#mail@3x" tint-color="rgb(158, 158, 158)" style="margin-left: 25px; width: 51px; display: none;"/>
</ui:TextField>
</ui:VisualElement>
<ui:VisualElement style="flex-grow: 1; flex-direction: row-reverse;">
<ui:VisualElement name="Send" style="flex-grow: 1; flex-direction: row-reverse; justify-content: space-around; display: flex;">
<ui:VisualElement name="Parent" style="width: 250px; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; justify-content: center; display: flex;">
<ui:Button text="ارسال" name="SendForgetPasswordEmail" language-direction="RTL" class="action-btn" style="background-color: rgb(0, 137, 107); color: rgb(255, 255, 255); -unity-font-definition: url(&quot;project://database/Assets/ALArcade/Hakwaty%20Font/TSHakwaty-ExtraBold.otf?fileID=12800000&amp;guid=9edc60294a97d7f4e87aee01d4e4d689&amp;type=3#TSHakwaty-ExtraBold&quot;); font-size: 55px; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; height: 140px; -unity-text-generator: advanced; display: flex;"/>
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="Close" style="flex-grow: 1; flex-direction: row-reverse; justify-content: space-around;">
<ui:VisualElement name="Button" style="width: 250px; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; justify-content: center;">
<ui:Button text="الغاء" name="CloseForgetPasswordPanel" language-direction="RTL" class="action-btn" style="background-color: rgb(245, 3, 45); color: rgb(255, 255, 255); -unity-font-definition: url(&quot;project://database/Assets/ALArcade/Hakwaty%20Font/TSHakwaty-ExtraBold.otf?fileID=12800000&amp;guid=9edc60294a97d7f4e87aee01d4e4d689&amp;type=3#TSHakwaty-ExtraBold&quot;); font-size: 55px; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; height: 140px; -unity-text-generator: advanced;"/>
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="UpdatePasswordPanel" style="flex-grow: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); position: absolute; display: none; opacity: 0; align-items: center; justify-content: center;">
<ui:VisualElement name="Menu" class="padding" style="flex-grow: 0; background-color: rgb(255, 255, 255); height: auto; flex-shrink: 10; border-top-width: 0; border-right-width: 0; border-bottom-width: 7px; border-left-width: 0; border-top-left-radius: 50px; border-top-right-radius: 50px; border-bottom-right-radius: 50px; border-bottom-left-radius: 50px; padding-top: 50px; padding-right: 50px; padding-bottom: 50px; padding-left: 50px; justify-content: space-between; border-left-color: rgba(0, 0, 0, 0.25); border-right-color: rgba(0, 0, 0, 0.25); border-top-color: rgba(0, 0, 0, 0.25); border-bottom-color: rgba(0, 0, 0, 0.25); display: flex; width: 80%;">
<ui:Label text="تحديث كلمة المرور" name="MessageLabel" class="text-bold-black" style="color: rgb(66, 66, 66); align-self: center; font-size: 49px; white-space: pre-wrap; -unity-text-align: middle-center;"/>
<ui:VisualElement name="Line" style="flex-grow: 0; width: 100%; background-color: rgba(0, 0, 0, 0.1); height: 2px; margin-top: 25px; margin-bottom: 25px;"/>
<ui:VisualElement template="Template" name="Password" style="margin-bottom: 50px; display: flex;">
<Style src="project://database/Assets/AppUI/UIToolkit/USS/Style.uss?fileID=7433441132597879392&amp;guid=f90ac983f14f5f043a3437b2c294db62&amp;type=3#Style"/>
<ui:VisualElement name="Text" style="flex-grow: 1; flex-direction: row-reverse; padding-bottom: 20px;">
<ui:Label text="🔑" name="TextFieldLabel" language-direction="RTL" class="emoji" style="color: rgb(117, 117, 117); margin-bottom: 0; font-size: 40px; -unity-text-align: middle-right; margin-left: 5px;"/>
<ui:Label text="كلمة المرور" name="TextFieldLabel" language-direction="RTL" class="base-text-light" style="color: rgb(117, 117, 117); margin-bottom: 0; font-size: 35px; -unity-font-definition: url(&quot;project://database/Assets/ALArcade/Hakwaty%20Font/TSHakwaty-DemiBold.otf?fileID=12800000&amp;guid=566b773a07b3d064aa1f4c6ef7b6f6fa&amp;type=3#TSHakwaty-DemiBold&quot;);"/>
</ui:VisualElement>
<ui:TextField label="" placeholder-text="" name="Password" value="" language-direction="RTL" keyboard-type="EmailAddress" password="true" class="textField" style="flex-direction: row-reverse; color: rgb(0, 0, 0); -unity-font-definition: url(&quot;project://database/Assets/UI%20Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss?fileID=2230732570650464555&amp;guid=901fb73b2529c134f9cf372789759383&amp;type=3#NotInter-Regular&quot;); -unity-text-align: upper-right; -unity-text-generator: advanced; justify-content: space-between; align-content: flex-start; white-space: nowrap; text-overflow: clip; align-items: center;">
<ui:Image source="project://database/Assets/Art/export/mail@3x.png?fileID=2800000&amp;guid=0d76662a81af3a7408ca3c2975f08b8f&amp;type=3#mail@3x" tint-color="rgb(158, 158, 158)" style="margin-left: 25px; width: 51px; display: none;"/>
<ui:Button text="" icon-image="" name="ShowPassword" class="show-password-button" style="background-image: url(&quot;project://database/Assets/Art/eye.png?fileID=2800000&amp;guid=b9a46d4f75f79394387c17a050946999&amp;type=3#eye&quot;); -unity-background-image-tint-color: rgb(48, 48, 208); width: 50px;"/>
</ui:TextField>
</ui:VisualElement>
<ui:VisualElement template="Template" name="ConfirmPasswordField" style="margin-bottom: 50px; display: flex;">
<Style src="project://database/Assets/AppUI/UIToolkit/USS/Style.uss?fileID=7433441132597879392&amp;guid=f90ac983f14f5f043a3437b2c294db62&amp;type=3#Style"/>
<ui:VisualElement name="Text" style="flex-grow: 1; flex-direction: row-reverse; padding-bottom: 20px;">
<ui:Label text="🔑" name="TextFieldLabel" language-direction="RTL" class="emoji" style="color: rgb(117, 117, 117); margin-bottom: 0; font-size: 40px; -unity-text-align: middle-right; margin-left: 5px;"/>
<ui:Label text="تأكيد كلمة المرور" name="TextFieldLabel" language-direction="RTL" class="base-text-light" style="color: rgb(117, 117, 117); margin-bottom: 0; font-size: 35px; -unity-font-definition: url(&quot;project://database/Assets/ALArcade/Hakwaty%20Font/TSHakwaty-DemiBold.otf?fileID=12800000&amp;guid=566b773a07b3d064aa1f4c6ef7b6f6fa&amp;type=3#TSHakwaty-DemiBold&quot;);"/>
</ui:VisualElement>
<ui:TextField label="" placeholder-text="" name="ConfirmPasswordField" value="" language-direction="RTL" password="true" class="textField" style="flex-direction: row-reverse; color: rgb(0, 0, 0); -unity-font-definition: url(&quot;project://database/Assets/UI%20Toolkit/UnityThemes/UnityDefaultRuntimeTheme.tss?fileID=2230732570650464555&amp;guid=901fb73b2529c134f9cf372789759383&amp;type=3#NotInter-Regular&quot;); -unity-text-align: upper-right; -unity-text-generator: advanced; justify-content: space-between; align-content: flex-start; white-space: nowrap; text-overflow: clip; border-top-left-radius: 30px; border-top-right-radius: 30px; border-bottom-right-radius: 30px; border-bottom-left-radius: 30px; border-top-width: 5px; border-right-width: 5px; border-bottom-width: 5px; border-left-width: 5px;">
<ui:Image source="project://database/Assets/Art/export/mail@3x.png?fileID=2800000&amp;guid=0d76662a81af3a7408ca3c2975f08b8f&amp;type=3#mail@3x" tint-color="rgb(158, 158, 158)" style="margin-left: 25px; width: 51px; display: none;"/>
</ui:TextField>
</ui:VisualElement>
<ui:VisualElement style="flex-grow: 1; flex-direction: row-reverse;">
<ui:VisualElement name="Send" style="flex-grow: 1; flex-direction: row-reverse; justify-content: space-around; display: flex;">
<ui:VisualElement name="Parent" style="width: 250px; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; justify-content: center; display: flex;">
<ui:Button text="تحديث" name="UpdatePassword" language-direction="RTL" class="action-btn" style="background-color: rgb(0, 137, 107); color: rgb(255, 255, 255); -unity-font-definition: url(&quot;project://database/Assets/ALArcade/Hakwaty%20Font/TSHakwaty-ExtraBold.otf?fileID=12800000&amp;guid=9edc60294a97d7f4e87aee01d4e4d689&amp;type=3#TSHakwaty-ExtraBold&quot;); font-size: 55px; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; height: 140px; -unity-text-generator: advanced; display: flex;"/>
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="Close" style="flex-grow: 1; flex-direction: row-reverse; justify-content: space-around;">
<ui:VisualElement name="Button" style="width: 250px; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; justify-content: center;">
<ui:Button text="الغاء" name="CloseUpdatePasswordPanel" language-direction="RTL" class="action-btn" style="background-color: rgb(245, 3, 45); color: rgb(255, 255, 255); -unity-font-definition: url(&quot;project://database/Assets/ALArcade/Hakwaty%20Font/TSHakwaty-ExtraBold.otf?fileID=12800000&amp;guid=9edc60294a97d7f4e87aee01d4e4d689&amp;type=3#TSHakwaty-ExtraBold&quot;); font-size: 55px; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; height: 140px; -unity-text-generator: advanced;"/>
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="MessagePanel" style="flex-grow: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); position: absolute; display: none; opacity: 0; align-items: center; justify-content: center;"> <ui:VisualElement name="MessagePanel" style="flex-grow: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); position: absolute; display: none; opacity: 0; align-items: center; justify-content: center;">
<ui:VisualElement name="Menu" class="padding" style="flex-grow: 0; background-color: rgb(255, 255, 255); height: auto; flex-shrink: 10; border-top-width: 0; border-right-width: 0; border-bottom-width: 7px; border-left-width: 0; border-top-left-radius: 50px; border-top-right-radius: 50px; border-bottom-right-radius: 50px; border-bottom-left-radius: 50px; padding-top: 50px; padding-right: 50px; padding-bottom: 50px; padding-left: 50px; justify-content: space-between; border-left-color: rgba(0, 0, 0, 0.25); border-right-color: rgba(0, 0, 0, 0.25); border-top-color: rgba(0, 0, 0, 0.25); border-bottom-color: rgba(0, 0, 0, 0.25); display: flex; width: 80%;"> <ui:VisualElement name="Menu" class="padding" style="flex-grow: 0; background-color: rgb(255, 255, 255); height: auto; flex-shrink: 10; border-top-width: 0; border-right-width: 0; border-bottom-width: 7px; border-left-width: 0; border-top-left-radius: 50px; border-top-right-radius: 50px; border-bottom-right-radius: 50px; border-bottom-left-radius: 50px; padding-top: 50px; padding-right: 50px; padding-bottom: 50px; padding-left: 50px; justify-content: space-between; border-left-color: rgba(0, 0, 0, 0.25); border-right-color: rgba(0, 0, 0, 0.25); border-top-color: rgba(0, 0, 0, 0.25); border-bottom-color: rgba(0, 0, 0, 0.25); display: flex; width: 80%;">
<ui:Label text="يرجي التسجيل" name="MessageLabel" class="text-bold-black" style="color: rgb(66, 66, 66); align-self: center; font-size: 49px; white-space: pre-wrap; -unity-text-align: middle-center;"/> <ui:Label text="يرجي التسجيل" name="MessageLabel" class="text-bold-black" style="color: rgb(66, 66, 66); align-self: center; font-size: 49px; white-space: pre-wrap; -unity-text-align: middle-center;"/>
......
...@@ -536,7 +536,11 @@ MonoBehaviour: ...@@ -536,7 +536,11 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 55400cde731761ca3943099c02f27902, type: 3} m_Script: {fileID: 11500000, guid: 55400cde731761ca3943099c02f27902, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: Assembly-CSharp::DeepLinkManager m_EditorClassIdentifier: Assembly-CSharp::DeepLinkManager
UIDocument: {fileID: 1971829438}
lastProcessedUrl: lastProcessedUrl:
OnDeepLinkReceived:
m_PersistentCalls:
m_Calls: []
--- !u!4 &1627471398 --- !u!4 &1627471398
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
......
...@@ -41,8 +41,14 @@ public class LoginPageAnimation : MonoBehaviour ...@@ -41,8 +41,14 @@ public class LoginPageAnimation : MonoBehaviour
CheckAndHandleIfComingFromGuest(); CheckAndHandleIfComingFromGuest();
HandleShowPassword(); HandleShowPassword();
HandleForgetPasswordPanel();
HandleUpdatePasswordPanel();
} }
List<TextField> passwordField = new(); List<TextField> passwordField = new();
private void HandleShowPassword() private void HandleShowPassword()
{ {
...@@ -107,8 +113,7 @@ public class LoginPageAnimation : MonoBehaviour ...@@ -107,8 +113,7 @@ public class LoginPageAnimation : MonoBehaviour
}; };
} }
private void HandleLogin()
private async void HandleLogin()
{ {
Button loginButton = loginPage.rootVisualElement.Q<Button>("LoginButton"); Button loginButton = loginPage.rootVisualElement.Q<Button>("LoginButton");
...@@ -426,6 +431,131 @@ public class LoginPageAnimation : MonoBehaviour ...@@ -426,6 +431,131 @@ public class LoginPageAnimation : MonoBehaviour
return string.IsNullOrEmpty(content); return string.IsNullOrEmpty(content);
} }
private void HandleForgetPasswordPanel()
{
VisualElement forgetPasswordPanel = loginPage.rootVisualElement.Q<VisualElement>("ForgetPasswordPanel");
TextField forgetPasswordEmailField = forgetPasswordPanel.Q<TextField>("ForgetPasswordEmailField");
Button openForgetPasswordPanel = loginPage.rootVisualElement.Q<Button>("OpenForgetPasswordPanel");
Button closeForgetPasswordPanel = forgetPasswordPanel.Q<Button>("CloseForgetPasswordPanel");
Button sendEmail = forgetPasswordPanel.Q<Button>("SendForgetPasswordEmail");
openForgetPasswordPanel.clicked += () =>
{
forgetPasswordPanel.style.display = DisplayStyle.Flex;
forgetPasswordPanel.experimental.animation.Start(0, 1, 200, (v, t) =>
{
forgetPasswordPanel.style.opacity = t;
});
};
closeForgetPasswordPanel.clicked += () =>
{
forgetPasswordPanel.experimental.animation.Start(1, 0, 200, (v, t) =>
{
forgetPasswordPanel.style.opacity = t;
}).OnCompleted(() =>
{
forgetPasswordPanel.style.display = DisplayStyle.None;
});
};
sendEmail.clicked += async () =>
{
sendEmail.SetEnabled(false);
closeForgetPasswordPanel.SetEnabled(false);
try
{
await SupabaseAuthentication.Instance.ResetPasswordRequest(forgetPasswordEmailField.text);
ShowUIMessage.Instance.ShowMessage("تم إرسال بريد إعادة تعيين كلمة المرور، يرجى التحقق من بريدك الإلكتروني");
}
catch (Exception ex)
{
Debug.LogException(ex);
}
sendEmail.SetEnabled(true);
closeForgetPasswordPanel.SetEnabled(true);
forgetPasswordPanel.experimental.animation.Start(1, 0, 200, (v, t) =>
{
forgetPasswordPanel.style.opacity = t;
}).OnCompleted(() =>
{
forgetPasswordPanel.style.display = DisplayStyle.None;
});
};
}
private void HandleUpdatePasswordPanel()
{
VisualElement updatePasswordPanel = loginPage.rootVisualElement.Q<VisualElement>("UpdatePasswordPanel");
TextField newPasswordField = updatePasswordPanel.Q<TextField>("Password");
TextField confirmPasswordField = updatePasswordPanel.Q<TextField>("ConfirmPasswordField");
Button closeUpdatePasswordPanel = updatePasswordPanel.Q<Button>("CloseUpdatePasswordPanel");
Button updatePassword = updatePasswordPanel.Q<Button>("UpdatePassword");
updatePassword.clicked += async () =>
{
if (newPasswordField.text != confirmPasswordField.text)
{
ShowUIMessage.Instance.ShowMessage("كلمة المرور غير متطابقة");
return;
}
if (string.IsNullOrWhiteSpace(newPasswordField.text) || string.IsNullOrWhiteSpace(confirmPasswordField.text))
{
ShowUIMessage.Instance.ShowMessage("يرجى ملء جميع الحقول");
return;
}
if(newPasswordField.text.Length < 6)
{
ShowUIMessage.Instance.ShowMessage("كلمة المرور يجب أن تكون 6 أحرف على الأقل");
return;
}
updatePassword.SetEnabled(false);
try
{
await SupabaseAuthentication.Instance.UpdatePassword(newPasswordField.text);
ShowUIMessage.Instance.ShowMessage("تم تحديث كلمة المرور بنجاح، يرجى تسجيل الدخول مرة أخرى");
}
catch (Exception ex)
{
Debug.LogException(ex);
}
updatePassword.SetEnabled(true);
updatePasswordPanel.experimental.animation.Start(1, 0, 200, (v, t) =>
{
updatePasswordPanel.style.opacity = t;
}).OnCompleted(() =>
{
updatePasswordPanel.style.display = DisplayStyle.None;
});
};
closeUpdatePasswordPanel.clicked += () =>
{
updatePasswordPanel.experimental.animation.Start(1, 0, 200, (v, t) =>
{
updatePasswordPanel.style.opacity = t;
}).OnCompleted(() =>
{
updatePasswordPanel.style.display = DisplayStyle.None;
});
};
}
void HideInput(bool status) void HideInput(bool status)
{ {
VisualElement Email = loginPage.rootVisualElement.Q<ScrollView>("Register").Q<VisualElement>("Email"); VisualElement Email = loginPage.rootVisualElement.Q<ScrollView>("Register").Q<VisualElement>("Email");
......
...@@ -2,27 +2,11 @@ ...@@ -2,27 +2,11 @@
<manifest <manifest
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"> xmlns:tools="http://schemas.android.com/tools">
<application>
<application>
<activity android:name="com.unity3d.player.UnityPlayerActivity" <activity android:name="com.unity3d.player.UnityPlayerActivity"
android:theme="@style/UnityThemeSelector"> android:theme="@style/UnityThemeSelector"
<intent-filter> android:exported="true">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter android:label="فتح شارح">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="sharh" android:host="reset-password" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
</activity>
<activity android:name="com.unity3d.player.UnityPlayerGameActivity"
android:theme="@style/BaseUnityGameActivityTheme">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
...@@ -36,7 +20,6 @@ ...@@ -36,7 +20,6 @@
</intent-filter> </intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" /> <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
<meta-data android:name="android.app.lib_name" android:value="game" />
</activity> </activity>
</application> </application>
</manifest> </manifest>
\ No newline at end of file
...@@ -262,7 +262,7 @@ PlayerSettings: ...@@ -262,7 +262,7 @@ PlayerSettings:
clonedFromGUID: 3c72c65a16f0acb438eed22b8b16c24a clonedFromGUID: 3c72c65a16f0acb438eed22b8b16c24a
templatePackageId: com.unity.template.urp-blank@17.0.14 templatePackageId: com.unity.template.urp-blank@17.0.14
templateDefaultScene: Assets/Scenes/SampleScene.unity templateDefaultScene: Assets/Scenes/SampleScene.unity
useCustomMainManifest: 0 useCustomMainManifest: 1
useCustomLauncherManifest: 0 useCustomLauncherManifest: 0
useCustomMainGradleTemplate: 0 useCustomMainGradleTemplate: 0
useCustomLauncherGradleManifest: 0 useCustomLauncherGradleManifest: 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment