-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7729f0
commit a6b9638
Showing
10 changed files
with
97 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...ets/DCL/Friends/UI/FriendPanel/Sections/Requests/FriendRequestContextMenuConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using UnityEngine; | ||
|
||
namespace DCL.Friends.UI.FriendPanel.Sections.Requests | ||
{ | ||
[CreateAssetMenu(fileName = "FriendRequestContextMenuSettings", menuName = "DCL/Friends/Requests/ContextMenuSettings")] | ||
[Serializable] | ||
public class FriendRequestContextMenuConfiguration : ScriptableObject | ||
{ | ||
[SerializeField] private int contextMenuWidth = 250; | ||
[Space(10)] | ||
[SerializeField] private Sprite viewProfileSprite; | ||
[SerializeField] private string viewProfileText = "View Profile"; | ||
[Space(10)] | ||
[SerializeField] private Sprite blockSprite; | ||
[SerializeField] private string blockText = "Block"; | ||
[Space(10)] | ||
[SerializeField] private Sprite reportSprite; | ||
[SerializeField] private string reportText = "Report"; | ||
|
||
public int ContextMenuWidth => contextMenuWidth; | ||
public Sprite ViewProfileSprite => viewProfileSprite; | ||
public string ViewProfileText => viewProfileText; | ||
public Sprite BlockSprite => blockSprite; | ||
public string BlockText => blockText; | ||
public Sprite ReportSprite => reportSprite; | ||
public string ReportText => reportText; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...CL/Friends/UI/FriendPanel/Sections/Requests/FriendRequestContextMenuConfiguration.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
...ssets/DCL/Friends/UI/FriendPanel/Sections/Requests/FriendRequestContextMenuSettings.asset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
%YAML 1.1 | ||
%TAG !u! tag:unity3d.com,2011: | ||
--- !u!114 &11400000 | ||
MonoBehaviour: | ||
m_ObjectHideFlags: 0 | ||
m_CorrespondingSourceObject: {fileID: 0} | ||
m_PrefabInstance: {fileID: 0} | ||
m_PrefabAsset: {fileID: 0} | ||
m_GameObject: {fileID: 0} | ||
m_Enabled: 1 | ||
m_EditorHideFlags: 0 | ||
m_Script: {fileID: 11500000, guid: ce7c0b4646084ca790d31ec5034e03c7, type: 3} | ||
m_Name: FriendRequestContextMenuSettings | ||
m_EditorClassIdentifier: | ||
contextMenuWidth: 250 | ||
viewProfileSprite: {fileID: 21300000, guid: c42ef609dd1154fa9a0e37d744af5614, type: 3} | ||
viewProfileText: View Profile | ||
blockSprite: {fileID: 21300000, guid: 493ac3c2397b64caea2decabee6048e8, type: 3} | ||
blockText: Block | ||
reportSprite: {fileID: 21300000, guid: 3bfacc159ebe34861ad08dd502c313fc, type: 3} | ||
reportText: Report |
8 changes: 8 additions & 0 deletions
8
.../DCL/Friends/UI/FriendPanel/Sections/Requests/FriendRequestContextMenuSettings.asset.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
Explorer/Assets/DCL/Friends/UI/FriendPanel/Sections/Requests/RequestsSectionView.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
using DCL.Chat; | ||
using UnityEngine; | ||
|
||
namespace DCL.Friends.UI.FriendPanel.Sections.Requests | ||
{ | ||
public class RequestsSectionView : FriendPanelSectionView | ||
{ | ||
[field: SerializeField] public NotificationIndicatorView TabNotificationIndicator { get; private set; } | ||
[field: SerializeField] public ChatEntryConfigurationSO ChatEntryConfiguration { get; private set; } | ||
[field: SerializeField] public FriendRequestContextMenuConfiguration ContextMenuSettings { get; private set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters