Show
Ignore:
Timestamp:
11/25/06 16:03:34 (14 years ago)
Author:
exi
Message:

Created a signature generator list.
Removed the fonts and adjusted the signature generator default theme to bring his own fonts.

Location:
dev/mods/signature_generator/signatures/default
Files:
2 added
1 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/signature_generator/signatures/default/default.php

    r72 r87  
    11<?php 
    2 $im = imagecreatefrompng('mods/signature_generator/signatures/default/default.png'); 
     2define('MPATH', 'mods/signature_generator/signatures/default/'); 
     3$im = imagecreatefrompng(MPATH.'default.png'); 
    34 
    45$red = imagecolorallocate($im, 255, 10, 10); 
     
    2122 
    2223// corp 
    23 $box = imagettfbbox(10, 0, 'fonts/GUNSHIP2.TTF', $corp->getName()); 
     24$box = imagettfbbox(10, 0, MPATH.'GUNSHIP2.TTF', $corp->getName()); 
    2425$width = $box[4]; 
    25 imagettftext($im, 10, 0, 319-$width, 71, $black, 'fonts/GUNSHIP2.TTF', $corp->getName()); 
    26 imagettftext($im, 10, 0, 318-$width, 70, $red, 'fonts/GUNSHIP2.TTF', $corp->getName()); 
     26imagettftext($im, 10, 0, 319-$width, 71, $black, MPATH.'GUNSHIP2.TTF', $corp->getName()); 
     27imagettftext($im, 10, 0, 318-$width, 70, $red, MPATH.'GUNSHIP2.TTF', $corp->getName()); 
    2728 
    2829// player 
    29 $box = imagettfbbox(16, 0, 'fonts/GUNSHIP2.TTF', $name); 
     30$box = imagettfbbox(16, 0, MPATH.'GUNSHIP2.TTF', $name); 
    3031$width = $box[4]; 
    31 imagettftext($im, 16, 0, 319-$width, 91, $black, 'fonts/GUNSHIP2.TTF', $name); 
    32 imagettftext($im, 16, 0, 318-$width, 90, $red, 'fonts/GUNSHIP2.TTF', $name); 
     32imagettftext($im, 16, 0, 319-$width, 91, $black, MPATH.'GUNSHIP2.TTF', $name); 
     33imagettftext($im, 16, 0, 318-$width, 90, $red, MPATH.'GUNSHIP2.TTF', $name); 
    3334 
    3435// time, victim, victim corp and ship killed 
    35 imagettftext($im, 11, 0, 39, 16, $black, 'fonts/spaceage.ttf', $kill->getTimeStamp()); 
    36 imagettftext($im, 11, 0, 38, 15, $white, 'fonts/spaceage.ttf', $kill->getTimeStamp()); 
    37 imagettftext($im, 11, 0, 39, 26, $black, 'fonts/spaceage.ttf', $kill->getVictimName()); 
    38 imagettftext($im, 11, 0, 38, 25, $white, 'fonts/spaceage.ttf', $kill->getVictimName()); 
    39 imagettftext($im, 11, 0, 39, 36, $black, 'fonts/spaceage.ttf', $kill->getVictimCorpName()); 
    40 imagettftext($im, 11, 0, 38, 35, $white, 'fonts/spaceage.ttf', $kill->getVictimCorpName()); 
     36imagettftext($im, 11, 0, 39, 16, $black, MPATH.'spaceage.ttf', $kill->getTimeStamp()); 
     37imagettftext($im, 11, 0, 38, 15, $white, MPATH.'spaceage.ttf', $kill->getTimeStamp()); 
     38imagettftext($im, 11, 0, 39, 26, $black, MPATH.'spaceage.ttf', $kill->getVictimName()); 
     39imagettftext($im, 11, 0, 38, 25, $white, MPATH.'spaceage.ttf', $kill->getVictimName()); 
     40imagettftext($im, 11, 0, 39, 36, $black, MPATH.'spaceage.ttf', $kill->getVictimCorpName()); 
     41imagettftext($im, 11, 0, 38, 35, $white, MPATH.'spaceage.ttf', $kill->getVictimCorpName()); 
    4142 
    42 imagettftext($im, 11, 0, 6, 46, $black, 'fonts/spaceage.ttf', $kill->getVictimShipName()); 
    43 imagettftext($im, 11, 0, 5, 45, $white, 'fonts/spaceage.ttf', $kill->getVictimShipName()); 
     43imagettftext($im, 11, 0, 6, 46, $black, MPATH.'spaceage.ttf', $kill->getVictimShipName()); 
     44imagettftext($im, 11, 0, 5, 45, $white, MPATH.'spaceage.ttf', $kill->getVictimShipName()); 
    4445 
    4546// ship