Development > Newbie Coding

UI Adjustments.

<< < (16/17) > >>

H-Hour:

--- Quote from: bayo on November 03, 2010, 11:19:06 am ---BTW if you use custombutton or radiobutton on your local scripts please check http://ufoai.ninex.info/wiki/index.php?title=UI_node_behaviours/2.4-dev&curid=6254&diff=35338&oldid=35334 and use "background" instead of "image" and "texl". I will soon remove this old way to define a background, cause it is to hard to manage, it create useless constaints, and it is not flexible.

--- End quote ---

I get an error when I try to use background with a radiobutton node.


--- Quote ---UI_ParseNode: node behaviour/component 'background' doesn't exists
--- End quote ---

The code that causes the error:


--- Code: --- radiobutton res_none
{
background "hhud/res_none"
pos "306 63"
size "31 23"
value 0
cvar *cvar:rf_reserve
onClick { cmd "deselect_reaction;" }
}
--- End code ---

mor2:
its available only in the new nighties.

EDIT: also i am not sure what is "res_none" but you are allow to make background less buttons.

for example you can use image and add buttons above only to capture events (onClick etc)
or add images above them and make effects like glow, thus you can make one hovered effect for all the buttons and move it to the correct button instead of making another hovered image with effect for all (just dont forget to set them as ghost)

H-Hour:
I git-fetched and compiled before trying.

bayo:
It also can be a parsing problem, moving backround from the first position can help in this case. Only an idea, i can't test here.

--- Code: ---radiobutton res_none
{
pos "306 63"
background "hhud/res_none"

--- End code ---
      

H-Hour:
Sorry, that was my fault. Git used to automatically upbase when I fetched but I forget that I have to do that manually now.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version