关于立绘预览图加载的提示信息

main
Yuntao Hu 2024-06-25 15:17:09 +08:00
parent 5151c77289
commit c78ae7231d
4 changed files with 26 additions and 16 deletions

View File

@ -117,7 +117,9 @@ public class SkinChangeController : UIWindow
else
posterLargePics[dataCharacter.SkinID] = sprite;
//TODO 目前半身图使用好感度图片路径
path = CommonUtils.GetCharacterPicPath((int)curCharacterInfo.ID, CommonUtils.ECharacterPicPathType.Favorable, dataCharacter.SkinID);
DebugUtil.Log("目前半身图暂用使用路径为:" + path + ",请待补充相关资源与更新配置表后在此处更新相关代码");
var halfSprite = await LoadAssetAsync<Sprite>(path);
if (!posterHalfPics.ContainsKey(dataCharacter.SkinID))
posterHalfPics.Add(dataCharacter.SkinID, halfSprite);

View File

@ -788,23 +788,25 @@ public class UICameraAndPosterChangeController : UIWindow
//if (_curSelectSkin == index)
//{
var posterPic =
//TODO 目前半身图使用好感度图片路径
var posterPic =
CommonUtils.GetCharacterPicPath((int)_charIDList[_curSelect], CommonUtils.ECharacterPicPathType.Favorable, index + 1);
var imgSkin = CommonUtils.GetComponent<Image>(go, "ButtonChange/ImageSkin");
var imgSelect = CommonUtils.GetGameObject(go, "ButtonChange/ImageChooseRect");
var imgDoSelect = CommonUtils.GetGameObject(go, "ButtonChange/ImageCover");
var btnChange = CommonUtils.GetComponent<Button>(go, "ButtonChange");
var btnNotSelect = CommonUtils.GetComponent<Button>(go, "ButtonNotSelect");
imgSkin.sprite = await LoadAssetAsync<Sprite>(posterPic);
btnChange.gameObject.SetActive(true);
btnNotSelect.gameObject.SetActive(false);
imgSelect.SetActive(_curSelectSkin == index);
imgDoSelect.SetActive(_curSelectSkin != index);
ClearBind(btnChange);
ClearBind(btnNotSelect);
BindButton(btnChange, _OnClickSkinItem, index);
var imgSkin = CommonUtils.GetComponent<Image>(go, "ButtonChange/ImageSkin");
var imgSelect = CommonUtils.GetGameObject(go, "ButtonChange/ImageChooseRect");
var imgDoSelect = CommonUtils.GetGameObject(go, "ButtonChange/ImageCover");
var btnChange = CommonUtils.GetComponent<Button>(go, "ButtonChange");
var btnNotSelect = CommonUtils.GetComponent<Button>(go, "ButtonNotSelect");
DebugUtil.Log("目前半身图暂用使用路径为:" + posterPic + ",请待补充相关资源与更新配置表后在此处更新相关代码");
imgSkin.sprite = await LoadAssetAsync<Sprite>(posterPic);
btnChange.gameObject.SetActive(true);
btnNotSelect.gameObject.SetActive(false);
imgSelect.SetActive(_curSelectSkin == index);
imgDoSelect.SetActive(_curSelectSkin != index);
ClearBind(btnChange);
ClearBind(btnNotSelect);
BindButton(btnChange, _OnClickSkinItem, index);
btnChange.GetComponent<RectTransform>().sizeDelta = SkinScrollView.GetItemSizeFromList(index);
//}

View File

@ -158,6 +158,11 @@ public class VehicleCultivateData : Gameplay.Net.VehicleInfo
}
/// <summary>
/// 选定升级类型强化至满级增加的总数值
/// </summary>
/// <param name="viType">升级类型</param>
/// <returns></returns>
public float MaxUpgrades(VihecleUpgradeType viType)
{
DataVehicleUpgrade dataVehicleUpgrade = VehicleUpgradeTableHelper.Get(Cfg.ID, viType);

View File

@ -16,6 +16,7 @@
"com.unity.mathematics": "1.2.6",
"com.unity.memoryprofiler": "1.1.0",
"com.unity.mobile.android-logcat": "1.3.2",
"com.unity.mobile.notifications": "2.3.2",
"com.unity.nuget.newtonsoft-json": "3.2.1",
"com.unity.profiling.core": "1.0.2",
"com.unity.purchasing": "http://1.14.122.170:3000/liutao/lib_unity_purchase.git",