63 if (buttons.Count() > 0)
69 output.Insert(i,buttons);
81 for (
int i = 0; i < pInput.AlternativeCount(); i++)
83 pInput.SelectAlternative(i);
85 for (
int bk = 0; bk < pInput.BindKeyCount(); bk++)
87 if (pInput.CheckBindDevice(0, pInputDeviceType))
89 buttonIcons.Insert(
GetUApi().GetButtonIcon(pInput.Binding(bk)));
91 if (bk == pInput.BindKeyCount() - 1)
100 buttonIcons.Invert();
121 if (buttons.Count() == 0 )
126 for (
int i = 0; i < buttons.Count(); i++)
129 buttons.Get(i).Split(
":", parts);
131 if (parts.Count() < 2)
136 pImageSet.Insert(parts[1].SubstringInverted(parts[1], parts[1].Length() - 6, parts[1].Length()));
143 if (parts[2] ==
"cross")
149 if (parts[2] ==
"circle")
156 pIconName.Insert(parts[2]);
173 if (imageSets.Count() == 0)
178 string result =
string.Format(
"<image set=\"%1\" name=\"%2\" scale=\"%3\" />", imageSets.Get(0), iconNames.Get(0), pScale);
180 string divider =
" ";
183 divider =
string.
Format(
"\n%1\n", divider);
186 if (imageSets.Count() > 1)
189 for (
int i = 1; i < imageSets.Count(); i++)
191 result =
string.
Format(
"%1%2<image set=\"%3\" name=\"%4\" scale=\"%5\" />", result, divider, imageSets.Get(i), iconNames.Get(i), pScale);
195 return string.Format(
"%1 %2", result, pLocalizedDescription);
264 sorting_content.Insert(input_id);
265 sorted_actions.Insert(input_id);
269 if (sorting_content.Count() > 0)
271 sorting_content.Sort();
277 int count = sorted_actions.Count();
278 for (i = 0; i < count; i++)
proto native Input GetInput()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
array< string > TStringArray
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.