备份CatanBuilding瘦身独立工程
This commit is contained in:
17
Assets/Scripts/UI/Buff/BuffInfoPopup_2.cs
Normal file
17
Assets/Scripts/UI/Buff/BuffInfoPopup_2.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using asap.core;
|
||||
using cfg;
|
||||
using GameCore;
|
||||
using TMPro;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class BuffInfoPopup_2 : BuffInfoPopup
|
||||
{
|
||||
public Image text_info_image;
|
||||
public TMP_Text text_info_text;
|
||||
protected override void SetBuffPanel(FishBuff buff)
|
||||
{
|
||||
IUIService uiService = GContext.container.Resolve<IUIService>();
|
||||
uiService.SetImageSprite(text_info_image, buff.RemarkIcon[0]);
|
||||
text_info_text.text = LocalizationMgr.GetText(buff.RemarkDesc_l10n_key);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user