CP counter Xaseco2

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
weasel
speedy pilot
speedy pilot
Posts: 341
Joined: 11 Mar 2011 23:44
Owned TM-games: TMN, TMU, TMF,TM2all

CP counter Xaseco2

Post by weasel » 03 Nov 2013 01:00

Hi.

I could use a little help with this plugin :

viewtopic.php?t=28871

It's a CP Records widget made by junglepatrol.

Sinds there is not much activity in that topic I post here.
I want to move the tekst a bit , "CP" starts at the beginning of the widget.
I would like to move it a bit to the right.

I already tested some stuff but can not get it to work.


So how can the tekst be changed from place , color , size in the cp widget ?

Just need a kick in the right direction. :3


Thanks

askuri
road tourist
road tourist
Posts: 83
Joined: 21 Apr 2013 10:01
Owned TM-games: All except TMO
Manialink(s): im
Location: Germany/Rhineland-Palatinate
Contact:

Re: CP counter Xaseco2

Post by askuri » 03 Nov 2013 09:37

This isn't configurable in the config so we need to go a bit deeper into the script ;)
Open plugin.cprecords.php and search for line 180 - 195. There you can set x values something bigger.
This might help: http://forum.funtrackers.net/showthread ... 07#new_pos use the menu positioning.
I haven't tested anything so just try it. It's like maths but make a backup of your files ;)

weasel
speedy pilot
speedy pilot
Posts: 341
Joined: 11 Mar 2011 23:44
Owned TM-games: TMN, TMU, TMF,TM2all

Re: CP counter Xaseco2

Post by weasel » 03 Nov 2013 09:52

Ok . I try some stuff.

Thanks for helping out.

weasel
speedy pilot
speedy pilot
Posts: 341
Joined: 11 Mar 2011 23:44
Owned TM-games: TMN, TMU, TMF,TM2all

Re: CP counter Xaseco2

Post by weasel » 03 Nov 2013 11:22

Some part of code , starting at line 196 :

Code: Select all


        $xml.='<quad sizen="14 3" posn="'.$pos_x.' '.$pos_y.' 0" style="BgsPlayerCard" substyle="ProgressBar"/>';
        $xml.='<label sizen="2 1" halign="left" posn="'.$pos_x.' '.$pos_y1.' 0.1" textcolor="0FFA" text=" $nCP'.$disp_cpnum.'"/>';
        $xml.='<label sizen="4 1" halign="left" posn="'.$pos_x1.' '.$pos_y1.' 0.1" text=" $n'.$min.':'.$sec.'.'.$mil.'"/>';
        $xml.='<label sizen="8 1" halign="center" posn="'.$pos_x2.' '.$pos_y1.' 0.1" text=" '.$player.'"/>';
             
        $cpnr++;
        $has_value = false;


I tried to change nr's here but doesn't matter what I fill in, nothing is happening.

I now moved the teskst by using spacebar in the code.
This is not the right way I think but I just do not how to change otherwise.

Maybe some coders could look at it ?

Thanks

askuri
road tourist
road tourist
Posts: 83
Joined: 21 Apr 2013 10:01
Owned TM-games: All except TMO
Manialink(s): im
Location: Germany/Rhineland-Palatinate
Contact:

Re: CP counter Xaseco2

Post by askuri » 03 Nov 2013 15:09

Ok just do it with spaces. Is the easiest way, forgot about that :D

Post Reply