This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

BogusTrivia: Colors of Random Lines

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
j
juanamores
Master
Posts: 317
Joined: Sun Mar 15, 2015 9:59 am

BogusTrivia: Colors of Random Lines

Post by juanamores »

# random ad lines. one ad per line. as many as you want (no limit) #
## Random Lines Below ##

How do I change the color is white with black background for white with red background ?

Only random lines, otherwise I like it like this .

Thanks
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks :)
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

I will help you hand edit the script to slightly change the colors for a preset color theme.

What color theme number are you currently using?
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
j
juanamores
Master
Posts: 317
Joined: Sun Mar 15, 2015 9:59 am

Post by juanamores »

SpiKe^^ wrote:I will help you hand edit the script to slightly change the colors for a preset color theme.

What color theme number are you currently using?
default theme colors, white on black background

I desire white on red background, only for random lines.
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks :)
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

You can edit any and all of the preset color themes in the proc TDoClr

The default theme is the last one in the if/elseif/else conditional statement,
under the else-clause

Search for this line in the t-2.tcl file...

Code: Select all

  -tu1 \003 -tu2 \00310 -randad \00300,01
... and change the colors code for randad to be white on red background (\00300,04), like this...

Code: Select all

  -tu1 \003 -tu2 \00310 -randad \00300,04
Save & rehash, and there ya go.
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
j
juanamores
Master
Posts: 317
Joined: Sun Mar 15, 2015 9:59 am

Post by juanamores »

SpiKe^^ excellent , worked well , thanks :D
If you do not understand my ideas is because I can not think in English, I help me with Google Translate. I only speak Spanish. Bear with me. Thanks :)
Post Reply