Skip to content

Commit ad712c0

Browse files
authored
Firekeeper/visual improvements (#49)
1 parent f42eac5 commit ad712c0

File tree

177 files changed

+12480
-496
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+12480
-496
lines changed

Assets/Thirdweb/Core/Scripts/Utils.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,5 +314,21 @@ public static string cidToIpfsUrl(this string cid, bool useGateway = false)
314314
string ipfsRaw = $"ipfs://{cid}";
315315
return useGateway ? ipfsRaw.ReplaceIPFS() : ipfsRaw;
316316
}
317+
318+
public async static Task<string> GetENSName(string address)
319+
{
320+
if (IsWebGLBuild())
321+
{
322+
return null;
323+
}
324+
else
325+
{
326+
var ensService = new Nethereum.Contracts.Standards.ENS.ENSService(
327+
new Nethereum.Web3.Web3("https://ethereum.rpc.thirdweb.com/339d65590ba0fa79e4c8be0af33d64eda709e13652acb02c6be63f5a1fbef9c3").Eth,
328+
"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
329+
);
330+
return await ensService.ReverseResolveAsync(address);
331+
}
332+
}
317333
}
318334
}

Assets/Thirdweb/Examples/Prefabs/Button_Network.prefab

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RectTransform:
4040
m_AnchorMin: {x: 0, y: 0}
4141
m_AnchorMax: {x: 0, y: 0}
4242
m_AnchoredPosition: {x: 0, y: 0}
43-
m_SizeDelta: {x: 0, y: 66.393005}
43+
m_SizeDelta: {x: 0, y: 50}
4444
m_Pivot: {x: 0.5, y: 0.5}
4545
--- !u!222 &4840009213899470496
4646
CanvasRenderer:
@@ -117,7 +117,7 @@ MonoBehaviour:
117117
m_Transition: 1
118118
m_Colors:
119119
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
120-
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
120+
m_HighlightedColor: {r: 0.105882354, g: 0.12941177, b: 0.16078432, a: 1}
121121
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
122122
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
123123
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
@@ -172,10 +172,10 @@ RectTransform:
172172
m_Father: {fileID: 6252264846742488137}
173173
m_RootOrder: 1
174174
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
175-
m_AnchorMin: {x: 0, y: 0}
176-
m_AnchorMax: {x: 0, y: 1}
177-
m_AnchoredPosition: {x: 67.20398, y: -0.00002670288}
178-
m_SizeDelta: {x: 204.5588, y: -20}
175+
m_AnchorMin: {x: 0, y: 0.5}
176+
m_AnchorMax: {x: 0, y: 0.5}
177+
m_AnchoredPosition: {x: 50, y: 0}
178+
m_SizeDelta: {x: 175, y: 30}
179179
m_Pivot: {x: 0, y: 0.5}
180180
--- !u!222 &6431933690961859247
181181
CanvasRenderer:
@@ -232,7 +232,7 @@ MonoBehaviour:
232232
m_faceColor:
233233
serializedVersion: 2
234234
rgba: 4294967295
235-
m_fontSize: 30
235+
m_fontSize: 26.85
236236
m_fontSizeBase: 24
237237
m_fontWeight: 400
238238
m_enableAutoSizing: 1
@@ -307,10 +307,10 @@ RectTransform:
307307
m_Father: {fileID: 6252264846742488137}
308308
m_RootOrder: 0
309309
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
310-
m_AnchorMin: {x: 0, y: 0}
311-
m_AnchorMax: {x: 0, y: 1}
310+
m_AnchorMin: {x: 0, y: 0.5}
311+
m_AnchorMax: {x: 0, y: 0.5}
312312
m_AnchoredPosition: {x: 10, y: 0}
313-
m_SizeDelta: {x: 50, y: -20}
313+
m_SizeDelta: {x: 30, y: 30}
314314
m_Pivot: {x: 0, y: 0.5}
315315
--- !u!222 &2839168596433015394
316316
CanvasRenderer:

0 commit comments

Comments
 (0)