いろんなステージでluaを使用できるように (#375)
* いろんなステージでluaを使用できるように * ScriptのTemplateを更新 * タイトルにも実装
This commit is contained in:
parent
577069daf9
commit
82ff6f07a6
@ -2642,6 +2642,7 @@ namespace TJAPlayer3
|
||||
#endregion
|
||||
|
||||
#region DaniSelect
|
||||
/*
|
||||
else if (strCommand == "DaniSelect_Dan_Text_X")
|
||||
{
|
||||
string[] strSplit = strParam.Split(',');
|
||||
@ -2658,6 +2659,7 @@ namespace TJAPlayer3
|
||||
DaniSelect_Dan_Text_Y[i] = int.Parse(strSplit[i]);
|
||||
}
|
||||
}
|
||||
*/
|
||||
else if (strCommand == "DaniSelect_DanSides_X")
|
||||
{
|
||||
string[] strSplit = strParam.Split(',');
|
||||
@ -6812,8 +6814,8 @@ namespace TJAPlayer3
|
||||
|
||||
#endregion
|
||||
#region DaniSelect
|
||||
public int[] DaniSelect_Dan_Text_X = new int[] { 300, 980, 300, 980 };
|
||||
public int[] DaniSelect_Dan_Text_Y = new int[] { 198, 198, 522, 522 };
|
||||
//public int[] DaniSelect_Dan_Text_X = new int[] { 300, 980, 300, 980 };
|
||||
//public int[] DaniSelect_Dan_Text_Y = new int[] { 198, 198, 522, 522 };
|
||||
|
||||
public int[] DaniSelect_DanSides_X = new int[] { 243, 1199 };
|
||||
public int[] DaniSelect_DanSides_Y = new int[] { 143, 143 };
|
||||
|
@ -18,22 +18,22 @@ namespace TJAPlayer3
|
||||
const string CHARACTERS = @"Characters\";
|
||||
|
||||
// Stage
|
||||
const string TITLE = @"1_Title\";
|
||||
const string CONFIG = @"2_Config\";
|
||||
public const string TITLE = @"1_Title\";
|
||||
public const string CONFIG = @"2_Config\";
|
||||
const string SONGSELECT = @"3_SongSelect\";
|
||||
const string DANISELECT = @"3_DaniSelect\";
|
||||
public const string DANISELECT = @"3_DaniSelect\";
|
||||
const string SONGLOADING = @"4_SongLoading\";
|
||||
public const string GAME = @"5_Game\";
|
||||
const string RESULT = @"6_Result\";
|
||||
const string EXIT = @"7_Exit\";
|
||||
public const string EXIT = @"7_Exit\";
|
||||
const string DANRESULT = @"7_DanResult\";
|
||||
const string TOWERRESULT = @"8_TowerResult\";
|
||||
const string HEYA = @"10_Heya\";
|
||||
public const string HEYA = @"10_Heya\";
|
||||
|
||||
const string MODALS = @"11_Modals\";
|
||||
const string ONLINELOUNGE = @"12_OnlineLounge\";
|
||||
public const string ONLINELOUNGE = @"12_OnlineLounge\";
|
||||
const string TOWERSELECT = @"13_TowerSelect\";
|
||||
const string OPENENCYCLOPEDIA = @"15_OpenEncyclopedia\";
|
||||
public const string OPENENCYCLOPEDIA = @"15_OpenEncyclopedia\";
|
||||
|
||||
// InGame
|
||||
public const string DANCER = @"2_Dancer\";
|
||||
@ -152,7 +152,7 @@ namespace TJAPlayer3
|
||||
#endregion
|
||||
|
||||
#region 1_タイトル画面
|
||||
Title_Background = TxC(TITLE + @"Background.png");
|
||||
//Title_Background = TxC(TITLE + @"Background.png");
|
||||
Entry_Bar = TxC(TITLE + @"Entry_Bar.png");
|
||||
Entry_Bar_Text = TxC(TITLE + @"Entry_Bar_Text.png");
|
||||
|
||||
@ -188,8 +188,8 @@ namespace TJAPlayer3
|
||||
#endregion
|
||||
|
||||
#region 2_コンフィグ画面
|
||||
Config_Background = TxC(CONFIG + @"Background.png");
|
||||
Config_Header = TxC(CONFIG + @"Header.png");
|
||||
//Config_Background = TxC(CONFIG + @"Background.png");
|
||||
//Config_Header = TxC(CONFIG + @"Header.png");
|
||||
Config_Cursor = TxC(CONFIG + @"Cursor.png");
|
||||
Config_ItemBox = TxC(CONFIG + @"ItemBox.png");
|
||||
Config_Arrow = TxC(CONFIG + @"Arrow.png");
|
||||
@ -315,7 +315,7 @@ namespace TJAPlayer3
|
||||
|
||||
#region 3_段位選択画面
|
||||
|
||||
Dani_Background = TxC(DANISELECT + "Background.png");
|
||||
//Dani_Background = TxC(DANISELECT + "Background.png");
|
||||
Dani_Difficulty_Cymbol = TxC(DANISELECT + "Difficulty_Cymbol.png");
|
||||
Dani_Level_Number = TxC(DANISELECT + "Level_Number.png");
|
||||
Dani_Soul_Number = TxC(DANISELECT + "SoulNumber.png");
|
||||
@ -326,8 +326,8 @@ namespace TJAPlayer3
|
||||
for (int i = 0; i < Challenge_Select.Length; i++)
|
||||
Challenge_Select[i] = TxC(DANISELECT + "Challenge_Select_" + i.ToString() + ".png");
|
||||
|
||||
Dani_Dan_In = TxC(DANISELECT + "Dan_In.png");
|
||||
Dani_Dan_Text = TxC(DANISELECT + "Dan_Text.png");
|
||||
//Dani_Dan_In = TxC(DANISELECT + "Dan_In.png");
|
||||
//Dani_Dan_Text = TxC(DANISELECT + "Dan_Text.png");
|
||||
|
||||
Dani_DanPlates = TxC(DANISELECT + "DanPlates.png");
|
||||
Dani_DanSides = TxC(DANISELECT + "DanSides.png");
|
||||
@ -934,7 +934,7 @@ namespace TJAPlayer3
|
||||
#endregion
|
||||
|
||||
#region 7_終了画面
|
||||
Exit_Background = TxC(EXIT + @"Background.png");
|
||||
//Exit_Background = TxC(EXIT + @"Background.png");
|
||||
#endregion
|
||||
|
||||
#region 7_AIResults
|
||||
@ -977,7 +977,7 @@ namespace TJAPlayer3
|
||||
|
||||
#region [10_Heya]
|
||||
|
||||
Heya_Background = TxC(HEYA + @"Background.png");
|
||||
//Heya_Background = TxC(HEYA + @"Background.png");
|
||||
Heya_Center_Menu_Bar = TxC(HEYA + @"Center_Menu_Bar.png");
|
||||
Heya_Center_Menu_Box = TxC(HEYA + @"Center_Menu_Box.png");
|
||||
Heya_Center_Menu_Box_Slot = TxC(HEYA + @"Center_Menu_Box_Slot.png");
|
||||
@ -1120,7 +1120,7 @@ namespace TJAPlayer3
|
||||
|
||||
#region [12_OnlineLounge]
|
||||
|
||||
OnlineLounge_Background = TxC(ONLINELOUNGE + @"Background.png");
|
||||
//OnlineLounge_Background = TxC(ONLINELOUNGE + @"Background.png");
|
||||
OnlineLounge_Box = TxC(ONLINELOUNGE + @"Box.png");
|
||||
OnlineLounge_Center_Menu_Bar = TxC(ONLINELOUNGE + @"Center_Menu_Bar.png");
|
||||
OnlineLounge_Center_Menu_Box_Slot = TxC(ONLINELOUNGE + @"Center_Menu_Box_Slot.png");
|
||||
@ -1137,7 +1137,7 @@ namespace TJAPlayer3
|
||||
|
||||
#region [15_OpenEncyclopedia]
|
||||
|
||||
OpenEncyclopedia_Background = TxC(OPENENCYCLOPEDIA + @"Background.png");
|
||||
//OpenEncyclopedia_Background = TxC(OPENENCYCLOPEDIA + @"Background.png");
|
||||
OpenEncyclopedia_Context = TxC(OPENENCYCLOPEDIA + @"Context.png");
|
||||
OpenEncyclopedia_Side_Menu = TxC(OPENENCYCLOPEDIA + @"Side_Menu.png");
|
||||
OpenEncyclopedia_Return_Box = TxC(OPENENCYCLOPEDIA + @"Return_Box.png");
|
||||
@ -1744,7 +1744,8 @@ namespace TJAPlayer3
|
||||
|
||||
#region 1_タイトル画面
|
||||
|
||||
public CTexture Title_Background,
|
||||
public CTexture
|
||||
//Title_Background,
|
||||
Entry_Bar,
|
||||
Entry_Bar_Text;
|
||||
|
||||
@ -1758,8 +1759,9 @@ namespace TJAPlayer3
|
||||
#endregion
|
||||
|
||||
#region 2_コンフィグ画面
|
||||
public CTexture Config_Background,
|
||||
Config_Header,
|
||||
public CTexture
|
||||
/*Config_Background,
|
||||
Config_Header,*/
|
||||
Config_Cursor,
|
||||
Config_ItemBox,
|
||||
Config_Arrow,
|
||||
@ -1831,7 +1833,7 @@ namespace TJAPlayer3
|
||||
|
||||
#region 3_段位選択画面
|
||||
|
||||
public CTexture Dani_Background;
|
||||
//public CTexture Dani_Background;
|
||||
public CTexture Dani_Difficulty_Cymbol;
|
||||
public CTexture Dani_Level_Number;
|
||||
public CTexture Dani_Soul_Number;
|
||||
@ -1841,8 +1843,8 @@ namespace TJAPlayer3
|
||||
|
||||
public CTexture[] Challenge_Select = new CTexture[3];
|
||||
|
||||
public CTexture Dani_Dan_In;
|
||||
public CTexture Dani_Dan_Text;
|
||||
//public CTexture Dani_Dan_In;
|
||||
//public CTexture Dani_Dan_Text;
|
||||
|
||||
public CTexture Dani_DanPlates;
|
||||
public CTexture Dani_DanSides;
|
||||
@ -2116,8 +2118,8 @@ namespace TJAPlayer3
|
||||
#endregion
|
||||
|
||||
#region 7_終了画面
|
||||
public CTexture Exit_Background/* , */
|
||||
/*Exit_Text */;
|
||||
//public CTexture Exit_Background/* , */
|
||||
/*Exit_Text; */
|
||||
#endregion
|
||||
|
||||
#region [7_DanResults]
|
||||
@ -2143,7 +2145,8 @@ namespace TJAPlayer3
|
||||
|
||||
#region [10_Heya]
|
||||
|
||||
public CTexture Heya_Background,
|
||||
public CTexture
|
||||
//Heya_Background,
|
||||
Heya_Center_Menu_Bar,
|
||||
Heya_Center_Menu_Box,
|
||||
Heya_Center_Menu_Box_Slot,
|
||||
@ -2196,7 +2199,8 @@ namespace TJAPlayer3
|
||||
|
||||
#region [12_OnlineLounge]
|
||||
|
||||
public CTexture OnlineLounge_Background,
|
||||
public CTexture
|
||||
//OnlineLounge_Background,
|
||||
OnlineLounge_Box,
|
||||
OnlineLounge_Center_Menu_Bar,
|
||||
OnlineLounge_Center_Menu_Box_Slot,
|
||||
@ -2213,7 +2217,8 @@ namespace TJAPlayer3
|
||||
|
||||
#region [15_OpenEncyclopedia]
|
||||
|
||||
public CTexture OpenEncyclopedia_Background,
|
||||
public CTexture
|
||||
//OpenEncyclopedia_Background,
|
||||
OpenEncyclopedia_Context,
|
||||
OpenEncyclopedia_Return_Box,
|
||||
OpenEncyclopedia_Side_Menu;
|
||||
|
@ -110,6 +110,9 @@ namespace TJAPlayer3
|
||||
if (base.b活性化してない)
|
||||
return;
|
||||
|
||||
Background = new ScriptBG(CSkin.Path($"{TextureLoader.BASE}{TextureLoader.TITLE}Script.lua"));
|
||||
Background.Init();
|
||||
|
||||
if (!string.IsNullOrEmpty(TJAPlayer3.ConfigIni.FontName))
|
||||
this.pfMenuTitle = new CPrivateFastFont(new FontFamily(TJAPlayer3.ConfigIni.FontName), TJAPlayer3.Skin.Title_ModeSelect_Title_Scale[0]);
|
||||
else
|
||||
@ -128,7 +131,9 @@ namespace TJAPlayer3
|
||||
public override void OnManagedリソースの解放()
|
||||
{
|
||||
if (!base.b活性化してない)
|
||||
return;
|
||||
return;
|
||||
|
||||
TJAPlayer3.t安全にDisposeする(ref Background);
|
||||
|
||||
TJAPlayer3.t安全にDisposeする(ref pfMenuTitle);
|
||||
TJAPlayer3.t安全にDisposeする(ref pfBoxText);
|
||||
@ -399,8 +404,11 @@ namespace TJAPlayer3
|
||||
|
||||
#region [ 背景描画 ]
|
||||
|
||||
if (TJAPlayer3.Tx.Title_Background != null)
|
||||
TJAPlayer3.Tx.Title_Background.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
Background.Update();
|
||||
Background.Draw();
|
||||
|
||||
//if (TJAPlayer3.Tx.Title_Background != null)
|
||||
// TJAPlayer3.Tx.Title_Background.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
|
||||
#endregion
|
||||
|
||||
@ -968,6 +976,8 @@ namespace TJAPlayer3
|
||||
#region [ private ]
|
||||
//-----------------
|
||||
|
||||
private ScriptBG Background;
|
||||
|
||||
// Directly propose the different game options if the save file is already loaded, go back to save file select by pressing "Escape"
|
||||
private void SkipSaveFileStep()
|
||||
{
|
||||
|
@ -153,8 +153,11 @@ namespace TJAPlayer3
|
||||
public override void OnManagedリソースの作成() // OPTIONと画像以外共通
|
||||
{
|
||||
if( !base.b活性化してない )
|
||||
{
|
||||
ctBackgroundAnime = new CCounter(0, TJAPlayer3.Tx.Config_Background.szテクスチャサイズ.Width, 20, TJAPlayer3.Timer);
|
||||
{
|
||||
Background = new ScriptBG(CSkin.Path($"{TextureLoader.BASE}{TextureLoader.CONFIG}Script.lua"));
|
||||
Background.Init();
|
||||
|
||||
//ctBackgroundAnime = new CCounter(0, TJAPlayer3.Tx.Config_Background.szテクスチャサイズ.Width, 20, TJAPlayer3.Timer);
|
||||
|
||||
ReloadMenus();
|
||||
|
||||
@ -197,11 +200,14 @@ namespace TJAPlayer3
|
||||
public override void OnManagedリソースの解放() // OPTIONと同じ(COnfig.iniの書き出しタイミングのみ異なるが、無視して良い)
|
||||
{
|
||||
if( !base.b活性化してない )
|
||||
{
|
||||
//CDTXMania.tテクスチャの解放( ref this.tx背景 );
|
||||
//CDTXMania.tテクスチャの解放( ref this.tx上部パネル );
|
||||
//CDTXMania.tテクスチャの解放( ref this.tx下部パネル );
|
||||
//CDTXMania.tテクスチャの解放( ref this.txMenuカーソル );
|
||||
{
|
||||
//CDTXMania.tテクスチャの解放( ref this.tx背景 );
|
||||
//CDTXMania.tテクスチャの解放( ref this.tx上部パネル );
|
||||
//CDTXMania.tテクスチャの解放( ref this.tx下部パネル );
|
||||
//CDTXMania.tテクスチャの解放( ref this.txMenuカーソル );
|
||||
|
||||
TJAPlayer3.t安全にDisposeする(ref Background);
|
||||
|
||||
TJAPlayer3.tテクスチャの解放( ref this.tx説明文パネル );
|
||||
for ( int i = 0; i < txMenuItemLeft.GetLength( 0 ); i++ )
|
||||
{
|
||||
@ -224,27 +230,31 @@ namespace TJAPlayer3
|
||||
base.eフェーズID = CStage.Eフェーズ.共通_フェードイン;
|
||||
this.actFIFO.tフェードイン開始();
|
||||
base.b初めての進行描画 = false;
|
||||
}
|
||||
|
||||
ctBackgroundAnime.t進行Loop();
|
||||
|
||||
// 描画
|
||||
|
||||
}
|
||||
|
||||
//ctBackgroundAnime.t進行Loop();
|
||||
|
||||
// 描画
|
||||
|
||||
#region [ Background ]
|
||||
|
||||
//---------------------
|
||||
|
||||
//---------------------
|
||||
/*
|
||||
for(int i = 0; i < 2; i++)
|
||||
if (TJAPlayer3.Tx.Config_Background != null )
|
||||
TJAPlayer3.Tx.Config_Background.t2D描画( TJAPlayer3.app.Device, 0 + -(TJAPlayer3.Tx.Config_Background.szテクスチャサイズ.Width * i) + ctBackgroundAnime.n現在の値, 0 );
|
||||
if(TJAPlayer3.Tx.Config_Header != null )
|
||||
TJAPlayer3.Tx.Config_Header.t2D描画( TJAPlayer3.app.Device, 0, 0 );
|
||||
//---------------------
|
||||
|
||||
*/
|
||||
Background.Update();
|
||||
Background.Draw();
|
||||
//---------------------
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region [ Menu Cursor ]
|
||||
//---------------------
|
||||
if( TJAPlayer3.Tx.Config_Cursor != null )
|
||||
//---------------------
|
||||
if ( TJAPlayer3.Tx.Config_Cursor != null )
|
||||
{
|
||||
#region Old
|
||||
/*
|
||||
@ -535,7 +545,7 @@ namespace TJAPlayer3
|
||||
}
|
||||
}
|
||||
|
||||
private CCounter ctBackgroundAnime;
|
||||
//private CCounter ctBackgroundAnime;
|
||||
private CActFIFOWhite actFIFO;
|
||||
private CActConfigKeyAssign actKeyAssign;
|
||||
private CActConfigList actList;
|
||||
@ -554,6 +564,8 @@ namespace TJAPlayer3
|
||||
//private CTexture tx背景;
|
||||
private CTexture[ , ] txMenuItemLeft;
|
||||
|
||||
private ScriptBG Background;
|
||||
|
||||
private void tカーソルを下へ移動する()
|
||||
{
|
||||
if( !this.bメニューにフォーカス中 )
|
||||
|
@ -55,13 +55,24 @@ namespace TJAPlayer3
|
||||
}
|
||||
|
||||
public override void OnManagedリソースの作成()
|
||||
{
|
||||
base.OnManagedリソースの作成();
|
||||
{
|
||||
if (!base.b活性化してない)
|
||||
{
|
||||
Background = new ScriptBG(CSkin.Path($"{TextureLoader.BASE}{TextureLoader.DANISELECT}Script.lua"));
|
||||
Background.Init();
|
||||
|
||||
base.OnManagedリソースの作成();
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnManagedリソースの解放()
|
||||
{
|
||||
base.OnManagedリソースの解放();
|
||||
{
|
||||
if (!base.b活性化してない)
|
||||
{
|
||||
TJAPlayer3.t安全にDisposeする(ref Background);
|
||||
|
||||
base.OnManagedリソースの解放();
|
||||
}
|
||||
}
|
||||
|
||||
public override int On進行描画()
|
||||
@ -72,11 +83,14 @@ namespace TJAPlayer3
|
||||
|
||||
int stamp = this.段位リスト.ctDaniIn.n現在の値;
|
||||
|
||||
float zoom = Math.Min(1.14f, Math.Max(1f, (float)Math.Pow(stamp / 3834f, 0.5f)));
|
||||
float zoom = Math.Min(1.14f, Math.Max(1f, (float)Math.Pow(stamp / 3834f, 0.5f)));
|
||||
|
||||
Background.Update();
|
||||
Background.Draw();
|
||||
|
||||
TJAPlayer3.Tx.Dani_Background.vc拡大縮小倍率.X = zoom;
|
||||
TJAPlayer3.Tx.Dani_Background.vc拡大縮小倍率.Y = zoom;
|
||||
TJAPlayer3.Tx.Dani_Background.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Resolution[0] / 2, TJAPlayer3.Skin.Resolution[1] / 2);
|
||||
//TJAPlayer3.Tx.Dani_Background.vc拡大縮小倍率.X = zoom;
|
||||
//TJAPlayer3.Tx.Dani_Background.vc拡大縮小倍率.Y = zoom;
|
||||
//TJAPlayer3.Tx.Dani_Background.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, TJAPlayer3.Skin.Resolution[0] / 2, TJAPlayer3.Skin.Resolution[1] / 2);
|
||||
|
||||
this.段位リスト.On進行描画();
|
||||
|
||||
@ -91,6 +105,7 @@ namespace TJAPlayer3
|
||||
bInSongPlayed = true;
|
||||
}
|
||||
|
||||
/*
|
||||
int dani_dan_in_width = TJAPlayer3.Tx.Dani_Dan_In.szテクスチャサイズ.Width / 2;
|
||||
int dani_dan_in_height = TJAPlayer3.Tx.Dani_Dan_In.szテクスチャサイズ.Height;
|
||||
|
||||
@ -106,17 +121,19 @@ namespace TJAPlayer3
|
||||
|
||||
TJAPlayer3.Tx.Dani_Dan_In.t2D描画(TJAPlayer3.app.Device, doorLeft, 0, new Rectangle(0, 0, dani_dan_in_width, dani_dan_in_height));
|
||||
TJAPlayer3.Tx.Dani_Dan_In.t2D描画(TJAPlayer3.app.Device, doorRight, 0, new Rectangle(dani_dan_in_width, 0, dani_dan_in_width, dani_dan_in_height));
|
||||
|
||||
*/
|
||||
if (stamp <= 3834)
|
||||
{
|
||||
#region [Dan intro letters]
|
||||
|
||||
int quarter = TJAPlayer3.Tx.Dani_Dan_Text.szテクスチャサイズ.Width / 4;
|
||||
//int quarter = TJAPlayer3.Tx.Dani_Dan_Text.szテクスチャサイズ.Width / 4;
|
||||
|
||||
/*
|
||||
int[] xAxis = { 300, 980 };
|
||||
int[] yAxis = { 198, 522 };
|
||||
*/
|
||||
|
||||
/*
|
||||
int[] appearStamps = { 1645, 2188, 2646, 3152 };
|
||||
|
||||
for (int i = 0; i < 4; i++)
|
||||
@ -137,6 +154,7 @@ namespace TJAPlayer3
|
||||
TJAPlayer3.Tx.Dani_Dan_Text.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, x, y,
|
||||
new Rectangle(quarter * i, 0, quarter, TJAPlayer3.Tx.Dani_Dan_Text.szテクスチャサイズ.Height));
|
||||
}
|
||||
*/
|
||||
|
||||
#endregion
|
||||
}
|
||||
@ -287,7 +305,9 @@ namespace TJAPlayer3
|
||||
}
|
||||
// TJAPlayer3.Skin.bgm選曲画面.t停止する();
|
||||
CSongSelectSongManager.stopSong();
|
||||
}
|
||||
}
|
||||
|
||||
private ScriptBG Background;
|
||||
|
||||
public CCounter ct待機;
|
||||
|
||||
|
@ -187,7 +187,7 @@ namespace TJAPlayer3
|
||||
// ------------------------------------
|
||||
private void showEndEffect_Failed(int i)
|
||||
{
|
||||
FailedScript.Update(i);
|
||||
if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) FailedScript.Update(i);
|
||||
FailedScript.Draw(i);
|
||||
|
||||
int[] y = new int[] { 0, 176 };
|
||||
@ -215,7 +215,7 @@ namespace TJAPlayer3
|
||||
}
|
||||
private void showEndEffect_Clear(int i)
|
||||
{
|
||||
ClearScript.Update(i);
|
||||
if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) ClearScript.Update(i);
|
||||
ClearScript.Draw(i);
|
||||
|
||||
/*
|
||||
@ -392,7 +392,7 @@ namespace TJAPlayer3
|
||||
|
||||
private void showEndEffect_FullCombo(int i)
|
||||
{
|
||||
FullComboScript.Update(i);
|
||||
if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) FullComboScript.Update(i);
|
||||
FullComboScript.Draw(i);
|
||||
|
||||
/*
|
||||
@ -411,7 +411,7 @@ namespace TJAPlayer3
|
||||
|
||||
private void showEndEffect_DondaFullCombo(int i)
|
||||
{
|
||||
DondaFullComboScript.Update(i);
|
||||
if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) DondaFullComboScript.Update(i);
|
||||
DondaFullComboScript.Draw(i);
|
||||
|
||||
/*
|
||||
|
@ -364,7 +364,7 @@ namespace TJAPlayer3
|
||||
|
||||
if (!IsUpNotFound)
|
||||
{
|
||||
UpScript.Update();
|
||||
if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) UpScript.Update();
|
||||
UpScript.Draw();
|
||||
if (TJAPlayer3.stage選曲.n確定された曲の難易度[0] == (int)Difficulty.Tower)
|
||||
{
|
||||
@ -864,7 +864,7 @@ namespace TJAPlayer3
|
||||
{
|
||||
if (!IsDownNotFound)
|
||||
{
|
||||
DownScript.Update();
|
||||
if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) DownScript.Update();
|
||||
DownScript.Draw();
|
||||
#region [Ensou lower background]
|
||||
/*
|
||||
|
@ -43,6 +43,10 @@ namespace TJAPlayer3
|
||||
{
|
||||
Textures[fileName]?.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, (int)x, (int)y);
|
||||
}
|
||||
public void DrawGraphRectCenter(double x, double y, int rect_x, int rect_y, int rect_width, int rect_height, string fileName)
|
||||
{
|
||||
Textures[fileName]?.t2D拡大率考慮中央基準描画(TJAPlayer3.app.Device, (int)x, (int)y, new System.Drawing.RectangleF(rect_x, rect_y, rect_width, rect_height));
|
||||
}
|
||||
public void SetOpacity(double opacity, string fileName)
|
||||
{
|
||||
if (Textures[fileName] != null)
|
||||
@ -197,7 +201,7 @@ namespace TJAPlayer3
|
||||
{
|
||||
float currentFloorPositionMax140 = 0;
|
||||
|
||||
if (TJAPlayer3.stage選曲.r確定された曲.arスコア[5] != null)
|
||||
if (TJAPlayer3.stage選曲.r確定された曲 != null && TJAPlayer3.stage選曲.r確定された曲.arスコア[5] != null)
|
||||
{
|
||||
int maxFloor = TJAPlayer3.stage選曲.r確定された曲.arスコア[5].譜面情報.nTotalFloor;
|
||||
int nightTime = Math.Max(140, maxFloor / 2);
|
||||
@ -210,7 +214,7 @@ namespace TJAPlayer3
|
||||
LuaScript.SetObjectToPath("deltaTime", TJAPlayer3.FPS.DeltaTime);
|
||||
LuaScript.SetObjectToPath("isClear", TJAPlayer3.stage演奏ドラム画面.bIsAlreadyCleared);
|
||||
LuaScript.SetObjectToPath("towerNightOpacity", (double)(255 * currentFloorPositionMax140));*/
|
||||
if (!TJAPlayer3.stage演奏ドラム画面.bPAUSE) LuaUpdate.Call();
|
||||
LuaUpdate.Call();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -53,6 +53,9 @@ namespace TJAPlayer3
|
||||
{
|
||||
if( !base.b活性化してない )
|
||||
{
|
||||
Background = new ScriptBG(CSkin.Path($"{TextureLoader.BASE}{TextureLoader.EXIT}Script.lua"));
|
||||
Background.Init();
|
||||
|
||||
// this.tx文字 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\9_text.png" ) );
|
||||
// this.tx文字2 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\9_text.png" ) );
|
||||
// this.tx文字3 = CDTXMania.tテクスチャの生成( CSkin.Path( @"Graphics\9_text.png" ) );
|
||||
@ -65,13 +68,15 @@ namespace TJAPlayer3
|
||||
public override void OnManagedリソースの解放()
|
||||
{
|
||||
if( !base.b活性化してない )
|
||||
{
|
||||
//CDTXMania.tテクスチャの解放( ref this.tx背景 );
|
||||
// CDTXMania.tテクスチャの解放( ref this.tx文字 );
|
||||
// CDTXMania.tテクスチャの解放( ref this.tx文字2 );
|
||||
// CDTXMania.tテクスチャの解放( ref this.tx文字3 );
|
||||
// CDTXMania.tテクスチャの解放( ref this.tx白 );
|
||||
// CDTXMania.t安全にDisposeする( ref this.ds背景 );
|
||||
{
|
||||
TJAPlayer3.t安全にDisposeする(ref Background);
|
||||
|
||||
//CDTXMania.tテクスチャの解放( ref this.tx背景 );
|
||||
// CDTXMania.tテクスチャの解放( ref this.tx文字 );
|
||||
// CDTXMania.tテクスチャの解放( ref this.tx文字2 );
|
||||
// CDTXMania.tテクスチャの解放( ref this.tx文字3 );
|
||||
// CDTXMania.tテクスチャの解放( ref this.tx白 );
|
||||
// CDTXMania.t安全にDisposeする( ref this.ds背景 );
|
||||
base.OnManagedリソースの解放();
|
||||
}
|
||||
}
|
||||
@ -94,9 +99,12 @@ namespace TJAPlayer3
|
||||
}
|
||||
|
||||
|
||||
this.ct時間稼ぎ.t進行();
|
||||
|
||||
TJAPlayer3.Tx.Exit_Background?.t2D描画( TJAPlayer3.app.Device, 0, 0 );
|
||||
this.ct時間稼ぎ.t進行();
|
||||
|
||||
Background.Update();
|
||||
Background.Draw();
|
||||
|
||||
//TJAPlayer3.Tx.Exit_Background?.t2D描画( TJAPlayer3.app.Device, 0, 0 );
|
||||
|
||||
if( this.ct時間稼ぎ.b終了値に達した && !TJAPlayer3.Skin.soundゲーム終了音.b再生中 )
|
||||
{
|
||||
@ -104,13 +112,14 @@ namespace TJAPlayer3
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
// その他
|
||||
|
||||
}
|
||||
|
||||
|
||||
// その他
|
||||
|
||||
#region [ private ]
|
||||
//-----------------
|
||||
//-----------------
|
||||
private ScriptBG Background;
|
||||
private CCounter ct時間稼ぎ;
|
||||
//private CTexture tx背景;
|
||||
// private CTexture tx文字;
|
||||
|
@ -162,13 +162,24 @@ namespace TJAPlayer3
|
||||
}
|
||||
|
||||
public override void OnManagedリソースの作成()
|
||||
{
|
||||
base.OnManagedリソースの作成();
|
||||
{
|
||||
if (!base.b活性化してない)
|
||||
{
|
||||
Background = new ScriptBG(CSkin.Path($"{TextureLoader.BASE}{TextureLoader.HEYA}Script.lua"));
|
||||
Background.Init();
|
||||
|
||||
base.OnManagedリソースの作成();
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnManagedリソースの解放()
|
||||
{
|
||||
base.OnManagedリソースの解放();
|
||||
{
|
||||
if (!base.b活性化してない)
|
||||
{
|
||||
TJAPlayer3.t安全にDisposeする(ref Background);
|
||||
|
||||
base.OnManagedリソースの解放();
|
||||
}
|
||||
}
|
||||
|
||||
public override int On進行描画()
|
||||
@ -178,7 +189,9 @@ namespace TJAPlayer3
|
||||
|
||||
ScrollCounter.t進行();
|
||||
|
||||
TJAPlayer3.Tx.Heya_Background.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
Background.Update();
|
||||
Background.Draw();
|
||||
//TJAPlayer3.Tx.Heya_Background.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
|
||||
#region [Menus display]
|
||||
|
||||
@ -854,12 +867,14 @@ namespace TJAPlayer3
|
||||
return ESelectStatus.SELECTED;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
private ScriptBG Background;
|
||||
|
||||
private TitleTextureKey[] ttkMainMenuOpt;
|
||||
private CPrivateFastFont pfHeyaFont;
|
||||
|
||||
|
@ -126,19 +126,33 @@ namespace TJAPlayer3
|
||||
{
|
||||
// Ressource allocation
|
||||
|
||||
base.OnManagedリソースの作成();
|
||||
if (!base.b活性化してない)
|
||||
{
|
||||
Background = new ScriptBG(CSkin.Path($"{TextureLoader.BASE}{TextureLoader.ONLINELOUNGE}Script.lua"));
|
||||
Background.Init();
|
||||
|
||||
base.OnManagedリソースの作成();
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnManagedリソースの解放()
|
||||
{
|
||||
// Ressource freeing
|
||||
|
||||
base.OnManagedリソースの解放();
|
||||
if (!base.b活性化してない)
|
||||
{
|
||||
TJAPlayer3.t安全にDisposeする(ref Background);
|
||||
|
||||
base.OnManagedリソースの解放();
|
||||
}
|
||||
}
|
||||
|
||||
public override int On進行描画()
|
||||
{
|
||||
TJAPlayer3.Tx.OnlineLounge_Background.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
Background.Update();
|
||||
Background.Draw();
|
||||
|
||||
//TJAPlayer3.Tx.OnlineLounge_Background.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
|
||||
#region [Menus]
|
||||
|
||||
@ -721,6 +735,8 @@ namespace TJAPlayer3
|
||||
|
||||
#region [Private]
|
||||
|
||||
private ScriptBG Background;
|
||||
|
||||
private ECurrentMenu currentMenu;
|
||||
private ECurrentMenu menuPointer;
|
||||
private CMenuInfo[] menus;
|
||||
|
@ -51,14 +51,25 @@ namespace TJAPlayer3
|
||||
{
|
||||
// Ressource allocation
|
||||
|
||||
base.OnManagedリソースの作成();
|
||||
if (!base.b活性化してない)
|
||||
{
|
||||
Background = new ScriptBG(CSkin.Path($"{TextureLoader.BASE}{TextureLoader.OPENENCYCLOPEDIA}Script.lua"));
|
||||
Background.Init();
|
||||
|
||||
base.OnManagedリソースの作成();
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnManagedリソースの解放()
|
||||
{
|
||||
// Ressource freeing
|
||||
|
||||
base.OnManagedリソースの解放();
|
||||
if (!base.b活性化してない)
|
||||
{
|
||||
TJAPlayer3.t安全にDisposeする(ref Background);
|
||||
|
||||
base.OnManagedリソースの解放();
|
||||
}
|
||||
}
|
||||
|
||||
public override int On進行描画()
|
||||
@ -72,7 +83,10 @@ namespace TJAPlayer3
|
||||
|
||||
#region [Displayables]
|
||||
|
||||
TJAPlayer3.Tx.OpenEncyclopedia_Background?.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
Background.Update();
|
||||
Background.Draw();
|
||||
|
||||
//TJAPlayer3.Tx.OpenEncyclopedia_Background?.t2D描画(TJAPlayer3.app.Device, 0, 0);
|
||||
|
||||
if (_arePagesOpened)
|
||||
{
|
||||
@ -191,6 +205,8 @@ namespace TJAPlayer3
|
||||
|
||||
#region [Private]
|
||||
|
||||
private ScriptBG Background;
|
||||
|
||||
private CEncyclopediaControler _controler;
|
||||
private bool _arePagesOpened;
|
||||
|
||||
|
@ -1,9 +1,11 @@
|
||||
;Included file
|
||||
;あとは通常通り設定できます
|
||||
|
||||
DaniSelect_Dan_Text_X=300,980,300,980
|
||||
//Unused
|
||||
;DaniSelect_Dan_Text_X=300,980,300,980
|
||||
|
||||
DaniSelect_Dan_Text_Y=198,198,522,522
|
||||
//Unused
|
||||
;DaniSelect_Dan_Text_Y=198,198,522,522
|
||||
|
||||
|
||||
DaniSelect_DanSides_X=243,1199
|
||||
|
28
Test/System/SimpleStyle/Graphics/10_Heya/Script.lua
Normal file
28
Test/System/SimpleStyle/Graphics/10_Heya/Script.lua
Normal file
@ -0,0 +1,28 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("Background.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
end
|
||||
|
||||
function draw()
|
||||
func:DrawGraph(0, 0, "Background.png")
|
||||
end
|
28
Test/System/SimpleStyle/Graphics/12_OnlineLounge/Script.lua
Normal file
28
Test/System/SimpleStyle/Graphics/12_OnlineLounge/Script.lua
Normal file
@ -0,0 +1,28 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("Background.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
end
|
||||
|
||||
function draw()
|
||||
func:DrawGraph(0, 0, "Background.png")
|
||||
end
|
@ -0,0 +1,28 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("Background.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
end
|
||||
|
||||
function draw()
|
||||
func:DrawGraph(0, 0, "Background.png")
|
||||
end
|
28
Test/System/SimpleStyle/Graphics/1_Title/Script.lua
Normal file
28
Test/System/SimpleStyle/Graphics/1_Title/Script.lua
Normal file
@ -0,0 +1,28 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("Background.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
end
|
||||
|
||||
function draw()
|
||||
func:DrawGraph(0, 0, "Background.png")
|
||||
end
|
40
Test/System/SimpleStyle/Graphics/2_Config/Script.lua
Normal file
40
Test/System/SimpleStyle/Graphics/2_Config/Script.lua
Normal file
@ -0,0 +1,40 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
local bg_width = 1280
|
||||
local x = 0
|
||||
local y = 0
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("Background.png")
|
||||
func:AddGraph("Header.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
x = x - (bg_width * deltaTime / 20.0)
|
||||
if x < -bg_width then
|
||||
x = 0
|
||||
end
|
||||
end
|
||||
|
||||
function draw()
|
||||
for i = 0, 3 do
|
||||
func:DrawGraph(x + i * bg_width, y, "Background.png")
|
||||
end
|
||||
func:DrawGraph(0, 0, "Header.png")
|
||||
end
|
84
Test/System/SimpleStyle/Graphics/3_DaniSelect/Script.lua
Normal file
84
Test/System/SimpleStyle/Graphics/3_DaniSelect/Script.lua
Normal file
@ -0,0 +1,84 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
local incounter = 0
|
||||
local bgZoom = 0
|
||||
|
||||
local bg_width = 1280
|
||||
local bg_height = 720
|
||||
|
||||
local dan_in_width = 640
|
||||
local dan_in_height = 720
|
||||
|
||||
local dan_text_width = 226
|
||||
local dan_text_height = 226
|
||||
|
||||
local dan_text_x = { 300, 980, 300, 980 }
|
||||
local dan_text_y = { 198, 198, 522, 522 }
|
||||
local dan_text_appearStamps = { 1645, 2188, 2646, 3152 }
|
||||
|
||||
local dan_in_move = 0
|
||||
|
||||
local x = 640
|
||||
local y = 360
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("Background.png")
|
||||
func:AddGraph("Dan_In.png")
|
||||
func:AddGraph("Dan_Text.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
incounter = incounter + (1000.0 * deltaTime)
|
||||
if incounter > 6000 then
|
||||
incounter = 6000
|
||||
end
|
||||
|
||||
bgZoom = math.min(1.14, math.max(1, ((incounter / 3834.0) ^ 0.5)))
|
||||
|
||||
if incounter >= 3834 then
|
||||
dan_in_move = math.min((((incounter - 3834) / 2166.0) * 4.0), 1) * dan_in_width
|
||||
end
|
||||
end
|
||||
|
||||
function draw()
|
||||
func:SetScale(bgZoom, bgZoom, "Background.png")
|
||||
|
||||
func:DrawGraphCenter(x, y, "Background.png")
|
||||
|
||||
if incounter < 6000 then
|
||||
func:DrawRectGraph(0 - dan_in_move, 0, 0, 0, dan_in_width, dan_in_height, "Dan_In.png")
|
||||
func:DrawRectGraph(dan_in_width + dan_in_move, 0, dan_in_width, 0, dan_in_width, dan_in_height, "Dan_In.png")
|
||||
|
||||
if incounter <= 3834 then
|
||||
for i = 1, 4 do
|
||||
if incounter >= dan_text_appearStamps[i] then
|
||||
value = math.min(255, incounter - dan_text_appearStamps[i])
|
||||
func:SetOpacity(value, "Dan_Text.png")
|
||||
|
||||
ratio = (255 - value) / 400 + 1
|
||||
func:SetScale(ratio, ratio, "Dan_Text.png")
|
||||
|
||||
func:DrawGraphRectCenter(dan_text_x[i], dan_text_y[i], dan_text_width * i, 0, dan_text_width, dan_text_height, "Dan_Text.png")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
func:DrawNum(0, 0, incounter)
|
||||
end
|
@ -1,10 +1,10 @@
|
||||
--func:DrawText(x, y, text);
|
||||
--func:DrawNum(x, y, num);
|
||||
--func:AddGraph("filename");
|
||||
--func:DrawGraph(x, y, filename);
|
||||
--func:SetOpacity(opacity, "filename");
|
||||
--func:SetScale(xscale, yscale, "filename");
|
||||
--func:SetColor(r, g, b, "filename");
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
local inAnimeCounter = -20
|
||||
|
||||
@ -44,8 +44,8 @@ function update()
|
||||
nowAnimeFrame = math.floor(animeCounter+0.5)
|
||||
|
||||
if nowAnimeFrame > maxAnimeFrame then
|
||||
animeCounter = 0;
|
||||
nowAnimeFrame = 0;
|
||||
animeCounter = 0
|
||||
nowAnimeFrame = 0
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -16,36 +16,36 @@ function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("0.png");
|
||||
func:AddGraph("1.png");
|
||||
func:AddGraph("2.png");
|
||||
func:AddGraph("3.png");
|
||||
func:AddGraph("4.png");
|
||||
func:AddGraph("5.png");
|
||||
func:AddGraph("0.png")
|
||||
func:AddGraph("1.png")
|
||||
func:AddGraph("2.png")
|
||||
func:AddGraph("3.png")
|
||||
func:AddGraph("4.png")
|
||||
func:AddGraph("5.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
bgScrollX_1 = bgScrollX_1 + (59.1 * deltaTime);
|
||||
bgScrollX_1 = bgScrollX_1 + (59.1 * deltaTime)
|
||||
if bgScrollX_1 > bgWidth_1 then
|
||||
bgScrollX_1 = 0;
|
||||
end
|
||||
|
||||
bgScrollX_2 = bgScrollX_2 + (45.9 * deltaTime);
|
||||
bgScrollX_2 = bgScrollX_2 + (45.9 * deltaTime)
|
||||
if bgScrollX_2 > bgWidth_2 then
|
||||
bgScrollX_2 = 0;
|
||||
end
|
||||
|
||||
bgScrollX_3 = bgScrollX_3 + (43.8 * deltaTime);
|
||||
bgScrollX_3 = bgScrollX_3 + (43.8 * deltaTime)
|
||||
if bgScrollX_3 > bgWidth_3 then
|
||||
bgScrollX_3 = 0;
|
||||
end
|
||||
|
||||
bgScrollX_4 = bgScrollX_4 + (100 * deltaTime);
|
||||
bgScrollX_4 = bgScrollX_4 + (100 * deltaTime)
|
||||
if bgScrollX_4 > bgWidth_4 + 200 then
|
||||
bgScrollX_4 = 0;
|
||||
end
|
||||
|
||||
bgScrollX_5 = bgScrollX_5 + (45.9 * deltaTime);
|
||||
bgScrollX_5 = bgScrollX_5 + (45.9 * deltaTime)
|
||||
if bgScrollX_5 > bgWidth_5 then
|
||||
bgScrollX_5 = 0;
|
||||
end
|
||||
@ -53,12 +53,12 @@ end
|
||||
|
||||
|
||||
function draw()
|
||||
func:DrawGraph(0, 0, "0.png");
|
||||
func:DrawGraph(0, 0, "0.png")
|
||||
for i = 0, 4 do
|
||||
func:DrawGraph((i * bgWidth_1) - bgScrollX_1, 0, "1.png");
|
||||
func:DrawGraph((i * bgWidth_2) - bgScrollX_2, 0, "2.png");
|
||||
func:DrawGraph((i * bgWidth_3) - bgScrollX_3, 0, "3.png");
|
||||
func:DrawGraph((i * bgWidth_4) - bgScrollX_4, -200 + bgScrollX_4, "4.png");
|
||||
func:DrawGraph((i * bgWidth_5) - bgScrollX_5, 0, "5.png");
|
||||
func:DrawGraph((i * bgWidth_1) - bgScrollX_1, 0, "1.png")
|
||||
func:DrawGraph((i * bgWidth_2) - bgScrollX_2, 0, "2.png")
|
||||
func:DrawGraph((i * bgWidth_3) - bgScrollX_3, 0, "3.png")
|
||||
func:DrawGraph((i * bgWidth_4) - bgScrollX_4, -200 + bgScrollX_4, "4.png")
|
||||
func:DrawGraph((i * bgWidth_5) - bgScrollX_5, 0, "5.png")
|
||||
end
|
||||
end
|
||||
|
@ -11,40 +11,40 @@ function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("Down.png");
|
||||
func:AddGraph("Down_Clear.png");
|
||||
func:AddGraph("Down_Scroll.png");
|
||||
func:AddGraph("Down.png")
|
||||
func:AddGraph("Down_Clear.png")
|
||||
func:AddGraph("Down_Scroll.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
if isClear[0] then
|
||||
bgClearFade = bgClearFade + (2000 * deltaTime);
|
||||
bgClearFade = bgClearFade + (2000 * deltaTime)
|
||||
else
|
||||
bgClearFade = bgClearFade - (2000 * deltaTime);
|
||||
bgClearFade = bgClearFade - (2000 * deltaTime);
|
||||
end
|
||||
|
||||
bgScrollX = bgScrollX + (250 * deltaTime);
|
||||
bgScrollX = bgScrollX + (250 * deltaTime)
|
||||
|
||||
if bgClearFade > 255 then
|
||||
bgClearFade = 255;
|
||||
bgClearFade = 255
|
||||
end
|
||||
if bgClearFade < 0 then
|
||||
bgClearFade = 0;
|
||||
bgClearFade = 0
|
||||
end
|
||||
|
||||
if bgScrollX > loopWidth then
|
||||
bgScrollX = 0;
|
||||
bgScrollX = 0
|
||||
end
|
||||
end
|
||||
|
||||
function draw()
|
||||
func:SetOpacity(bgClearFade, "Down_Clear.png");
|
||||
func:SetOpacity(bgClearFade, "Down_Scroll.png");
|
||||
func:SetOpacity(bgClearFade, "Down_Clear.png")
|
||||
func:SetOpacity(bgClearFade, "Down_Scroll.png")
|
||||
|
||||
func:DrawGraph(0, 360, "Down.png");
|
||||
func:DrawGraph(0, 360, "Down_Clear.png");
|
||||
func:DrawGraph(0, 360, "Down.png")
|
||||
func:DrawGraph(0, 360, "Down_Clear.png")
|
||||
|
||||
for i = 0, 2 do
|
||||
func:DrawGraph(0 + (loopWidth * i) - bgScrollX, 360, "Down_Scroll.png");
|
||||
func:DrawGraph(0 + (loopWidth * i) - bgScrollX, 360, "Down_Scroll.png")
|
||||
end
|
||||
end
|
||||
|
@ -11,11 +11,11 @@ local bgClearFade = { 0, 0 }
|
||||
function drawUp1st(x, y, player)
|
||||
for i2 = -2, 1 do
|
||||
if player == 0 and p1IsBlue == false then
|
||||
func:DrawGraph(x, y + (loopHeight * i2) + bgScrollY, "1P_Up_1st.png");
|
||||
func:DrawGraph(x, y + (loopHeight * i2) + bgScrollY, "Clear_Up_1st.png");
|
||||
func:DrawGraph(x, y + (loopHeight * i2) + bgScrollY, "1P_Up_1st.png")
|
||||
func:DrawGraph(x, y + (loopHeight * i2) + bgScrollY, "Clear_Up_1st.png")
|
||||
else
|
||||
func:DrawGraph(x, y + (loopHeight * i2) + bgScrollY, "2P_Up_1st.png");
|
||||
func:DrawGraph(x, y + (loopHeight * i2) + bgScrollY, "Clear_Up_1st.png");
|
||||
func:DrawGraph(x, y + (loopHeight * i2) + bgScrollY, "2P_Up_1st.png")
|
||||
func:DrawGraph(x, y + (loopHeight * i2) + bgScrollY, "Clear_Up_1st.png")
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -23,22 +23,22 @@ end
|
||||
function drawUp2nd(x, y, player)
|
||||
for i2 = -1, 2 do
|
||||
if player == 0 and p1IsBlue == false then
|
||||
func:DrawGraph(x, y + (loopHeight * i2) - bgScrollY, "1P_Up_2nd.png");
|
||||
func:DrawGraph(x, y + (loopHeight * i2) - bgScrollY, "Clear_Up_2nd.png");
|
||||
func:DrawGraph(x, y + (loopHeight * i2) - bgScrollY, "1P_Up_2nd.png")
|
||||
func:DrawGraph(x, y + (loopHeight * i2) - bgScrollY, "Clear_Up_2nd.png")
|
||||
else
|
||||
func:DrawGraph(x, y + (loopHeight * i2) - bgScrollY, "2P_Up_2nd.png");
|
||||
func:DrawGraph(x, y + (loopHeight * i2) - bgScrollY, "Clear_Up_2nd.png");
|
||||
func:DrawGraph(x, y + (loopHeight * i2) - bgScrollY, "2P_Up_2nd.png")
|
||||
func:DrawGraph(x, y + (loopHeight * i2) - bgScrollY, "Clear_Up_2nd.png")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function drawUp3rd(x, y, player)
|
||||
if player == 0 and p1IsBlue == false then
|
||||
func:DrawGraph(x - bgScrollX_3rd, y - bgScrollY_3rd, "1P_Up_3rd.png");
|
||||
func:DrawGraph(x - bgScrollX_3rd, y - bgScrollY_3rd, "Clear_Up_3rd.png");
|
||||
func:DrawGraph(x - bgScrollX_3rd, y - bgScrollY_3rd, "1P_Up_3rd.png")
|
||||
func:DrawGraph(x - bgScrollX_3rd, y - bgScrollY_3rd, "Clear_Up_3rd.png")
|
||||
else
|
||||
func:DrawGraph(x - bgScrollX_3rd, y - bgScrollY_3rd, "2P_Up_3rd.png");
|
||||
func:DrawGraph(x - bgScrollX_3rd, y - bgScrollY_3rd, "Clear_Up_3rd.png");
|
||||
func:DrawGraph(x - bgScrollX_3rd, y - bgScrollY_3rd, "2P_Up_3rd.png")
|
||||
func:DrawGraph(x - bgScrollX_3rd, y - bgScrollY_3rd, "Clear_Up_3rd.png")
|
||||
end
|
||||
end
|
||||
|
||||
@ -49,58 +49,58 @@ function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("1P_Up_1st.png");
|
||||
func:AddGraph("2P_Up_1st.png");
|
||||
func:AddGraph("1P_Up_2nd.png");
|
||||
func:AddGraph("2P_Up_2nd.png");
|
||||
func:AddGraph("1P_Up_3rd.png");
|
||||
func:AddGraph("2P_Up_3rd.png");
|
||||
func:AddGraph("1P_Up_1st.png")
|
||||
func:AddGraph("2P_Up_1st.png")
|
||||
func:AddGraph("1P_Up_2nd.png")
|
||||
func:AddGraph("2P_Up_2nd.png")
|
||||
func:AddGraph("1P_Up_3rd.png")
|
||||
func:AddGraph("2P_Up_3rd.png")
|
||||
|
||||
func:AddGraph("Clear_Up_1st.png");
|
||||
func:AddGraph("Clear_Up_2nd.png");
|
||||
func:AddGraph("Clear_Up_3rd.png");
|
||||
func:AddGraph("Clear_Up_1st.png")
|
||||
func:AddGraph("Clear_Up_2nd.png")
|
||||
func:AddGraph("Clear_Up_3rd.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
bgScrollX = bgScrollX - (59 * deltaTime);
|
||||
bgScrollY = bgScrollY + (14 * deltaTime);
|
||||
bg3rdAnime = bg3rdAnime + (300 * deltaTime);
|
||||
bgScrollX = bgScrollX - (59 * deltaTime)
|
||||
bgScrollY = bgScrollY + (14 * deltaTime)
|
||||
bg3rdAnime = bg3rdAnime + (300 * deltaTime)
|
||||
|
||||
for player = 0, playerCount - 1 do
|
||||
if isClear[player] then
|
||||
bgClearFade[player + 1] = bgClearFade[player + 1] + (2000 * deltaTime);
|
||||
bgClearFade[player + 1] = bgClearFade[player + 1] + (2000 * deltaTime)
|
||||
else
|
||||
bgClearFade[player + 1] = bgClearFade[player + 1] - (2000 * deltaTime);
|
||||
bgClearFade[player + 1] = bgClearFade[player + 1] - (2000 * deltaTime)
|
||||
end
|
||||
|
||||
if bgClearFade[player + 1] > 255 then
|
||||
bgClearFade[player + 1] = 255;
|
||||
bgClearFade[player + 1] = 255
|
||||
end
|
||||
if bgClearFade[player + 1] < 0 then
|
||||
bgClearFade[player + 1] = 0;
|
||||
bgClearFade[player + 1] = 0
|
||||
end
|
||||
end
|
||||
|
||||
if bgScrollX < -loopWidth then
|
||||
bgScrollX = 0;
|
||||
bgScrollX = 0
|
||||
end
|
||||
if bgScrollY > loopHeight then
|
||||
bgScrollY = 0;
|
||||
bgScrollY = 0
|
||||
end
|
||||
if bg3rdAnime > 600 then
|
||||
bg3rdAnime = 0;
|
||||
bg3rdAnime = 0
|
||||
end
|
||||
|
||||
if bg3rdAnime < 270 then
|
||||
--speed
|
||||
bgScrollX_3rd = bg3rdAnime * 0.9258;
|
||||
bgScrollY_3rd = math.sin(bg3rdAnime * (math.pi / 270.0)) * 40.0;
|
||||
bgScrollX_3rd = bg3rdAnime * 0.9258
|
||||
bgScrollY_3rd = math.sin(bg3rdAnime * (math.pi / 270.0)) * 40.0
|
||||
else
|
||||
bgScrollX_3rd = 250 + (bg3rdAnime - 270) * 0.24;
|
||||
if bg3rdAnime < 490 then
|
||||
bgScrollY_3rd = -math.sin((bg3rdAnime - 270) * (math.pi / 170.0)) * 15.0;
|
||||
bgScrollY_3rd = -math.sin((bg3rdAnime - 270) * (math.pi / 170.0)) * 15.0
|
||||
else
|
||||
bgScrollY_3rd = -(math.sin(220 * (math.pi / 170.0)) * 15.0) + (((bg3rdAnime - 490) / 110) * (math.sin(220 * (math.pi / 170)) * 15.0));
|
||||
bgScrollY_3rd = -(math.sin(220 * (math.pi / 170.0)) * 15.0) + (((bg3rdAnime - 490) / 110) * (math.sin(220 * (math.pi / 170)) * 15.0))
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -109,20 +109,20 @@ end
|
||||
function draw()
|
||||
for player = 0, playerCount - 1 do
|
||||
|
||||
func:SetOpacity(bgClearFade[player + 1], "Clear_Up_1st.png");
|
||||
func:SetOpacity(bgClearFade[player + 1], "Clear_Up_2nd.png");
|
||||
func:SetOpacity(bgClearFade[player + 1], "Clear_Up_3rd.png");
|
||||
func:SetOpacity(bgClearFade[player + 1], "Clear_Up_1st.png")
|
||||
func:SetOpacity(bgClearFade[player + 1], "Clear_Up_2nd.png")
|
||||
func:SetOpacity(bgClearFade[player + 1], "Clear_Up_3rd.png")
|
||||
|
||||
y = 0;
|
||||
y = 0
|
||||
if player == 1 then
|
||||
y = 536;
|
||||
y = 536
|
||||
end
|
||||
for i = 0, 5 do
|
||||
drawUp1st(bgScrollX + (loopWidth * i), y, player);
|
||||
drawUp2nd(bgScrollX + (loopWidth * i), y, player);
|
||||
drawUp1st(bgScrollX + (loopWidth * i), y, player)
|
||||
drawUp2nd(bgScrollX + (loopWidth * i), y, player)
|
||||
end
|
||||
for i = 0, 5 do
|
||||
drawUp3rd(bgScrollX + (loopWidth * i), y, player);
|
||||
drawUp3rd(bgScrollX + (loopWidth * i), y, player)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -1,10 +1,14 @@
|
||||
--func:DrawText(x, y, text);
|
||||
--func:DrawNum(x, y, num);
|
||||
--func:AddGraph("filename");
|
||||
--func:DrawGraph(x, y, filename);
|
||||
--func:SetOpacity(opacity, "filename");
|
||||
--func:SetScale(xscale, yscale, "filename");
|
||||
--func:SetColor(r, g, b, "filename");
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
@ -16,67 +16,67 @@ function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("0.png");
|
||||
func:AddGraph("1.png");
|
||||
func:AddGraph("2.png");
|
||||
func:AddGraph("3.png");
|
||||
func:AddGraph("4.png");
|
||||
func:AddGraph("5.png");
|
||||
func:AddGraph("6.png");
|
||||
func:AddGraph("7.png");
|
||||
func:AddGraph("0.png")
|
||||
func:AddGraph("1.png")
|
||||
func:AddGraph("2.png")
|
||||
func:AddGraph("3.png")
|
||||
func:AddGraph("4.png")
|
||||
func:AddGraph("5.png")
|
||||
func:AddGraph("6.png")
|
||||
func:AddGraph("7.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
bgScrollX_1 = bgScrollX_1 + (59.1 * deltaTime);
|
||||
bgScrollX_1 = bgScrollX_1 + (59.1 * deltaTime)
|
||||
if bgScrollX_1 > bgWidth_1 then
|
||||
bgScrollX_1 = 0;
|
||||
bgScrollX_1 = 0
|
||||
end
|
||||
|
||||
bgScrollX_2 = bgScrollX_2 + (45.9 * deltaTime);
|
||||
bgScrollX_2 = bgScrollX_2 + (45.9 * deltaTime)
|
||||
if bgScrollX_2 > bgWidth_2 then
|
||||
bgScrollX_2 = 0;
|
||||
bgScrollX_2 = 0
|
||||
end
|
||||
|
||||
bgScrollX_3 = bgScrollX_3 + (43.8 * deltaTime);
|
||||
bgScrollX_3 = bgScrollX_3 + (43.8 * deltaTime)
|
||||
if bgScrollX_3 > bgWidth_3 then
|
||||
bgScrollX_3 = 0;
|
||||
bgScrollX_3 = 0
|
||||
end
|
||||
|
||||
bgScrollX_4 = bgScrollX_4 + (100 * deltaTime);
|
||||
bgScrollX_4 = bgScrollX_4 + (100 * deltaTime)
|
||||
if bgScrollX_4 > bgWidth_4 + 200 then
|
||||
bgScrollX_4 = 0;
|
||||
bgScrollX_4 = 0
|
||||
end
|
||||
|
||||
bgScrollX_5 = bgScrollX_5 + (45.9 * deltaTime);
|
||||
bgScrollX_5 = bgScrollX_5 + (45.9 * deltaTime)
|
||||
if bgScrollX_5 > bgWidth_5 then
|
||||
bgScrollX_5 = 0;
|
||||
bgScrollX_5 = 0
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function draw()
|
||||
func:DrawGraph(0, 0, "0.png");
|
||||
func:SetOpacity((towerNightNum * 255.0), "7.png");
|
||||
func:DrawGraph(0, 0, "7.png");
|
||||
func:DrawGraph(0, 0, "0.png")
|
||||
func:SetOpacity((towerNightNum * 255.0), "7.png")
|
||||
func:DrawGraph(0, 0, "7.png")
|
||||
|
||||
colorTmp = 0.5 + (1 - towerNightNum) * 0.5;
|
||||
colorTmp = 0.5 + (1 - towerNightNum) * 0.5
|
||||
|
||||
func:SetColor(colorTmp, colorTmp, colorTmp, "1.png");
|
||||
func:SetColor(colorTmp, colorTmp, colorTmp, "2.png");
|
||||
func:SetColor(colorTmp, colorTmp, colorTmp, "3.png");
|
||||
func:SetColor(colorTmp, colorTmp, colorTmp, "1.png")
|
||||
func:SetColor(colorTmp, colorTmp, colorTmp, "2.png")
|
||||
func:SetColor(colorTmp, colorTmp, colorTmp, "3.png")
|
||||
|
||||
func:SetOpacity(colorTmp * 255.0, "1.png");
|
||||
func:SetOpacity(colorTmp * 255.0, "2.png");
|
||||
func:SetOpacity(colorTmp * 255.0, "3.png");
|
||||
func:SetOpacity(colorTmp * 255.0, "1.png")
|
||||
func:SetOpacity(colorTmp * 255.0, "2.png")
|
||||
func:SetOpacity(colorTmp * 255.0, "3.png")
|
||||
|
||||
for i = 0, 4 do
|
||||
func:DrawGraph((i * bgWidth_1) - bgScrollX_1, 0, "1.png");
|
||||
func:DrawGraph((i * bgWidth_2) - bgScrollX_2, 0, "2.png");
|
||||
func:DrawGraph((i * bgWidth_3) - bgScrollX_3, 0, "3.png");
|
||||
func:DrawGraph((i * bgWidth_1) - bgScrollX_1, 0, "1.png")
|
||||
func:DrawGraph((i * bgWidth_2) - bgScrollX_2, 0, "2.png")
|
||||
func:DrawGraph((i * bgWidth_3) - bgScrollX_3, 0, "3.png")
|
||||
end
|
||||
func:DrawGraph(0, 0, "6.png");
|
||||
func:DrawGraph(0, 0, "6.png")
|
||||
for i = 0, 4 do
|
||||
func:DrawGraph((i * bgWidth_4) - bgScrollX_4, -200 + bgScrollX_4, "4.png");
|
||||
func:DrawGraph((i * bgWidth_5) - bgScrollX_5, 0, "5.png");
|
||||
func:DrawGraph((i * bgWidth_4) - bgScrollX_4, -200 + bgScrollX_4, "4.png")
|
||||
func:DrawGraph((i * bgWidth_5) - bgScrollX_5, 0, "5.png")
|
||||
end
|
||||
end
|
||||
|
@ -1,11 +1,14 @@
|
||||
--func:DrawText(x, y, text);
|
||||
--func:DrawNum(x, y, num);
|
||||
--func:AddGraph("filename");
|
||||
--func:DrawGraph(x, y, filename);
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename);
|
||||
--func:SetOpacity(opacity, "filename");
|
||||
--func:SetScale(xscale, yscale, "filename");
|
||||
--func:SetColor(r, g, b, "filename");
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
|
||||
local y = { 210, 386 }
|
||||
|
@ -1,10 +1,14 @@
|
||||
--func:DrawText(x, y, text);
|
||||
--func:DrawNum(x, y, num);
|
||||
--func:AddGraph("filename");
|
||||
--func:DrawGraph(x, y, filename);
|
||||
--func:SetOpacity(opacity, "filename");
|
||||
--func:SetScale(xscale, yscale, "filename");
|
||||
--func:SetColor(r, g, b, "filename");
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
local x = { 505, 505 }
|
||||
local y = { 145, 321 }
|
||||
|
@ -1,10 +1,14 @@
|
||||
--func:DrawText(x, y, text);
|
||||
--func:DrawNum(x, y, num);
|
||||
--func:AddGraph("filename");
|
||||
--func:DrawGraph(x, y, filename);
|
||||
--func:SetOpacity(opacity, "filename");
|
||||
--func:SetScale(xscale, yscale, "filename");
|
||||
--func:SetColor(r, g, b, "filename");
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
local x = { 332, 332 }
|
||||
local y = { 192, 368 }
|
||||
|
@ -1,10 +1,14 @@
|
||||
--func:DrawText(x, y, text);
|
||||
--func:DrawNum(x, y, num);
|
||||
--func:AddGraph("filename");
|
||||
--func:DrawGraph(x, y, filename);
|
||||
--func:SetOpacity(opacity, "filename");
|
||||
--func:SetScale(xscale, yscale, "filename");
|
||||
--func:SetColor(r, g, b, "filename");
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
local x = { 330, 330 }
|
||||
local y = { 50, 226 }
|
||||
|
28
Test/System/SimpleStyle/Graphics/7_Exit/Script.lua
Normal file
28
Test/System/SimpleStyle/Graphics/7_Exit/Script.lua
Normal file
@ -0,0 +1,28 @@
|
||||
--func:DrawText(x, y, text)
|
||||
--func:DrawNum(x, y, num)
|
||||
--func:AddGraph("filename")
|
||||
--func:DrawGraph(x, y, filename)
|
||||
--func:DrawRectGraph(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:DrawGraphCenter(x, y, filename)
|
||||
--func:DrawGraphRectCenter(x, y, rect_x, rect_y, rect_width, rect_height, filename)
|
||||
--func:SetOpacity(opacity, "filename")
|
||||
--func:SetRotation(angle, "fileName")
|
||||
--func:SetScale(xscale, yscale, "filename")
|
||||
--func:SetColor(r, g, b, "filename")
|
||||
|
||||
function clearIn(player)
|
||||
end
|
||||
|
||||
function clearOut(player)
|
||||
end
|
||||
|
||||
function init()
|
||||
func:AddGraph("Background.png")
|
||||
end
|
||||
|
||||
function update()
|
||||
end
|
||||
|
||||
function draw()
|
||||
func:DrawGraph(0, 0, "Background.png")
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user