Skip to content

Commit 8bf0653

Browse files
author
Marek Kulik
committed
Add positioning to chatbox presets
1 parent b2ae4fd commit 8bf0653

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

Client/core/CSettings.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,9 +2209,6 @@ void CSettings::CreateInterfaceTabGUI( void )
22092209

22102210
// Options
22112211
{
2212-
float fFontNamesMarginY = 100.0f;
2213-
float fLineHeight = 20.0f;
2214-
22152212
pLabel = reinterpret_cast < CGUILabel* > ( pManager->CreateLabel ( pTabOptions, _("Options") ) );
22162213
pLabel->SetPosition ( CVector2D ( fMarginX, 10.0f ) );
22172214
pLabel->GetPosition ( vecTemp );

Shared/data/MTA San Andreas/MTA/config/chatboxpresets.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
<css_background>0</css_background>
1313
<line_life>12000</line_life>
1414
<line_fadeout>3000</line_fadeout>
15+
<position_horizontal>0</position_horizontal>
16+
<position_vertical>0</position_vertical>
17+
<text_alignment>0</text_alignment>
18+
<offset_x>0.0125</offset_x>
19+
<offset_y>0.0150</offset_y>
1520
</preset>
1621
<preset name="MTA Black">
1722
<color_text>255 255 255</color_text>
@@ -26,6 +31,11 @@
2631
<css_background>0</css_background>
2732
<line_life>12000</line_life>
2833
<line_fadeout>3000</line_fadeout>
34+
<position_horizontal>0</position_horizontal>
35+
<position_vertical>0</position_vertical>
36+
<text_alignment>0</text_alignment>
37+
<offset_x>0.0125</offset_x>
38+
<offset_y>0.0150</offset_y>
2939
</preset>
3040
<preset name="Transparent">
3141
<color_text>255 255 255</color_text>
@@ -40,6 +50,11 @@
4050
<css_background>0</css_background>
4151
<line_life>12000</line_life>
4252
<line_fadeout>3000</line_fadeout>
53+
<position_horizontal>0</position_horizontal>
54+
<position_vertical>0</position_vertical>
55+
<text_alignment>0</text_alignment>
56+
<offset_x>0.0125</offset_x>
57+
<offset_y>0.0150</offset_y>
4358
</preset>
4459
<preset name="Race Oversized">
4560
<color_text>172 213 254 255</color_text>
@@ -54,6 +69,11 @@
5469
<css_background>0</css_background>
5570
<line_life>12000</line_life>
5671
<line_fadeout>3000</line_fadeout>
72+
<position_horizontal>0</position_horizontal>
73+
<position_vertical>0</position_vertical>
74+
<text_alignment>0</text_alignment>
75+
<offset_x>0.0125</offset_x>
76+
<offset_y>0.0150</offset_y>
5777
</preset>
5878
<preset name="iRace 2009">
5979
<color_text>172 213 254 255</color_text>
@@ -68,5 +88,10 @@
6888
<css_background>0</css_background>
6989
<line_life>30000</line_life>
7090
<line_fadeout>300000</line_fadeout>
91+
<position_horizontal>0</position_horizontal>
92+
<position_vertical>0</position_vertical>
93+
<text_alignment>0</text_alignment>
94+
<offset_x>0.0125</offset_x>
95+
<offset_y>0.0150</offset_y>
7196
</preset>
7297
</chatboxpresets>

0 commit comments

Comments
 (0)