新的Item绘制
This commit is contained in:
@@ -131,6 +131,8 @@ class Rindro_Item_DrawInfo {
|
||||
GuidanceInformation = null;
|
||||
//指导信息标志位
|
||||
GuidanceInformationFlag = 0;
|
||||
//分割线计数
|
||||
GuidanceDivCount = 0;
|
||||
//信息
|
||||
InfoList = null;
|
||||
|
||||
@@ -149,12 +151,11 @@ class Rindro_Item_DrawInfo {
|
||||
}
|
||||
|
||||
function Init() {
|
||||
|
||||
//读取强化等级
|
||||
local UpgradeLevel = Item.GetUpgrade();
|
||||
//读取名字
|
||||
local Name = Item.GetName();
|
||||
local UpgradeStr = UpgradeLevel > 0 ? (UpgradeLevel + " ") : "";
|
||||
local UpgradeStr = UpgradeLevel > 0 ? ("+" + UpgradeLevel + " ") : "";
|
||||
local NameStr = Name.len() > 0 ? (Name + " ") : "未定名";
|
||||
|
||||
AddContent((UpgradeStr + Name), Padding, Padding, Rindro_BaseToolClass.GetRarityColor(Item.GetRarity()));
|
||||
@@ -182,9 +183,10 @@ class Rindro_Item_DrawInfo {
|
||||
AddContent(RealStr, 215 - StrLength - Padding, 0, info.Color);
|
||||
}
|
||||
} else {
|
||||
GuidanceDivCount++;
|
||||
AddDividing(26, 15);
|
||||
//第二道分割线下面
|
||||
if (GuidanceInformationFlag > 4) {
|
||||
if (GuidanceDivCount > 1) {
|
||||
//有自定义的代理内容则添加
|
||||
if (getroottable()["NewItemInfoWindow_Obj"].CustomDrawDelegate.len() > 0) {
|
||||
//真正达成条件需要代理的Item
|
||||
@@ -207,6 +209,7 @@ class Rindro_Item_DrawInfo {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//增加内容
|
||||
function AddContent(Content, X, Y, Color) {
|
||||
InfoList.append({
|
||||
|
||||
Reference in New Issue
Block a user