1
0
mirror of synced 2025-02-17 11:08:33 +01:00
This commit is contained in:
0auBSQ 2024-07-25 01:44:49 +09:00
parent c571070428
commit a26c76aa60
11 changed files with 111 additions and 299 deletions

Binary file not shown.

View File

@ -72,5 +72,16 @@
"framecount":5,
"effect":"none"
}
}
},
"stars": {
"1":{
"framecount":0
},
"2":{
"framecount":0
},
"3":{
"framecount":0
}
}
}

View File

@ -46,6 +46,10 @@ local title_plate_star_big = { }
local title_plate_star_small = { }
local slash = nil
local title_stars_folders = { "1", "2", "3" }
local title_stars = { { } }
local title_badges = { }
local font_name_normal_size = nil
local font_name_withtitle = nil
local font_title = nil
@ -188,6 +192,30 @@ function implDrawTitleEffect(x, y, titleTexIndex)
end
end
function implDrawRarityStars(o_x, o_y, opacity, rarity)
local x = o_x
local y = o_y - 20
star_count = 0
--Rare
if rarity == 3 then
star_count = 1
--Epic
elseif rarity == 4 then
star_count = 2
--Legendary / Mythical
elseif rarity >= 5 then
star_count = 3
end
if star_count > 0 then
star_frame = 1 + math.ceil(titleplate_counter * (#title_stars[star_count] - 1))
tx_titlestar = title_stars[star_count][star_frame]
tx_titlestar.Opacity = opacity
tx_titlestar:t2D_DisplayImage(x + config_title_plate_offset_x, y + config_title_plate_offset_y)
end
end
function implDrawTitlePlate(x, y, opacity, titleTexIndex)
if titleTexIndex >= 1 and titleTexIndex <= #title_plates then
titleplate_frame = 1 + math.ceil(titleplate_counter * (#title_plates[titleTexIndex] - 1))
@ -215,7 +243,7 @@ function getCharaOffset()
end
function setInfos(player, name, title, dan, data)
player_lua = player + 1
local player_lua = player + 1
player_data[player_lua] = data
@ -281,6 +309,7 @@ function loadAssets()
end
players_blue = loadTexture("1P_Blue.png")
--Load title plates
for i = 1, #config_titletypes do
titledir = "Title/"..config_titletypes[i]
@ -307,6 +336,25 @@ function loadAssets()
end
end
--Load rarity stars
for i = 1, #title_stars_folders do
stardir = "Stars/"..title_stars_folders[i]
title_stars_config = config["stars"][title_stars_folders[i]]
config_stars_framecount = 0
if title_stars_config ~= nil then
config_stars_framecount = getNum(title_stars_config["framecount"])
end
local stars = { }
for j = 0, config_stars_framecount do
stars[j + 1] = loadTexture(stardir.."/"..j..".png")
end
title_stars[i] = stars
end
font_name_normal_size = loadFontRenderer(config_font_name_normal_size, "regular")
font_name_withtitle = loadFontRenderer(config_font_name_withtitle_size, "regular")
@ -314,7 +362,11 @@ function loadAssets()
font_dan = loadFontRenderer(config_font_dan_size, "regular")
end
function drawDan(x, y, opacity, type, titleTex)
function drawDan(o_x, o_y, opacity, type, titleTex)
--Shift on side bar
local x = o_x - 180
local y = o_y + 5
--White background
base.Opacity = opacity
base:t2D_DisplayImage(x, y)
@ -336,7 +388,11 @@ function drawDan(x, y, opacity, type, titleTex)
end
end
function drawTitlePlate(x, y, opacity, titletype, titleTex)
function drawTitlePlate(o_x, o_y, opacity, titletype, titleTex, rarityInt, nameplateId)
--Shift on side bar
local x = o_x - 180
local y = o_y + 5
--White background
base.Opacity = opacity
base:t2D_DisplayImage(x, y)
@ -344,6 +400,9 @@ function drawTitlePlate(x, y, opacity, titletype, titleTex)
--Upper (title) plate
implDrawTitlePlate(x, y, opacity, titletype + 1)
--Rarity stars
implDrawRarityStars(x, y, opacity, rarityInt)
--Glow
implDrawTitleEffect(x, y, titletype + 1)
@ -369,8 +428,9 @@ function update()
end
function draw(x, y, opacity, player, side)
player_lua = player + 1
side_lua = side + 1
local player_lua = player + 1
local side_lua = side + 1
local rarityInt = player_data[player_lua].TitleRarityInt
--White background
base.Opacity = opacity
@ -381,6 +441,9 @@ function draw(x, y, opacity, player, side)
if not(notitle[player_lua]) then
implDrawTitlePlate(x, y, opacity, titleplate_index)
end
--Rarity stars
implDrawRarityStars(x, y, opacity, rarityInt)
--Dan plate
if not(player_data[player_lua].Dan == nil) and not(player_data[player_lua].Dan == "") then

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@ -223,6 +223,12 @@ namespace TJAPlayer3
[JsonProperty("titleType")]
public int TitleType = 0;
[JsonIgnore]
public int TitleRarityInt = 1;
[JsonIgnore]
public int TitleId = -1;
[JsonProperty("puchiChara")]
public string PuchiChara = "0";

View File

@ -180,6 +180,8 @@ namespace TJAPlayer3
sf.data.TotalPlaycount = (int)(Int64)reader["TotalPlaycount"];
sf.data.AIBattleModePlaycount = (int)(Int64)reader["AIBattleModePlaycount"];
sf.data.AIBattleModeWins = (int)(Int64)reader["AIBattleModeWins"];
sf.data.TitleRarityInt = (int)(Int64)reader["PlayerNameplateRarityInt"];
sf.data.TitleId = (int)(Int64)reader["PlayerNameplateId"];
sf.tInitSaveFile();
sf.tLoadUnlockables();
@ -233,6 +235,8 @@ namespace TJAPlayer3
PlayerNameplateType = {SaveData.TitleType},
PlayerPuchichara = '{SaveData.PuchiChara.EscapeSingleQuotes()}',
PlayerCharacter = {SaveData.Character},
PlayerNameplateRarityInt = {SaveData.TitleRarityInt},
PlayerNameplateId = {SaveData.TitleId},
PlayerCharacterName = '{SaveData.CharacterName.EscapeSingleQuotes()}'
WHERE SaveId = {SaveData.SaveId};
;";

View File

@ -48,11 +48,11 @@ namespace TJAPlayer3
RunLuaCode(lfDrawDan, x, y, opacity, danGrade, titleTex);
}
public void DrawTitlePlate(int x, int y, int opacity, int type, CTexture titleTex)
public void DrawTitlePlate(int x, int y, int opacity, int type, CTexture titleTex, int rarity, int nameplateId)
{
if (!Avaibale) return;
RunLuaCode(lfDrawTitlePlate, x, y, opacity, type, titleTex);
RunLuaCode(lfDrawTitlePlate, x, y, opacity, type, titleTex, rarity, nameplateId);
}
public void Update(params object[] args)

View File

@ -472,12 +472,16 @@ namespace TJAPlayer3
var scroll = DrawSide_Menu(i + (TJAPlayer3.Skin.Heya_Side_Menu_Count / 2));
int iType = -1;
int _rarity = 1;
int _titleid = -1;
if (TJAPlayer3.SaveFileInstances[iPlayer].data.UnlockedNameplateIds != null &&
TJAPlayer3.SaveFileInstances[iPlayer].data.UnlockedNameplateIds.Contains(this.titlesKeys[pos]))
{
var _dc = TJAPlayer3.Databases.DBNameplateUnlockables.data[this.titlesKeys[pos]];
iType = _dc.nameplateInfo.iType;
_rarity = HRarity.tRarityToLangInt(_dc.rarity);
_titleid = this.titlesKeys[pos];
//iType = TJAPlayer3.SaveFileInstances[iPlayer].data.NamePlateTitles[this.titlesKeys[pos]].iType;
}
else if (pos == 0)
@ -492,7 +496,7 @@ namespace TJAPlayer3
}
*/
TJAPlayer3.NamePlate.lcNamePlate.DrawTitlePlate(scroll.Item1, scroll.Item2, 255, iType, tmpTex);
TJAPlayer3.NamePlate.lcNamePlate.DrawTitlePlate(scroll.Item1, scroll.Item2, 255, iType, tmpTex, _rarity, _titleid);
//tmpTex.t2D拡大率考慮上中央基準描画(scroll.Item1 + TJAPlayer3.Skin.Heya_Side_Menu_Font_Offset[0], scroll.Item2 + TJAPlayer3.Skin.Heya_Side_Menu_Font_Offset[1]);
@ -720,12 +724,22 @@ namespace TJAPlayer3
{
var _dc = TJAPlayer3.Databases.DBNameplateUnlockables.data[this.titlesKeys[iTitleCurrent]];
TJAPlayer3.SaveFileInstances[iPlayer].data.TitleType = _dc.nameplateInfo.iType;
TJAPlayer3.SaveFileInstances[iPlayer].data.TitleId = this.titlesKeys[iTitleCurrent];
TJAPlayer3.SaveFileInstances[iPlayer].data.TitleRarityInt = HRarity.tRarityToLangInt(_dc.rarity);
}
else if (iTitleCurrent == 0)
{
TJAPlayer3.SaveFileInstances[iPlayer].data.TitleType = 0;
TJAPlayer3.SaveFileInstances[iPlayer].data.TitleId = -1;
TJAPlayer3.SaveFileInstances[iPlayer].data.TitleRarityInt = 1;
}
else
{
TJAPlayer3.SaveFileInstances[iPlayer].data.TitleType = -1;
TJAPlayer3.SaveFileInstances[iPlayer].data.TitleId = -1;
TJAPlayer3.SaveFileInstances[iPlayer].data.TitleRarityInt = 1;
}
else if (iTitleCurrent == 0)
TJAPlayer3.SaveFileInstances[iPlayer].data.TitleType = 0;
else
TJAPlayer3.SaveFileInstances[iPlayer].data.TitleType = -1;
TJAPlayer3.NamePlate.tNamePlateRefreshTitles(iPlayer);

View File

@ -124,17 +124,6 @@ namespace TJAPlayer3
int basePlayer = player;
player = TJAPlayer3.GetActualPlayer(player);
//tNamePlateRefreshTitles(player);
/*
ctNamePlateEffect.TickLoop();
ctAnimatedNamePlateTitle.TickLoop();
this.txName[player].Opacity = Opacity;
this.txTitle[player].Opacity = Opacity;
this.txdan[player].Opacity = Opacity;
*/
bool isAI = TJAPlayer3.ConfigIni.bAIBattleMode && basePlayer == 1;
if (bIsPrevAI[basePlayer] != isAI)
{
@ -143,283 +132,8 @@ namespace TJAPlayer3
bIsPrevAI[basePlayer] = isAI;
lcNamePlate.Draw(x, y, Opacity, basePlayer, player);
/*
TJAPlayer3.Tx.NamePlateBase.Opacity = Opacity;
for (int i = 0; i < 5; i++)
TJAPlayer3.Tx.NamePlate_Effect[i].Opacity = Opacity;
// White background
tNamePlateDisplayNamePlateBase(x, y, 3);
// Upper (title) plate
if (TJAPlayer3.SaveFileInstances[player].data.Title != "" && TJAPlayer3.SaveFileInstances[player].data.Title != null)
{
int tt = TJAPlayer3.SaveFileInstances[player].data.TitleType;
if (tt >= 0 && tt < TJAPlayer3.Skin.Config_NamePlate_Ptn_Title)
{
var _tex = TJAPlayer3.Tx.NamePlate_Title[tt][ctAnimatedNamePlateTitle.CurrentValue % TJAPlayer3.Skin.Config_NamePlate_Ptn_Title_Boxes[tt]];
if (_tex != null)
{
_tex.Opacity = Opacity;
_tex.t2D描画(x - (2 * resolutionScaleX), y - (2 * resolutionScaleY));
}
}
}
// Dan plate
if (TJAPlayer3.SaveFileInstances[player].data.Dan != "" && TJAPlayer3.SaveFileInstances[player].data.Dan != null)
{
tNamePlateDisplayNamePlateBase(x, y, 7);
tNamePlateDisplayNamePlateBase(x, y, (8 + TJAPlayer3.SaveFileInstances[player].data.DanType));
}
// Glow
tNamePlateDraw(player, x, y, Opacity);
// Player number
if (TJAPlayer3.PlayerSide == 0 || TJAPlayer3.ConfigIni.nPlayerCount > 1)
{
if (basePlayer < 2)
{
tNamePlateDisplayNamePlateBase(x, y, basePlayer == 1 ? 2 : 0);
}
else
{
tNamePlateDisplayNamePlate_Extension(x, y, basePlayer - 2);
}
}
else
tNamePlateDisplayNamePlateBase(x, y, 1);
// Name text squash (to add to skin config)
if (TJAPlayer3.SaveFileInstances[player].data.Dan != "" && TJAPlayer3.SaveFileInstances[player].data.Dan != null)
{
if (txName[player].szTextureSize.Width > TJAPlayer3.Skin.NamePlate_Name_Width_Full)
txName[player].vcScaleRatio.X = (float)TJAPlayer3.Skin.NamePlate_Name_Width_Full / txName[player].szTextureSize.Width;
}
else
{
if (txName[player].szTextureSize.Width > TJAPlayer3.Skin.NamePlate_Name_Width_Normal)
txName[player].vcScaleRatio.X = (float)TJAPlayer3.Skin.NamePlate_Name_Width_Normal / txName[player].szTextureSize.Width;
}
// Dan text squash (to add to skin config)
if (txdan[player].szTextureSize.Width > TJAPlayer3.Skin.NamePlate_Dan_Width)
txdan[player].vcScaleRatio.X = (float)TJAPlayer3.Skin.NamePlate_Dan_Width / txdan[player].szTextureSize.Width;
// Dan text
if (TJAPlayer3.SaveFileInstances[player].data.Dan != "" && TJAPlayer3.SaveFileInstances[player].data.Dan != null)
{
this.txdan[player].t2D拡大率考慮中央基準描画(x + TJAPlayer3.Skin.NamePlate_Dan_Offset[0], y + TJAPlayer3.Skin.NamePlate_Dan_Offset[1]);
}
// Title text
if (TJAPlayer3.SaveFileInstances[player].data.Title != "" && TJAPlayer3.SaveFileInstances[player].data.Title != null)
{
if (txTitle[player].szTextureSize.Width > TJAPlayer3.Skin.NamePlate_Title_Width)
{
txTitle[player].vcScaleRatio.X = (float)TJAPlayer3.Skin.NamePlate_Title_Width / txTitle[player].szTextureSize.Width;
txTitle[player].vcScaleRatio.Y = (float)TJAPlayer3.Skin.NamePlate_Title_Width / txTitle[player].szTextureSize.Width;
}
txTitle[player].t2D拡大率考慮中央基準描画(x + TJAPlayer3.Skin.NamePlate_Title_Offset[0], y + TJAPlayer3.Skin.NamePlate_Title_Offset[1]);
// Name text
if (TJAPlayer3.SaveFileInstances[player].data.Dan == "" || TJAPlayer3.SaveFileInstances[player].data.Dan == null)
this.txName[player].t2D拡大率考慮中央基準描画(x + TJAPlayer3.Skin.NamePlate_Name_Offset_WithTitle[0], y + TJAPlayer3.Skin.NamePlate_Name_Offset_WithTitle[1]);
else
this.txName[player].t2D拡大率考慮中央基準描画(x + TJAPlayer3.Skin.NamePlate_Name_Offset_Full[0], y + TJAPlayer3.Skin.NamePlate_Name_Offset_Full[1]);
}
else
this.txName[player].t2D拡大率考慮中央基準描画(x + TJAPlayer3.Skin.NamePlate_Name_Offset_Normal[0], y + TJAPlayer3.Skin.NamePlate_Name_Offset_Normal[1]);
// Overlap frame
tNamePlateDisplayNamePlateBase(x, y, 4);
*/
}
/*
private void tNamePlateDraw(int player, int x, int y, int Opacity = 255)
{
if (Opacity == 0)
return;
float resolutionScaleX = TJAPlayer3.Skin.Resolution[0] / 1280.0f;
float resolutionScaleY = TJAPlayer3.Skin.Resolution[1] / 720.0f;
if (TJAPlayer3.SaveFileInstances[player].data.TitleType != 0 && !TJAPlayer3.ConfigIni.SimpleMode)
{
int Type = TJAPlayer3.SaveFileInstances[player].data.TitleType - 1;
if (this.ctNamePlateEffect.CurrentValue <= 10)
{
tNamePlateStarDraw(player, 1.0f - (ctNamePlateEffect.CurrentValue / 10f * 1.0f), x + (63 * resolutionScaleX), y + (25 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 3 && this.ctNamePlateEffect.CurrentValue <= 10)
{
tNamePlateStarDraw(player, 1.0f - ((ctNamePlateEffect.CurrentValue - 3) / 7f * 1.0f), x + (38 * resolutionScaleX), y + (7 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 6 && this.ctNamePlateEffect.CurrentValue <= 10)
{
tNamePlateStarDraw(player, 1.0f - ((ctNamePlateEffect.CurrentValue - 6) / 4f * 1.0f), x + (51 * resolutionScaleX), y + (5 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 8 && this.ctNamePlateEffect.CurrentValue <= 10)
{
tNamePlateStarDraw(player, 0.3f - ((ctNamePlateEffect.CurrentValue - 8) / 2f * 0.3f), x + (110 * resolutionScaleX), y + (25 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 11 && this.ctNamePlateEffect.CurrentValue <= 13)
{
tNamePlateStarDraw(player, 1.0f - ((ctNamePlateEffect.CurrentValue - 11) / 2f * 1.0f), x + (38 * resolutionScaleX), y + (7 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 11 && this.ctNamePlateEffect.CurrentValue <= 15)
{
tNamePlateStarDraw(player, 1.0f, x + (51 * resolutionScaleX), y + 5);
}
if (this.ctNamePlateEffect.CurrentValue >= 11 && this.ctNamePlateEffect.CurrentValue <= 17)
{
tNamePlateStarDraw(player, 1.0f - ((ctNamePlateEffect.CurrentValue - 11) / 7f * 1.0f), x + (110 * resolutionScaleX), y + (25 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 16 && this.ctNamePlateEffect.CurrentValue <= 20)
{
tNamePlateStarDraw(player, 0.2f - ((ctNamePlateEffect.CurrentValue - 16) / 4f * 0.2f), x + (63 * resolutionScaleX), y + (25 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 17 && this.ctNamePlateEffect.CurrentValue <= 20)
{
tNamePlateStarDraw(player, 1.0f - ((ctNamePlateEffect.CurrentValue - 17) / 3f * 1.0f), x + (99 * resolutionScaleX), y + (1 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 20 && this.ctNamePlateEffect.CurrentValue <= 24)
{
tNamePlateStarDraw(player, 0.4f, x + (63 * resolutionScaleX), y + 25);
}
if (this.ctNamePlateEffect.CurrentValue >= 20 && this.ctNamePlateEffect.CurrentValue <= 25)
{
tNamePlateStarDraw(player, 1.0f, x + (99 * resolutionScaleX), y + 1);
}
if (this.ctNamePlateEffect.CurrentValue >= 20 && this.ctNamePlateEffect.CurrentValue <= 30)
{
tNamePlateStarDraw(player, 0.5f - ((this.ctNamePlateEffect.CurrentValue - 20) / 10f * 0.5f), x + (152 * resolutionScaleX), y + (7 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 31 && this.ctNamePlateEffect.CurrentValue <= 37)
{
tNamePlateStarDraw(player, 0.5f - ((this.ctNamePlateEffect.CurrentValue - 31) / 6f * 0.5f), x + (176 * resolutionScaleX), y + (8 * resolutionScaleY));
tNamePlateStarDraw(player, 1.0f - ((this.ctNamePlateEffect.CurrentValue - 31) / 6f * 1.0f), x + (175 * resolutionScaleX), y + (25 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 31 && this.ctNamePlateEffect.CurrentValue <= 40)
{
tNamePlateStarDraw(player, 0.9f - ((this.ctNamePlateEffect.CurrentValue - 31) / 9f * 0.9f), x + (136 * resolutionScaleX), y + (24 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 34 && this.ctNamePlateEffect.CurrentValue <= 40)
{
tNamePlateStarDraw(player, 0.7f - ((this.ctNamePlateEffect.CurrentValue - 34) / 6f * 0.7f), x + (159 * resolutionScaleX), y + (25 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 41 && this.ctNamePlateEffect.CurrentValue <= 42)
{
tNamePlateStarDraw(player, 0.7f, x + (159 * resolutionScaleX), y + (25 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 43 && this.ctNamePlateEffect.CurrentValue <= 50)
{
tNamePlateStarDraw(player, 0.8f - ((this.ctNamePlateEffect.CurrentValue - 43) / 7f * 0.8f), x + (196 * resolutionScaleX), y + (23 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 51 && this.ctNamePlateEffect.CurrentValue <= 57)
{
tNamePlateStarDraw(player, 0.8f - ((this.ctNamePlateEffect.CurrentValue - 51) / 6f * 0.8f), x + (51 * resolutionScaleX), y + (5 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 51 && this.ctNamePlateEffect.CurrentValue <= 52)
{
tNamePlateStarDraw(player, 0.2f, x + (166 * resolutionScaleX), y + (22 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 51 && this.ctNamePlateEffect.CurrentValue <= 53)
{
tNamePlateStarDraw(player, 0.8f, x + (136 * resolutionScaleX), y + (24 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 51 && this.ctNamePlateEffect.CurrentValue <= 55)
{
tNamePlateStarDraw(player, 1.0f, x + (176 * resolutionScaleX), y + (8 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 51 && this.ctNamePlateEffect.CurrentValue <= 55)
{
tNamePlateStarDraw(player, 1.0f, x + (176 * resolutionScaleX), y + (8 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 61 && this.ctNamePlateEffect.CurrentValue <= 70)
{
tNamePlateStarDraw(player, 1.0f - ((this.ctNamePlateEffect.CurrentValue - 61) / 9f * 1.0f), x + (196 * resolutionScaleX), y + (23 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 61 && this.ctNamePlateEffect.CurrentValue <= 67)
{
tNamePlateStarDraw(player, 0.7f - ((this.ctNamePlateEffect.CurrentValue - 61) / 6f * 0.7f), x + (214 * resolutionScaleX), y + (14 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 63 && this.ctNamePlateEffect.CurrentValue <= 70)
{
tNamePlateStarDraw(player, 0.5f - ((this.ctNamePlateEffect.CurrentValue - 63) / 7f * 0.5f), x + (129 * resolutionScaleX), y + (24 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 63 && this.ctNamePlateEffect.CurrentValue <= 70)
{
tNamePlateStarDraw(player, 0.5f - ((this.ctNamePlateEffect.CurrentValue - 63) / 7f * 0.5f), x + (129 * resolutionScaleX), y + (24 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 65 && this.ctNamePlateEffect.CurrentValue <= 70)
{
tNamePlateStarDraw(player, 0.8f - ((this.ctNamePlateEffect.CurrentValue - 65) / 5f * 0.8f), x + (117 * resolutionScaleX), y + (7 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 71 && this.ctNamePlateEffect.CurrentValue <= 72)
{
tNamePlateStarDraw(player, 0.8f, x + (151 * resolutionScaleX), y + (25 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 71 && this.ctNamePlateEffect.CurrentValue <= 74)
{
tNamePlateStarDraw(player, 0.8f, x + (117 * resolutionScaleX), y + (7 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 85 && this.ctNamePlateEffect.CurrentValue <= 112)
{
TJAPlayer3.Tx.NamePlate_Effect[4].Opacity = (int)(1400 - (this.ctNamePlateEffect.CurrentValue - 85) * 50f);
TJAPlayer3.Tx.NamePlate_Effect[4].t2D描画(x + ((((this.ctNamePlateEffect.CurrentValue - 85) * (150f / 27f))) * resolutionScaleX), y + (7 * resolutionScaleY));
}
if (this.ctNamePlateEffect.CurrentValue >= 105 && this.ctNamePlateEffect.CurrentValue <= 120)
{
int tt = TJAPlayer3.SaveFileInstances[player].data.TitleType;
if (tt >= 0 && tt < TJAPlayer3.Skin.Config_NamePlate_Ptn_Title && TJAPlayer3.Tx.NamePlate_Title_Big[tt] != null) {
TJAPlayer3.Tx.NamePlate_Title_Big[tt].Opacity = this.ctNamePlateEffect.CurrentValue >= 112 ? (int)(255 - (this.ctNamePlateEffect.CurrentValue - 112) * 31.875f) : 255;
TJAPlayer3.Tx.NamePlate_Title_Big[tt].vcScaleRatio.X = this.ctNamePlateEffect.CurrentValue >= 112 ? 1.0f : (this.ctNamePlateEffect.CurrentValue - 105) / 8f;
TJAPlayer3.Tx.NamePlate_Title_Big[tt].vcScaleRatio.Y = this.ctNamePlateEffect.CurrentValue >= 112 ? 1.0f : (this.ctNamePlateEffect.CurrentValue - 105) / 8f;
TJAPlayer3.Tx.NamePlate_Title_Big[tt].t2D拡大率考慮中央基準描画(x + (193 * resolutionScaleX), y + (6 * resolutionScaleY));
}
}
}
}
*/
/*
private void tNamePlateStarDraw(int player, float Scale, float x, float y)
{
int tt = TJAPlayer3.SaveFileInstances[player].data.TitleType;
if (tt >= 0 && tt < TJAPlayer3.Skin.Config_NamePlate_Ptn_Title && TJAPlayer3.Tx.NamePlate_Title_Small[tt] != null)
{
TJAPlayer3.Tx.NamePlate_Title_Small[tt].vcScaleRatio.X = Scale;
TJAPlayer3.Tx.NamePlate_Title_Small[tt].vcScaleRatio.Y = Scale;
TJAPlayer3.Tx.NamePlate_Title_Small[tt].t2D拡大率考慮中央基準描画(x, y);
}
}
*/
/*
private CCachedFontRenderer[] pfName = new CCachedFontRenderer[5];
private CCachedFontRenderer pfTitle;
private CCachedFontRenderer pfdan;
private CCounter ctNamePlateEffect;
public CCounter ctAnimatedNamePlateTitle;
private CTexture[] txName = new CTexture[5];
private CTexture[] txTitle = new CTexture[5];
private CTexture[] txdan = new CTexture[5];
*/
private bool[] bIsPrevAI = new bool[5];
}
}