Donio
Banned User
I must start learning php
global $GDPreviousPositions;
//MadGBText
public function __construct($parent, $text, $color, $font, $shadow)
{
$this->parent = $parent;
public function __construct($object, $text, $color, $font, $shadow)
{
$this->object = $object;
$this->parent->object;
$this->parent->GDPreviousPositions;
Thank you. The reason I used mangoapi was to be able to track all my released API in one simple search (without having to bump into others).Your thread tag sounds very cool... j0j "mangoapi"...
And, excellent work.
Thank you.Great work. It would be so useful:thumbup:
++rep
Yeah, I completely understand your points, the thing is that the script wasn't this advanced at first. I made a few adjustments whilst working on it and the previous positions was one of them. Being made quickly to enhance the experience. But yeah, I totally get your points and I will fix them as soon as I get the time for it.Nice code, but I thinking about it:
Why are you using globals? I think better way is to use $GDPreviousPositions as a public variable of MadGD because if you create two signatures in one code you'll access that same global $GDPreviousPositions; for both.PHP:global $GDPreviousPositions;
Try to hand over MadGB pointer to childrens( MadGDIcon/MadGDText ) instead $object. Then set $object and $GDPreviousPositions as public property in MadGD.
ex. use:
instead of:PHP://MadGBText public function __construct($parent, $text, $color, $font, $shadow) { $this->parent = $parent;
And access for $object property:PHP:public function __construct($object, $text, $color, $font, $shadow) { $this->object = $object;
or $GDPreviousPositions:PHP:$this->parent->object;
I think you know what about I'm talking. Sorry for my bad englishPHP:$this->parent->GDPreviousPositions;
Uhm, what?can you talk my about how i can lunch this script for MySql whether i must white for end this script when by get parameters from mysql
Hi, thanks mate!Hi :]]]]
veryyy good
Thank you!Nice!
<div id="gracz_pasek_zycia"> <img src="images/pasek_zielony.png" border="0" height="10" width="'.$pasek_hp.'" /> <img src = "images / empty.png "border =" 0 "height =" 10 "width ="'.$ pasek_hp1. '" /> </ div>
$styled = array(
'font' => 'arial.ttf',
'size' => 8,
'color' => '#AAFFFF',
'shadow' => false
);
$styled = array(
'arial.ttf',
8,
'AAFFFF',
false
);
$MadGD = new MadGD;
$MadGD->setBackground( 'myBackground.png' );
$MadGD->addIcon( 'healthbar.png', 10, 10 )->setPosition( 10, 10 );
$MadGD->display( );
$MadGD = new MadGD;
$MadGD->setBackground( 'myBackground.png' );
$MadGD->addIcon( 'healthbar.png', ( $row['health'] / $row['maxhealth'] ) * 100 )->setPosition( 10, 10 );
$MadGD->display( );