Niestety Arma się buntuje, a parser wracając do desktop'u powiada:
... ,line 14: Config: '=' encountered instead of '{'.
Czyli, że parser spotkał '=' zamiast '{'. To chyba ta linia z deklaracją własności 'font'.
Kod: Zaznacz cały
#include "const.hpp"
class tCustomControl
{
idc = -1;
access = ReadAndWrite;
moving = false;
type = CT_STATIC;
style = ST_CENTER + ST_MULTI;
x = 0;
y = 0;
w = 0.1;
h = 0.1;
font = const_FontNormal;
sizeEx = const_FontSizeNormal;
lineSpacing = 1;
colorText[] = const_ColorNavy;
colorBackground[] = const_ColorTransparent;
text = "";
};
Kod: Zaznacz cały
#define true 1
#define false 0
#define CT_STATIC 0
#define ST_CENTER 0x02
#define ST_MULTI 16
#define const_FontNormal "Zeppelin33"
#define const_ScreenHeight = 768
#define const_FontSizePt17 = 17 / const_ScreenHeight
#define const_FontSizeNormal = const_FontSizePt17
#define const_ColorNavy = {0, 0, 128/255, 1}
#define const_ColorTransparent = {0, 0, 0, 0}
Dałem jeszcze (dla zmyłki, wiem że bez sensu):
Kod: Zaznacz cały
font{} = const_FontNormal;
,line 14: '/tCustomControl.font': '{' encountered instead of '='
I niestety nie mam pojęcia w czym problem z tym fontem... i co jest ten 'Config' w: Config: '=' encountered instead of '{'
