Sorry for the long time I was not present here. If you still want the adapted plugin, RelaxedRacer, here we go:
If I understand correctly, you only want to show the CPs (not the finish) on top and you don't use middle-widget or bottom-widget of my plugin. Is this the case, you just need to replace the code between lines 1042 and 1063 in plugin.checkpoint_time_differences.php
Code: Select all
//TimeDiffWidget top
$posXtop = (int)$this->settings['WIDGET_TOP'][0]['POS_X'][0];
$posYtop = (int)$this->settings['WIDGET_TOP'][0]['POS_Y'][0];
$cpNoColor = $this->settings['WIDGET_TOP'][0]['CPNO_COLOR'][0];
$cpTimeColorTop = $this->settings['WIDGET_TOP'][0]['CP_TIME_COLOR'][0];
$column = 0;
$cp = 0;
while($cp < $this->checkpointCount){
$xml .= '<frame pos="'. ($posXtop + 22 * $column).' '.$posYtop.'" z-index="0" id="FrameCheckpointTimeDiffTop'.$cp.'">';
$xml .= '<quad pos="0 0" z-index="0.01" size="20 5" valign="center" id="QuadTopCheckpoint'.$cp.'"/>';
$xml .= '<label pos="2 0" z-index="0.02" size="8 3.75" textsize="2" scale="0.8" text="' .(($cp + 1 == $this->checkpointCount)? "Fin: " : "Cp".($cp + 1).": ").'" valign="center" textcolor="'.$cpNoColor.'" />';
$xml .= '<label pos="10 0" z-index="0.02" size="10 3.75" textsize="2" textcolor="'.$cpTimeColorTop.'" text="" scale="0.8" valign="center" id="LabelTopCheckpoint'.$cp.'"/>';
$xml .= '</frame>';
$column++;
if($column == $numCols){
$posYtop -= 6;
$column = 0;
}
$cp++;
}
with the following one:
Code: Select all
//TimeDiffWidget top
$posXtop = (int)$this->settings['WIDGET_TOP'][0]['POS_X'][0];
$posYtop = (int)$this->settings['WIDGET_TOP'][0]['POS_Y'][0];
$cpNoColor = $this->settings['WIDGET_TOP'][0]['CPNO_COLOR'][0];
$cpTimeColorTop = $this->settings['WIDGET_TOP'][0]['CP_TIME_COLOR'][0];
$column = 0;
$cp = 0;
while($cp < $this->checkpointCount){
$xml .= '<frame pos="'. ($posXtop + 22 * $column).' '.$posYtop.'" z-index="0" id="FrameCheckpointTimeDiffTop'.$cp.'">';
$xml .= '<quad pos="0 0" z-index="0.01" size="20 5" valign="center" id="QuadTopCheckpoint'.$cp.'" hidden="'.(($cp + 1 == $this->checkpointCount)? "true" : "false").'"/>';
$xml .= '<label pos="2 0" z-index="0.02" size="8 3.75" textsize="2" scale="0.8" text="' .(($cp + 1 == $this->checkpointCount)? "Fin: " : "Cp".($cp + 1).": ").'" valign="center" textcolor="'.$cpNoColor.'" hidden="'.(($cp + 1 == $this->checkpointCount)? "true" : "false").'"/>';
$xml .= '<label pos="10 0" z-index="0.02" size="10 3.75" textsize="2" textcolor="'.$cpTimeColorTop.'" text="" scale="0.8" valign="center" id="LabelTopCheckpoint'.$cp.'" hidden="'.(($cp + 1 == $this->checkpointCount)? "true" : "false").'"/>';
$xml .= '</frame>';
$column++;
if($column == $numCols){
$posYtop -= 6;
$column = 0;
}
$cp++;
}
then the finish won't be shown anymore.
If this is not the wanted solution, don't hesitate to write back and I'll do my best to make it fit
Greetz, aca