Skip to content

Commit f76589a

Browse files
committed
Remove WalletConnect right network disclaimer + add wallet img
1 parent ff45dfa commit f76589a

File tree

5 files changed

+15
-18
lines changed

5 files changed

+15
-18
lines changed

Assets/Thirdweb/Examples/Prefabs/Prefab_ConnectWallet.prefab

+2-1
Original file line numberDiff line numberDiff line change
@@ -1942,6 +1942,7 @@ MonoBehaviour:
19421942
walletAddressText: {fileID: 262581968}
19431943
walletAddressText2: {fileID: 5148154435769378536}
19441944
walletImage: {fileID: 1430547140}
1945+
walletImage2: {fileID: 6641205171930262275}
19451946
currentNetworkText: {fileID: 270904384543002881}
19461947
currentNetworkImage: {fileID: 1390862793022922592}
19471948
chainImage: {fileID: 4426890310649894616}
@@ -2974,7 +2975,7 @@ RectTransform:
29742975
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
29752976
m_AnchorMin: {x: 1, y: 0.5}
29762977
m_AnchorMax: {x: 1, y: 0.5}
2977-
m_AnchoredPosition: {x: -57.8, y: 10}
2978+
m_AnchoredPosition: {x: -45.753, y: 10}
29782979
m_SizeDelta: {x: 40, y: 40}
29792980
m_Pivot: {x: 1, y: 0.5}
29802981
--- !u!222 &4873572381072717923

Assets/Thirdweb/Examples/Prefabs/Prefab_ConnectWalletNative.prefab

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ RectTransform:
3737
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
3838
m_AnchorMin: {x: 1, y: 0.5}
3939
m_AnchorMax: {x: 1, y: 0.5}
40-
m_AnchoredPosition: {x: -56.9, y: 10}
40+
m_AnchoredPosition: {x: -39.999992, y: 10}
4141
m_SizeDelta: {x: 40, y: 40}
4242
m_Pivot: {x: 1, y: 0.5}
4343
--- !u!222 &1068488477745516076
@@ -1341,7 +1341,7 @@ RectTransform:
13411341
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
13421342
m_AnchorMin: {x: 1, y: 0.5}
13431343
m_AnchorMax: {x: 1, y: 0.5}
1344-
m_AnchoredPosition: {x: -5, y: 0}
1344+
m_AnchoredPosition: {x: -0.000015258789, y: 0}
13451345
m_SizeDelta: {x: 40, y: 40}
13461346
m_Pivot: {x: 1, y: 0.5}
13471347
--- !u!222 &2166967093949692966
@@ -4185,6 +4185,7 @@ MonoBehaviour:
41854185
walletAddressText: {fileID: 7276129280750027413}
41864186
walletAddressText2: {fileID: 7827698017969356927}
41874187
walletImage: {fileID: 7276129281372997249}
4188+
walletImage2: {fileID: 8746191884919151754}
41884189
currentNetworkText: {fileID: 7437821355300633924}
41894190
currentNetworkImage: {fileID: 6455197925238504093}
41904191
chainImage: {fileID: 6455197925238504093}

Assets/Thirdweb/Examples/Prefabs/WalletConnect.prefab

+6-15
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,7 @@ MonoBehaviour:
611611
m_OnCullStateChanged:
612612
m_PersistentCalls:
613613
m_Calls: []
614-
m_text: 'Scan this QR code with your wallet app to connect to the game.
615-
616-
Make
617-
sure you connect to the right network.'
614+
m_text: Scan this QR code with your wallet app to connect to the game.
618615
m_isRightToLeft: 0
619616
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
620617
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
@@ -641,7 +638,7 @@ MonoBehaviour:
641638
m_faceColor:
642639
serializedVersion: 2
643640
rgba: 4294967295
644-
m_fontSize: 44.1
641+
m_fontSize: 53.2
645642
m_fontSizeBase: 36
646643
m_fontWeight: 400
647644
m_enableAutoSizing: 1
@@ -1194,10 +1191,7 @@ MonoBehaviour:
11941191
m_OnCullStateChanged:
11951192
m_PersistentCalls:
11961193
m_Calls: []
1197-
m_text: 'Click this button to connect your wallet app to the game.
1198-
1199-
Make sure
1200-
you connect to the right network.'
1194+
m_text: Click this button to connect your wallet app to the game.
12011195
m_isRightToLeft: 0
12021196
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
12031197
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
@@ -1224,7 +1218,7 @@ MonoBehaviour:
12241218
m_faceColor:
12251219
serializedVersion: 2
12261220
rgba: 4294967295
1227-
m_fontSize: 44.1
1221+
m_fontSize: 60.3
12281222
m_fontSizeBase: 36
12291223
m_fontWeight: 400
12301224
m_enableAutoSizing: 1
@@ -1678,10 +1672,7 @@ MonoBehaviour:
16781672
m_OnCullStateChanged:
16791673
m_PersistentCalls:
16801674
m_Calls: []
1681-
m_text: 'Select a wallet to connect to the game with.
1682-
1683-
Make sure you connect
1684-
to the right network.'
1675+
m_text: Select a wallet to connect to the game with.
16851676
m_isRightToLeft: 0
16861677
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
16871678
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
@@ -1708,7 +1699,7 @@ MonoBehaviour:
17081699
m_faceColor:
17091700
serializedVersion: 2
17101701
rgba: 4294967295
1711-
m_fontSize: 44.1
1702+
m_fontSize: 50
17121703
m_fontSizeBase: 36
17131704
m_fontWeight: 400
17141705
m_enableAutoSizing: 1

Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_ConnectWallet.cs

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public class Prefab_ConnectWallet : MonoBehaviour
6060
public TMP_Text walletAddressText;
6161
public TMP_Text walletAddressText2;
6262
public Image walletImage;
63+
public Image walletImage2;
6364
public TMP_Text currentNetworkText;
6465
public Image currentNetworkImage;
6566
public Image chainImage;
@@ -156,6 +157,7 @@ async void OnConnected()
156157
connectedDropdown.SetActive(false);
157158
networkDropdown.SetActive(false);
158159
walletImage.sprite = walletButtons.Find(x => x.wallet == wallet).icon;
160+
walletImage2.sprite = walletImage.sprite;
159161
chainImage.sprite = networkSprites.Find(x => x.chain == _chain).sprite;
160162
}
161163
}

Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_ConnectWalletNative.cs

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public class Prefab_ConnectWalletNative : MonoBehaviour
5858
public TMP_Text walletAddressText;
5959
public TMP_Text walletAddressText2;
6060
public Image walletImage;
61+
public Image walletImage2;
6162
public TMP_Text currentNetworkText;
6263
public Image currentNetworkImage;
6364
public Image chainImage;
@@ -184,6 +185,7 @@ async void OnConnected()
184185
connectDropdown.SetActive(false);
185186
connectedDropdown.SetActive(false);
186187
walletImage.sprite = walletButtons.Find(x => x.wallet == wallet).icon;
188+
walletImage2.sprite = walletImage.sprite;
187189
chainImage.sprite = networkSprites.Find(x => x.chain == _chain).sprite;
188190
}
189191
catch (Exception e)

0 commit comments

Comments
 (0)