View Single Post
  #1  
Old 12-21-2013, 05:56 AM
LucasA33's Avatar
LucasA33 LucasA33 is offline
Member
 
Join Date: Jul 2011
Posts: 144
Gender: Male
Credits: 12,404
LucasA33 is on a distinguished road
Default Adding coin image instead of a currency name.q

I'm new to PHP so I am at a loss of what to do here, but I want to add a small 16x16 icon image where it says MONEY:


I've tried resources like google but all it ever does is confuse me :P
Maybe one of you guys could help me put this together.

Current code:

Quote:
/**
* The getMoneyBar method, getter method for property $moneyBar.
* @access public
* @return Paragraph
*/
public function getMoneyBar(){
return $this->moneyBar;
}

/**
* The setMoneyBar method, setter method for property $moneyBar.
* It is set internally upon object instantiation, cannot be accessed in client code.
* @access protected
* @return Void
*/
protected function setMoneyBar(){
$mysidia = Registry::get("mysidia");
$this->moneyBar = new Paragraph;
$this->moneyBar->add(new Comment("Money: {$mysidia->user->money} {$mysidia->settings->cost} | "));

$donate = new Link("donate");
$donate->setText("Donate");
$this->moneyBar->add($donate);
$this->setDivision($this->moneyBar);
}
__________________
Reply With Quote