Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
To be more verbose:
If I have a table:
Opts[1] ={choice='pick one'}
Opts[2] ={choice='pick two'}
Opts[3] ={choice='pick three'}
how can I dynamically show these 3 options in the UI XML making them button choices for the user? Also it needs to accommodate for different amounts of choices. Today it might have only 3, but I might want to add more at a later date so I don't want to hardcode the amount of choices. So an option that include a For In statement is what I need.
Cheers
<Panel
position="500 0 -75"
rotation="180 180 0"
height="700"
width="504"
padding="125,125,0,0"
>
<Image image="Named File"></Image>
</Panel>
<Panel
position="500 0 -75"
rotation="180 180 0"
height="700"
width="504"
padding="100,100,0,0"
>
<Button colors="clear" onClick="function_Name"></Button>
</Panel>
<Button icon="Named File" colors="clear" onClick="function_Name"></Button>
You don't have to use the "clear" option for the "colors" attribute, but I'm putting my UI on a sideboard table, and that lets the image transparency work best for me. Any named color or RGB code should work there.
I've also found that this tends to stretch your image oddly. Workaround in next comment.