I exported the files using IMGTool 2.0 to get the .dff and .txd files, is there a special tool to export them for VC?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Thijn on Aug 11, 2015, 06:10 PMYou probably mean something like:local color = RGB( 255, 0, 0); //Red.
local drawColor = color.r << 24 | color.g << 16 | color.b << 8 | 255 );
Where that last 255 is the alpha.
Quote from: Doom_Killer on Aug 11, 2015, 05:20 PMwww.Colourpicker.com
Quote from: MatheuS on Aug 02, 2015, 10:23 PMDeathWindow(player.Name, reason, killer.Name);
toDeathWindow(Killer.Name, reason, player.Name);
Good.
//Deathlist Settings
MaxLines <- 5; //Max Lines it shows in Deathlist
LineGap <- 30; //How much space between the Names
PosX <- -245; //PosX for first part (Do not change unless you know what you are doing)
PosY <- 504; //PosY for first part (Do not change unless you know what you are doing)
PosX2 <- -190; //PosX for second part (Do not change unless you know what you are doing)
PosY3 <- 502; //PosY for second part (Do not change unless you know what you are doing)
//Death Window Vars
TextLengh <- array(MaxLines);
TextInfo <- array(MaxLines);
TextInfo2 <- array(MaxLines);
SpriteInfo <- array(MaxLines);
function onPlayerDeath( player, reason )
{
DeathWindow(player.Name, reason, " "); //" " must be with space to prevent any bugs
return 1;
}
function onPlayerKill( player, killer, reason, bodypart )
{
DeathWindow(killer.Name, reason, player.Name);
return 1;
}
function DeathWindow(leftName, reason, rightName)
{
image <- "" + reason + ".png";
if (TextInfo[0])
{
TextInfo[0].Delete();
}
if(SpriteInfo[0])
{
SpriteInfo[0].Delete();
}
if (TextInfo2[0])
{
TextInfo2[0].Delete();
}
for (local i=0; i<MaxLines-1; i++)
{
if(TextLengh[i+1])
{
TextLengh[i] = TextLengh[i+1];
}
if (TextInfo[i+1])
{
TextInfo[i] = TextInfo[i+1];
TextInfo[i].SetPosForAll(PosX-TextLengh[i], PosY-(i)*LineGap);
}
if(SpriteInfo[i+1])
{
SpriteInfo[i] = SpriteInfo[i+1];
SpriteInfo[i].SetPosForAll(-230, PosY3-(i)*LineGap);
}
if(TextInfo2[i+1])
{
TextInfo2[i] = TextInfo2[i+1];
TextInfo2[i].SetPosForAll(PosX2, PosY-(i)*LineGap);
}
}
MinusPosX <- 0;
if(leftName.len() == 1)
{
MinusPosX <- 8;
}
else
{
MinusPosX <- leftName.len()*8;
}
TextLengh[MaxLines-1] = MinusPosX;
TextInfo[MaxLines-1] = CreateTextdraw(leftName, PosX-MinusPosX, PosY-(MaxLines-1)*LineGap, 0xFFB0B0B0);
TextInfo[MaxLines-1].ShowForAll();
SpriteInfo[MaxLines-1] = CreateSprite(image, -230, PosY3-(MaxLines-1)*LineGap, 0, 0, 0, 200);
SpriteInfo[MaxLines-1].ShowForAll();
TextInfo2[MaxLines-1] = CreateTextdraw(rightName, PosX2, PosY-(MaxLines-1)*LineGap, 0xFFB0B0B0);
TextInfo2[MaxLines-1].ShowForAll();
return 1;
}
function onPlayerJoin(player)
{
DeathWindow(" ", "71", player.Name);
return 1;
}
function onPlayerPart( player, reason )
{
DeathWindow(" ", "72", player.Name);
return 1;
}