Chatboxpresets.xml: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (→‎Chatboxpresents.xml: Removed the Title since there's no point of it)
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
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)
This file holds all the MTA ChatBox Presets. Everything in this file deals with the chatbox and nothing else but the chatbox. This file is located with the [[coreconfig.xml]]. Its file path is ''MTA San Andreas 1.x\MTA''. You could even customize it yourself but you would need to be careful else MTA might crash or the chat might not even be visible. You can customize these in the Settings too.


===Childrens of the chatboxpresents:===
===Children of the chatboxpresets===
*'''preset name''': The name of the preset.
*'''preset name''': The name of the preset.
**'''color_text''': 3 color values from 0-255 | example: 255 255 255 (red green blue)
**'''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. | (not sure what the color values are/mean)
**'''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===
{{#tag:code |
<syntaxhighlight lang="xml">
<chatboxpresets>
<chatboxpresets>
<preset name="MTA Blue (default)">
<preset name="MTA Blue (default)">
Line 87: Line 90:
</preset>
</preset>
</chatboxpresets>
</chatboxpresets>
|lang="xml"}}
</syntaxhighlight>


[[Category:Incomplete]]
[[Category:Incomplete]]

Latest revision as of 20:13, 23 September 2016

This file holds all the MTA ChatBox Presets. Everything in this file deals with the chatbox and nothing else but the chatbox. This file is located with the coreconfig.xml. Its file path is MTA San Andreas 1.x\MTA. You could even customize it yourself but you would need to be careful else MTA might crash or the chat might not even be visible. You can customize these in the Settings too.

Children of the chatboxpresets

  • 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>
		<font>0</font>
		<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>
		<font>0</font>
		<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>
		<font>2</font>
		<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>
		<font>3</font>
		<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>
		<font>0</font>
		<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>