165 lines
7.2 KiB
Plaintext
165 lines
7.2 KiB
Plaintext
/***************************************************************************************************
|
|
Convert from NINGEN (button)
|
|
****************************************************************************************************/
|
|
#define SCALE 0.25
|
|
#define ShapeColor_button(R,G,B) {{R*SCALE ,G*SCALE ,B*SCALE ,0 ,R*SCALE ,G*SCALE ,B*SCALE ,0 },{ R, G, B, 0, R, G, B, 0, LIGHT_X, LIGHT_Y, LIGHT_Z, 0} }
|
|
|
|
static Lights1 light_button[] = {
|
|
ShapeColor_button(255,255,255),
|
|
};
|
|
|
|
#include "button_txt.h"
|
|
|
|
static Vtx vtx_button_0[] = {
|
|
{ -163, -122, 0, 0, 0, 990, -74, 0, 102, 255},
|
|
{ -122, -81, 30, 0, 224, 820, -74, 0, 102, 255},
|
|
{ -163, 122, 0, 0, 0, 0, -74, 0, 102, 255},
|
|
{ -133, 92, 10, 0, 160, 96, 0, 0, -127, 255},
|
|
{ 133, 92, 10, 0, 1820, 96, 0, 0, -127, 255},
|
|
{ 133, -92, 10, 0, 1820, 862, 0, 0, -127, 255},
|
|
{ -133, -92, 10, 0, 160, 862, 0, 0, -127, 255},
|
|
{ -143, 102, 0, 0, 96, 54, 89, 0, -89, 255},
|
|
{ -133, 92, 10, 0, 160, 96, 89, 0, -89, 255},
|
|
{ -133, -92, 10, 0, 160, 862, 89, 0, -89, 255},
|
|
{ -143, -102, 0, 0, 96, 904, 89, 0, -89, 255},
|
|
{ 133, 92, 10, 0, 1820, 96, 0, -89, -89, 255},
|
|
{ -133, 92, 10, 0, 160, 96, 0, -89, -89, 255},
|
|
{ -143, 102, 0, 0, 96, 54, 0, -89, -89, 255},
|
|
{ 143, 102, 0, 0, 1884, 54, 0, -89, -89, 255},
|
|
{ 143, -102, 0, 0, 1884, 904, -89, 0, -89, 255},
|
|
{ 133, -92, 10, 0, 1820, 862, -89, 0, -89, 255},
|
|
{ 133, 92, 10, 0, 1820, 96, -89, 0, -89, 255},
|
|
{ 143, 102, 0, 0, 1884, 54, -89, 0, -89, 255},
|
|
{ -143, -102, 0, 0, 96, 904, 0, 89, -89, 255},
|
|
{ -133, -92, 10, 0, 160, 862, 0, 89, -89, 255},
|
|
{ 133, -92, 10, 0, 1820, 862, 0, 89, -89, 255},
|
|
{ 143, -102, 0, 0, 1884, 904, 0, 89, -89, 255},
|
|
{ 163, 122, 0, 0, 2012, 0, 0, 0, -127, 255},
|
|
{ 143, 102, 0, 0, 1884, 54, 0, 0, -127, 255},
|
|
{ -143, 102, 0, 0, 96, 54, 0, 0, -127, 255},
|
|
{ -163, 122, 0, 0, 0, 0, 0, 0, -127, 255},
|
|
{ 163, -122, 0, 0, 2012, 990, 0, 0, -127, 255},
|
|
{ 143, -102, 0, 0, 1884, 904, 0, 0, -127, 255},
|
|
{ -143, -102, 0, 0, 96, 904, 0, 0, -127, 255},
|
|
{ -163, -122, 0, 0, 0, 990, 0, 0, -127, 255},
|
|
{ 163, 122, 0, 0, 2012, 0, 74, 0, 102, 255},
|
|
{ 122, 81, 30, 0, 1756, 138, 74, 0, 102, 255},
|
|
{ 163, -122, 0, 0, 2012, 990, 74, 0, 102, 255},
|
|
{ -122, 81, 30, 0, 224, 138, 0, 0, 127, 255},
|
|
{ -122, -81, 30, 0, 224, 820, 0, 0, 127, 255},
|
|
{ 122, -81, 30, 0, 1756, 820, 0, 0, 127, 255},
|
|
{ -163, -122, 0, 0, 0, 990, 0, -74, 102, 255},
|
|
{ 163, -122, 0, 0, 2012, 990, 0, -74, 102, 255},
|
|
{ -122, -81, 30, 0, 224, 820, 0, -74, 102, 255},
|
|
{ 122, -81, 30, 0, 1756, 820, 0, -74, 102, 255},
|
|
{ -163, 122, 0, 0, 0, 0, 0, 74, 102, 255},
|
|
{ -122, 81, 30, 0, 224, 138, 0, 74, 102, 255},
|
|
{ 163, 122, 0, 0, 2012, 0, 0, 74, 102, 255},
|
|
{ 122, 81, 30, 0, 1756, 138, 0, 74, 102, 255},
|
|
{ 122, 81, 30, 0, 1756, 138, 0, 0, 127, 255},
|
|
{ -122, -81, 30, 0, 224, 820, -74, 0, 102, 255},
|
|
{ -122, 81, 30, 0, 224, 138, -74, 0, 102, 255},
|
|
{ -163, 122, 0, 0, 0, 0, -74, 0, 102, 255},
|
|
{ 122, 81, 30, 0, 1756, 138, 74, 0, 102, 255},
|
|
{ 122, -81, 30, 0, 1756, 820, 74, 0, 102, 255},
|
|
{ 163, -122, 0, 0, 2012, 990, 74, 0, 102, 255},
|
|
};
|
|
|
|
static Gfx gfx_button_0[] = {
|
|
|
|
gsSPLight((&light_button[0].l[0]),1 ),
|
|
gsSPLight((&light_button[0].a ),2 ),
|
|
|
|
gsSPVertex(&vtx_button_0[0], 15, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 3, 5, 6, 0),
|
|
gsSP1Triangle( 7, 8, 9, 0),
|
|
gsSP1Triangle( 7, 9,10, 0),
|
|
gsSP1Triangle(11,12,13, 0),
|
|
gsSP1Triangle(11,13,14, 0),
|
|
gsSPVertex(&vtx_button_0[15], 16, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 0, 2, 3, 0),
|
|
gsSP1Triangle( 4, 5, 6, 0),
|
|
gsSP1Triangle( 4, 6, 7, 0),
|
|
gsSP1Triangle( 8, 9,10, 0),
|
|
gsSP1Triangle( 8,10,11, 0),
|
|
gsSP1Triangle( 8,12,13, 0),
|
|
gsSP1Triangle( 8,13, 9, 0),
|
|
gsSP1Triangle(11,10,14, 0),
|
|
gsSP1Triangle(11,14,15, 0),
|
|
gsSP1Triangle(14,13,12, 0),
|
|
gsSP1Triangle(14,12,15, 0),
|
|
gsSPVertex(&vtx_button_0[31], 15, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSP1Triangle( 6, 7, 8, 0),
|
|
gsSP1Triangle( 7, 9, 8, 0),
|
|
gsSP1Triangle(10,11,12, 0),
|
|
gsSP1Triangle(11,13,12, 0),
|
|
gsSP1Triangle(14, 3, 5, 0),
|
|
gsSPVertex(&vtx_button_0[46], 6, 0),
|
|
gsSP1Triangle( 0, 1, 2, 0),
|
|
gsSP1Triangle( 3, 4, 5, 0),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_button1[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
|
|
gsSPClearGeometryMode(G_SHADING_SMOOTH),
|
|
gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, 7, 0, 0,0,0, 0,0,0),
|
|
gsSPTexture(0xffff,0xffff, 0, 0, G_ON),
|
|
gs_Tani_SetUpTileDescrip(G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 0, G_TX_WRAP|G_TX_NOMIRROR, 6, G_TX_NOLOD, G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
static Gfx gfx_button2[] = {
|
|
gsSPDisplayList(gfx_button_0),
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_SHADING_SMOOTH),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
/*------------------------------------------------------------------------------------------------*/
|
|
|
|
Gfx gfx_aka_button[] = {
|
|
gsSPDisplayList(gfx_button1),
|
|
gs_Tani_LoadTextureImage2(sel_aka_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7),
|
|
gsSPDisplayList(gfx_button2),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_ao_button[] = {
|
|
gsSPDisplayList(gfx_button1),
|
|
gs_Tani_LoadTextureImage2(sel_ao_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7),
|
|
gsSPDisplayList(gfx_button2),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_ki_button[] = {
|
|
gsSPDisplayList(gfx_button1),
|
|
gs_Tani_LoadTextureImage2(sel_ki_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7),
|
|
gsSPDisplayList(gfx_button2),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_midori_button[] = {
|
|
gsSPDisplayList(gfx_button1),
|
|
gs_Tani_LoadTextureImage2(sel_midori_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7),
|
|
gsSPDisplayList(gfx_button2),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
Gfx gfx_momo_button[] = {
|
|
gsSPDisplayList(gfx_button1),
|
|
gs_Tani_LoadTextureImage2(sel_midori_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 64, 32, 0, 7),
|
|
gsSPDisplayList(gfx_button2),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|
|
|