Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (zh_link_is_child() == 0) {
- load_data_from_rom(0x80600000, 0x0078C000, 0x1000, 0); //Fly
- load_data_from_rom(0x80601000, 0x0078D000, 0x1000, 0); //Koktun
- load_data_from_rom(0x80602000, 0x0078E000, 0x1000, 0); //Gor
- load_data_from_rom(0x80603000, 0x0078F000, 0x1000, 0); //Zora
- load_data_from_rom(0x80604000, 0x00791000, 0x1000, 0); //Iron
- load_data_from_rom(0x80605000, 0x00792000, 0x1000, 0); //Hover
- //DPAD
- en->tilepad.x = 262;
- en->tilepad.y = 85;
- en->tilepad.origin_anchor = G_TX_ANCHOR_C;
- en->tilepad.width = 24;
- en->tilepad.height= 24;
- en->texturepad.timg = (long unsigned int)&asset_dpad;
- en->texturepad.width = 32;
- en->texturepad.height = 32;
- en->texturepad.fmt = 3;
- en->texturepad.bitsiz = G_IM_SIZ_16b;
- //Koktun
- en->tilekoktun.y = 102;
- en->tilekoktun.origin_anchor = G_TX_ANCHOR_C;
- en->tilekoktun.width = 11;
- en->tilekoktun.height= 11;
- en->texturekoktun.timg = 0x80601000;
- en->texturekoktun.width = 32;
- en->texturekoktun.height = 32;
- en->texturekoktun.fmt = 0;
- en->texturekoktun.bitsiz = G_IM_SIZ_32b;
- //Gor
- en->tilegor.y = 102;
- en->tilegor.origin_anchor = G_TX_ANCHOR_C;
- en->tilegor.width = 11;
- en->tilegor.height= 11;
- en->texturegor.timg = 0x80602000;
- en->texturegor.width = 32;
- en->texturegor.height = 32;
- en->texturegor.fmt = 0;
- en->texturegor.bitsiz = G_IM_SIZ_32b;
- //Zora
- en->tilezora.y = 102;
- en->tilezora.origin_anchor = G_TX_ANCHOR_C;
- en->tilezora.width = 11;
- en->tilezora.height= 11;
- en->texturezora.timg = 0x80603000;
- en->texturezora.width = 32;
- en->texturezora.height = 32;
- en->texturezora.fmt = 0;
- en->texturezora.bitsiz = G_IM_SIZ_32b;
- //Fly
- en->tilefly.y = 102;
- en->tilefly.origin_anchor = G_TX_ANCHOR_C;
- en->tilefly.width = 11;
- en->tilefly.height= 11;
- en->texturefly.timg = 0x80600000;
- en->texturefly.width = 32;
- en->texturefly.height = 32;
- en->texturefly.fmt = 0;
- en->texturefly.bitsiz = G_IM_SIZ_32b;
- //Iron
- en->tileiron.x = 280;
- en->tileiron.y = 85;
- en->tileiron.origin_anchor = G_TX_ANCHOR_C;
- en->tileiron.width = 12;
- en->tileiron.height= 12;
- en->textureiron.timg = 0x80604000;
- en->textureiron.width = 32;
- en->textureiron.height = 32;
- en->textureiron.fmt = 0;
- en->textureiron.bitsiz = G_IM_SIZ_32b;
- //Hover
- en->tilehover.x = 244;
- en->tilehover.y = 85;
- en->tilehover.width = 12;
- en->tilehover.height= 12;
- en->tilehover.origin_anchor = G_TX_ANCHOR_C;
- en->texturehover.timg = 0x80605000;
- en->texturehover.width = 32;
- en->texturehover.height = 32;
- en->texturehover.fmt = 0;
- en->texturehover.bitsiz = G_IM_SIZ_32b;
- }
- }
- if ((en->player.state_flags_1 == 0) && (interface_flag!=1) && (busy == 0)) {
- if (tunic_possed == 0xF) {
- if (tunic_equip == 1) {
- en->tilekoktun.x = 256;
- en->tilegor.x = 261;
- en->tilezora.x = 266;
- en->tilefly.x = 271;
- en->tilekoktun.width = 15;
- en->tilekoktun.height= 15;
- en->tilegor.width = 11;
- en->tilegor.height= 11;
- en->tilezora.width = 11;
- en->tilezora.height= 11;
- en->tilefly.width = 11;
- en->tilefly.height= 11;
- }
- if (tunic_equip == 2) {
- en->tilekoktun.x = 271;
- en->tilegor.x = 256;
- en->tilezora.x = 261;
- en->tilefly.x = 266;
- en->tilegor.width = 15;
- en->tilegor.height= 15;
- en->tilekoktun.width = 11;
- en->tilekoktun.height= 11;
- en->tilezora.width = 11;
- en->tilezora.height= 11;
- en->tilefly.width = 11;
- en->tilefly.height= 11;
- }
- if (tunic_equip == 3) {
- en->tilekoktun.x = 266;
- en->tilegor.x = 271;
- en->tilezora.x = 256;
- en->tilefly.x = 261;
- en->tilezora.width = 15;
- en->tilezora.height= 15;
- en->tilekoktun.width = 11;
- en->tilekoktun.height= 11;
- en->tilegor.width = 11;
- en->tilegor.height= 11;
- en->tilefly.width = 11;
- en->tilefly.height= 11;
- }
- if (tunic_equip == 6) {
- en->tilekoktun.x = 261;
- en->tilegor.x = 266;
- en->tilezora.x = 271;
- en->tilefly.x = 256;
- en->tilefly.width = 15;
- en->tilefly.height= 15;
- en->tilekoktun.width = 11;
- en->tilekoktun.height= 11;
- en->tilegor.width = 11;
- en->tilegor.height= 11;
- en->tilezora.width = 11;
- en->tilezora.height= 11;
- }
- }
- else if (tunic_possed == 7){
- if (tunic_equip == 1){
- en->tilekoktun.x = 256;
- en->tilegor.x = 264;
- en->tilezora.x = 271;
- en->tilekoktun.width = 15;
- en->tilekoktun.height= 15;
- en->tilegor.width = 11;
- en->tilegor.height= 11;
- en->tilezora.width = 11;
- en->tilezora.height= 11;
- }
- if (tunic_equip == 2) {
- en->tilekoktun.x = 271;
- en->tilegor.x = 256;
- en->tilezora.x = 264;
- en->tilegor.width = 15;
- en->tilegor.height= 15;
- en->tilekoktun.width = 11;
- en->tilekoktun.height= 11;
- en->tilezora.width = 11;
- en->tilezora.height= 11;
- }
- if (tunic_equip == 3) {
- en->tilekoktun.x = 264;
- en->tilegor.x = 271;
- en->tilezora.x = 256;
- en->tilezora.width = 15;
- en->tilezora.height= 15;
- en->tilekoktun.width = 11;
- en->tilekoktun.height= 11;
- en->tilegor.width = 11;
- en->tilegor.height= 11;
- }
- }
- else if (tunic_possed == 5){
- if (tunic_equip == 1){
- en->tilekoktun.x = 261;
- en->tilezora.x = 266;
- en->tilekoktun.width = 15;
- en->tilekoktun.height= 15;
- en->tilezora.width = 11;
- en->tilezora.height= 11;
- }
- if (tunic_equip == 3) {
- en->tilekoktun.x = 266;
- en->tilezora.x = 261;
- en->tilezora.width = 15;
- en->tilezora.height= 15;
- en->tilekoktun.width = 11;
- en->tilekoktun.height= 11;
- }
- }
- else if (tunic_possed == 3){
- if (tunic_equip == 1){
- en->tilekoktun.x = 261;
- en->tilegor.x = 266;
- en->tilekoktun.width = 15;
- en->tilekoktun.height= 15;
- en->tilegor.width = 11;
- en->tilegor.height= 11;
- }
- if (tunic_equip == 3) {
- en->tilekoktun.x = 266;
- en->tilegor.x = 261;
- en->tilegor.width = 15;
- en->tilegor.height= 15;
- en->tilekoktun.width = 11;
- en->tilekoktun.height= 11;
- }
- }
- if ((zh_link_is_child() == 0) && ((boots_possed > 1) || (tunic_possed > 1)) ) {
- zh_draw_ui_sprite(&OVERLAY, &en->texturepad, &en->tilepad);
- if (boots_possed == 5) {
- if (boots_equip == 3) {
- en->tilehover.width = 18;
- en->tilehover.height = 18;
- }
- else {
- en->tilehover.width = 11;
- en->tilehover.height= 11;
- }
- zh_draw_ui_sprite(&OVERLAY, &en->texturehover, &en->tilehover);
- }
- if (boots_possed == 3) {
- zh_draw_ui_sprite(&OVERLAY, &en->textureiron, &en->tileiron);
- }
- if (boots_possed == 7) {
- zh_draw_ui_sprite(&OVERLAY, &en->texturehover, &en->tilehover);
- zh_draw_ui_sprite(&OVERLAY, &en->textureiron, &en->tileiron);
- }
- if (tunic_possed == 0xF) {
- switch (tunic_equip) {
- case 1 :
- zh_draw_ui_sprite(&OVERLAY, &en->texturefly, &en->tilefly);
- zh_draw_ui_sprite(&OVERLAY, &en->texturezora, &en->tilezora);
- zh_draw_ui_sprite(&OVERLAY, &en->texturegor, &en->tilegor);
- zh_draw_ui_sprite(&OVERLAY, &en->texturekoktun, &en->tilekoktun);
- break;
- case 2 :
- zh_draw_ui_sprite(&OVERLAY, &en->texturekoktun, &en->tilekoktun);
- zh_draw_ui_sprite(&OVERLAY, &en->texturefly, &en->tilefly);
- zh_draw_ui_sprite(&OVERLAY, &en->texturezora, &en->tilezora);
- zh_draw_ui_sprite(&OVERLAY, &en->texturegor, &en->tilegor);
- break;
- case 3 :
- zh_draw_ui_sprite(&OVERLAY, &en->texturegor, &en->tilegor);
- zh_draw_ui_sprite(&OVERLAY, &en->texturekoktun, &en->tilekoktun);
- zh_draw_ui_sprite(&OVERLAY, &en->texturefly, &en->tilefly);
- zh_draw_ui_sprite(&OVERLAY, &en->texturezora, &en->tilezora);
- break;
- case 6 :
- zh_draw_ui_sprite(&OVERLAY, &en->texturezora, &en->tilezora);
- zh_draw_ui_sprite(&OVERLAY, &en->texturegor, &en->tilegor);
- zh_draw_ui_sprite(&OVERLAY, &en->texturekoktun, &en->tilekoktun);
- zh_draw_ui_sprite(&OVERLAY, &en->texturefly, &en->tilefly);
- break;
- }
- }
- if (tunic_possed == 0x7) {
- switch (tunic_equip) {
- case 1:
- zh_draw_ui_sprite(&OVERLAY, &en->texturezora, &en->tilezora);
- zh_draw_ui_sprite(&OVERLAY, &en->texturegor, &en->tilegor);
- zh_draw_ui_sprite(&OVERLAY, &en->texturekoktun, &en->tilekoktun);
- break;
- case 2 :
- zh_draw_ui_sprite(&OVERLAY, &en->texturekoktun, &en->tilekoktun);
- zh_draw_ui_sprite(&OVERLAY, &en->texturezora, &en->tilezora);
- zh_draw_ui_sprite(&OVERLAY, &en->texturegor, &en->tilegor);
- break;
- case 3 :
- zh_draw_ui_sprite(&OVERLAY, &en->texturegor, &en->tilegor);
- zh_draw_ui_sprite(&OVERLAY, &en->texturekoktun, &en->tilekoktun);
- zh_draw_ui_sprite(&OVERLAY, &en->texturezora, &en->tilezora);
- break;
- }
- }
- if (tunic_possed == 0x5) {
- switch (tunic_equip) {
- case 1 :
- zh_draw_ui_sprite(&OVERLAY, &en->texturezora, &en->tilezora);
- zh_draw_ui_sprite(&OVERLAY, &en->texturekoktun, &en->tilekoktun);
- break;
- case 3 :
- zh_draw_ui_sprite(&OVERLAY, &en->texturekoktun, &en->tilekoktun);
- zh_draw_ui_sprite(&OVERLAY, &en->texturezora, &en->tilezora);
- break;
- }
- }
- if (tunic_possed == 0x3) {
- switch (tunic_equip) {
- case 1 :
- zh_draw_ui_sprite(&OVERLAY, &en->texturegor, &en->tilegor);
- zh_draw_ui_sprite(&OVERLAY, &en->texturekoktun, &en->tilekoktun);
- break;
- case 2 :
- zh_draw_ui_sprite(&OVERLAY, &en->texturekoktun, &en->tilekoktun);
- zh_draw_ui_sprite(&OVERLAY, &en->texturegor, &en->tilegor);
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement