adjust karma alpha
This commit is contained in:
		
				
					committed by
					
						 Steffen Schröder
						Steffen Schröder
					
				
			
			
				
	
			
			
			
						parent
						
							ffe3e0d2ef
						
					
				
				
					commit
					d471044734
				
			| @@ -157,7 +157,7 @@ class KarmaPlugin implements CallbackListener, Plugin { | |||||||
| 			$karma = floatval($karma); | 			$karma = floatval($karma); | ||||||
| 			$karmaGauge->setRatio($karma + 0.15 - $karma * 0.15); | 			$karmaGauge->setRatio($karma + 0.15 - $karma * 0.15); | ||||||
| 			$karmaColor = ColorUtil::floatToStatusColor($karma); | 			$karmaColor = ColorUtil::floatToStatusColor($karma); | ||||||
| 			$karmaGauge->setColor($karmaColor . '9'); | 			$karmaGauge->setColor($karmaColor . '7'); | ||||||
| 			$karmaLabel->setText('  ' . round($karma * 100.) . '% (' . $votes['count'] . ')'); | 			$karmaLabel->setText('  ' . round($karma * 100.) . '% (' . $votes['count'] . ')'); | ||||||
| 		} else { | 		} else { | ||||||
| 			$karma = 0.; | 			$karma = 0.; | ||||||
| @@ -274,7 +274,6 @@ class KarmaPlugin implements CallbackListener, Plugin { | |||||||
| 		$map     = $this->maniaControl->mapManager->getCurrentMap(); | 		$map     = $this->maniaControl->mapManager->getCurrentMap(); | ||||||
|  |  | ||||||
| 		$voted = $this->getPlayerVote($player, $map); | 		$voted = $this->getPlayerVote($player, $map); | ||||||
| 		var_dump($voted); |  | ||||||
| 		if(!$voted){ | 		if(!$voted){ | ||||||
| 			$this->maniaControl->statisticManager->incrementStat(self::STAT_PLAYER_MAPVOTES, $player, $this->maniaControl->server->index); | 			$this->maniaControl->statisticManager->incrementStat(self::STAT_PLAYER_MAPVOTES, $player, $this->maniaControl->server->index); | ||||||
| 		} | 		} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user