通过道具获取增加双倍活动显示逻辑

main
Yurui 2025-05-21 19:08:55 +08:00
parent 1fa0377e1d
commit dbf02547e1
4 changed files with 222 additions and 2 deletions

View File

@ -224,6 +224,82 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
text_key: uiInterface_GetItemConfirm
--- !u!1 &451207788869566835
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5727714655636799755}
- component: {fileID: 7981011476816401749}
- component: {fileID: 1103657251569237268}
m_Layer: 5
m_Name: ImageDoubleActivity
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &5727714655636799755
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 451207788869566835}
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: 2865690094409415218}
m_Father: {fileID: 1398510657220470470}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 140}
m_SizeDelta: {x: 300, y: 80}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7981011476816401749
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 451207788869566835}
m_CullTransparentMesh: 1
--- !u!114 &1103657251569237268
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 451207788869566835}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0.003921569}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &753944141222126923
GameObject:
m_ObjectHideFlags: 0
@ -1689,6 +1765,7 @@ RectTransform:
- {fileID: 392510918606749541}
- {fileID: 7380845868768419776}
- {fileID: 7746144782313526676}
- {fileID: 5727714655636799755}
m_Father: {fileID: 6559024169773381245}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
@ -2171,6 +2248,141 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &5703550866144458760
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2865690094409415218}
- component: {fileID: 5105459101697979883}
- component: {fileID: 5437382075750704134}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2865690094409415218
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5703550866144458760}
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: []
m_Father: {fileID: 5727714655636799755}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5105459101697979883
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5703550866144458760}
m_CullTransparentMesh: 1
--- !u!114 &5437382075750704134
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5703550866144458760}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "\u6389\u843D\u7FFB\u500D\u4E2D!"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: d996718f19de68245bc356be2938e063, type: 2}
m_sharedMaterial: {fileID: -8559898196655864114, guid: d996718f19de68245bc356be2938e063,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4278190335
m_fontColor: {r: 1, g: 0, b: 0, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 36
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &5753737039863384226
GameObject:
m_ObjectHideFlags: 0

View File

@ -19,13 +19,15 @@ public sealed partial class DataActivityDoubleReward : Luban.BeanBase
{
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
{ var __json0 = _buf["LevelType"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; LevelType = new LevelCfg.E_LevelType[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { LevelCfg.E_LevelType __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = (LevelCfg.E_LevelType)__e0.AsInt; } LevelType[__index0++] = __v0; } }
{ if(!_buf["Bonus"].IsNumber) { throw new SerializationException(); } Bonus = _buf["Bonus"]; }
{ if(!_buf["DescKey"].IsString) { throw new SerializationException(); } DescKey = _buf["DescKey"]; }
}
public DataActivityDoubleReward(int Id, LevelCfg.E_LevelType[] LevelType, string DescKey )
public DataActivityDoubleReward(int Id, LevelCfg.E_LevelType[] LevelType, int Bonus, string DescKey )
{
this.Id = Id;
this.LevelType = LevelType;
this.Bonus = Bonus;
this.DescKey = DescKey;
}
@ -44,6 +46,10 @@ public sealed partial class DataActivityDoubleReward : Luban.BeanBase
/// </summary>
public LevelCfg.E_LevelType[] LevelType { get; private set; }
/// <summary>
/// 翻倍倍数
/// </summary>
public int Bonus { get; private set; }
/// <summary>
/// 描述
/// </summary>
public string DescKey { get; private set; }
@ -60,6 +66,7 @@ public sealed partial class DataActivityDoubleReward : Luban.BeanBase
return "{ "
+ "Id:" + Id + ","
+ "LevelType:" + Luban.StringUtil.CollectionToString(LevelType) + ","
+ "Bonus:" + Bonus + ","
+ "DescKey:" + DescKey + ","
+ "}";
}

View File

@ -25,6 +25,6 @@
"Type": 4,
"BornDayCount": 7,
"ConfigID": 1004,
"PrefabPath": "Assets/Art_Out/UI/Prefab/Activity/ActorTestNode.prefab"
"PrefabPath": "Assets/Art_Out/UI/Prefab/Activity/SpecialGainNode.prefab"
}
]

View File

@ -5,6 +5,7 @@
0,
1
],
"Bonus": 2,
"DescKey": "荒原正展开着双臂迎接开拓者自准尉上任起7日内通关主线副本和资源副本均可获得双倍掉落奖励不含首通奖励"
}
]