added public in constructor
This commit is contained in:
parent
53cc23dc09
commit
5199842166
@ -28,7 +28,7 @@ class RecordWidget {
|
|||||||
*
|
*
|
||||||
* @param \ManiaControl\ManiaControl $maniaControl
|
* @param \ManiaControl\ManiaControl $maniaControl
|
||||||
*/
|
*/
|
||||||
function __construct(ManiaControl $maniaControl) {
|
public function __construct(ManiaControl $maniaControl) {
|
||||||
$this->maniaControl = $maniaControl;
|
$this->maniaControl = $maniaControl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,12 +40,12 @@ class RecordWidget {
|
|||||||
* @return \FML\Controls\Frame
|
* @return \FML\Controls\Frame
|
||||||
*/
|
*/
|
||||||
public function generateRecordLineFrame($record, Player $player = null) {
|
public function generateRecordLineFrame($record, Player $player = null) {
|
||||||
$width = $this->width;
|
$width = $this->width;
|
||||||
$lineHeight = $this->lineHeight;
|
$lineHeight = $this->lineHeight;
|
||||||
|
$largeNumberDiff = 0;
|
||||||
|
|
||||||
$recordFrame = new Frame();
|
$recordFrame = new Frame();
|
||||||
|
|
||||||
$largeNumberDiff = 0;
|
|
||||||
if ($record->rank > 999) {
|
if ($record->rank > 999) {
|
||||||
$largeNumberDiff = 0.03;
|
$largeNumberDiff = 0.03;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user