Coming soon

Moderator: French Moderator
Code: Select all
Text QLCompose(Text _vtxt,Text _sign,Text[] _argument)
{
if (_vtxt=="") return "";
declare Text s = _sign;
if (TextLib::Length(s)>1)
s = TextLib::SubString(s,0,1);
if (s=="") s="%";
declare Text[] arraytxt = TextLib::Split(s, _vtxt);
if ( arraytxt.count <= 1 )
return _vtxt;
declare Text out = "";
foreach (txt in arraytxt){
declare Integer Tln = TextLib::Length(txt);
if (Tln>0){
declare Integer n1 = QLStringIsNumber(txt);
if (n1!=-1){
declare Text t1 = TextLib::SubText(txt, 1, Tln);
if (_argument.existskey(n1-1))
out= out^_argument[n1-1]^t1;
else
out= out^s^t1;
}else
out= out^s^txt;
}
else
out= out^s^txt;
}
declare oln = TextLib::Length(out);
if(oln>0){
if (TextLib::SubText(out, 0, 1)==s)
out = TextLib::SubText(out, 1, oln);
}
return out;
}
Text QLCompose(Text _vtxt,Text[] _argument)
{return QLCompose(_vtxt,"", _argument);}
////////////////////////////////////////////
Text GetPuryfingStr(Text _str)
{
declare Text[] arraytxt = TextLib::Split("$", _str);
if (arraytxt.count==1)
return _str;
declare Text out = "";
foreach (txt in arraytxt){
if (TextLib::Length(txt)>0){
declare Text t1 = TextLib::SubString(txt, 0, 1);
if (t1=="h" || t1=="l"){
declare Text[] a1 = TextLib::Split("]", txt);
if (a1.count == 2)
out= out^a1[1];
}else
out= out^"$"^txt;
}
}
return out^"$z";
}
C'est vrai que ManiaPlanet a beaucoup évolué en peu de temps (comme partout ailleurs ^^'). Je te souhaite bon courage et bonne chance pour devUsul wrote:Haha qui est de retour mais oui c'est moi
J'ai beaucoup à faire et puis j'ai repris le boulot cette année donc bcp moins de temps
Je vais regarder comment refaire fonctionner quakelike
Mais j'ai relancer le jeux hier, je capte plus rien du tout, on dirait que pas mal de chose on changées.
Je vais me remettre dans le code, finir quakelike surtout parce que j'aimerais faire un nouveau titre basé sur action quake2 ou reaction quake3
enfin pour résumer je vais me remettre doucement dans le bain et on verra ce que je pondrais d'ici quelques mois
mais là je vais devoir recommencer à 0 un titre test pour voir ce qui à changé
On a une fonction dans la TextLib pour faire ça maintenant.Usul wrote:Exemple enlever les couleurs d'une chaines de caractères pour pouvoir l'afficher dans le chat
Code: Select all
declare WithoutFormat = TextLib::StripFormatting("$s$f00aaaaaa$0f0bbbbb");
Users browsing this forum: No registered users and 0 guests