ok, i realized there is a way to set the variables for the digits, using the digits_set instruction.
like this:
Code:
var m_varClipAmmo;
var m_varTotalAmmo;
PANEL* m_panAmmo;
...
m_panAmmo = pan_create("digits 122, 56, clip_ammo_frmt_str, clip_ammo_font, 1, 0; digits 118, 68, total_ammo_frmt_str, total_ammo_font, 1, 0;", _VAR(3));
digits_set(m_panAmmo, _VAR(1), &m_varClipAmmo);
digits_set(m_panAmmo, _VAR(2), &m_varTotalAmmo);
but what about the format string and the font?
and what about windows definitions? how do i set the variables and the bmap in there without having to define them in c-script?
anyone has any ideas?
Thanks again,
Filipe
Edit: and for buttons?
