Chatboxpresets.xml: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Added more)
Line 5: Line 5:
**'''color_text''': Text color (3 color values 'RGB' and optional transparent value) | example: 255 255 255 (White) or 255 255 255 122 (White and 47% transparent)
**'''color_text''': Text color (3 color values 'RGB' and optional transparent value) | example: 255 255 255 (White) or 255 255 255 122 (White and 47% transparent)
**'''color_background''': The background color (3 color values 'RGB' and 1 transparency value)  | example: 255 0 0 122 (Fully red and 47% transparent)
**'''color_background''': The background color (3 color values 'RGB' and 1 transparency value)  | example: 255 0 0 122 (Fully red and 47% transparent)
**'''color_input_text''': The color of the input text.
**'''color_input_text''': The color of the input text (3 color values 'RGB' and 1 transparency value)
**'''color_input_background''': The color of the background while input is enabled.
**'''color_input_background''': The color of the background while input is enabled (3 color values 'RGB' and 1 transparency value)
**'''font''': The number of the font. | 0 meaning no-font.
**'''font''': The number of the font (0-3). | 0 - Tahoma, 1 - Verdana, 2 - Tahoma Bold, 3 - Arial
**'''lines''': (Not-sure)
**'''lines''': (Not-sure)
**'''scale''': The scale of the text.
**'''scale''': The scale of the text.
**'''width''': The width of the text.
**'''width''': The width of the text.
(more coming!)
**'''css_text''': (Not sure what this is!)
**'''css_background''': (Not sure what this is!)
**'''line_life''': The amount of milliseconds for a line to be visible.
**'''line_fadeout''': The amount of milliseconds for a line to fade out.


===File Example===
===File Example===

Revision as of 08:34, 7 April 2013

This file holds all the MTA ChatBox Presents. Everything in this file deals with the chatbox and nothing else but the chatbox. This file is located with the coreconfig.xml. File path(MTA San Andreas 1.x\MTA). You could even customize it your self but you would need to be careful else MTA might crash or the chat might not even be visible.(BTW, you could customize these in the Settings)

Childrens of the chatboxpresents:

  • preset name: The name of the preset.
    • color_text: Text color (3 color values 'RGB' and optional transparent value) | example: 255 255 255 (White) or 255 255 255 122 (White and 47% transparent)
    • color_background: The background color (3 color values 'RGB' and 1 transparency value) | example: 255 0 0 122 (Fully red and 47% transparent)
    • color_input_text: The color of the input text (3 color values 'RGB' and 1 transparency value)
    • color_input_background: The color of the background while input is enabled (3 color values 'RGB' and 1 transparency value)
    • font: The number of the font (0-3). | 0 - Tahoma, 1 - Verdana, 2 - Tahoma Bold, 3 - Arial
    • lines: (Not-sure)
    • scale: The scale of the text.
    • width: The width of the text.
    • css_text: (Not sure what this is!)
    • css_background: (Not sure what this is!)
    • line_life: The amount of milliseconds for a line to be visible.
    • line_fadeout: The amount of milliseconds for a line to fade out.

File Example

<chatboxpresets> <preset name="MTA Blue (default)"> <color_text>255 255 255</color_text> <color_background>0 0 128 100</color_background> <color_input_text>172 213 254 255</color_input_text> <color_input_background>0 0 129 110</color_input_background> 0 <lines>7</lines> <scale>1 1</scale> <width>1</width> <css_text>0</css_text> <css_background>0</css_background> <line_life>12000</line_life> <line_fadeout>3000</line_fadeout> </preset> <preset name="MTA Black"> <color_text>255 255 255</color_text> <color_background>0 0 0 100</color_background> <color_input_text>172 213 254 255</color_input_text> <color_input_background>0 0 0 110</color_input_background> 0 <lines>7</lines> <scale>1 1</scale> <width>1</width> <css_text>0</css_text> <css_background>0</css_background> <line_life>12000</line_life> <line_fadeout>3000</line_fadeout> </preset> <preset name="Transparent"> <color_text>255 255 255</color_text> <color_background>0 0 0 0</color_background> <color_input_text>172 213 254 255</color_input_text> <color_input_background>0 0 0 0</color_input_background> 2 <lines>10</lines> <scale>1 1</scale> <width>1.5</width> <css_text>0</css_text> <css_background>0</css_background> <line_life>12000</line_life> <line_fadeout>3000</line_fadeout> </preset> <preset name="Race Oversized"> <color_text>172 213 254 255</color_text> <color_background>0 0 128 100</color_background> <color_input_text>172 213 254 255</color_input_text> <color_input_background>0 0 191 110</color_input_background> 3 <lines>10</lines> <scale>1.65 1.17</scale> <width>1.2</width> <css_text>0</css_text> <css_background>0</css_background> <line_life>12000</line_life> <line_fadeout>3000</line_fadeout> </preset> <preset name="iRace 2009"> <color_text>172 213 254 255</color_text> <color_background>0 0 128 0</color_background> <color_input_text>172 213 254 255</color_input_text> <color_input_background>0 0 191 110</color_input_background> 0 <lines>10</lines> <scale>1.5 1.1</scale> <width>1.2</width> <css_text>1</css_text> <css_background>0</css_background> <line_life>30000</line_life> <line_fadeout>300000</line_fadeout> </preset> </chatboxpresets>