Offline
S2 wants us to play dota2 I think. GG
We are on Chinese project. We want all Chinese to know and play HON. Last week, We are happy to see the program can load Chinese set.
Now, we know that S2 wants to ban us. GG
new:
<!-- Language Combobox -->
<template name="sysbar_language_combobox">
<combobox
name="language_selector_combobox_{index}"
width="100%"
height="100%"
align="left"
valign="center"
color="invisible"
itemwidth="100%"
itemheight="2.2h"
cvar=""
maxlistheight="90h"
exteriorscrollbars="false"
scrolltexture="/ui/info/combobox.tga"
handleheight="100@" handlewidth="100%"
highlight="under"
highlightbordercolor="white"
onselect="If(!StringEmpty(this), Set(host_language, this));"
onmouseover="PlaySound('/shared/sounds/ui/button_over_02.wav');"
watch9="UIUpdateRegion"
ontrigger9="DoEvent(9);"
onevent9lua="UIManager.GetInterface('main'):HoNReg ionF('PopulateLanguageSelector', self)"
onshow="If(!StringEmpty(host_language) and StringEmpty(this), SetSelectedItemByValue(host_language, false));"
>
<instance name="sysbar_combobox_state" state="up" style="sysbar_btn_up" />
<instance name="sysbar_combobox_state" state="over" style="sysbar_btn_overdn" />
<instance name="sysbar_combobox_state" state="down" style="sysbar_btn_overdn" />
<widgetstate statename="listbg">
<frame height="+2.7h" y="-1.9h" texture="/ui/info/combobox_dropdown.tga" borderthickness="1.0h" color="white" noclick="1" />
</widgetstate>
<widgetstate statename="itembg">
<panel width="100%" noclick="1" />
</widgetstate>
<widgetstate statename="itemhighlight">
<panel width="100%" texture="/ui/info/header_bar_c.tga" noclick="1" >
<panel width="100%" height="100%" noclick="1" >
<image height="50%" width="32" align="left" valign="top" texture="/ui/info/header_bar_tl.tga" noclick="1"/>
<image height="50%" width="32" align="left" valign="bottom" texture="/ui/info/header_bar_bl.tga" noclick="1"/>
<image height="50%" width="32" align="right" valign="top" texture="/ui/info/header_bar_tr.tga" noclick="1"/>
<image height="50%" width="32" align="right" valign="bottom" texture="/ui/info/header_bar_br.tga" noclick="1"/>
</panel>
</panel>
</widgetstate>
</combobox>
</template>
old:
<!-- Language Combobox -->
<template name="sysbar_language_combobox">
<combobox
name="language_selector_combobox"
width="100%"
height="100%"
align="left"
valign="center"
color="invisible"
itemwidth="100%"
itemheight="2.2h"
cvar="host_language"
maxlistheight="90h"
exteriorscrollbars="false"
scrolltexture="/ui/info/combobox.tga"
handleheight="100@" handlewidth="100%"
highlight="under"
highlightbordercolor="white"
onselect=""
onmouseover="PlaySound('/shared/sounds/ui/button_over_02.wav');"
onload="
AddTemplateListItem('sysbar_combobox_lang_item', 'en', 'code', 'en', 'texture', '/ui/fe2/elements/flag_en.tga', 'label', 'lang_en');
if (
!cl_GarenaEnable,
Split(
AddTemplateListItem('sysbar_combobox_lang_item', 'fr', 'code', 'fr', 'texture', '/ui/fe2/elements/flag_fr.tga', 'label', 'lang_fr'),
AddTemplateListItem('sysbar_combobox_lang_item', 'de', 'code', 'de', 'texture', '/ui/fe2/elements/flag_de.tga', 'label', 'lang_de'),
AddTemplateListItem('sysbar_combobox_lang_item', 'br', 'code', 'br', 'texture', '/ui/fe2/elements/flag_br.tga', 'label', 'lang_br'),
AddTemplateListItem('sysbar_combobox_lang_item', 'es', 'code', 'es', 'texture', '/ui/fe2/elements/flag_es.tga', 'label', 'lang_es'),
AddTemplateListItem('sysbar_combobox_lang_item', 'ro', 'code', 'ro', 'texture', '/ui/fe2/elements/flag_ro.tga', 'label', 'lang_ro')
)
);
##
if (
cl_GarenaEnable,
AddTemplateListItem('sysbar_combobox_lang_item', 'vn', 'code', 'vn', 'texture', '/ui/fe2/elements/flag_vn.tga', 'label', 'lang_vn')
);
##
if (
!cl_GarenaEnable,
AddTemplateListItem('sysbar_combobox_lang_item', 'ru', 'code', 'ru', 'texture', '/ui/fe2/elements/flag_ru.tga', 'label', 'lang_ru')
);
if (
cl_GarenaEnable,
AddTemplateListItem('sysbar_combobox_lang_item', 'th', 'code', 'th', 'texture', '/ui/fe2/elements/flag_ta.tga', 'label', 'lang_ta')
);
"
>
<instance name="sysbar_combobox_state" state="up" style="sysbar_btn_up" />
<instance name="sysbar_combobox_state" state="over" style="sysbar_btn_overdn" />
<instance name="sysbar_combobox_state" state="down" style="sysbar_btn_overdn" />
<widgetstate statename="listbg">
<frame height="+2.7h" y="-1.9h" texture="/ui/info/combobox_dropdown.tga" borderthickness="1.0h" color="white" noclick="1" />
</widgetstate>
<widgetstate statename="itembg">
<panel width="100%" noclick="1" />
</widgetstate>
<widgetstate statename="itemhighlight">
<panel width="100%" texture="/ui/info/header_bar_c.tga" noclick="1" >
<panel width="100%" height="100%" noclick="1" >
<image height="50%" width="32" align="left" valign="top" texture="/ui/info/header_bar_tl.tga" noclick="1"/>
<image height="50%" width="32" align="left" valign="bottom" texture="/ui/info/header_bar_bl.tga" noclick="1"/>
<image height="50%" width="32" align="right" valign="top" texture="/ui/info/header_bar_tr.tga" noclick="1"/>
<image height="50%" width="32" align="right" valign="bottom" texture="/ui/info/header_bar_br.tga" noclick="1"/>
</panel>
</panel>
</widgetstate>
</combobox>
</template>
where is fking "onload" in new one! Who can tell me how it works!
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules