Development > Newbie Coding
UI Adjustments.
mor2:
it has, it uses the bar_selbox i am trying something different.
and if (paramcount == 0) sound wonderful ;)
mor2:
i seem to bump into somethin i cannot solve, the game keep quite on me with the error
--- Code: ---Com_AlignPtr: can't align V_NULL
--- End code ---
i found that excluding the two lines 94,95 allows me to load the game but then my radiobuttons dont work.
--- Code: --- *node:parent.tab<cvar:i>.bt_soldier@value = (*cvar:i)
*node:parent.tab<cvar:i>.bt_soldier@cvar = *cvar:selected_soldier
--- End code ---
i dont know if its a syntax problem (tried quite few combination on the value) or something else, i attached the script (just extract it into %appdata%/base/) if someone can look into it i'll appreciate it, thanks.
bayo:
I fix it in the master, but please, quote the cvar value you want to set:
--- Code: ---*node:parent.tab<cvar:i>.bt_soldier@cvar = "*cvar:selected_soldier"
--- End code ---
bayo:
BTW you should use a component. At least you can fix const values without any setters, and this cvar name too.
mor2:
--- Quote from: bayo on November 02, 2010, 07:44:49 pm ---I fix it in the master, but please, quote the cvar value you want to set:
--- Code: ---*node:parent.tab<cvar:i>.bt_soldier@cvar = "*cvar:selected_soldier"
--- End code ---
--- End quote ---
are you sure that is it, i just replaced my:
*node:parent.tab<cvar:i>.bt_soldier@cvar = *cvar:selected_soldier
with
*node:parent.tab<cvar:i>.bt_soldier@cvar = "*cvar:selected_soldier"
and got the same error ???
besides if you look at hud, this exactly how they use it without the " " :(
and what is a component?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version