mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
suport multi line tips
This commit is contained in:
parent
9788708d4a
commit
2821e3f1a0
@ -5,6 +5,6 @@
|
|||||||
<scroll_bar_d x="right" y="0" w="14" h="100%" value="0"/>
|
<scroll_bar_d x="right" y="0" w="14" h="100%" value="0"/>
|
||||||
</mledit>
|
</mledit>
|
||||||
<button name="close" text="Close" focusable="true" x="c" y="m" w="128" h="30"/>
|
<button name="close" text="Close" focusable="true" x="c" y="m" w="128" h="30"/>
|
||||||
<mledit x="c" y="b:10" h="40%" w="90%" text="hello" wrap_word="false" keyboard="kb_foo" cancelable="true">
|
<mledit x="c" y="b:10" h="40%" w="90%" text="" style:empty:tips_text_color="#ff9900" tips="0123456789qwertyuiopasdfghjklzxcvbnm0123456789qwertyuiopasdfghjklzxcvbnm0123456789qwertyuiopasdfghjklzxcvbnm0123456789qwertyuiopasdfghjklzxcvbnm0123456789qwertyuiopasdfghjklzxcvbnm" wrap_word="false" keyboard="kb_foo" cancelable="true">
|
||||||
</mledit>
|
</mledit>
|
||||||
</window>
|
</window>
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
* 增加 [value 扩展函数](fscript_value.md)
|
* 增加 [value 扩展函数](fscript_value.md)
|
||||||
* 增加 [object 扩展函数](fscript_object.md)
|
* 增加 [object 扩展函数](fscript_object.md)
|
||||||
* 增加 [app_conf 扩展函数](fscript_app_conf.md)
|
* 增加 [app_conf 扩展函数](fscript_app_conf.md)
|
||||||
|
* 修改提示信息支持修改tips_text_color风格和多行显示(感谢智明提供补丁)
|
||||||
|
|
||||||
2021/01/10
|
2021/01/10
|
||||||
* 增加 [《fscript widget 扩展函数》](fscript_widget.md)
|
* 增加 [《fscript widget 扩展函数》](fscript_widget.md)
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
TK_CONST_DATA_ALIGN(const unsigned char data_a_b_c_any[]) = {
|
TK_CONST_DATA_ALIGN(const unsigned char data_a_b_c_any[]) = {
|
||||||
0x08,0x00,0x00,0x01,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x61,0x2d,0x62,0x2d,0x63,0x2e,0x61,0x6e,
|
0x09,0x00,0x00,0x01,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x61,0x2d,0x62,0x2d,0x63,0x2e,0x61,0x6e,
|
||||||
0x79,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x79,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x61,0x62,0x63,0x0a,0x00,0x00,0x00,0x00,};/*52*/
|
0x00,0x00,0x00,0x00,0x61,0x62,0x63,0x0a,0x00,0x00,0x00,0x00,};/*52*/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
TK_CONST_DATA_ALIGN(const unsigned char data_com_zlg_app_json[]) = {
|
TK_CONST_DATA_ALIGN(const unsigned char data_com_zlg_app_json[]) = {
|
||||||
0x08,0x00,0x03,0x01,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x63,0x6f,0x6d,0x2e,0x7a,0x6c,0x67,0x2e,
|
0x09,0x00,0x03,0x01,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x63,0x6f,0x6d,0x2e,0x7a,0x6c,0x67,0x2e,
|
||||||
0x61,0x70,0x70,0x2e,0x6a,0x73,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x61,0x70,0x70,0x2e,0x6a,0x73,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x7b,0x7d,0x0a,0x00,0x00,0x00,0x00,};/*51*/
|
0x00,0x00,0x00,0x00,0x7b,0x7d,0x0a,0x00,0x00,0x00,0x00,};/*51*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
TK_CONST_DATA_ALIGN(const unsigned char data_gpinyin_dat[]) = {
|
TK_CONST_DATA_ALIGN(const unsigned char data_gpinyin_dat[]) = {
|
||||||
0x08,0x00,0x04,0x01,0x9a,0x4d,0x10,0x00,0x00,0x00,0x00,0x00,0x67,0x70,0x69,0x6e,0x79,0x69,0x6e,0x2e,
|
0x09,0x00,0x04,0x01,0x9a,0x4d,0x10,0x00,0x00,0x00,0x00,0x00,0x67,0x70,0x69,0x6e,0x79,0x69,0x6e,0x2e,
|
||||||
0x64,0x61,0x74,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x64,0x61,0x74,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x9d,0x01,0x00,0x00,0xdf,0xb7,0x61,0xc1,0x64,0x41,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x08,0x00,0x00,0x00,0x9d,0x01,0x00,0x00,0xdf,0xb7,0x61,0xc1,0x64,0x41,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x61,0x41,0x49,0x00,0x00,0x00,0x00,0x00,0x5c,0x41,0x4e,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x61,0x41,0x49,0x00,0x00,0x00,0x00,0x00,0x5c,0x41,0x4e,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
TK_CONST_DATA_ALIGN(const unsigned char data_suggest_words_zh_cn_dat[]) = {
|
TK_CONST_DATA_ALIGN(const unsigned char data_suggest_words_zh_cn_dat[]) = {
|
||||||
0x08,0x00,0x04,0x01,0xc0,0xa1,0x03,0x00,0x00,0x00,0x00,0x00,0x73,0x75,0x67,0x67,0x65,0x73,0x74,0x5f,
|
0x09,0x00,0x04,0x01,0xc0,0xa1,0x03,0x00,0x00,0x00,0x00,0x00,0x73,0x75,0x67,0x67,0x65,0x73,0x74,0x5f,
|
||||||
0x77,0x6f,0x72,0x64,0x73,0x5f,0x7a,0x68,0x5f,0x63,0x6e,0x2e,0x64,0x61,0x74,0x00,0x00,0x00,0x00,0x00,
|
0x77,0x6f,0x72,0x64,0x73,0x5f,0x7a,0x68,0x5f,0x63,0x6e,0x2e,0x64,0x61,0x74,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5f,0x16,0x00,0x00,0x00,0x4e,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5f,0x16,0x00,0x00,0x00,0x4e,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x01,0x4e,0x00,0x00,0x2c,0x00,0x00,0x00,0x03,0x4e,0x00,0x00,0x62,0x00,0x00,0x00,0x07,0x4e,0x00,0x00,
|
0x01,0x4e,0x00,0x00,0x2c,0x00,0x00,0x00,0x03,0x4e,0x00,0x00,0x62,0x00,0x00,0x00,0x07,0x4e,0x00,0x00,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
TK_CONST_DATA_ALIGN(const unsigned char data_test_dat[]) = {
|
TK_CONST_DATA_ALIGN(const unsigned char data_test_dat[]) = {
|
||||||
0x08,0x00,0x04,0x01,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x74,0x65,0x73,0x74,0x2e,0x64,0x61,0x74,
|
0x09,0x00,0x04,0x01,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x74,0x65,0x73,0x74,0x2e,0x64,0x61,0x74,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x61,0x62,0x63,0x64,0x0a,0x00,0x00,0x00,0x00,};/*53*/
|
0x00,0x00,0x00,0x00,0x61,0x62,0x63,0x64,0x0a,0x00,0x00,0x00,0x00,};/*53*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
TK_CONST_DATA_ALIGN(const unsigned char data_test_json[]) = {
|
TK_CONST_DATA_ALIGN(const unsigned char data_test_json[]) = {
|
||||||
0x08,0x00,0x03,0x01,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x74,0x65,0x73,0x74,0x2e,0x6a,0x73,0x6f,
|
0x09,0x00,0x03,0x01,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x74,0x65,0x73,0x74,0x2e,0x6a,0x73,0x6f,
|
||||||
0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x7b,0x0a,0x20,0x20,0x22,0x6e,0x61,0x6d,0x65,0x22,0x3a,0x22,0x66,0x6f,0x72,0x20,
|
0x00,0x00,0x00,0x00,0x7b,0x0a,0x20,0x20,0x22,0x6e,0x61,0x6d,0x65,0x22,0x3a,0x22,0x66,0x6f,0x72,0x20,
|
||||||
0x74,0x65,0x73,0x74,0x22,0x0a,0x7d,0x0a,0x00,0x00,0x00,0x00,};/*72*/
|
0x74,0x65,0x73,0x74,0x22,0x0a,0x7d,0x0a,0x00,0x00,0x00,0x00,};/*72*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
TK_CONST_DATA_ALIGN(const unsigned char ui_mledit[]) = {
|
TK_CONST_DATA_ALIGN(const unsigned char ui_mledit[]) = {
|
||||||
0x04,0x00,0x01,0x01,0x14,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x6d,0x6c,0x65,0x64,0x69,0x74,0x00,0x00,
|
0x04,0x00,0x01,0x01,0xed,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x6d,0x6c,0x65,0x64,0x69,0x74,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x12,0x12,0x22,0x11,0x77,0x69,0x6e,0x64,0x6f,0x77,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x12,0x12,0x22,0x11,0x77,0x69,0x6e,0x64,0x6f,0x77,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
@ -37,7 +37,18 @@ TK_CONST_DATA_ALIGN(const unsigned char ui_mledit[]) = {
|
|||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5a,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x5a,0x00,
|
||||||
0x00,0x00,0x28,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,
|
0x00,0x00,0x28,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,
|
||||||
0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x63,0x2c,0x79,0x3d,0x62,0x3a,0x31,0x30,0x2c,0x77,0x3d,0x39,
|
0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x63,0x2c,0x79,0x3d,0x62,0x3a,0x31,0x30,0x2c,0x77,0x3d,0x39,
|
||||||
0x30,0x25,0x2c,0x68,0x3d,0x34,0x30,0x25,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x68,0x65,0x6c,0x6c,0x6f,
|
0x30,0x25,0x2c,0x68,0x3d,0x34,0x30,0x25,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x00,0x73,0x74,0x79,0x6c,
|
||||||
0x00,0x77,0x72,0x61,0x70,0x5f,0x77,0x6f,0x72,0x64,0x00,0x66,0x61,0x6c,0x73,0x65,0x00,0x6b,0x65,0x79,
|
0x65,0x3a,0x65,0x6d,0x70,0x74,0x79,0x3a,0x74,0x69,0x70,0x73,0x5f,0x74,0x65,0x78,0x74,0x5f,0x63,0x6f,
|
||||||
0x62,0x6f,0x61,0x72,0x64,0x00,0x6b,0x62,0x5f,0x66,0x6f,0x6f,0x00,0x63,0x61,0x6e,0x63,0x65,0x6c,0x61,
|
0x6c,0x6f,0x72,0x00,0x23,0x66,0x66,0x39,0x39,0x30,0x30,0x00,0x74,0x69,0x70,0x73,0x00,0x30,0x31,0x32,
|
||||||
0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};/*836*/
|
0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x71,0x77,0x65,0x72,0x74,0x79,0x75,0x69,0x6f,0x70,0x61,0x73,0x64,
|
||||||
|
0x66,0x67,0x68,0x6a,0x6b,0x6c,0x7a,0x78,0x63,0x76,0x62,0x6e,0x6d,0x30,0x31,0x32,0x33,0x34,0x35,0x36,
|
||||||
|
0x37,0x38,0x39,0x71,0x77,0x65,0x72,0x74,0x79,0x75,0x69,0x6f,0x70,0x61,0x73,0x64,0x66,0x67,0x68,0x6a,
|
||||||
|
0x6b,0x6c,0x7a,0x78,0x63,0x76,0x62,0x6e,0x6d,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x71,
|
||||||
|
0x77,0x65,0x72,0x74,0x79,0x75,0x69,0x6f,0x70,0x61,0x73,0x64,0x66,0x67,0x68,0x6a,0x6b,0x6c,0x7a,0x78,
|
||||||
|
0x63,0x76,0x62,0x6e,0x6d,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x71,0x77,0x65,0x72,0x74,
|
||||||
|
0x79,0x75,0x69,0x6f,0x70,0x61,0x73,0x64,0x66,0x67,0x68,0x6a,0x6b,0x6c,0x7a,0x78,0x63,0x76,0x62,0x6e,
|
||||||
|
0x6d,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x71,0x77,0x65,0x72,0x74,0x79,0x75,0x69,0x6f,
|
||||||
|
0x70,0x61,0x73,0x64,0x66,0x67,0x68,0x6a,0x6b,0x6c,0x7a,0x78,0x63,0x76,0x62,0x6e,0x6d,0x00,0x77,0x72,
|
||||||
|
0x61,0x70,0x5f,0x77,0x6f,0x72,0x64,0x00,0x66,0x61,0x6c,0x73,0x65,0x00,0x6b,0x65,0x79,0x62,0x6f,0x61,
|
||||||
|
0x72,0x64,0x00,0x6b,0x62,0x5f,0x66,0x6f,0x6f,0x00,0x63,0x61,0x6e,0x63,0x65,0x6c,0x61,0x62,0x6c,0x65,
|
||||||
|
0x00,0x74,0x72,0x75,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};/*1053*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
TK_CONST_DATA_ALIGN(const unsigned char ui_test_fscript[]) = {
|
TK_CONST_DATA_ALIGN(const unsigned char ui_test_fscript[]) = {
|
||||||
0x04,0x00,0x01,0x01,0xb6,0x13,0x00,0x00,0x00,0x00,0x00,0x00,0x74,0x65,0x73,0x74,0x5f,0x66,0x73,0x63,
|
0x04,0x00,0x01,0x01,0x8d,0x13,0x00,0x00,0x00,0x00,0x00,0x00,0x74,0x65,0x73,0x74,0x5f,0x66,0x73,0x63,
|
||||||
0x72,0x69,0x70,0x74,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x72,0x69,0x70,0x74,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x12,0x12,0x22,0x11,0x77,0x69,0x6e,0x64,0x6f,0x77,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x12,0x12,0x22,0x11,0x77,0x69,0x6e,0x64,0x6f,0x77,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
@ -83,174 +83,172 @@ TK_CONST_DATA_ALIGN(const unsigned char ui_test_fscript[]) = {
|
|||||||
0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x74,0x65,0x78,0x74,
|
0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x74,0x65,0x78,0x74,
|
||||||
0x00,0x42,0x75,0x74,0x74,0x6f,0x6e,0x73,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x77,0x69,
|
0x00,0x42,0x75,0x74,0x74,0x6f,0x6e,0x73,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x77,0x69,
|
||||||
0x6e,0x20,0x3d,0x20,0x6f,0x70,0x65,0x6e,0x28,0x62,0x75,0x74,0x74,0x6f,0x6e,0x5f,0x66,0x73,0x63,0x72,
|
0x6e,0x20,0x3d,0x20,0x6f,0x70,0x65,0x6e,0x28,0x62,0x75,0x74,0x74,0x6f,0x6e,0x5f,0x66,0x73,0x63,0x72,
|
||||||
0x69,0x70,0x74,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x73,0x73,0x65,
|
0x69,0x70,0x74,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x73,0x73,0x65,0x72,
|
||||||
0x72,0x74,0x28,0x21,0x76,0x61,0x6c,0x75,0x65,0x5f,0x69,0x73,0x5f,0x6e,0x75,0x6c,0x6c,0x28,0x77,0x69,
|
0x74,0x28,0x21,0x76,0x61,0x6c,0x75,0x65,0x5f,0x69,0x73,0x5f,0x6e,0x75,0x6c,0x6c,0x28,0x77,0x69,0x6e,
|
||||||
0x6e,0x29,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,
|
0x29,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,
|
||||||
0x74,0x5f,0x73,0x65,0x74,0x28,0x77,0x69,0x6e,0x2c,0x20,0x63,0x6c,0x6f,0x73,0x65,0x2e,0x74,0x65,0x78,
|
0x73,0x65,0x74,0x28,0x77,0x69,0x6e,0x2c,0x20,0x63,0x6c,0x6f,0x73,0x65,0x2e,0x74,0x65,0x78,0x74,0x2c,
|
||||||
0x74,0x2c,0x20,0x22,0x42,0x61,0x63,0x6b,0x22,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
0x20,0x22,0x42,0x61,0x63,0x6b,0x22,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,
|
||||||
|
0x73,0x73,0x65,0x72,0x74,0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x77,0x69,0x6e,
|
||||||
|
0x2c,0x20,0x63,0x6c,0x6f,0x73,0x65,0x2e,0x74,0x65,0x78,0x74,0x29,0x20,0x3d,0x3d,0x20,0x22,0x42,0x61,
|
||||||
|
0x63,0x6b,0x22,0x29,0x3b,0x00,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,
|
||||||
|
0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x74,0x65,0x78,0x74,0x00,0x54,0x65,0x73,
|
||||||
|
0x74,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,
|
||||||
|
0x74,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2c,0x20,0x6c,0x61,0x62,0x65,0x6c,0x2e,0x74,0x65,0x78,0x74,
|
||||||
|
0x2c,0x20,0x22,0x48,0x65,0x6c,0x6c,0x6f,0x22,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
0x20,0x20,0x61,0x73,0x73,0x65,0x72,0x74,0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,
|
0x20,0x20,0x61,0x73,0x73,0x65,0x72,0x74,0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,
|
||||||
0x77,0x69,0x6e,0x2c,0x20,0x63,0x6c,0x6f,0x73,0x65,0x2e,0x74,0x65,0x78,0x74,0x29,0x20,0x3d,0x3d,0x20,
|
0x70,0x61,0x72,0x65,0x6e,0x74,0x2c,0x20,0x6c,0x61,0x62,0x65,0x6c,0x2e,0x74,0x65,0x78,0x74,0x29,0x20,
|
||||||
0x22,0x42,0x61,0x63,0x6b,0x22,0x29,0x3b,0x00,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,
|
0x3d,0x3d,0x20,0x22,0x48,0x65,0x6c,0x6c,0x6f,0x22,0x29,0x3b,0x0a,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,0x77,0x69,0x6e,0x64,0x6f,
|
||||||
|
0x77,0x2c,0x20,0x76,0x69,0x65,0x77,0x2e,0x6c,0x61,0x62,0x65,0x6c,0x2e,0x74,0x65,0x78,0x74,0x2c,0x20,
|
||||||
|
0x22,0x48,0x65,0x6c,0x6c,0x6f,0x20,0x57,0x6f,0x72,0x6c,0x64,0x22,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x73,0x73,0x65,0x72,0x74,0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,
|
||||||
|
0x67,0x65,0x74,0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2c,0x20,0x76,0x69,0x65,0x77,0x2e,0x6c,0x61,0x62,
|
||||||
|
0x65,0x6c,0x2e,0x74,0x65,0x78,0x74,0x29,0x20,0x3d,0x3d,0x20,0x22,0x48,0x65,0x6c,0x6c,0x6f,0x20,0x57,
|
||||||
|
0x6f,0x72,0x6c,0x64,0x22,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x0a,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,
|
||||||
|
0x73,0x65,0x6c,0x66,0x2c,0x20,0x74,0x65,0x78,0x74,0x2c,0x20,0x22,0x54,0x65,0x73,0x74,0x2e,0x2e,0x2e,
|
||||||
|
0x22,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x73,0x73,0x65,0x72,0x74,
|
||||||
|
0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x73,0x65,0x6c,0x66,0x2c,0x20,0x74,0x65,
|
||||||
|
0x78,0x74,0x29,0x20,0x3d,0x3d,0x20,0x22,0x54,0x65,0x73,0x74,0x2e,0x2e,0x2e,0x22,0x29,0x3b,0x00,0x00,
|
||||||
|
0x00,0x76,0x69,0x65,0x77,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x64,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,
|
||||||
|
0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x30,0x2c,0x79,0x3d,0x30,0x2c,0x77,0x3d,0x31,
|
||||||
|
0x30,0x30,0x25,0x2c,0x68,0x3d,0x31,0x30,0x30,0x25,0x29,0x00,0x6e,0x61,0x6d,0x65,0x00,0x76,0x69,0x65,
|
||||||
|
0x77,0x00,0x63,0x68,0x69,0x6c,0x64,0x72,0x65,0x6e,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,
|
||||||
|
0x66,0x61,0x75,0x6c,0x74,0x28,0x63,0x3d,0x32,0x2c,0x72,0x3d,0x31,0x2c,0x6d,0x3d,0x32,0x2c,0x73,0x3d,
|
||||||
|
0x32,0x29,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,
|
||||||
|
0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x74,0x65,0x78,0x74,0x00,0x49,0x6e,0x63,0x00,0x6f,0x6e,0x3a,0x63,
|
||||||
|
0x6c,0x69,0x63,0x6b,0x00,0x61,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x6f,0x6b,
|
||||||
|
0x75,0x70,0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2c,0x20,0x62,0x61,0x72,0x2c,0x20,0x74,0x72,0x75,0x65,
|
||||||
|
0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,
|
||||||
|
0x5f,0x67,0x65,0x74,0x28,0x61,0x2c,0x20,0x22,0x76,0x61,0x6c,0x75,0x65,0x22,0x29,0x0a,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x28,0x62,0x20,0x3c,0x3d,0x20,0x39,0x30,0x29,0x20,0x7b,0x0a,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,
|
||||||
|
0x61,0x2c,0x20,0x22,0x76,0x61,0x6c,0x75,0x65,0x22,0x2c,0x20,0x62,0x20,0x2b,0x20,0x31,0x30,0x29,0x0a,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x74,0x65,0x78,0x74,0x00,
|
0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x74,0x65,0x78,0x74,0x00,
|
||||||
0x54,0x65,0x73,0x74,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x77,0x69,0x64,0x67,0x65,0x74,
|
0x44,0x65,0x63,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x61,0x20,0x3d,0x20,0x77,0x69,0x64,
|
||||||
0x5f,0x73,0x65,0x74,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2c,0x20,0x6c,0x61,0x62,0x65,0x6c,0x2e,0x74,
|
0x67,0x65,0x74,0x5f,0x6c,0x6f,0x6f,0x6b,0x75,0x70,0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2c,0x20,0x62,
|
||||||
0x65,0x78,0x74,0x2c,0x20,0x22,0x48,0x65,0x6c,0x6c,0x6f,0x22,0x29,0x3b,0x0d,0x0a,0x20,0x20,0x20,0x20,
|
0x61,0x72,0x2c,0x20,0x74,0x72,0x75,0x65,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x20,
|
||||||
0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x73,0x73,0x65,0x72,0x74,0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,
|
0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x61,0x2c,0x20,0x22,0x76,0x61,0x6c,
|
||||||
0x67,0x65,0x74,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2c,0x20,0x6c,0x61,0x62,0x65,0x6c,0x2e,0x74,0x65,
|
0x75,0x65,0x22,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x28,0x62,0x20,0x3e,0x3d,
|
||||||
0x78,0x74,0x29,0x20,0x3d,0x3d,0x20,0x22,0x48,0x65,0x6c,0x6c,0x6f,0x22,0x29,0x3b,0x0d,0x0a,0x0d,0x0a,
|
0x20,0x31,0x30,0x29,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,
|
||||||
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,
|
0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,0x61,0x2c,0x20,0x22,0x76,0x61,0x6c,0x75,0x65,0x22,0x2c,0x20,
|
||||||
0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2c,0x20,0x76,0x69,0x65,0x77,0x2e,0x6c,0x61,0x62,0x65,0x6c,0x2e,
|
0x62,0x20,0x2d,0x20,0x31,0x30,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x00,0x00,0x00,
|
||||||
0x74,0x65,0x78,0x74,0x2c,0x20,0x22,0x48,0x65,0x6c,0x6c,0x6f,0x20,0x57,0x6f,0x72,0x6c,0x64,0x22,0x29,
|
0x00,0x76,0x69,0x65,0x77,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x3b,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x73,0x73,0x65,0x72,0x74,0x28,
|
|
||||||
0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2c,0x20,0x76,
|
|
||||||
0x69,0x65,0x77,0x2e,0x6c,0x61,0x62,0x65,0x6c,0x2e,0x74,0x65,0x78,0x74,0x29,0x20,0x3d,0x3d,0x20,0x22,
|
|
||||||
0x48,0x65,0x6c,0x6c,0x6f,0x20,0x57,0x6f,0x72,0x6c,0x64,0x22,0x29,0x3b,0x0d,0x0a,0x20,0x20,0x20,0x20,
|
|
||||||
0x20,0x20,0x20,0x20,0x20,0x20,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,
|
|
||||||
0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,0x73,0x65,0x6c,0x66,0x2c,0x20,0x74,0x65,0x78,0x74,0x2c,
|
|
||||||
0x20,0x22,0x54,0x65,0x73,0x74,0x2e,0x2e,0x2e,0x22,0x29,0x3b,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
|
|
||||||
0x20,0x20,0x20,0x20,0x61,0x73,0x73,0x65,0x72,0x74,0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,
|
|
||||||
0x74,0x28,0x73,0x65,0x6c,0x66,0x2c,0x20,0x74,0x65,0x78,0x74,0x29,0x20,0x3d,0x3d,0x20,0x22,0x54,0x65,
|
|
||||||
0x73,0x74,0x2e,0x2e,0x2e,0x22,0x29,0x3b,0x00,0x00,0x00,0x76,0x69,0x65,0x77,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x73,
|
0x00,0x64,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,
|
||||||
0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,
|
0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x30,0x2c,0x79,0x3d,0x30,0x2c,0x77,0x3d,0x31,
|
||||||
0x3d,0x30,0x2c,0x79,0x3d,0x30,0x2c,0x77,0x3d,0x31,0x30,0x30,0x25,0x2c,0x68,0x3d,0x31,0x30,0x30,0x25,
|
0x30,0x30,0x25,0x2c,0x68,0x3d,0x31,0x30,0x30,0x25,0x29,0x00,0x6e,0x61,0x6d,0x65,0x00,0x76,0x69,0x65,
|
||||||
0x29,0x00,0x6e,0x61,0x6d,0x65,0x00,0x76,0x69,0x65,0x77,0x00,0x63,0x68,0x69,0x6c,0x64,0x72,0x65,0x6e,
|
0x77,0x00,0x63,0x68,0x69,0x6c,0x64,0x72,0x65,0x6e,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,
|
||||||
0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x63,0x3d,0x32,0x2c,
|
0x66,0x61,0x75,0x6c,0x74,0x28,0x63,0x3d,0x32,0x2c,0x72,0x3d,0x31,0x2c,0x6d,0x3d,0x32,0x2c,0x73,0x3d,
|
||||||
0x72,0x3d,0x31,0x2c,0x6d,0x3d,0x32,0x2c,0x73,0x3d,0x32,0x29,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,
|
0x32,0x29,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,
|
||||||
0x00,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x74,0x65,0x78,
|
0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x74,0x65,0x78,0x74,0x00,0x43,0x72,0x65,0x61,0x74,0x65,0x00,0x6f,
|
||||||
0x74,0x00,0x49,0x6e,0x63,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x61,0x20,0x3d,0x20,0x77,
|
0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x61,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x6c,
|
||||||
0x69,0x64,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x6f,0x6b,0x75,0x70,0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2c,
|
0x6f,0x6f,0x6b,0x75,0x70,0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2c,0x20,0x66,0x6f,0x6f,0x62,0x61,0x72,
|
||||||
0x20,0x62,0x61,0x72,0x2c,0x20,0x74,0x72,0x75,0x65,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
0x2c,0x20,0x74,0x72,0x75,0x65,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x28,0x76,
|
||||||
0x20,0x62,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x61,0x2c,0x20,0x22,
|
0x61,0x6c,0x75,0x65,0x5f,0x69,0x73,0x5f,0x6e,0x75,0x6c,0x6c,0x28,0x61,0x29,0x29,0x20,0x7b,0x0a,0x20,
|
||||||
0x76,0x61,0x6c,0x75,0x65,0x22,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x28,
|
|
||||||
0x62,0x20,0x3c,0x3d,0x20,0x39,0x30,0x29,0x20,0x7b,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
|
||||||
0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,0x61,0x2c,0x20,0x22,0x76,0x61,0x6c,
|
|
||||||
0x75,0x65,0x22,0x2c,0x20,0x62,0x20,0x2b,0x20,0x31,0x30,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
|
|
||||||
0x20,0x20,0x7d,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,
|
|
||||||
0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x74,0x65,0x78,0x74,0x00,0x44,0x65,0x63,0x00,0x6f,0x6e,
|
|
||||||
0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x61,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x6c,0x6f,
|
|
||||||
0x6f,0x6b,0x75,0x70,0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2c,0x20,0x62,0x61,0x72,0x2c,0x20,0x74,0x72,
|
|
||||||
0x75,0x65,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x20,0x3d,0x20,0x77,0x69,0x64,
|
|
||||||
0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x61,0x2c,0x20,0x22,0x76,0x61,0x6c,0x75,0x65,0x22,0x29,0x0d,
|
|
||||||
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x28,0x62,0x20,0x3e,0x3d,0x20,0x31,0x30,0x29,
|
|
||||||
0x20,0x7b,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,
|
|
||||||
0x5f,0x73,0x65,0x74,0x28,0x61,0x2c,0x20,0x22,0x76,0x61,0x6c,0x75,0x65,0x22,0x2c,0x20,0x62,0x20,0x2d,
|
|
||||||
0x20,0x31,0x30,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x00,0x00,0x00,0x00,0x76,
|
|
||||||
0x69,0x65,0x77,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x64,
|
|
||||||
0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,
|
|
||||||
0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x30,0x2c,0x79,0x3d,0x30,0x2c,0x77,0x3d,0x31,0x30,0x30,
|
|
||||||
0x25,0x2c,0x68,0x3d,0x31,0x30,0x30,0x25,0x29,0x00,0x6e,0x61,0x6d,0x65,0x00,0x76,0x69,0x65,0x77,0x00,
|
|
||||||
0x63,0x68,0x69,0x6c,0x64,0x72,0x65,0x6e,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,
|
|
||||||
0x75,0x6c,0x74,0x28,0x63,0x3d,0x32,0x2c,0x72,0x3d,0x31,0x2c,0x6d,0x3d,0x32,0x2c,0x73,0x3d,0x32,0x29,
|
|
||||||
0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,
|
|
||||||
0x74,0x72,0x75,0x65,0x00,0x74,0x65,0x78,0x74,0x00,0x43,0x72,0x65,0x61,0x74,0x65,0x00,0x6f,0x6e,0x3a,
|
|
||||||
0x63,0x6c,0x69,0x63,0x6b,0x00,0x61,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x6f,
|
|
||||||
0x6b,0x75,0x70,0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2c,0x20,0x66,0x6f,0x6f,0x62,0x61,0x72,0x2c,0x20,
|
|
||||||
0x74,0x72,0x75,0x65,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x28,0x76,0x61,
|
|
||||||
0x6c,0x75,0x65,0x5f,0x69,0x73,0x5f,0x6e,0x75,0x6c,0x6c,0x28,0x61,0x29,0x29,0x20,0x7b,0x0d,0x0a,0x20,
|
|
||||||
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,
|
||||||
0x63,0x72,0x65,0x61,0x74,0x65,0x28,0x22,0x6c,0x61,0x62,0x65,0x6c,0x22,0x2c,0x20,0x77,0x69,0x6e,0x64,
|
0x63,0x72,0x65,0x61,0x74,0x65,0x28,0x22,0x6c,0x61,0x62,0x65,0x6c,0x22,0x2c,0x20,0x77,0x69,0x6e,0x64,
|
||||||
0x6f,0x77,0x2e,0x76,0x69,0x65,0x77,0x2c,0x20,0x30,0x2c,0x20,0x30,0x2c,0x20,0x30,0x2c,0x20,0x30,0x29,
|
0x6f,0x77,0x2e,0x76,0x69,0x65,0x77,0x2c,0x20,0x30,0x2c,0x20,0x30,0x2c,0x20,0x30,0x2c,0x20,0x30,0x29,
|
||||||
0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x73,0x73,0x65,0x72,0x74,0x28,0x21,
|
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x73,0x73,0x65,0x72,0x74,0x28,0x21,0x76,
|
||||||
0x76,0x61,0x6c,0x75,0x65,0x5f,0x69,0x73,0x5f,0x6e,0x75,0x6c,0x6c,0x28,0x61,0x29,0x29,0x0d,0x0a,0x0d,
|
0x61,0x6c,0x75,0x65,0x5f,0x69,0x73,0x5f,0x6e,0x75,0x6c,0x6c,0x28,0x61,0x29,0x29,0x0a,0x0a,0x20,0x20,
|
||||||
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,
|
|
||||||
0x74,0x28,0x61,0x2c,0x20,0x74,0x65,0x78,0x74,0x2c,0x20,0x22,0x44,0x79,0x6e,0x61,0x6d,0x69,0x63,0x20,
|
|
||||||
0x63,0x72,0x65,0x61,0x74,0x65,0x64,0x22,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
|
||||||
0x20,0x61,0x73,0x73,0x65,0x72,0x74,0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x61,
|
|
||||||
0x2c,0x20,0x74,0x65,0x78,0x74,0x29,0x20,0x3d,0x3d,0x20,0x22,0x44,0x79,0x6e,0x61,0x6d,0x69,0x63,0x20,
|
|
||||||
0x63,0x72,0x65,0x61,0x74,0x65,0x64,0x22,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
|
||||||
0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,0x61,0x2c,0x20,0x6e,0x61,0x6d,0x65,0x2c,
|
|
||||||
0x20,0x22,0x66,0x6f,0x6f,0x62,0x61,0x72,0x22,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
|
||||||
0x20,0x20,0x61,0x73,0x73,0x65,0x72,0x74,0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,
|
|
||||||
0x61,0x2c,0x20,0x6e,0x61,0x6d,0x65,0x29,0x20,0x3d,0x3d,0x20,0x22,0x66,0x6f,0x6f,0x62,0x61,0x72,0x22,
|
|
||||||
0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x20,0x65,0x6c,0x73,0x65,0x20,0x7b,0x0d,
|
|
||||||
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x70,0x72,0x69,0x6e,0x74,0x28,0x22,0x66,0x6f,
|
|
||||||
0x6f,0x62,0x61,0x72,0x20,0x65,0x78,0x69,0x73,0x74,0x22,0x29,0x3b,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,
|
|
||||||
0x20,0x20,0x20,0x7d,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,0x75,0x73,
|
|
||||||
0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x74,0x65,0x78,0x74,0x00,0x44,0x65,0x73,0x74,0x72,
|
|
||||||
0x6f,0x79,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x61,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,
|
|
||||||
0x65,0x74,0x5f,0x6c,0x6f,0x6f,0x6b,0x75,0x70,0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2c,0x20,0x66,0x6f,
|
|
||||||
0x6f,0x62,0x61,0x72,0x2c,0x20,0x74,0x72,0x75,0x65,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
|
||||||
0x20,0x69,0x66,0x28,0x21,0x76,0x61,0x6c,0x75,0x65,0x5f,0x69,0x73,0x5f,0x6e,0x75,0x6c,0x6c,0x28,0x61,
|
|
||||||
0x29,0x29,0x20,0x7b,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,
|
|
||||||
0x65,0x74,0x5f,0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x28,0x61,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,
|
|
||||||
0x20,0x20,0x20,0x7d,0x20,0x65,0x6c,0x73,0x65,0x20,0x7b,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
|
||||||
0x20,0x20,0x20,0x70,0x72,0x69,0x6e,0x74,0x28,0x22,0x6e,0x6f,0x74,0x20,0x66,0x6f,0x75,0x6e,0x64,0x20,
|
|
||||||
0x66,0x6f,0x6f,0x62,0x61,0x72,0x22,0x29,0x3b,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,
|
|
||||||
0x00,0x00,0x00,0x00,0x76,0x69,0x65,0x77,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,
|
|
||||||
0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x30,0x2c,0x79,0x3d,0x30,0x2c,
|
|
||||||
0x77,0x3d,0x31,0x30,0x30,0x25,0x2c,0x68,0x3d,0x31,0x30,0x30,0x25,0x29,0x00,0x6e,0x61,0x6d,0x65,0x00,
|
|
||||||
0x76,0x69,0x65,0x77,0x00,0x63,0x68,0x69,0x6c,0x64,0x72,0x65,0x6e,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,
|
|
||||||
0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x63,0x3d,0x32,0x2c,0x72,0x3d,0x31,0x2c,0x6d,0x3d,0x32,
|
|
||||||
0x2c,0x73,0x3d,0x32,0x29,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,0x75,0x73,
|
|
||||||
0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x63,
|
|
||||||
0x6c,0x6f,0x73,0x65,0x28,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x43,0x6c,0x6f,0x73,0x65,0x00,0x00,0x00,
|
|
||||||
0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,
|
|
||||||
0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x71,0x75,0x69,0x74,0x28,0x29,0x00,0x74,
|
|
||||||
0x65,0x78,0x74,0x00,0x51,0x75,0x69,0x74,0x00,0x00,0x00,0x00,0x76,0x69,0x65,0x77,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x64,0x00,0x00,0x00,
|
|
||||||
0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,
|
|
||||||
0x78,0x3d,0x30,0x2c,0x79,0x3d,0x30,0x2c,0x77,0x3d,0x31,0x30,0x30,0x25,0x2c,0x68,0x3d,0x31,0x30,0x30,
|
|
||||||
0x25,0x29,0x00,0x6e,0x61,0x6d,0x65,0x00,0x76,0x69,0x65,0x77,0x00,0x63,0x68,0x69,0x6c,0x64,0x72,0x65,
|
|
||||||
0x6e,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x63,0x3d,0x32,
|
|
||||||
0x2c,0x72,0x3d,0x31,0x2c,0x6d,0x3d,0x32,0x2c,0x73,0x3d,0x32,0x29,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,
|
|
||||||
0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
|
||||||
0x00,0x00,0x00,0x6e,0x61,0x6d,0x65,0x00,0x74,0x69,0x6d,0x65,0x72,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,
|
|
||||||
0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x73,0x74,
|
|
||||||
0x61,0x72,0x74,0x5f,0x74,0x69,0x6d,0x65,0x72,0x28,0x31,0x30,0x30,0x29,0x00,0x74,0x65,0x78,0x74,0x00,
|
|
||||||
0x53,0x74,0x61,0x72,0x74,0x20,0x54,0x69,0x6d,0x65,0x72,0x00,0x6f,0x6e,0x3a,0x74,0x69,0x6d,0x65,0x72,
|
|
||||||
0x00,0x61,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x6f,0x6b,0x75,0x70,0x28,0x77,
|
|
||||||
0x69,0x6e,0x64,0x6f,0x77,0x2c,0x20,0x62,0x61,0x72,0x2c,0x20,0x74,0x72,0x75,0x65,0x29,0x0d,0x0a,0x20,
|
|
||||||
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,
|
|
||||||
0x74,0x28,0x61,0x2c,0x20,0x22,0x76,0x61,0x6c,0x75,0x65,0x22,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,
|
|
||||||
0x20,0x20,0x20,0x69,0x66,0x28,0x62,0x20,0x3c,0x20,0x31,0x30,0x30,0x29,0x20,0x7b,0x0d,0x0a,0x20,0x20,
|
|
||||||
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,0x61,
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,0x61,
|
||||||
0x2c,0x20,0x22,0x76,0x61,0x6c,0x75,0x65,0x22,0x2c,0x20,0x62,0x20,0x2b,0x20,0x31,0x29,0x0d,0x0a,0x20,
|
0x2c,0x20,0x74,0x65,0x78,0x74,0x2c,0x20,0x22,0x44,0x79,0x6e,0x61,0x6d,0x69,0x63,0x20,0x63,0x72,0x65,
|
||||||
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x20,0x65,0x6c,0x73,0x65,0x20,0x7b,0x0d,0x0a,0x20,0x20,0x20,
|
0x61,0x74,0x65,0x64,0x22,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x73,0x73,
|
||||||
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,0x61,0x2c,
|
0x65,0x72,0x74,0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x61,0x2c,0x20,0x74,0x65,
|
||||||
0x20,0x22,0x76,0x61,0x6c,0x75,0x65,0x22,0x2c,0x20,0x30,0x29,0x0d,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
|
0x78,0x74,0x29,0x20,0x3d,0x3d,0x20,0x22,0x44,0x79,0x6e,0x61,0x6d,0x69,0x63,0x20,0x63,0x72,0x65,0x61,
|
||||||
0x20,0x20,0x20,0x20,0x73,0x74,0x6f,0x70,0x5f,0x74,0x69,0x6d,0x65,0x72,0x28,0x29,0x0d,0x0a,0x20,0x20,
|
0x74,0x65,0x64,0x22,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,
|
||||||
0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,
|
0x65,0x74,0x5f,0x73,0x65,0x74,0x28,0x61,0x2c,0x20,0x6e,0x61,0x6d,0x65,0x2c,0x20,0x22,0x66,0x6f,0x6f,
|
||||||
|
0x62,0x61,0x72,0x22,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x73,0x73,0x65,
|
||||||
|
0x72,0x74,0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x61,0x2c,0x20,0x6e,0x61,0x6d,
|
||||||
|
0x65,0x29,0x20,0x3d,0x3d,0x20,0x22,0x66,0x6f,0x6f,0x62,0x61,0x72,0x22,0x29,0x0a,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x7d,0x20,0x65,0x6c,0x73,0x65,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x70,0x72,0x69,0x6e,0x74,0x28,0x22,0x66,0x6f,0x6f,0x62,0x61,0x72,0x20,0x65,0x78,0x69,
|
||||||
|
0x73,0x74,0x22,0x29,0x3b,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x00,0x00,0x00,0x62,0x75,
|
||||||
|
0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,
|
||||||
0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,
|
0x00,0x74,0x65,0x78,0x74,0x00,0x44,0x65,0x73,0x74,0x72,0x6f,0x79,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,
|
||||||
0x6b,0x00,0x73,0x74,0x6f,0x70,0x5f,0x74,0x69,0x6d,0x65,0x72,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,
|
0x63,0x6b,0x00,0x61,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x6c,0x6f,0x6f,0x6b,0x75,0x70,
|
||||||
0x74,0x69,0x6d,0x65,0x72,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x53,0x74,0x6f,0x70,0x20,0x54,0x69,0x6d,
|
0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2c,0x20,0x66,0x6f,0x6f,0x62,0x61,0x72,0x2c,0x20,0x74,0x72,0x75,
|
||||||
0x65,0x72,0x00,0x00,0x00,0x00,0x76,0x69,0x65,0x77,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x65,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x28,0x21,0x76,0x61,0x6c,0x75,0x65,
|
||||||
|
0x5f,0x69,0x73,0x5f,0x6e,0x75,0x6c,0x6c,0x28,0x61,0x29,0x29,0x20,0x7b,0x0a,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x28,
|
||||||
|
0x61,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x20,0x65,0x6c,0x73,0x65,0x20,0x7b,0x0a,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x70,0x72,0x69,0x6e,0x74,0x28,0x22,0x6e,0x6f,0x74,
|
||||||
|
0x20,0x66,0x6f,0x75,0x6e,0x64,0x20,0x66,0x6f,0x6f,0x62,0x61,0x72,0x22,0x29,0x3b,0x0a,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x7d,0x00,0x00,0x00,0x00,0x76,0x69,0x65,0x77,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x73,0x65,
|
||||||
0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x30,0x2c,0x79,0x3d,
|
0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,
|
||||||
0x30,0x2c,0x77,0x3d,0x31,0x30,0x30,0x25,0x2c,0x68,0x3d,0x31,0x30,0x30,0x25,0x29,0x00,0x6e,0x61,0x6d,
|
0x30,0x2c,0x79,0x3d,0x30,0x2c,0x77,0x3d,0x31,0x30,0x30,0x25,0x2c,0x68,0x3d,0x31,0x30,0x30,0x25,0x29,
|
||||||
0x65,0x00,0x76,0x69,0x65,0x77,0x00,0x63,0x68,0x69,0x6c,0x64,0x72,0x65,0x6e,0x5f,0x6c,0x61,0x79,0x6f,
|
0x00,0x6e,0x61,0x6d,0x65,0x00,0x76,0x69,0x65,0x77,0x00,0x63,0x68,0x69,0x6c,0x64,0x72,0x65,0x6e,0x5f,
|
||||||
0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x63,0x3d,0x32,0x2c,0x72,0x3d,0x31,0x2c,0x6d,
|
0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x63,0x3d,0x32,0x2c,0x72,
|
||||||
0x3d,0x32,0x2c,0x73,0x3d,0x32,0x29,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,
|
0x3d,0x31,0x2c,0x6d,0x3d,0x32,0x2c,0x73,0x3d,0x32,0x29,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,
|
||||||
|
0x6c,0x69,0x63,0x6b,0x00,0x63,0x6c,0x6f,0x73,0x65,0x28,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x43,0x6c,
|
||||||
|
0x6f,0x73,0x65,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,
|
||||||
|
0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x71,0x75,
|
||||||
|
0x69,0x74,0x28,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x51,0x75,0x69,0x74,0x00,0x00,0x00,0x00,0x76,0x69,
|
||||||
|
0x65,0x77,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x64,0x00,
|
||||||
|
0x00,0x00,0x64,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,
|
||||||
|
0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x30,0x2c,0x79,0x3d,0x30,0x2c,0x77,0x3d,0x31,0x30,0x30,0x25,
|
||||||
|
0x2c,0x68,0x3d,0x31,0x30,0x30,0x25,0x29,0x00,0x6e,0x61,0x6d,0x65,0x00,0x76,0x69,0x65,0x77,0x00,0x63,
|
||||||
|
0x68,0x69,0x6c,0x64,0x72,0x65,0x6e,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,
|
||||||
|
0x6c,0x74,0x28,0x63,0x3d,0x32,0x2c,0x72,0x3d,0x31,0x2c,0x6d,0x3d,0x32,0x2c,0x73,0x3d,0x32,0x29,0x00,
|
||||||
|
0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6e,0x61,0x6d,0x65,0x00,0x74,0x69,0x6d,0x65,0x72,0x00,
|
||||||
|
0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,
|
||||||
|
0x69,0x63,0x6b,0x00,0x73,0x74,0x61,0x72,0x74,0x5f,0x74,0x69,0x6d,0x65,0x72,0x28,0x31,0x30,0x30,0x29,
|
||||||
|
0x00,0x74,0x65,0x78,0x74,0x00,0x53,0x74,0x61,0x72,0x74,0x20,0x54,0x69,0x6d,0x65,0x72,0x00,0x6f,0x6e,
|
||||||
|
0x3a,0x74,0x69,0x6d,0x65,0x72,0x00,0x61,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x6c,0x6f,
|
||||||
|
0x6f,0x6b,0x75,0x70,0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2c,0x20,0x62,0x61,0x72,0x2c,0x20,0x74,0x72,
|
||||||
|
0x75,0x65,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x62,0x20,0x3d,0x20,0x77,0x69,0x64,0x67,
|
||||||
|
0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x61,0x2c,0x20,0x22,0x76,0x61,0x6c,0x75,0x65,0x22,0x29,0x0a,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x69,0x66,0x28,0x62,0x20,0x3c,0x20,0x31,0x30,0x30,0x29,0x20,0x7b,
|
||||||
|
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,
|
||||||
|
0x74,0x28,0x61,0x2c,0x20,0x22,0x76,0x61,0x6c,0x75,0x65,0x22,0x2c,0x20,0x62,0x20,0x2b,0x20,0x31,0x29,
|
||||||
|
0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x7d,0x20,0x65,0x6c,0x73,0x65,0x20,0x7b,0x0a,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,0x61,
|
||||||
|
0x2c,0x20,0x22,0x76,0x61,0x6c,0x75,0x65,0x22,0x2c,0x20,0x30,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x73,0x74,0x6f,0x70,0x5f,0x74,0x69,0x6d,0x65,0x72,0x28,0x29,0x0a,0x20,0x20,0x20,
|
||||||
|
0x20,0x20,0x20,0x20,0x20,0x7d,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,
|
||||||
0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,
|
0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,
|
||||||
0x00,0x62,0x61,0x63,0x6b,0x28,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x61,0x63,0x6b,0x00,0x00,0x00,
|
0x00,0x73,0x74,0x6f,0x70,0x5f,0x74,0x69,0x6d,0x65,0x72,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,0x74,
|
||||||
0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x69,0x6d,0x65,0x72,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x53,0x74,0x6f,0x70,0x20,0x54,0x69,0x6d,0x65,
|
||||||
|
0x72,0x00,0x00,0x00,0x00,0x76,0x69,0x65,0x77,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,
|
0x00,0x00,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x64,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,
|
||||||
0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x62,0x61,0x63,0x6b,0x5f,0x74,0x6f,0x5f,
|
0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x30,0x2c,0x79,0x3d,0x30,
|
||||||
0x68,0x6f,0x6d,0x65,0x28,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x61,0x63,0x6b,0x20,0x54,0x6f,0x20,
|
0x2c,0x77,0x3d,0x31,0x30,0x30,0x25,0x2c,0x68,0x3d,0x31,0x30,0x30,0x25,0x29,0x00,0x6e,0x61,0x6d,0x65,
|
||||||
0x48,0x6f,0x6d,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};/*5094*/
|
0x00,0x76,0x69,0x65,0x77,0x00,0x63,0x68,0x69,0x6c,0x64,0x72,0x65,0x6e,0x5f,0x6c,0x61,0x79,0x6f,0x75,
|
||||||
|
0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x63,0x3d,0x32,0x2c,0x72,0x3d,0x31,0x2c,0x6d,0x3d,
|
||||||
|
0x32,0x2c,0x73,0x3d,0x32,0x29,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,0x75,
|
||||||
|
0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,
|
||||||
|
0x62,0x61,0x63,0x6b,0x28,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x61,0x63,0x6b,0x00,0x00,0x00,0x62,
|
||||||
|
0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,
|
||||||
|
0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x62,0x61,0x63,0x6b,0x5f,0x74,0x6f,0x5f,0x68,
|
||||||
|
0x6f,0x6d,0x65,0x28,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x61,0x63,0x6b,0x20,0x54,0x6f,0x20,0x48,
|
||||||
|
0x6f,0x6d,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};/*5053*/
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
TK_CONST_DATA_ALIGN(const unsigned char ui_text_selector_fscript[]) = {
|
TK_CONST_DATA_ALIGN(const unsigned char ui_text_selector_fscript[]) = {
|
||||||
0x04,0x00,0x01,0x01,0xd6,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x74,0x65,0x78,0x74,0x5f,0x73,0x65,0x6c,
|
0x04,0x00,0x01,0x01,0xdc,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x74,0x65,0x78,0x74,0x5f,0x73,0x65,0x6c,
|
||||||
0x65,0x63,0x74,0x6f,0x72,0x5f,0x66,0x73,0x63,0x72,0x69,0x70,0x74,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x65,0x63,0x74,0x6f,0x72,0x5f,0x66,0x73,0x63,0x72,0x69,0x70,0x74,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x12,0x12,0x22,0x11,0x77,0x69,0x6e,0x64,0x6f,0x77,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x12,0x12,0x22,0x11,0x77,0x69,0x6e,0x64,0x6f,0x77,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
@ -21,33 +21,33 @@ TK_CONST_DATA_ALIGN(const unsigned char ui_text_selector_fscript[]) = {
|
|||||||
0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,0x79,0x65,
|
0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,0x79,0x65,
|
||||||
0x61,0x72,0x2c,0x20,0x76,0x61,0x6c,0x75,0x65,0x29,0x2c,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,
|
0x61,0x72,0x2c,0x20,0x76,0x61,0x6c,0x75,0x65,0x29,0x2c,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,
|
||||||
0x65,0x74,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,0x6d,0x6f,0x6e,0x74,0x68,0x2c,0x20,0x76,0x61,0x6c,
|
0x65,0x74,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,0x6d,0x6f,0x6e,0x74,0x68,0x2c,0x20,0x76,0x61,0x6c,
|
||||||
0x75,0x65,0x29,0x29,0x0d,0x0a,0x09,0x09,0x09,0x09,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,
|
0x75,0x65,0x29,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,
|
||||||
0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,0x64,0x61,0x79,0x2c,0x20,0x22,0x6f,0x70,0x74,0x69,0x6f,0x6e,
|
0x73,0x65,0x74,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,0x64,0x61,0x79,0x2c,0x20,0x22,0x6f,0x70,0x74,
|
||||||
0x73,0x22,0x2c,0x20,0x69,0x66,0x6f,0x72,0x6d,0x61,0x74,0x28,0x20,0x22,0x31,0x2d,0x25,0x64,0x22,0x2c,
|
0x69,0x6f,0x6e,0x73,0x22,0x2c,0x20,0x69,0x66,0x6f,0x72,0x6d,0x61,0x74,0x28,0x20,0x22,0x31,0x2d,0x25,
|
||||||
0x20,0x61,0x29,0x20,0x2b,0x20,0x22,0x25,0x30,0x32,0x64,0x22,0x29,0x00,0x00,0x00,0x74,0x65,0x78,0x74,
|
0x64,0x22,0x2c,0x20,0x61,0x29,0x20,0x2b,0x20,0x22,0x25,0x30,0x32,0x64,0x22,0x29,0x00,0x00,0x00,0x74,
|
||||||
0x5f,0x73,0x65,0x6c,0x65,0x63,0x74,0x6f,0x72,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x65,0x78,0x74,0x5f,0x73,0x65,0x6c,0x65,0x63,0x74,0x6f,0x72,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73,0x00,0x31,0x2d,0x31,0x32,0x2d,0x25,0x30,0x32,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73,0x00,0x31,0x2d,0x31,0x32,0x2d,
|
||||||
0x64,0x00,0x6e,0x61,0x6d,0x65,0x00,0x6d,0x6f,0x6e,0x74,0x68,0x00,0x73,0x65,0x6c,0x65,0x63,0x74,0x65,
|
0x25,0x30,0x32,0x64,0x00,0x6e,0x61,0x6d,0x65,0x00,0x6d,0x6f,0x6e,0x74,0x68,0x00,0x73,0x65,0x6c,0x65,
|
||||||
0x64,0x5f,0x69,0x6e,0x64,0x65,0x78,0x00,0x38,0x00,0x6c,0x6f,0x6f,0x70,0x5f,0x6f,0x70,0x74,0x69,0x6f,
|
0x63,0x74,0x65,0x64,0x5f,0x69,0x6e,0x64,0x65,0x78,0x00,0x38,0x00,0x6c,0x6f,0x6f,0x70,0x5f,0x6f,0x70,
|
||||||
0x6e,0x73,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x76,0x61,0x6c,0x75,0x65,0x5f,0x63,0x68,0x61,
|
0x74,0x69,0x6f,0x6e,0x73,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x76,0x61,0x6c,0x75,0x65,0x5f,
|
||||||
0x6e,0x67,0x65,0x64,0x00,0x61,0x20,0x3d,0x20,0x67,0x65,0x74,0x5f,0x64,0x61,0x79,0x73,0x5f,0x6f,0x66,
|
0x63,0x68,0x61,0x6e,0x67,0x65,0x64,0x00,0x61,0x20,0x3d,0x20,0x67,0x65,0x74,0x5f,0x64,0x61,0x79,0x73,
|
||||||
0x5f,0x6d,0x6f,0x6e,0x74,0x68,0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x70,0x61,
|
0x5f,0x6f,0x66,0x5f,0x6d,0x6f,0x6e,0x74,0x68,0x28,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,
|
||||||
0x72,0x65,0x6e,0x74,0x2e,0x79,0x65,0x61,0x72,0x2c,0x20,0x76,0x61,0x6c,0x75,0x65,0x29,0x2c,0x20,0x77,
|
0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,0x79,0x65,0x61,0x72,0x2c,0x20,0x76,0x61,0x6c,0x75,0x65,0x29,
|
||||||
0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,0x6d,0x6f,0x6e,
|
0x2c,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x67,0x65,0x74,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,
|
||||||
0x74,0x68,0x2c,0x20,0x76,0x61,0x6c,0x75,0x65,0x29,0x29,0x0d,0x0a,0x09,0x09,0x09,0x09,0x77,0x69,0x64,
|
0x6d,0x6f,0x6e,0x74,0x68,0x2c,0x20,0x76,0x61,0x6c,0x75,0x65,0x29,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,
|
||||||
0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,0x2e,0x64,0x61,0x79,0x2c,0x20,
|
0x20,0x20,0x20,0x77,0x69,0x64,0x67,0x65,0x74,0x5f,0x73,0x65,0x74,0x28,0x70,0x61,0x72,0x65,0x6e,0x74,
|
||||||
0x22,0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73,0x22,0x2c,0x20,0x69,0x66,0x6f,0x72,0x6d,0x61,0x74,0x28,0x20,
|
0x2e,0x64,0x61,0x79,0x2c,0x20,0x22,0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73,0x22,0x2c,0x20,0x69,0x66,0x6f,
|
||||||
0x22,0x31,0x2d,0x25,0x64,0x22,0x2c,0x20,0x61,0x29,0x20,0x2b,0x20,0x22,0x25,0x30,0x32,0x64,0x22,0x29,
|
0x72,0x6d,0x61,0x74,0x28,0x20,0x22,0x31,0x2d,0x25,0x64,0x22,0x2c,0x20,0x61,0x29,0x20,0x2b,0x20,0x22,
|
||||||
0x00,0x00,0x00,0x74,0x65,0x78,0x74,0x5f,0x73,0x65,0x6c,0x65,0x63,0x74,0x6f,0x72,0x00,0x00,0x00,0x00,
|
0x25,0x30,0x32,0x64,0x22,0x29,0x00,0x00,0x00,0x74,0x65,0x78,0x74,0x5f,0x73,0x65,0x6c,0x65,0x63,0x74,
|
||||||
|
0x6f,0x72,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6f,0x70,0x74,
|
||||||
|
0x69,0x6f,0x6e,0x73,0x00,0x31,0x2d,0x33,0x31,0x2d,0x25,0x30,0x32,0x64,0x00,0x6e,0x61,0x6d,0x65,0x00,
|
||||||
|
0x64,0x61,0x79,0x00,0x73,0x65,0x6c,0x65,0x63,0x74,0x65,0x64,0x5f,0x69,0x6e,0x64,0x65,0x78,0x00,0x39,
|
||||||
|
0x00,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73,0x00,0x31,
|
0x00,0x00,0x00,0x00,0x32,0x00,0x00,0x00,0x1e,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,
|
||||||
0x2d,0x33,0x31,0x2d,0x25,0x30,0x32,0x64,0x00,0x6e,0x61,0x6d,0x65,0x00,0x64,0x61,0x79,0x00,0x73,0x65,
|
0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x63,0x65,0x6e,0x74,0x65,0x72,
|
||||||
0x6c,0x65,0x63,0x74,0x65,0x64,0x5f,0x69,0x6e,0x64,0x65,0x78,0x00,0x39,0x00,0x00,0x00,0x00,0x62,0x75,
|
0x2c,0x79,0x3d,0x6d,0x69,0x64,0x64,0x6c,0x65,0x2c,0x77,0x3d,0x35,0x30,0x25,0x2c,0x68,0x3d,0x33,0x30,
|
||||||
0x74,0x74,0x6f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x63,0x6c,0x6f,0x73,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,
|
||||||
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x32,0x00,
|
0x6b,0x00,0x62,0x61,0x63,0x6b,0x28,0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};/*1036*/
|
||||||
0x00,0x00,0x1e,0x00,0x00,0x00,0x73,0x65,0x6c,0x66,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,
|
|
||||||
0x66,0x61,0x75,0x6c,0x74,0x28,0x78,0x3d,0x63,0x65,0x6e,0x74,0x65,0x72,0x2c,0x79,0x3d,0x6d,0x69,0x64,
|
|
||||||
0x64,0x6c,0x65,0x2c,0x77,0x3d,0x35,0x30,0x25,0x2c,0x68,0x3d,0x33,0x30,0x29,0x00,0x74,0x65,0x78,0x74,
|
|
||||||
0x00,0x63,0x6c,0x6f,0x73,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x62,0x61,0x63,0x6b,
|
|
||||||
0x28,0x29,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};/*1030*/
|
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -24,6 +24,7 @@
|
|||||||
#include "tkc/mem.h"
|
#include "tkc/mem.h"
|
||||||
#include "tkc/utf8.h"
|
#include "tkc/utf8.h"
|
||||||
#include "tkc/utils.h"
|
#include "tkc/utils.h"
|
||||||
|
#include "tkc/line_parser.h"
|
||||||
#include "base/events.h"
|
#include "base/events.h"
|
||||||
#include "base/text_edit.h"
|
#include "base/text_edit.h"
|
||||||
#include "base/line_break.h"
|
#include "base/line_break.h"
|
||||||
@ -94,6 +95,7 @@ typedef struct _text_edit_impl_t {
|
|||||||
wchar_t mask_char;
|
wchar_t mask_char;
|
||||||
bool_t mask;
|
bool_t mask;
|
||||||
wstr_t tips;
|
wstr_t tips;
|
||||||
|
bool_t is_mlines;
|
||||||
|
|
||||||
bool_t is_first_time_layout;
|
bool_t is_first_time_layout;
|
||||||
void* on_state_changed_ctx;
|
void* on_state_changed_ctx;
|
||||||
@ -502,15 +504,62 @@ static ret_t text_edit_paint_caret(text_edit_t* text_edit, canvas_t* c) {
|
|||||||
return RET_OK;
|
return RET_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static ret_t text_edit_paint_tips_mlines_text(text_edit_t* text_edit, canvas_t* c, line_parser_t* p) {
|
||||||
|
int32_t y = 0;
|
||||||
|
int32_t w = 0;
|
||||||
|
int32_t h_text = 0;
|
||||||
|
int32_t font_size = 0;
|
||||||
|
int32_t line_height = 0;
|
||||||
|
DECL_IMPL(text_edit);
|
||||||
|
text_layout_info_t* layout_info = 0;
|
||||||
|
return_value_if_fail(text_edit != NULL && text_edit->widget != NULL && c != NULL, RET_BAD_PARAMS);
|
||||||
|
|
||||||
|
font_size = c->font_size;
|
||||||
|
layout_info = &(impl->layout_info);
|
||||||
|
line_height = font_size + style_get_int(text_edit->widget->astyle, STYLE_ID_SPACER, 2);
|
||||||
|
h_text = p->total_lines * line_height;
|
||||||
|
|
||||||
|
w = layout_info->w;
|
||||||
|
y = layout_info->margin_t;
|
||||||
|
while (line_parser_next(p) == RET_OK) {
|
||||||
|
uint32_t size = 0;
|
||||||
|
rect_t r = rect_init(layout_info->margin_l, y, w, font_size);
|
||||||
|
|
||||||
|
if ((y + font_size) > layout_info->h) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (size = 0; size < p->line_size; size++) {
|
||||||
|
if (p->line[size] == '\r' || p->line[size] == '\n') {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
canvas_draw_text_in_rect(c, p->line, size, &r);
|
||||||
|
|
||||||
|
y += line_height;
|
||||||
|
}
|
||||||
|
return RET_OK;
|
||||||
|
}
|
||||||
|
|
||||||
static ret_t text_edit_paint_tips_text(text_edit_t* text_edit, canvas_t* c) {
|
static ret_t text_edit_paint_tips_text(text_edit_t* text_edit, canvas_t* c) {
|
||||||
DECL_IMPL(text_edit);
|
DECL_IMPL(text_edit);
|
||||||
wstr_t* text = &(impl->tips);
|
wstr_t* text = &(impl->tips);
|
||||||
text_layout_info_t* layout_info = &(impl->layout_info);
|
text_layout_info_t* layout_info = &(impl->layout_info);
|
||||||
|
|
||||||
if (text->size > 0) {
|
if (text->size > 0) {
|
||||||
rect_t r =
|
if (impl->is_mlines) {
|
||||||
rect_init(layout_info->margin_l, layout_info->margin_t, layout_info->w, layout_info->h);
|
line_parser_t p;
|
||||||
canvas_draw_text_in_rect(c, text->str, text->size, &r);
|
line_parser_init(&p, c, (const wchar_t*)(text->str), text->size, c->font_size, layout_info->w, TRUE, TRUE);
|
||||||
|
if (p.total_lines > 1) {
|
||||||
|
text_edit_paint_tips_mlines_text(text_edit, c, &p);
|
||||||
|
} else {
|
||||||
|
rect_t r = rect_init(layout_info->margin_l, layout_info->margin_t, layout_info->w, layout_info->h);
|
||||||
|
canvas_draw_text_in_rect(c, text->str, text->size, &r);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
rect_t r = rect_init(layout_info->margin_l, layout_info->margin_t, layout_info->w, layout_info->h);
|
||||||
|
canvas_draw_text_in_rect(c, text->str, text->size, &r);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return RET_OK;
|
return RET_OK;
|
||||||
@ -656,10 +705,14 @@ static ret_t text_edit_paint_real_text(text_edit_t* text_edit, canvas_t* c) {
|
|||||||
|
|
||||||
static ret_t text_edit_paint_text(text_edit_t* text_edit, canvas_t* c) {
|
static ret_t text_edit_paint_text(text_edit_t* text_edit, canvas_t* c) {
|
||||||
widget_t* widget = text_edit->widget;
|
widget_t* widget = text_edit->widget;
|
||||||
|
return_value_if_fail(widget != NULL, RET_BAD_PARAMS);
|
||||||
|
|
||||||
if (widget->text.size > 0) {
|
if (widget->text.size > 0) {
|
||||||
return text_edit_paint_real_text(text_edit, c);
|
return text_edit_paint_real_text(text_edit, c);
|
||||||
} else {
|
} else {
|
||||||
|
color_t trans = style_get_color(widget->astyle, STYLE_ID_TEXT_COLOR, color_init(0x0, 0x0, 0x0, 0x0));
|
||||||
|
color_t tc = style_get_color(widget->astyle, STYLE_ID_TIPS_TEXT_COLOR, trans);
|
||||||
|
canvas_set_text_color(c, tc);
|
||||||
return text_edit_paint_tips_text(text_edit, c);
|
return text_edit_paint_tips_text(text_edit, c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1218,10 +1271,11 @@ ret_t text_edit_set_mask(text_edit_t* text_edit, bool_t mask) {
|
|||||||
return RET_OK;
|
return RET_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret_t text_edit_set_tips(text_edit_t* text_edit, const char* tips) {
|
ret_t text_edit_set_tips(text_edit_t* text_edit, const char* tips, bool_t mlines) {
|
||||||
DECL_IMPL(text_edit);
|
DECL_IMPL(text_edit);
|
||||||
return_value_if_fail(text_edit != NULL, RET_BAD_PARAMS);
|
return_value_if_fail(text_edit != NULL, RET_BAD_PARAMS);
|
||||||
|
|
||||||
|
impl->is_mlines = mlines;
|
||||||
wstr_set_utf8(&(impl->tips), tips);
|
wstr_set_utf8(&(impl->tips), tips);
|
||||||
text_edit_layout(text_edit);
|
text_edit_layout(text_edit);
|
||||||
|
|
||||||
|
@ -264,10 +264,11 @@ ret_t text_edit_set_mask(text_edit_t* text_edit, bool_t mask);
|
|||||||
* 设置提示信息。
|
* 设置提示信息。
|
||||||
* @param {text_edit_t*} text_edit text_edit对象。
|
* @param {text_edit_t*} text_edit text_edit对象。
|
||||||
* @param {const char*} tips 提示信息。
|
* @param {const char*} tips 提示信息。
|
||||||
|
* @param {bool_t} mlines 提示信息是否多行显示。
|
||||||
*
|
*
|
||||||
* @return {ret_t} 返回RET_OK表示成功,否则表示失败。
|
* @return {ret_t} 返回RET_OK表示成功,否则表示失败。
|
||||||
*/
|
*/
|
||||||
ret_t text_edit_set_tips(text_edit_t* text_edit, const char* tips);
|
ret_t text_edit_set_tips(text_edit_t* text_edit, const char* tips, bool_t mlines);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @method text_edit_set_mask_char
|
* @method text_edit_set_mask_char
|
||||||
|
@ -80,7 +80,7 @@ ret_t mledit_set_tips(widget_t* widget, const char* tips) {
|
|||||||
return_value_if_fail(mledit != NULL && tips != NULL, RET_BAD_PARAMS);
|
return_value_if_fail(mledit != NULL && tips != NULL, RET_BAD_PARAMS);
|
||||||
|
|
||||||
mledit->tips = tk_str_copy(mledit->tips, tips);
|
mledit->tips = tk_str_copy(mledit->tips, tips);
|
||||||
text_edit_set_tips(mledit->model, mledit->tips);
|
text_edit_set_tips(mledit->model, mledit->tips, TRUE);
|
||||||
|
|
||||||
return RET_OK;
|
return RET_OK;
|
||||||
}
|
}
|
||||||
|
154
src/tkc/line_parser.h
Normal file
154
src/tkc/line_parser.h
Normal file
@ -0,0 +1,154 @@
|
|||||||
|
/**
|
||||||
|
* File: line_parser.h
|
||||||
|
* Author: AWTK Develop Team
|
||||||
|
* Brief: line_parser structs.
|
||||||
|
*
|
||||||
|
* Copyright (c) 2018 - 2021 Guangzhou ZHIYUAN Electronics Co.,Ltd.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* License file for more details.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* History:
|
||||||
|
* ================================================================
|
||||||
|
* 2021-01-8 Luo Zhiming <luozhiming@zlg.cn> created
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef TK_LINE_PARSER_H
|
||||||
|
#define TK_LINE_PARSER_H
|
||||||
|
|
||||||
|
#include "tkc/types_def.h"
|
||||||
|
#include "base/canvas.h"
|
||||||
|
#include "base/line_break.h"
|
||||||
|
|
||||||
|
BEGIN_C_DECLS
|
||||||
|
|
||||||
|
typedef struct _line_parser_t {
|
||||||
|
canvas_t* c;
|
||||||
|
uint32_t size;
|
||||||
|
uint32_t width;
|
||||||
|
uint32_t font_size;
|
||||||
|
const wchar_t* str;
|
||||||
|
|
||||||
|
uint32_t total_lines;
|
||||||
|
uint32_t total_paragraphs;
|
||||||
|
|
||||||
|
/*current line*/
|
||||||
|
const wchar_t* line;
|
||||||
|
uint32_t line_size;
|
||||||
|
bool_t is_force_break;
|
||||||
|
bool_t line_wrap;
|
||||||
|
bool_t word_wrap;
|
||||||
|
} line_parser_t;
|
||||||
|
|
||||||
|
static ret_t line_parser_next(line_parser_t* parser);
|
||||||
|
static ret_t line_parser_init(line_parser_t* parser, canvas_t* c, const wchar_t* str,
|
||||||
|
uint32_t size, uint32_t font_size, uint32_t width,
|
||||||
|
bool_t line_wrap, bool_t word_wrap) {
|
||||||
|
return_value_if_fail(parser != NULL && str != NULL && size > 0, RET_BAD_PARAMS);
|
||||||
|
return_value_if_fail(font_size > 0, RET_BAD_PARAMS);
|
||||||
|
|
||||||
|
memset(parser, 0x00, sizeof(line_parser_t));
|
||||||
|
|
||||||
|
parser->c = c;
|
||||||
|
parser->str = str;
|
||||||
|
parser->size = size;
|
||||||
|
parser->width = width;
|
||||||
|
parser->font_size = font_size;
|
||||||
|
parser->line_wrap = line_wrap;
|
||||||
|
parser->word_wrap = word_wrap;
|
||||||
|
parser->line = str;
|
||||||
|
parser->line_size = 0;
|
||||||
|
parser->is_force_break = FALSE;
|
||||||
|
|
||||||
|
while (line_parser_next(parser) == RET_OK) {
|
||||||
|
if (parser->is_force_break) {
|
||||||
|
parser->total_paragraphs++;
|
||||||
|
}
|
||||||
|
parser->total_lines++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!parser->is_force_break) {
|
||||||
|
parser->total_paragraphs++;
|
||||||
|
}
|
||||||
|
|
||||||
|
parser->line = str;
|
||||||
|
parser->line_size = 0;
|
||||||
|
|
||||||
|
return RET_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
static ret_t line_parser_next(line_parser_t* parser) {
|
||||||
|
int32_t w = 0;
|
||||||
|
int32_t char_w = 0;
|
||||||
|
const wchar_t* p = NULL;
|
||||||
|
canvas_t* c = parser->c;
|
||||||
|
return_value_if_fail(parser != NULL && parser->str != NULL, RET_BAD_PARAMS);
|
||||||
|
|
||||||
|
parser->line = parser->line + parser->line_size;
|
||||||
|
parser->line_size = 0;
|
||||||
|
|
||||||
|
if ((parser->line - parser->str) >= parser->size) {
|
||||||
|
return RET_EOS;
|
||||||
|
}
|
||||||
|
|
||||||
|
p = parser->line;
|
||||||
|
parser->is_force_break = FALSE;
|
||||||
|
while ((p - parser->str) < parser->size) {
|
||||||
|
if (*p == '\r') {
|
||||||
|
p++;
|
||||||
|
if (*p == '\n') {
|
||||||
|
p++;
|
||||||
|
}
|
||||||
|
parser->is_force_break = TRUE;
|
||||||
|
break;
|
||||||
|
} else if (*p == '\n') {
|
||||||
|
p++;
|
||||||
|
parser->is_force_break = TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (parser->line_wrap) {
|
||||||
|
char_w = canvas_measure_text(c, p, 1) + 1;
|
||||||
|
if ((w + char_w) > parser->width) {
|
||||||
|
return_value_if_fail(p > parser->line, RET_FAIL);
|
||||||
|
|
||||||
|
if (((p + 1) - parser->str) < parser->size) {
|
||||||
|
if (parser->word_wrap) {
|
||||||
|
const wchar_t* tmp_p = p;
|
||||||
|
while (line_break_check(*(p - 1), *p) == LINE_BREAK_NO) {
|
||||||
|
if (p == parser->line + 1) {
|
||||||
|
p = tmp_p;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (p > parser->line) {
|
||||||
|
p--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
p++;
|
||||||
|
w = canvas_measure_text(c, parser->line, p - parser->line);
|
||||||
|
} else {
|
||||||
|
p++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
parser->line_size = p - parser->line;
|
||||||
|
|
||||||
|
return RET_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
END_C_DECLS
|
||||||
|
|
||||||
|
#endif /*TK_LINE_PARSER_H*/
|
@ -1012,7 +1012,7 @@ ret_t edit_set_tips(widget_t* widget, const char* tips) {
|
|||||||
return_value_if_fail(edit != NULL && tips != NULL, RET_BAD_PARAMS);
|
return_value_if_fail(edit != NULL && tips != NULL, RET_BAD_PARAMS);
|
||||||
|
|
||||||
edit->tips = tk_str_copy(edit->tips, tips);
|
edit->tips = tk_str_copy(edit->tips, tips);
|
||||||
text_edit_set_tips(edit->model, edit->tips);
|
text_edit_set_tips(edit->model, edit->tips, FALSE);
|
||||||
|
|
||||||
return RET_OK;
|
return RET_OK;
|
||||||
}
|
}
|
||||||
|
@ -22,128 +22,13 @@
|
|||||||
|
|
||||||
#include "tkc/mem.h"
|
#include "tkc/mem.h"
|
||||||
#include "widgets/label.h"
|
#include "widgets/label.h"
|
||||||
#include "base/line_break.h"
|
#include "tkc/line_parser.h"
|
||||||
#include "base/widget_vtable.h"
|
#include "base/widget_vtable.h"
|
||||||
#include "base/window_manager.h"
|
#include "base/window_manager.h"
|
||||||
|
|
||||||
typedef struct _label_line_parser_t {
|
|
||||||
canvas_t* c;
|
|
||||||
uint32_t size;
|
|
||||||
uint32_t width;
|
|
||||||
uint32_t font_size;
|
|
||||||
const wchar_t* str;
|
|
||||||
|
|
||||||
uint32_t total_lines;
|
|
||||||
uint32_t total_paragraphs;
|
|
||||||
|
|
||||||
/*current line*/
|
|
||||||
const wchar_t* line;
|
|
||||||
uint32_t line_size;
|
|
||||||
bool_t is_force_break;
|
|
||||||
bool_t line_wrap;
|
|
||||||
bool_t word_wrap;
|
|
||||||
} label_line_parser_t;
|
|
||||||
|
|
||||||
static ret_t label_auto_adjust_size(widget_t* widget);
|
static ret_t label_auto_adjust_size(widget_t* widget);
|
||||||
static ret_t label_line_parser_next(label_line_parser_t* parser);
|
|
||||||
static ret_t label_line_parser_init(label_line_parser_t* parser, canvas_t* c, const wchar_t* str,
|
|
||||||
uint32_t size, uint32_t font_size, uint32_t width,
|
|
||||||
bool_t line_wrap, bool_t word_wrap) {
|
|
||||||
return_value_if_fail(parser != NULL && str != NULL && size > 0, RET_BAD_PARAMS);
|
|
||||||
return_value_if_fail(font_size > 0, RET_BAD_PARAMS);
|
|
||||||
|
|
||||||
memset(parser, 0x00, sizeof(label_line_parser_t));
|
static ret_t label_paint_text_mlines(widget_t* widget, canvas_t* c, line_parser_t* p) {
|
||||||
|
|
||||||
parser->c = c;
|
|
||||||
parser->str = str;
|
|
||||||
parser->size = size;
|
|
||||||
parser->width = width;
|
|
||||||
parser->font_size = font_size;
|
|
||||||
parser->line_wrap = line_wrap;
|
|
||||||
parser->word_wrap = word_wrap;
|
|
||||||
parser->line = str;
|
|
||||||
parser->line_size = 0;
|
|
||||||
parser->is_force_break = FALSE;
|
|
||||||
|
|
||||||
while (label_line_parser_next(parser) == RET_OK) {
|
|
||||||
if (parser->is_force_break) {
|
|
||||||
parser->total_paragraphs++;
|
|
||||||
}
|
|
||||||
parser->total_lines++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!parser->is_force_break) {
|
|
||||||
parser->total_paragraphs++;
|
|
||||||
}
|
|
||||||
|
|
||||||
parser->line = str;
|
|
||||||
parser->line_size = 0;
|
|
||||||
|
|
||||||
return RET_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
static ret_t label_line_parser_next(label_line_parser_t* parser) {
|
|
||||||
int32_t w = 0;
|
|
||||||
int32_t char_w = 0;
|
|
||||||
const wchar_t* p = NULL;
|
|
||||||
canvas_t* c = parser->c;
|
|
||||||
return_value_if_fail(parser != NULL && parser->str != NULL, RET_BAD_PARAMS);
|
|
||||||
|
|
||||||
parser->line = parser->line + parser->line_size;
|
|
||||||
parser->line_size = 0;
|
|
||||||
|
|
||||||
if ((parser->line - parser->str) >= parser->size) {
|
|
||||||
return RET_EOS;
|
|
||||||
}
|
|
||||||
|
|
||||||
p = parser->line;
|
|
||||||
parser->is_force_break = FALSE;
|
|
||||||
while ((p - parser->str) < parser->size) {
|
|
||||||
if (*p == '\r') {
|
|
||||||
p++;
|
|
||||||
if (*p == '\n') {
|
|
||||||
p++;
|
|
||||||
}
|
|
||||||
parser->is_force_break = TRUE;
|
|
||||||
break;
|
|
||||||
} else if (*p == '\n') {
|
|
||||||
p++;
|
|
||||||
parser->is_force_break = TRUE;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (parser->line_wrap) {
|
|
||||||
char_w = canvas_measure_text(c, p, 1) + 1;
|
|
||||||
if ((w + char_w) > parser->width) {
|
|
||||||
return_value_if_fail(p > parser->line, RET_FAIL);
|
|
||||||
|
|
||||||
if (((p + 1) - parser->str) < parser->size) {
|
|
||||||
if (parser->word_wrap) {
|
|
||||||
while (line_break_check(*(p - 1), *p) == LINE_BREAK_NO) {
|
|
||||||
return_value_if_fail(p != parser->line + 1, RET_FAIL);
|
|
||||||
|
|
||||||
if (p > parser->line) {
|
|
||||||
p--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
p++;
|
|
||||||
w = canvas_measure_text(c, parser->line, p - parser->line);
|
|
||||||
} else {
|
|
||||||
p++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
parser->line_size = p - parser->line;
|
|
||||||
|
|
||||||
return RET_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
static ret_t label_paint_text_mlines(widget_t* widget, canvas_t* c, label_line_parser_t* p) {
|
|
||||||
int32_t x = 0;
|
int32_t x = 0;
|
||||||
int32_t y = 0;
|
int32_t y = 0;
|
||||||
int32_t w = 0;
|
int32_t w = 0;
|
||||||
@ -181,7 +66,7 @@ static ret_t label_paint_text_mlines(widget_t* widget, canvas_t* c, label_line_p
|
|||||||
}
|
}
|
||||||
|
|
||||||
canvas_set_text_align(c, align_h, align_v);
|
canvas_set_text_align(c, align_h, align_v);
|
||||||
while (label_line_parser_next(p) == RET_OK) {
|
while (line_parser_next(p) == RET_OK) {
|
||||||
uint32_t size = 0;
|
uint32_t size = 0;
|
||||||
rect_t r = rect_init(x, y, w, font_size);
|
rect_t r = rect_init(x, y, w, font_size);
|
||||||
|
|
||||||
@ -203,14 +88,14 @@ static ret_t label_paint_text_mlines(widget_t* widget, canvas_t* c, label_line_p
|
|||||||
}
|
}
|
||||||
|
|
||||||
static ret_t label_paint_text(widget_t* widget, canvas_t* c, const wchar_t* str, uint32_t size) {
|
static ret_t label_paint_text(widget_t* widget, canvas_t* c, const wchar_t* str, uint32_t size) {
|
||||||
label_line_parser_t p;
|
line_parser_t p;
|
||||||
label_t* label = LABEL(widget);
|
label_t* label = LABEL(widget);
|
||||||
style_t* style = widget->astyle;
|
style_t* style = widget->astyle;
|
||||||
int32_t margin = style_get_int(style, STYLE_ID_MARGIN, 2);
|
int32_t margin = style_get_int(style, STYLE_ID_MARGIN, 2);
|
||||||
int32_t w = widget->w - margin - margin;
|
int32_t w = widget->w - margin - margin;
|
||||||
|
|
||||||
return_value_if_fail(
|
return_value_if_fail(
|
||||||
label_line_parser_init(&p, c, widget->text.str, widget->text.size, c->font_size, w,
|
line_parser_init(&p, c, widget->text.str, widget->text.size, c->font_size, w,
|
||||||
label->line_wrap, label->word_wrap) == RET_OK,
|
label->line_wrap, label->word_wrap) == RET_OK,
|
||||||
RET_BAD_PARAMS);
|
RET_BAD_PARAMS);
|
||||||
|
|
||||||
@ -271,7 +156,7 @@ ret_t label_resize_to_content(widget_t* widget, uint32_t min_w, uint32_t max_w,
|
|||||||
int32_t spacer = 0;
|
int32_t spacer = 0;
|
||||||
int32_t line_height = 0;
|
int32_t line_height = 0;
|
||||||
style_t* style = NULL;
|
style_t* style = NULL;
|
||||||
label_line_parser_t p;
|
line_parser_t p;
|
||||||
label_t* label = LABEL(widget);
|
label_t* label = LABEL(widget);
|
||||||
canvas_t* c = widget_get_canvas(widget);
|
canvas_t* c = widget_get_canvas(widget);
|
||||||
return_value_if_fail(label != NULL, RET_BAD_PARAMS);
|
return_value_if_fail(label != NULL, RET_BAD_PARAMS);
|
||||||
@ -296,7 +181,7 @@ ret_t label_resize_to_content(widget_t* widget, uint32_t min_w, uint32_t max_w,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return_value_if_fail(
|
return_value_if_fail(
|
||||||
label_line_parser_init(&p, c, widget->text.str, widget->text.size, c->font_size, tmp_w,
|
line_parser_init(&p, c, widget->text.str, widget->text.size, c->font_size, tmp_w,
|
||||||
label->line_wrap, label->word_wrap) == RET_OK,
|
label->line_wrap, label->word_wrap) == RET_OK,
|
||||||
RET_BAD_PARAMS);
|
RET_BAD_PARAMS);
|
||||||
|
|
||||||
@ -382,7 +267,7 @@ static ret_t label_auto_adjust_size(widget_t* widget) {
|
|||||||
int32_t spacer = 0;
|
int32_t spacer = 0;
|
||||||
int32_t line_height = 0;
|
int32_t line_height = 0;
|
||||||
style_t* style = NULL;
|
style_t* style = NULL;
|
||||||
label_line_parser_t p;
|
line_parser_t p;
|
||||||
label_t* label = LABEL(widget);
|
label_t* label = LABEL(widget);
|
||||||
canvas_t* c = widget_get_canvas(widget);
|
canvas_t* c = widget_get_canvas(widget);
|
||||||
return_value_if_fail(label != NULL && c != NULL && widget->astyle != NULL, RET_BAD_PARAMS);
|
return_value_if_fail(label != NULL && c != NULL && widget->astyle != NULL, RET_BAD_PARAMS);
|
||||||
@ -407,7 +292,7 @@ static ret_t label_auto_adjust_size(widget_t* widget) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return_value_if_fail(
|
return_value_if_fail(
|
||||||
label_line_parser_init(&p, c, widget->text.str, widget->text.size, c->font_size, tmp_w,
|
line_parser_init(&p, c, widget->text.str, widget->text.size, c->font_size, tmp_w,
|
||||||
label->line_wrap, label->word_wrap) == RET_OK,
|
label->line_wrap, label->word_wrap) == RET_OK,
|
||||||
RET_BAD_PARAMS);
|
RET_BAD_PARAMS);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user