Gunz Talk Forum!
Please login to make use of all of our features

~Michou Forum


This is a public forum for everyone to share videos of Gunz and talk about Gunz The Duel!
 
HomeHome  [[Staff List]][[Staff List]]  FAQFAQ  RegisterRegister  Log inLog in  Entrance PageEntrance Page  
Read the forum rules, Make sure you respect everyone here, treat everyone the same, start posting and have Fun!

Share | 
 

 Dash colores em opçoes de menu

View previous topic View next topic Go down 
AuthorMessage
masterzin
Super Moderator
Super Moderator
avatar

Line Separator
Clan Clan : Staff Forumotion

Seprator
Posts Posts : 10
Age Age : 20
Location Location : Brasilia
Join date Join date : 2017-04-16

PostSubject: Dash colores em opçoes de menu   Thu Jul 13, 2017 7:58 pm

[size=32]Nós começamos   [/size]


ZEffectManager.h 


encontrar este:



código:

Code:
AddDashEffect vacío (rvector & Target, rvector y TargetNormal, ZObject * pObj);


substituir com este:


código:

Code:
AddDashEffect vacío (rvector & Target, rvector y TargetNormal, ZObject * pObj, int nDashColor);




ZEffectManager.cpp 

encontrar a função  ZEffectManager :: AddDashEffect  e função substituir com este:

código:

Code:
void ZEffectManager::AddDashEffect(rvector& Target,rvector& TargetNormal,ZObject* pObj,int nDashColor)
{
if (!pObj->IsVisible()) return;
char szDash[255];
if (nDashColor == 0 || nDashColor < 1 || nDashColor > 7) // 7 b/c roygbiv
{
sprintf(szDash, "dash_effect");
}
else
{
sprintf(szDash, "dash_effect%d", nDashColor);
}


ZEffect* pNew = NULL;
pNew = new ZEffectDash(m_pEffectMeshMgr->Get(szDash), Target, TargetNormal, pObj->GetUID());
((ZEffectSlash*)pNew)->SetAlignType(1);
Add(pNew);
}

ZGame.cpp: 

encontrar este:

código:

Code:
pEM->AddDashEffect(vPos, vTarNormal, pCharacter);

substituir com este:

código:

Code:
pEM->AddDashEffect(vPos, vTarNormal, pCharacter,0);

é esta:

código:

Code:
ZGetEffectManager()->AddDashEffect(pos,dir,pCharacter);

substituir com este:

código:

Code:
ZGetEffectManager()->AddDashEffect(pos,dir,pCharacter,ppdi->nDashColor);

ZPost.h: 

encontrar este:

código:

Code:
#define ZPostDash(/*rvector&*/ vPos, /*rvector&*/ vDir, /*unsigned char*/ sel_type) { \
ZPACKEDDASHINFO pdi;    \
pdi.posx = Roundf(vPos.x);    \
pdi.posy = Roundf(vPos.y);    \
pdi.posz = Roundf(vPos.z);    \
\
pdi.dirx = vDir.x*32000;    \
pdi.diry = vDir.y*32000;    \
pdi.dirz = vDir.z*32000;    \
\
pdi.seltype = sel_type;    \
ZPOSTCMD1(CLOAK_CMD_ID(MC_PEER_DASH, 9964),MCommandParameterBlob(&pdi,sizeof(ZPACKEDDASHINFO)));    \
}

substituir com este:

código:

Code:
#define ZPostDash(/*rvector&*/ vPos, /*rvector&*/ vDir, /*unsigned char*/ sel_type, /*int*/ nDashColor) { \
ZPACKEDDASHINFO pdi;    \
pdi.posx = Roundf(vPos.x);    \
pdi.posy = Roundf(vPos.y);    \
pdi.posz = Roundf(vPos.z);    \
\
pdi.dirx = vDir.x*32000;    \
pdi.diry = vDir.y*32000;    \
pdi.dirz = vDir.z*32000;    \
\
pdi.seltype = sel_type;    \
pdi.nDashColor = nDashColor; \
ZPOSTCMD1(CLOAK_CMD_ID(MC_PEER_DASH, 9964),MCommandParameterBlob(&pdi,sizeof(ZPACKEDDASHINFO)));    \
}

é esta:

código:

Code:
struct ZPACKEDDASHINFO {
short    posx, posy, posz;
short    dirx, diry, dirz;
BYTE    seltype;
};

substituir com este:

código:

Code:
struct ZPACKEDDASHINFO {
short    posx, posy, posz;
short    dirx, diry, dirz;
BYTE    seltype,nDashColor;
};

zreplay.cpp: 

encontrar:  caso mc_peer_dash, substitua -lo com isso.
código:

Code:
case MC_PEER_DASH:
{
rvector pos, dir;
int nSelType,nDashColor;

TempParams[0]->GetValue(&pos);
TempParams[1]->GetValue(&dir);
TempParams[2]->GetValue(&nSelType);
TempParams[3]->GetValue(&nDashColor);

ZPACKEDDASHINFO pdi;
pdi.posx = Roundf(pos.x);
pdi.posy = Roundf(pos.y);
pdi.posz = Roundf(pos.z);

pdi.dirx = DirElementToShort(dir.x);
pdi.diry = DirElementToShort(dir.y);
pdi.dirz = DirElementToShort(dir.z);

pdi.seltype = (BYTE)nSelType;
pdi.nDashColor = (BYTE)nDashColor;
pCmd->AddParameter(new MCommandParameterBlob(&pdi,sizeof(ZPACKEDDASHINFO)));
}
break;

ZConfiguration.h: 

adicione a ZCONFIG_VIDEO:

código:

Code:
int nDashColor;

Adicionar estes 2 thigns em arquivo ebottom th:

código:

Code:
#define Z_VIDEO_DASH (ZGetConfiguration()->GetVideo()->nDashColor)
#define ZTOK_VIDEO_DASH "DASHCOLOR"

ZConfiguration.cpp:


adicione em: loadconfig com ztok_video outras coisas:
código:

Code:
childElement.GetChildContents(&m_Video.nDashColor, ZTOK_VIDEO_DASH);

Adicione esta em SaveToFile:
código:

Code:
// Dash color 
parentElement.AppendText ( "\ n \ t \ t"); 
AELEMENT = parentElement.CreateChildElement (ZTOK_VIDEO_DASH); 
sprintf (temp, "% d", m_Video.nDashColor); 
aElement.SetContents (temp);


ZOptionInterface.cpp: 

adicione a initinterfaceoption:

código:

Code:
pComboBox = (MComboBox*)pResource->FindWidget("DashColor")
if(pComboBox)
{
pComboBox->SetSelIndex(Z_VIDEO_DASH);
}

Adicione isto a saveinterfaceoption:

código:

Code:
int nDashColor = 0;
pComboBox = (MComboBox*)pResource->FindWidget("DashColor")
if(pComboBox)
{
nDashColor = pComboBox->GetSelIndex();
if(Z_VIDEO_DASH != nDashColor)
{
Z_VIDEO_DASH = nDashColor;
}
}


ZMyCharacter.cpp: 

encontrar as duas instâncias de "zpostdash" neste arquivo, e substituí-lo com o seguinte:

código:

Code:
ZPostDash (VPO, vdir, sel_type, Z_VIDEO_DASH);

sfx.mrs descompilar, 7 e adicionar pastas. (nomes de 1-7). Agora, adicione o ef_dash.elu.ani, ef.dash.elu, ambos os scripts gz_ef e, em seguida effect_list.xml aberto. 


effectlist.xml 

Ver este:

código:

Code:
<AddEffectElu name = "dash_effect"> 
<AddBaseModel name = nombre de archivo "dash_effect" = "ef_dash.elu" /> 
<AddAnimation name = "juego" archivo = motion_type "ef_dash.elu.ani" = "0" motion_loop_type = "lastframe" /> 
</ AddEffectElu>

adicionar abaixo:
código:

Code:
<AddEffectElu name="dash_effect1">
<AddBaseModel name="dash_effect1" filename="1/ef_dash.elu" />
<AddAnimation name="play" filename="ef_dash.elu.ani" motion_type="0" motion_loop_type="lastframe" />
</AddEffectElu>

Nós somos o Seu Cliente "Default" buscar "Option.xml" Nós olhamos para o seguinte:
código:

Code:
<TEXT>STR:UI_OPTION_49</TEXT> <!-- ???? -->

baixo que colocar o seguinte
código:

Code:
<LABEL item="Label" parent="EtcOptionGroup">
       <FONT>FONTa9</FONT>
       <TEXTCOLOR>
           <R>104</R>
           <G>210</G>
           <B>236</B>
       </TEXTCOLOR>
       <BOUNDS>
           <X>113</X>
           <Y>0</Y>
           <W>140</W>
           <H>24</H>
       </BOUNDS>
       <TEXT>ColorDash</TEXT> <!-- ???? -->
   </LABEL>
   <COMBOBOX item="DashColor" parent="EtcOptionGroup">
               <LISTBOXLOOK>CustomListBoxLook</LISTBOXLOOK>
               <BUTTONLOOK>ListBoxButtonLook</BUTTONLOOK>
               <FONT>FONTa9</FONT>
               <TEXTCOLOR>
                       <R>0</R>
                       <G>253</G>
                       <B>25</B>
               </TEXTCOLOR>
               <TEXTALIGN>
                       <VALIGN>center</VALIGN>
                       <HALIGN>center</HALIGN>
               </TEXTALIGN>
               <BOUNDS>
                       <X>105</X>
           <Y>0</Y>
           <W>140</W>
           <H>24</H>
               </BOUNDS>
               <ALIGN>
                       <HALIGN>right</HALIGN>
               </ALIGN>
               <LISTITEM selected="true">Normal</LISTITEM>
               <LISTITEM>Invisible</LISTITEM>
               <LISTITEM>Amarillo</LISTITEM>
               <LISTITEM>Azul</LISTITEM>
               <LISTITEM>Verde</LISTITEM>
               <LISTITEM>Morado</LISTITEM>
               <LISTITEM>Naranja</LISTITEM>
               <LISTITEM>Rosado</LISTITEM>
               <DROPSIZE>200</DROPSIZE>
               <COMBOTYPE>1</COMBOTYPE>
       </COMBOBOX>    

[size=32]Isso era tudo o que eu espero e servi-los[/size]

link da colisão:  http://www.mediafire.com/file/124730npe0...olores.rar
Back to top Go down
View user profile
 
Dash colores em opçoes de menu
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Adding A Floating Menu!
» Using Selenium Webdriver to test drop down menu (menu within menu)
» how to add down down menu in forumotion
» To adapt this menu Forumotion
» Deleting Badge Arcade with over the 1000 home menu limit

Permissions in this forum:You cannot reply to topics in this forum
Gunz Talk Forum! :: GunZ Release Section :: Interface designs/coding-
Jump to: