Skip to content

Commit

Permalink
Merge pull request #6331 from planetarium/feature/event-polishing
Browse files Browse the repository at this point in the history
event feature polishing
  • Loading branch information
tyrosine1153 authored Nov 14, 2024
2 parents b1ca6f0 + fc641ae commit e79d606
Show file tree
Hide file tree
Showing 10 changed files with 283 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,8 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Children:
- {fileID: 5972175950387552416}
m_Father: {fileID: 3220550775648584933}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
Expand Down Expand Up @@ -1648,6 +1649,181 @@ CanvasGroup:
m_Interactable: 1
m_BlocksRaycasts: 1
m_IgnoreParentGroups: 0
--- !u!1001 &1174700757825302647
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 6224154145750690578}
m_Modifications:
- target: {fileID: 1480399953335427932, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_Name
value: UI_patrolreward_03
objectReference: {fileID: 0}
- target: {fileID: 1480399953335427932, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4014689132544192768, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: InitialModule.startSize.scalar
value: 14
objectReference: {fileID: 0}
- target: {fileID: 4014689132544192768, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: InitialModule.startSize.minScalar
value: 21
objectReference: {fileID: 0}
- target: {fileID: 4681619970566438773, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4681619970566438773, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_SortingLayer
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_SizeDelta.x
value: 100
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_SizeDelta.y
value: 100
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.8191521
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.57357645
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -70.00001
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5044288858569292735, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_ResetScaleOnEnable
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7937736088600402549, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7937736088600402549, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_SortingLayer
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8114319135286425651, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8114319135286425651, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
propertyPath: m_SortingLayer
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8588ed37f97d0364a8a8b90bf428c3e0, type: 3}
--- !u!224 &5972175950387552416 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 4804230841145495767, guid: 8588ed37f97d0364a8a8b90bf428c3e0,
type: 3}
m_PrefabInstance: {fileID: 1174700757825302647}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &7635246945006681817
PrefabInstance:
m_ObjectHideFlags: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2589,6 +2589,7 @@ MonoBehaviour:
titleBg: {fileID: 4461703454932455758}
fullCostumeImage: {fileID: 1095377694594551156}
titleSocket: {fileID: 1454693103969058356}
background: {fileID: 3087270864577065000}
--- !u!225 &7808753712202752268
CanvasGroup:
m_ObjectHideFlags: 0
Expand Down
14 changes: 7 additions & 7 deletions nekoyume/Assets/Resources/UI/Prefabs/UI_Craft.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -12635,12 +12635,12 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 2152734843201462353}
- {fileID: 2834423345928145729}
- {fileID: 2834423347928494318}
- {fileID: 2834423346621198225}
- {fileID: 2834423346266612190}
- {fileID: 2834423347923809332}
- {fileID: 2152734843201462353}
m_Father: {fileID: 1687619416016300429}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
Expand Down Expand Up @@ -31079,7 +31079,7 @@ RectTransform:
- {fileID: 4354878103963164042}
- {fileID: 5458823822667992641}
m_Father: {fileID: 1687619415733899464}
m_RootOrder: 5
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
Expand Down Expand Up @@ -40870,7 +40870,7 @@ RectTransform:
- {fileID: 1094882028593260908}
- {fileID: 3940015783541762456}
m_Father: {fileID: 1687619415733899464}
m_RootOrder: 1
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
Expand Down Expand Up @@ -40978,7 +40978,7 @@ RectTransform:
- {fileID: 1094882028589493686}
- {fileID: 3940015783538322754}
m_Father: {fileID: 1687619415733899464}
m_RootOrder: 4
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
Expand Down Expand Up @@ -41626,7 +41626,7 @@ RectTransform:
- {fileID: 1094882027287967251}
- {fileID: 3940015782700234471}
m_Father: {fileID: 1687619415733899464}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
Expand Down Expand Up @@ -41734,7 +41734,7 @@ RectTransform:
- {fileID: 1094882027033917532}
- {fileID: 3940015781980551336}
m_Father: {fileID: 1687619415733899464}
m_RootOrder: 3
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
Expand Down Expand Up @@ -41842,7 +41842,7 @@ RectTransform:
- {fileID: 1094882026827567811}
- {fileID: 3940015782313234999}
m_Father: {fileID: 1687619415733899464}
m_RootOrder: 0
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
Expand Down
65 changes: 61 additions & 4 deletions nekoyume/Assets/Resources/UI/Prefabs/UI_EventRewardPopup.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -4300,8 +4300,8 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1075704215776035227}
m_RootOrder: 6
m_Father: {fileID: 8469914917721671060}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 4}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
Expand Down Expand Up @@ -4360,6 +4360,63 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Horizontal: 1
m_Veritical: 0
--- !u!1 &5724498643121305893
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8469914917721671060}
- component: {fileID: 4588776390276638545}
m_Layer: 0
m_Name: Event
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8469914917721671060
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5724498643121305893}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 7394044251109754096}
- {fileID: 2776737235016784732}
m_Father: {fileID: 1075704215776035227}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &4588776390276638545
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5724498643121305893}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 606a65fd6eca47988dc65a11d28abc30, type: 3}
m_Name:
m_EditorClassIdentifier:
season: 0
times: []
enableKey: UI_PatrolRewardPopup_Event
timeText: {fileID: 0}
bannerImage: {fileID: 0}
linkButton: {fileID: 0}
--- !u!1 &5794177783627773497
GameObject:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -4724,8 +4781,8 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1075704215776035227}
m_RootOrder: 5
m_Father: {fileID: 8469914917721671060}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: -4}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Category {
};

struct v2f {
float4 vertex : SV_POSITION;
fixed4 color : COLOR;
float2 texcoord : TEXCOORD0;
};
Expand All @@ -39,6 +40,7 @@ Category {
v2f vert (appdata_t IN)
{
v2f v;
v.vertex = UnityObjectToClipPos(IN.vertex);
v.color = IN.color;
v.texcoord = TRANSFORM_TEX(IN.texcoord,_MainTex);

Expand Down
8 changes: 8 additions & 0 deletions nekoyume/Assets/_Scripts/Game/Lobby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ private void OnLobbyPopup()
eventReleaseNotePopup.Show();
}
}

if (Widget.TryFind<EventRewardPopup>(out var notificationPopup))
{
if (notificationPopup.HasUnread)
{
notificationPopup.Show();
}
}
}
catch (Exception e)
{
Expand Down
2 changes: 1 addition & 1 deletion nekoyume/Assets/_Scripts/Helper/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static class Util
{
public const int VisibleEnhancementEffectLevel = 10;
private const string StoredSlotIndex = "AutoSelectedSlotIndex_";
private static readonly List<int> EventEquipmentRecipes = new() { 158, 159, 160, 253, 254, };
private static readonly List<int> EventEquipmentRecipes = new() { 158, 159, 160, 256, 257, };
private static readonly Vector2 Pivot = new(0.5f, 0.5f);
private static Dictionary<string, Sprite> CachedDownloadTextures = new();

Expand Down
Loading

0 comments on commit e79d606

Please sign in to comment.