Skip to content

Commit

Permalink
Remove WalletConnect right network disclaimer + add wallet img
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFirekeeper committed Mar 23, 2023
1 parent ff45dfa commit f76589a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 18 deletions.
3 changes: 2 additions & 1 deletion Assets/Thirdweb/Examples/Prefabs/Prefab_ConnectWallet.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -1942,6 +1942,7 @@ MonoBehaviour:
walletAddressText: {fileID: 262581968}
walletAddressText2: {fileID: 5148154435769378536}
walletImage: {fileID: 1430547140}
walletImage2: {fileID: 6641205171930262275}
currentNetworkText: {fileID: 270904384543002881}
currentNetworkImage: {fileID: 1390862793022922592}
chainImage: {fileID: 4426890310649894616}
Expand Down Expand Up @@ -2974,7 +2975,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -57.8, y: 10}
m_AnchoredPosition: {x: -45.753, y: 10}
m_SizeDelta: {x: 40, y: 40}
m_Pivot: {x: 1, y: 0.5}
--- !u!222 &4873572381072717923
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -56.9, y: 10}
m_AnchoredPosition: {x: -39.999992, y: 10}
m_SizeDelta: {x: 40, y: 40}
m_Pivot: {x: 1, y: 0.5}
--- !u!222 &1068488477745516076
Expand Down Expand Up @@ -1341,7 +1341,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -5, y: 0}
m_AnchoredPosition: {x: -0.000015258789, y: 0}
m_SizeDelta: {x: 40, y: 40}
m_Pivot: {x: 1, y: 0.5}
--- !u!222 &2166967093949692966
Expand Down Expand Up @@ -4185,6 +4185,7 @@ MonoBehaviour:
walletAddressText: {fileID: 7276129280750027413}
walletAddressText2: {fileID: 7827698017969356927}
walletImage: {fileID: 7276129281372997249}
walletImage2: {fileID: 8746191884919151754}
currentNetworkText: {fileID: 7437821355300633924}
currentNetworkImage: {fileID: 6455197925238504093}
chainImage: {fileID: 6455197925238504093}
Expand Down
21 changes: 6 additions & 15 deletions Assets/Thirdweb/Examples/Prefabs/WalletConnect.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 'Scan this QR code with your wallet app to connect to the game.
Make
sure you connect to the right network.'
m_text: Scan this QR code with your wallet app to connect to the game.
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
Expand All @@ -641,7 +638,7 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 44.1
m_fontSize: 53.2
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 1
Expand Down Expand Up @@ -1194,10 +1191,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 'Click this button to connect your wallet app to the game.
Make sure
you connect to the right network.'
m_text: Click this button to connect your wallet app to the game.
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
Expand All @@ -1224,7 +1218,7 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 44.1
m_fontSize: 60.3
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 1
Expand Down Expand Up @@ -1678,10 +1672,7 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 'Select a wallet to connect to the game with.
Make sure you connect
to the right network.'
m_text: Select a wallet to connect to the game with.
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
Expand All @@ -1708,7 +1699,7 @@ MonoBehaviour:
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 44.1
m_fontSize: 50
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public class Prefab_ConnectWallet : MonoBehaviour
public TMP_Text walletAddressText;
public TMP_Text walletAddressText2;
public Image walletImage;
public Image walletImage2;
public TMP_Text currentNetworkText;
public Image currentNetworkImage;
public Image chainImage;
Expand Down Expand Up @@ -156,6 +157,7 @@ async void OnConnected()
connectedDropdown.SetActive(false);
networkDropdown.SetActive(false);
walletImage.sprite = walletButtons.Find(x => x.wallet == wallet).icon;
walletImage2.sprite = walletImage.sprite;
chainImage.sprite = networkSprites.Find(x => x.chain == _chain).sprite;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public class Prefab_ConnectWalletNative : MonoBehaviour
public TMP_Text walletAddressText;
public TMP_Text walletAddressText2;
public Image walletImage;
public Image walletImage2;
public TMP_Text currentNetworkText;
public Image currentNetworkImage;
public Image chainImage;
Expand Down Expand Up @@ -184,6 +185,7 @@ async void OnConnected()
connectDropdown.SetActive(false);
connectedDropdown.SetActive(false);
walletImage.sprite = walletButtons.Find(x => x.wallet == wallet).icon;
walletImage2.sprite = walletImage.sprite;
chainImage.sprite = networkSprites.Find(x => x.chain == _chain).sprite;
}
catch (Exception e)
Expand Down

0 comments on commit f76589a

Please sign in to comment.