|
@@ -20,10 +20,12 @@ namespace xy002Editor.CombatEditor
|
|
|
private ProgressBarShowModle cjShuXing;
|
|
|
private ProgressBarShowModle shangHangXingXi;
|
|
|
private ProgressBarShowModle zhiLiaoModle;
|
|
|
+ private ProgressBarShowModle beiZhiLiaoModel;
|
|
|
private ProgressBarShowModle shouDaoShangHangXingXi;
|
|
|
private CombatPeportMassgeModle combatPeportMassgeModle;
|
|
|
|
|
|
public Foldout miaoShuFoldout;
|
|
|
+
|
|
|
public void Init(CombatReportEntityInfo combatReportEntityInfo,
|
|
|
CombaReportEnditorManager combaReportEnditorManager)
|
|
|
{
|
|
@@ -55,15 +57,16 @@ namespace xy002Editor.CombatEditor
|
|
|
VisualElement visualElement_h = new VisualElement();
|
|
|
// VisualElement visualElement_h =combaReportEnditorManager.Copy<VisualElement>("hengxiang");
|
|
|
foldout.Add(visualElement_h);
|
|
|
- VisualElement visualElement_v = combaReportEnditorManager.Copy<VisualElement>("value_data_entity_style"); //英雄信息
|
|
|
+ VisualElement visualElement_v =
|
|
|
+ combaReportEnditorManager.Copy<VisualElement>("value_data_entity_style"); //英雄信息
|
|
|
visualElement_h.Add(visualElement_v);
|
|
|
Label label = new Label();
|
|
|
label.text = "玩家名" + combatReportEntityInfo.CombatHeroEntity.CurrCombatHeroInfo.heroName;
|
|
|
visualElement_v.Add(label);
|
|
|
- label = new Label();
|
|
|
+ label = new Label();
|
|
|
label.text = "等级" + combatReportEntityInfo.CombatHeroEntity.CurrCombatHeroInfo.level;
|
|
|
visualElement_v.Add(label);
|
|
|
-
|
|
|
+
|
|
|
ScrollView ScrollView = combaReportEnditorManager.Copy<ScrollView>("value_scrollview");
|
|
|
|
|
|
foldout.Add(ScrollView);
|
|
@@ -89,7 +92,7 @@ namespace xy002Editor.CombatEditor
|
|
|
shangHangXingXi = new ProgressBarShowModle(progressVe, combaReportEnditorManager);
|
|
|
|
|
|
foldout1 = combaReportEnditorManager.Copy<Foldout>("foldout_style");
|
|
|
- foldout1.text = "治疗和被治疗信息";
|
|
|
+ foldout1.text = "治疗信息";
|
|
|
foldout1.style.unityFontStyleAndWeight = FontStyle.Bold;
|
|
|
foldout1.value = false;
|
|
|
visualElement_h.Add(foldout1);
|
|
@@ -97,6 +100,15 @@ namespace xy002Editor.CombatEditor
|
|
|
foldout1.Add(progressVe);
|
|
|
zhiLiaoModle = new ProgressBarShowModle(progressVe, combaReportEnditorManager);
|
|
|
|
|
|
+ foldout1 = combaReportEnditorManager.Copy<Foldout>("foldout_style");
|
|
|
+ foldout1.text = "被治疗信息";
|
|
|
+ foldout1.style.unityFontStyleAndWeight = FontStyle.Bold;
|
|
|
+ foldout1.value = false;
|
|
|
+ visualElement_h.Add(foldout1);
|
|
|
+ progressVe = combaReportEnditorManager.Copy<VisualElement>("value_data_style");
|
|
|
+ foldout1.Add(progressVe);
|
|
|
+ beiZhiLiaoModel = new ProgressBarShowModle(progressVe, combaReportEnditorManager);
|
|
|
+
|
|
|
|
|
|
foldout1 = combaReportEnditorManager.Copy<Foldout>("foldout_style");
|
|
|
foldout1.text = "受到伤害信息";
|
|
@@ -115,7 +127,7 @@ namespace xy002Editor.CombatEditor
|
|
|
visualElement_h.Add(miaoShuFoldout);
|
|
|
VisualElement miaoshuve = combaReportEnditorManager.Copy<VisualElement>("miaoshuve"); //英雄信息
|
|
|
miaoShuFoldout.Add(miaoshuve);
|
|
|
- combatPeportMassgeModle=new CombatPeportMassgeModle();
|
|
|
+ combatPeportMassgeModle = new CombatPeportMassgeModle();
|
|
|
combatPeportMassgeModle.Init(miaoshuve, combatReportEntityInfo, combaReportEnditorManager);
|
|
|
}
|
|
|
|
|
@@ -127,10 +139,16 @@ namespace xy002Editor.CombatEditor
|
|
|
}
|
|
|
|
|
|
DrwaBattleReportValueDataModule(combatReportEntityInfo.HeroInfoModule, cjShuXing);
|
|
|
- DrwaBattleReportValueDataModule(combatReportEntityInfo.zhiLiao, zhiLiaoModle);
|
|
|
- DrwaBattleReportValueDataModule(combatReportEntityInfo.CombatInfoModule, shangHangXingXi);
|
|
|
- DrwaBattleReportValueDataModule(combatReportEntityInfo.InjuredInfoModule, shouDaoShangHangXingXi);
|
|
|
-
|
|
|
+
|
|
|
+ DrwaBattleReportValueDataModule(combatReportEntityInfo.zhiLiao, zhiLiaoModle,
|
|
|
+ combatReportEntityInfo.allZhiLiao);
|
|
|
+ DrwaBattleReportValueDataModule(combatReportEntityInfo.beiZhiLiao, beiZhiLiaoModel,
|
|
|
+ combatReportEntityInfo.allBeiZhiLiao);
|
|
|
+ DrwaBattleReportValueDataModule(combatReportEntityInfo.CombatInfoModule, shangHangXingXi,
|
|
|
+ combatReportEntityInfo.allHarm);
|
|
|
+ DrwaBattleReportValueDataModule(combatReportEntityInfo.InjuredInfoModule, shouDaoShangHangXingXi,
|
|
|
+ combatReportEntityInfo.allChengShang);
|
|
|
+
|
|
|
if (miaoShuFoldout.value)
|
|
|
{
|
|
|
combatPeportMassgeModle.OnGui();
|
|
@@ -138,19 +156,26 @@ namespace xy002Editor.CombatEditor
|
|
|
}
|
|
|
|
|
|
private void DrwaBattleReportValueDataModule(BattleReportValueDataModule battleReportValueDataModule,
|
|
|
- ProgressBarShowModle progressBarShowModle)
|
|
|
+ ProgressBarShowModle progressBarShowModle, float maxValue = -1)
|
|
|
{
|
|
|
foreach (var VARIABLE in battleReportValueDataModule.fightValueData_long.Values)
|
|
|
{
|
|
|
ReportFightValueData<long> reportFightValueData = VARIABLE;
|
|
|
+ float max = reportFightValueData.maxValue;
|
|
|
+ if (maxValue > 0)
|
|
|
+ {
|
|
|
+ max = maxValue;
|
|
|
+ }
|
|
|
+
|
|
|
progressBarShowModle.CrendHarmValue(reportFightValueData.name, reportFightValueData.value,
|
|
|
- reportFightValueData.maxValue);
|
|
|
+ max);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public void Dispose()
|
|
|
{
|
|
|
combatReportEntityInfo = null;
|
|
|
+ root.Remove(foldout);
|
|
|
}
|
|
|
}
|
|
|
}
|