View Single Post
  #3  
Old 05-06-2011, 09:09 AM
klem's Avatar
klem klem is offline
Approved Member
 
Join Date: Nov 2007
Posts: 1,653
Thumbs up Info Window coding here

Quote:
Originally Posted by Groundhog View Post
Anyone able to change font colours?

thanks

GH
You can shange some, like:

4:-1=-posSize '0.325 0.100 0.350 0.800' -titleStr "Player Stats" -title -border -alpha 50 -ualpha 0 -custom
4:-2=-font 3 -color 0 -columnWidth '0.086 0.343 0.286 0.095 0.095 0.095' -columnSort 2

One I can't seem to change is the secondary controls:
1:-1=-posSize '0.036 0.743 0.167 0.157' -titleStr "Secondary Controls" -alpha 130 -ualpha 0 -vscroll -wrap -history 5 -timeout 20
1:7=-font 1
1:4=-font 1
1:5=-font 1

which always come up blue (and almost unreadable) so I've just made the font larger. The -clr command (see below) doesn't seem to work on this output.

Here are some of the data that I've managed to decipher in the confUser.ini
I hope someone will correct me if I am wrong on any of these:

Window Number
1: [Window #1 (numbered in order created, not critical)]
2: [Window #2]

Formatting elements:
-1 = [Here comes some Info Window formatting!....]

-PosSize '[%age Screen from left] [%age Screen from top] [%age Screen window width] [%age Screen window height] ..... e.g. 0.325 = 32.5% of screen dimension

-titlestr [The title to appear at top of window]

-title [column headings] ....e.g. for "Player Stats"

-border [show a border]

-alpha [transparency of active(?) background]
-ualpha [transparency of inactive(?) background]

-wrap [wrap text](?)

-history [Dont' know]

-timeout [Delay in seconds before text fades away]


-2 = [Here comes some column formatting!...]

-columnWidth '0.086 0.343 0.286 0.095 0.095 0.095' [width column1] [width column 2] etc...

-columnSort 2 [Sort column number]

Output elements:
:1 = [ChatOutput]
:2 = [Voice]
:3 = [Chat Input]
:4 = [Vehicle System]
:5 = [Vehicle Crew]
:6 = [Don't know]
:7 = [Vehicle Secondary Controls]

:131072 [Server]
:262144 [Secondary Controls]
:393216 [Time]

Fonts:
-fnt 0 [Small] (Can also be written as -font 3)
-fnt 1 [Medium]
-fnt 2 [Large]
-fnt 3 [Small Fixed]

Colors:
-clr 0 = Red (can also be written as -color 0)
-clr 54 = Green
-clr 139 = Black
Others are shown in the attached thumbnail, the numbers are the number of the color's position on the list so you'll have to count them off


-al 2 [Alignment] (?) 1 = left, 2 = middle, 3 = right (?)

-tf 1 [Time Format] (?) 1 = 24hr?

-sz 1 [Don't know]

-sl 1 [Don't know]
Attached Images
File Type: jpg FontColours.jpg (203.1 KB, 77 views)
__________________
klem
56 Squadron RAF "Firebirds"
http://firebirds.2ndtaf.org.uk/



ASUS Sabertooth X58 /i7 950 @ 4GHz / 6Gb DDR3 1600 CAS8 / EVGA GTX570 GPU 1.28Gb superclocked / Crucial 128Gb SSD SATA III 6Gb/s, 355Mb-215Mb Read-Write / 850W PSU
Windows 7 64 bit Home Premium / Samsung 22" 226BW @ 1680 x 1050 / TrackIR4 with TrackIR5 software / Saitek X52 Pro & Rudders

Last edited by klem; 05-08-2011 at 08:33 AM. Reason: More font color info added
Reply With Quote