update docs

This commit is contained in:
lixianjing 2021-01-09 11:42:46 +08:00
parent b2c5be2c58
commit 76e447ee7a
24 changed files with 1004 additions and 7 deletions

View File

@ -0,0 +1,54 @@
<window anim_hint="htranslate" move_focus_prev_key="up" move_focus_next_key="down" text="Basic Controls(fs)">
<app_bar x="0" y="0" w="100%" h="30" >
<label x="0" y="0" w="100%" h="100%" text="up/down key change focus"/>
</app_bar>
<row x="0" y="40" w="100%" h="30" children_layout="default(r=1,c=4,xm=2,s=10)">
<button text="Close" focusable="true" focus="true" on:click="close()"/>
<button text="Back" focusable="true" on:click="back()"/>
<button text="Home" focusable="true" style:focused:text_color="red" on:click="back_to_home()"/>
<button text="Quit" focusable="true" style:focused:text_color="red" on:click="quit()"/>
</row>
<row x="0" y="80" w="100%" h="30" children_layout="default(r=1,c=3,xm=2,s=10)">
<label style="left" name="left" text="Left"/>
<label style="center" name="center" text="Center"/>
<label style="right" name="right" text="Right"/>
</row>
<slider name="slider" x="10" y="116" w="-20" h="20" value="40" focusable="true"/>
<progress_bar name="bar1" x="10" y="142" w="-20" h="16" value="40" show_text="true"/>
<progress_bar name="bar2" x="right:10" y="160" w="20" h="118" value="20" vertical="true"/>
<row x="0" y="180" w="-50" h="90" children_layout="default(r=1,c=2,m=2)">
<column children_layout="default(r=3,c=1,ym=2,s=10)" >
<check_button name="r1" text="Book" focusable="true"/>
<check_button name="r2" text="Food" focusable="true"/>
<check_button name="r3" text="Pencil" value="true" focusable="true"/>
</column>
<column children_layout="default(r=3,c=1,ym=2,s=10)" >
<radio_button name="font_small" text="Small Font" focusable="true"/>
<radio_button name="font_normal" text="Normal Font" focusable="true"/>
<radio_button name="font_big" text="Big Font" focusable="true"/>
</column>
</row>
<row x="20" y="bottom:60" w="100" h="30" children_layout="default(r=1,c=4)">
<radio_button style="left"/>
<radio_button style="middle"/>
<radio_button style="right"/>
<check_button style="mute"/>
</row>
<grid x="20" y="bottom:10" w="80%" h="40" children_layout="default(r=1,c=5,x=2,s=10)">
<image draw_type="icon" image="earth"
animation="rotation(from=0, to=6.28, repeat_times=0, duration=2000, easing=linear)"/>
<image draw_type="icon" image="rgba" />
<image draw_type="icon" image="rgb" />
<image draw_type="icon" image="message"/>
<image draw_type="icon" image="red_btn_n"/>
</grid>
</window>

View File

@ -0,0 +1,17 @@
<window anim_hint="htranslate" theme="button">
<column style="buttons">
<button name="open:dialog1" style="round" enable_long_press="true" text="Long Press"/>
<button style="red_btn" text="Text"/>
<button style="round_top" text="Fullscreen" name="fullscreen"/>
<button style="round_bottom">
<label y="0" x="0" w="100%" h="100%" text="Text"/>
<image image="earth" draw_type="icon" y="0" x="right" w="30" h="100%"/>
</button>
</column>
<button style="icon" x="c" y="170" w="60" h="60" text="Text"/>
<button style="icon" x="c" y="240" w="60" h="60"/>
<button style="image" x="c" y="310" w="30" h="30"/>
<button on:click="back()" style="close" text="Close"/>
</window>

View File

@ -0,0 +1,8 @@
<window closable="no" text="Desktop" anim_hint="htranslate" single_instance="true">
<view x="0" y="0" w="100%" h="100%" children_layout="default(c=2,r=8,m=5,s=5)">
<button focusable="true" focused="true" on:click="open(test_fscript)" text="Test Fscript"/>
<button focusable="true" on:click="open(button_fscript)" text="Buttons"/>
<button focusable="true" on:click="open(basic_fscript)" text="Basic"/>
<button focusable="true" on:click="quit()" text="Quit"/>
</view>
</window>

View File

@ -0,0 +1,91 @@
<window closable="no" text="Desktop" anim_hint="htranslate" single_instance="true">
<view name="view" x="0" y="0" w="100%" h="100%" children_layout="default(c=1,r=10,m=5,s=5)">
<label name="label" text="label" />
<progress_bar name="bar" text="" value="10" />
<button focusable="true" focused="true" on:click="open(basic_fscript)" text="Basic" />
<button focusable="true" text="Buttons">
<property name="on:click">
win = open(button_fscript)
assert(!value_is_null(win))
widget_set(win, close.text, "Back")
assert(widget_get(win, close.text) == "Back");
</property>
</button>
<button focusable="true" text="Test">
<property name="on:click">
widget_set(parent, label.text, "Hello");
assert(widget_get(parent, label.text) == "Hello");
widget_set(window, view.label.text, "Hello World");
assert(widget_get(window, view.label.text) == "Hello World");
widget_set(self, text, "Test...");
assert(widget_get(self, text) == "Test...");
</property>
</button>
<view name="view" x="0" y="0" w="100%" h="100%" children_layout="default(c=2,r=1,m=2,s=2)">
<button focusable="true" text="Inc">
<property name="on:click">
<![CDATA[
a = widget_lookup(window, bar, TRUE)
b = widget_get(a, "value")
if(b <= 90) {
widget_set(a, "value", b + 10)
}
]]>
</property>
</button>
<button focusable="true" text="Dec">
<property name="on:click">
<![CDATA[
a = widget_lookup(window, bar, TRUE)
b = widget_get(a, "value")
if(b >= 10) {
widget_set(a, "value", b - 10)
}
]]>
</property>
</button>
</view>
<view name="view" x="0" y="0" w="100%" h="100%" children_layout="default(c=2,r=1,m=2,s=2)">
<button focusable="true" text="Create">
<property name="on:click">
a = widget_lookup(window, foobar, TRUE)
if(value_is_null(a)) {
a = widget_create("label", widget_lookup(window.view), 0, 0, 0, 0)
assert(!value_is_null(a))
widget_set(a, text, "Dynamic created")
assert(widget_get(a, text) == "Dynamic created")
widget_set(a, name, "foobar")
assert(widget_get(a, name) == "foobar")
} else {
print("foobar exist");
}
</property>
</button>
<button focusable="true" text="Destroy">
<property name="on:click">
a = widget_lookup(window, foobar, TRUE)
if(!value_is_null(a)) {
widget_destroy(a)
} else {
print("not found foobar");
}
</property>
</button>
</view>
<view name="view" x="0" y="0" w="100%" h="100%" children_layout="default(c=2,r=1,m=2,s=2)">
<button focusable="true" on:click="close()" text="Close" />
<button focusable="true" on:click="quit()" text="Quit" />
</view>
<view name="view" x="0" y="0" w="100%" h="100%" children_layout="default(c=2,r=1,m=2,s=2)">
<button focusable="true" on:click="back()" text="Back" />
<button focusable="true" on:click="back_to_home()" text="Back To Home" />
</view>
</view>
</window>

View File

@ -1,5 +1,9 @@
# 最新动态
2021/01/09
* 将基本的widget函数包装成fscript函数。
* 支持用fscript写简单的事件处理函数。
2021/01/08
* 完善typed\_array
* 完善object\_array

View File

@ -62,6 +62,7 @@
#include "default/inc/ui/tab_control.data"
#include "default/inc/ui/slide_view_v2.data"
#include "default/inc/ui/animation.data"
#include "default/inc/ui/basic_fscript.data"
#include "default/inc/ui/keyboard.data"
#include "default/inc/ui/kb_hex.data"
#include "default/inc/ui/popdown.data"
@ -78,6 +79,7 @@
#include "default/inc/ui/tab_bottom.data"
#include "default/inc/ui/list_view_m.data"
#include "default/inc/ui/slide_view_h_loop.data"
#include "default/inc/ui/main_fscript.data"
#include "default/inc/ui/mutable_image.data"
#include "default/inc/ui/calibration_win.data"
#include "default/inc/ui/memtest.data"
@ -135,6 +137,7 @@
#include "default/inc/ui/menu_right_top.data"
#include "default/inc/ui/image_list.data"
#include "default/inc/ui/slide_view_v1.data"
#include "default/inc/ui/test_fscript.data"
#include "default/inc/ui/mono_test.data"
#include "default/inc/ui/select1.data"
#include "default/inc/ui/hscroll_label.data"
@ -149,6 +152,7 @@
#include "default/inc/ui/top.data"
#include "default/inc/ui/button.data"
#include "default/inc/ui/menu.data"
#include "default/inc/ui/button_fscript.data"
#include "default/inc/ui/file_chooser_for_save.data"
#include "default/inc/ui/system_bar.data"
#include "default/inc/ui/menu_right_bottom.data"
@ -527,6 +531,7 @@ ret_t assets_init_default(void) {
assets_manager_add(am, ui_tab_control);
assets_manager_add(am, ui_slide_view_v2);
assets_manager_add(am, ui_animation);
assets_manager_add(am, ui_basic_fscript);
assets_manager_add(am, ui_keyboard);
assets_manager_add(am, ui_kb_hex);
assets_manager_add(am, ui_popdown);
@ -543,6 +548,7 @@ ret_t assets_init_default(void) {
assets_manager_add(am, ui_tab_bottom);
assets_manager_add(am, ui_list_view_m);
assets_manager_add(am, ui_slide_view_h_loop);
assets_manager_add(am, ui_main_fscript);
assets_manager_add(am, ui_mutable_image);
assets_manager_add(am, ui_calibration_win);
assets_manager_add(am, ui_memtest);
@ -600,6 +606,7 @@ ret_t assets_init_default(void) {
assets_manager_add(am, ui_menu_right_top);
assets_manager_add(am, ui_image_list);
assets_manager_add(am, ui_slide_view_v1);
assets_manager_add(am, ui_test_fscript);
assets_manager_add(am, ui_mono_test);
assets_manager_add(am, ui_select1);
assets_manager_add(am, ui_hscroll_label);
@ -614,6 +621,7 @@ ret_t assets_init_default(void) {
assets_manager_add(am, ui_top);
assets_manager_add(am, ui_button);
assets_manager_add(am, ui_menu);
assets_manager_add(am, ui_button_fscript);
assets_manager_add(am, ui_file_chooser_for_save);
assets_manager_add(am, ui_system_bar);
assets_manager_add(am, ui_menu_right_bottom);

View File

@ -0,0 +1,182 @@
TK_CONST_DATA_ALIGN(const unsigned char ui_basic_fscript[]) = {
0x04,0x00,0x01,0x01,0xf2,0x0d,0x00,0x00,0x00,0x00,0x00,0x00,0x62,0x61,0x73,0x69,0x63,0x5f,0x66,0x73,
0x63,0x72,0x69,0x70,0x74,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,0x6e,0x69,0x6d,
0x5f,0x68,0x69,0x6e,0x74,0x00,0x68,0x74,0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,0x65,0x00,0x6d,0x6f,0x76,
0x65,0x5f,0x66,0x6f,0x63,0x75,0x73,0x5f,0x70,0x72,0x65,0x76,0x5f,0x6b,0x65,0x79,0x00,0x75,0x70,0x00,
0x6d,0x6f,0x76,0x65,0x5f,0x66,0x6f,0x63,0x75,0x73,0x5f,0x6e,0x65,0x78,0x74,0x5f,0x6b,0x65,0x79,0x00,
0x64,0x6f,0x77,0x6e,0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x61,0x73,0x69,0x63,0x20,0x43,0x6f,0x6e,0x74,
0x72,0x6f,0x6c,0x73,0x28,0x66,0x73,0x29,0x00,0x00,0x61,0x70,0x70,0x5f,0x62,0x61,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,0x64,0x00,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,
0x30,0x2c,0x79,0x3d,0x30,0x2c,0x77,0x3d,0x31,0x30,0x30,0x25,0x2c,0x68,0x3d,0x33,0x30,0x29,0x00,0x00,
0x6c,0x61,0x62,0x65,0x6c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,0x74,0x65,0x78,0x74,0x00,0x75,0x70,0x2f,0x64,
0x6f,0x77,0x6e,0x20,0x6b,0x65,0x79,0x20,0x63,0x68,0x61,0x6e,0x67,0x65,0x20,0x66,0x6f,0x63,0x75,0x73,
0x00,0x00,0x00,0x00,0x72,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,
0x28,0x00,0x00,0x00,0x64,0x00,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,0x30,0x2c,0x79,0x3d,0x34,0x30,
0x2c,0x77,0x3d,0x31,0x30,0x30,0x25,0x2c,0x68,0x3d,0x33,0x30,0x29,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,0x72,0x3d,
0x31,0x2c,0x63,0x3d,0x34,0x2c,0x78,0x6d,0x3d,0x32,0x2c,0x73,0x3d,0x31,0x30,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,0x74,0x65,0x78,0x74,0x00,0x43,0x6c,0x6f,0x73,0x65,0x00,0x66,0x6f,0x63,
0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x66,0x6f,0x63,0x75,0x73,0x00,0x74,0x72,
0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x63,0x6c,0x6f,0x73,0x65,0x28,0x29,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,0x74,0x65,0x78,0x74,0x00,0x42,0x61,0x63,0x6b,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,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,0x74,0x65,0x78,0x74,0x00,0x48,0x6f,0x6d,0x65,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,
0x00,0x74,0x72,0x75,0x65,0x00,0x73,0x74,0x79,0x6c,0x65,0x3a,0x66,0x6f,0x63,0x75,0x73,0x65,0x64,0x3a,
0x74,0x65,0x78,0x74,0x5f,0x63,0x6f,0x6c,0x6f,0x72,0x00,0x72,0x65,0x64,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,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,0x74,0x65,0x78,0x74,0x00,0x51,0x75,0x69,0x74,0x00,0x66,
0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x73,0x74,0x79,0x6c,0x65,0x3a,
0x66,0x6f,0x63,0x75,0x73,0x65,0x64,0x3a,0x74,0x65,0x78,0x74,0x5f,0x63,0x6f,0x6c,0x6f,0x72,0x00,0x72,
0x65,0x64,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x71,0x75,0x69,0x74,0x28,0x29,0x00,0x00,
0x00,0x00,0x72,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,0x50,0x00,
0x00,0x00,0x64,0x00,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,0x30,0x2c,0x79,0x3d,0x38,0x30,0x2c,0x77,
0x3d,0x31,0x30,0x30,0x25,0x2c,0x68,0x3d,0x33,0x30,0x29,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,0x72,0x3d,0x31,0x2c,
0x63,0x3d,0x33,0x2c,0x78,0x6d,0x3d,0x32,0x2c,0x73,0x3d,0x31,0x30,0x29,0x00,0x00,0x6c,0x61,0x62,0x65,
0x6c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x73,0x74,0x79,0x6c,0x65,0x00,0x6c,0x65,0x66,0x74,0x00,0x6e,0x61,0x6d,0x65,0x00,
0x6c,0x65,0x66,0x74,0x00,0x74,0x65,0x78,0x74,0x00,0x4c,0x65,0x66,0x74,0x00,0x00,0x00,0x6c,0x61,0x62,
0x65,0x6c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x73,0x74,0x79,0x6c,0x65,0x00,0x63,0x65,0x6e,0x74,0x65,0x72,0x00,0x6e,0x61,
0x6d,0x65,0x00,0x63,0x65,0x6e,0x74,0x65,0x72,0x00,0x74,0x65,0x78,0x74,0x00,0x43,0x65,0x6e,0x74,0x65,
0x72,0x00,0x00,0x00,0x6c,0x61,0x62,0x65,0x6c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x73,0x74,0x79,0x6c,0x65,0x00,0x72,0x69,
0x67,0x68,0x74,0x00,0x6e,0x61,0x6d,0x65,0x00,0x72,0x69,0x67,0x68,0x74,0x00,0x74,0x65,0x78,0x74,0x00,
0x52,0x69,0x67,0x68,0x74,0x00,0x00,0x00,0x00,0x73,0x6c,0x69,0x64,0x65,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,0x0a,0x00,0x00,0x00,0x74,0x00,0x00,0x00,0xec,0xff,0xff,0xff,0x14,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,0x31,
0x30,0x2c,0x79,0x3d,0x31,0x31,0x36,0x2c,0x77,0x3d,0x2d,0x32,0x30,0x2c,0x68,0x3d,0x32,0x30,0x29,0x00,
0x6e,0x61,0x6d,0x65,0x00,0x73,0x6c,0x69,0x64,0x65,0x72,0x00,0x76,0x61,0x6c,0x75,0x65,0x00,0x34,0x30,
0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x00,0x00,0x70,0x72,
0x6f,0x67,0x72,0x65,0x73,0x73,0x5f,0x62,0x61,0x72,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0a,0x00,0x00,0x00,0x8e,0x00,0x00,0x00,0xec,0xff,
0xff,0xff,0x10,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,0x31,0x30,0x2c,0x79,0x3d,0x31,0x34,0x32,0x2c,0x77,0x3d,0x2d,
0x32,0x30,0x2c,0x68,0x3d,0x31,0x36,0x29,0x00,0x6e,0x61,0x6d,0x65,0x00,0x62,0x61,0x72,0x31,0x00,0x76,
0x61,0x6c,0x75,0x65,0x00,0x34,0x30,0x00,0x73,0x68,0x6f,0x77,0x5f,0x74,0x65,0x78,0x74,0x00,0x74,0x72,
0x75,0x65,0x00,0x00,0x00,0x70,0x72,0x6f,0x67,0x72,0x65,0x73,0x73,0x5f,0x62,0x61,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,0xa0,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x76,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,0x72,0x69,0x67,0x68,0x74,
0x3a,0x31,0x30,0x2c,0x79,0x3d,0x31,0x36,0x30,0x2c,0x77,0x3d,0x32,0x30,0x2c,0x68,0x3d,0x31,0x31,0x38,
0x29,0x00,0x6e,0x61,0x6d,0x65,0x00,0x62,0x61,0x72,0x32,0x00,0x76,0x61,0x6c,0x75,0x65,0x00,0x32,0x30,
0x00,0x76,0x65,0x72,0x74,0x69,0x63,0x61,0x6c,0x00,0x74,0x72,0x75,0x65,0x00,0x00,0x00,0x72,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,0xb4,0x00,0x00,0x00,0xce,0xff,0xff,
0xff,0x5a,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,0x31,0x38,0x30,0x2c,0x77,0x3d,0x2d,0x35,0x30,
0x2c,0x68,0x3d,0x39,0x30,0x29,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,0x72,0x3d,0x31,0x2c,0x63,0x3d,0x32,0x2c,0x6d,
0x3d,0x32,0x29,0x00,0x00,0x63,0x6f,0x6c,0x75,0x6d,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,0x63,0x68,0x69,0x6c,0x64,0x72,0x65,
0x6e,0x5f,0x6c,0x61,0x79,0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x72,0x3d,0x33,
0x2c,0x63,0x3d,0x31,0x2c,0x79,0x6d,0x3d,0x32,0x2c,0x73,0x3d,0x31,0x30,0x29,0x00,0x00,0x63,0x68,0x65,
0x63,0x6b,0x5f,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,0x6e,0x61,0x6d,0x65,0x00,0x72,0x31,0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x6f,
0x6f,0x6b,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x00,0x00,
0x63,0x68,0x65,0x63,0x6b,0x5f,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,0x6e,0x61,0x6d,0x65,0x00,0x72,0x32,0x00,0x74,0x65,0x78,0x74,
0x00,0x46,0x6f,0x6f,0x64,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,
0x00,0x00,0x00,0x63,0x68,0x65,0x63,0x6b,0x5f,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,0x6e,0x61,0x6d,0x65,0x00,0x72,0x33,0x00,0x74,
0x65,0x78,0x74,0x00,0x50,0x65,0x6e,0x63,0x69,0x6c,0x00,0x76,0x61,0x6c,0x75,0x65,0x00,0x74,0x72,0x75,
0x65,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x00,0x00,0x00,
0x63,0x6f,0x6c,0x75,0x6d,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,0x63,0x68,0x69,0x6c,0x64,0x72,0x65,0x6e,0x5f,0x6c,0x61,0x79,
0x6f,0x75,0x74,0x00,0x64,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x72,0x3d,0x33,0x2c,0x63,0x3d,0x31,0x2c,
0x79,0x6d,0x3d,0x32,0x2c,0x73,0x3d,0x31,0x30,0x29,0x00,0x00,0x72,0x61,0x64,0x69,0x6f,0x5f,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,
0x6e,0x61,0x6d,0x65,0x00,0x66,0x6f,0x6e,0x74,0x5f,0x73,0x6d,0x61,0x6c,0x6c,0x00,0x74,0x65,0x78,0x74,
0x00,0x53,0x6d,0x61,0x6c,0x6c,0x20,0x46,0x6f,0x6e,0x74,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,
0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x00,0x00,0x72,0x61,0x64,0x69,0x6f,0x5f,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,0x6e,0x61,0x6d,
0x65,0x00,0x66,0x6f,0x6e,0x74,0x5f,0x6e,0x6f,0x72,0x6d,0x61,0x6c,0x00,0x74,0x65,0x78,0x74,0x00,0x4e,
0x6f,0x72,0x6d,0x61,0x6c,0x20,0x46,0x6f,0x6e,0x74,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,
0x00,0x74,0x72,0x75,0x65,0x00,0x00,0x00,0x72,0x61,0x64,0x69,0x6f,0x5f,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,0x6e,0x61,0x6d,0x65,
0x00,0x66,0x6f,0x6e,0x74,0x5f,0x62,0x69,0x67,0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x69,0x67,0x20,0x46,
0x6f,0x6e,0x74,0x00,0x66,0x6f,0x63,0x75,0x73,0x61,0x62,0x6c,0x65,0x00,0x74,0x72,0x75,0x65,0x00,0x00,
0x00,0x00,0x00,0x72,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,0x14,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x64,0x00,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,0x32,0x30,0x2c,0x79,0x3d,0x62,0x6f,
0x74,0x74,0x6f,0x6d,0x3a,0x36,0x30,0x2c,0x77,0x3d,0x31,0x30,0x30,0x2c,0x68,0x3d,0x33,0x30,0x29,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,0x72,0x3d,0x31,0x2c,0x63,0x3d,0x34,0x29,0x00,0x00,0x72,0x61,0x64,0x69,0x6f,0x5f,
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,0x73,0x74,0x79,0x6c,0x65,0x00,0x6c,0x65,0x66,0x74,0x00,0x00,0x00,0x72,0x61,0x64,0x69,0x6f,
0x5f,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,0x73,0x74,0x79,0x6c,0x65,0x00,0x6d,0x69,0x64,0x64,0x6c,0x65,0x00,0x00,0x00,0x72,0x61,
0x64,0x69,0x6f,0x5f,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,0x73,0x74,0x79,0x6c,0x65,0x00,0x72,0x69,0x67,0x68,0x74,0x00,0x00,0x00,
0x63,0x68,0x65,0x63,0x6b,0x5f,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,0x73,0x74,0x79,0x6c,0x65,0x00,0x6d,0x75,0x74,0x65,0x00,0x00,
0x00,0x00,0x67,0x72,0x69,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x50,0x00,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,0x32,0x30,0x2c,0x79,0x3d,0x62,0x6f,0x74,
0x74,0x6f,0x6d,0x3a,0x31,0x30,0x2c,0x77,0x3d,0x38,0x30,0x25,0x2c,0x68,0x3d,0x34,0x30,0x29,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,0x72,0x3d,0x31,0x2c,0x63,0x3d,0x35,0x2c,0x78,0x3d,0x32,0x2c,0x73,0x3d,0x31,0x30,0x29,
0x00,0x00,0x69,0x6d,0x61,0x67,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,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,0x72,0x61,0x77,0x5f,0x74,0x79,0x70,0x65,0x00,
0x69,0x63,0x6f,0x6e,0x00,0x69,0x6d,0x61,0x67,0x65,0x00,0x65,0x61,0x72,0x74,0x68,0x00,0x61,0x6e,0x69,
0x6d,0x61,0x74,0x69,0x6f,0x6e,0x00,0x72,0x6f,0x74,0x61,0x74,0x69,0x6f,0x6e,0x28,0x66,0x72,0x6f,0x6d,
0x3d,0x30,0x2c,0x20,0x74,0x6f,0x3d,0x36,0x2e,0x32,0x38,0x2c,0x20,0x72,0x65,0x70,0x65,0x61,0x74,0x5f,
0x74,0x69,0x6d,0x65,0x73,0x3d,0x30,0x2c,0x20,0x64,0x75,0x72,0x61,0x74,0x69,0x6f,0x6e,0x3d,0x32,0x30,
0x30,0x30,0x2c,0x20,0x65,0x61,0x73,0x69,0x6e,0x67,0x3d,0x6c,0x69,0x6e,0x65,0x61,0x72,0x29,0x00,0x00,
0x00,0x69,0x6d,0x61,0x67,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,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,0x72,0x61,0x77,0x5f,0x74,0x79,0x70,0x65,0x00,0x69,
0x63,0x6f,0x6e,0x00,0x69,0x6d,0x61,0x67,0x65,0x00,0x72,0x67,0x62,0x61,0x00,0x00,0x00,0x69,0x6d,0x61,
0x67,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,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,0x72,0x61,0x77,0x5f,0x74,0x79,0x70,0x65,0x00,0x69,0x63,0x6f,0x6e,0x00,
0x69,0x6d,0x61,0x67,0x65,0x00,0x72,0x67,0x62,0x00,0x00,0x00,0x69,0x6d,0x61,0x67,0x65,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,0x72,0x61,0x77,0x5f,0x74,0x79,0x70,0x65,0x00,0x69,0x63,0x6f,0x6e,0x00,0x69,0x6d,0x61,0x67,0x65,
0x00,0x6d,0x65,0x73,0x73,0x61,0x67,0x65,0x00,0x00,0x00,0x69,0x6d,0x61,0x67,0x65,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,
0x72,0x61,0x77,0x5f,0x74,0x79,0x70,0x65,0x00,0x69,0x63,0x6f,0x6e,0x00,0x69,0x6d,0x61,0x67,0x65,0x00,
0x72,0x65,0x64,0x5f,0x62,0x74,0x6e,0x5f,0x6e,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};/*3618*/

View File

@ -0,0 +1,61 @@
TK_CONST_DATA_ALIGN(const unsigned char ui_button_fscript[]) = {
0x04,0x00,0x01,0x01,0x77,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x5f,0x66,
0x73,0x63,0x72,0x69,0x70,0x74,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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,0x6e,0x69,0x6d,
0x5f,0x68,0x69,0x6e,0x74,0x00,0x68,0x74,0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,0x65,0x00,0x74,0x68,0x65,
0x6d,0x65,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x00,0x00,0x63,0x6f,0x6c,0x75,0x6d,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,0x73,
0x74,0x79,0x6c,0x65,0x00,0x62,0x75,0x74,0x74,0x6f,0x6e,0x73,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,0x6f,0x70,0x65,0x6e,0x3a,0x64,0x69,0x61,0x6c,0x6f,0x67,0x31,0x00,
0x73,0x74,0x79,0x6c,0x65,0x00,0x72,0x6f,0x75,0x6e,0x64,0x00,0x65,0x6e,0x61,0x62,0x6c,0x65,0x5f,0x6c,
0x6f,0x6e,0x67,0x5f,0x70,0x72,0x65,0x73,0x73,0x00,0x74,0x72,0x75,0x65,0x00,0x74,0x65,0x78,0x74,0x00,
0x4c,0x6f,0x6e,0x67,0x20,0x50,0x72,0x65,0x73,0x73,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,0x73,0x74,0x79,0x6c,0x65,0x00,0x72,0x65,0x64,0x5f,0x62,0x74,0x6e,0x00,0x74,0x65,0x78,0x74,0x00,
0x54,0x65,0x78,0x74,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,0x73,0x74,0x79,0x6c,0x65,
0x00,0x72,0x6f,0x75,0x6e,0x64,0x5f,0x74,0x6f,0x70,0x00,0x74,0x65,0x78,0x74,0x00,0x46,0x75,0x6c,0x6c,
0x73,0x63,0x72,0x65,0x65,0x6e,0x00,0x6e,0x61,0x6d,0x65,0x00,0x66,0x75,0x6c,0x6c,0x73,0x63,0x72,0x65,
0x65,0x6e,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,0x73,0x74,0x79,0x6c,0x65,0x00,0x72,
0x6f,0x75,0x6e,0x64,0x5f,0x62,0x6f,0x74,0x74,0x6f,0x6d,0x00,0x00,0x6c,0x61,0x62,0x65,0x6c,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,0x74,0x65,0x78,0x74,0x00,0x54,0x65,0x78,0x74,0x00,0x00,0x00,0x69,0x6d,0x61,0x67,
0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x1e,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,0x72,0x69,0x67,0x68,0x74,0x2c,0x79,0x3d,0x30,0x2c,0x77,0x3d,0x33,0x30,
0x2c,0x68,0x3d,0x31,0x30,0x30,0x25,0x29,0x00,0x69,0x6d,0x61,0x67,0x65,0x00,0x65,0x61,0x72,0x74,0x68,
0x00,0x64,0x72,0x61,0x77,0x5f,0x74,0x79,0x70,0x65,0x00,0x69,0x63,0x6f,0x6e,0x00,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,0xaa,0x00,0x00,0x00,
0x3c,0x00,0x00,0x00,0x3c,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,0x31,0x37,0x30,0x2c,0x77,0x3d,
0x36,0x30,0x2c,0x68,0x3d,0x36,0x30,0x29,0x00,0x73,0x74,0x79,0x6c,0x65,0x00,0x69,0x63,0x6f,0x6e,0x00,
0x74,0x65,0x78,0x74,0x00,0x54,0x65,0x78,0x74,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,0xf0,0x00,0x00,0x00,0x3c,0x00,0x00,0x00,0x3c,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,0x32,0x34,0x30,0x2c,0x77,0x3d,0x36,0x30,0x2c,0x68,0x3d,0x36,0x30,0x29,
0x00,0x73,0x74,0x79,0x6c,0x65,0x00,0x69,0x63,0x6f,0x6e,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,0x36,0x01,0x00,0x00,0x1e,0x00,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,0x2c,0x79,0x3d,0x33,0x31,0x30,0x2c,0x77,0x3d,0x33,0x30,0x2c,0x68,0x3d,0x33,
0x30,0x29,0x00,0x73,0x74,0x79,0x6c,0x65,0x00,0x69,0x6d,0x61,0x67,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,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x62,0x61,0x63,0x6b,0x28,0x29,
0x00,0x73,0x74,0x79,0x6c,0x65,0x00,0x63,0x6c,0x6f,0x73,0x65,0x00,0x74,0x65,0x78,0x74,0x00,0x43,0x6c,
0x6f,0x73,0x65,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,};/*1191*/

View File

@ -0,0 +1,38 @@
TK_CONST_DATA_ALIGN(const unsigned char ui_main_fscript[]) = {
0x04,0x00,0x01,0x01,0xab,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x6d,0x61,0x69,0x6e,0x5f,0x66,0x73,0x63,
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,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x63,0x6c,0x6f,0x73,
0x61,0x62,0x6c,0x65,0x00,0x6e,0x6f,0x00,0x74,0x65,0x78,0x74,0x00,0x44,0x65,0x73,0x6b,0x74,0x6f,0x70,
0x00,0x61,0x6e,0x69,0x6d,0x5f,0x68,0x69,0x6e,0x74,0x00,0x68,0x74,0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,
0x65,0x00,0x73,0x69,0x6e,0x67,0x6c,0x65,0x5f,0x69,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x00,0x74,0x72,
0x75,0x65,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,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,0x38,0x2c,0x6d,0x3d,0x35,0x2c,0x73,0x3d,0x35,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,
0x66,0x6f,0x63,0x75,0x73,0x65,0x64,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,
0x6b,0x00,0x6f,0x70,0x65,0x6e,0x28,0x74,0x65,0x73,0x74,0x5f,0x66,0x73,0x63,0x72,0x69,0x70,0x74,0x29,
0x00,0x74,0x65,0x78,0x74,0x00,0x54,0x65,0x73,0x74,0x20,0x46,0x73,0x63,0x72,0x69,0x70,0x74,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,0x6f,0x70,0x65,0x6e,0x28,0x62,0x75,
0x74,0x74,0x6f,0x6e,0x5f,0x66,0x73,0x63,0x72,0x69,0x70,0x74,0x29,0x00,0x74,0x65,0x78,0x74,0x00,0x42,
0x75,0x74,0x74,0x6f,0x6e,0x73,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,0x6f,0x70,0x65,0x6e,0x28,0x62,0x61,0x73,0x69,0x63,0x5f,0x66,0x73,0x63,0x72,0x69,0x70,0x74,0x29,
0x00,0x74,0x65,0x78,0x74,0x00,0x42,0x61,0x73,0x69,0x63,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,0x00,0x00,0x00,0x00,0x00,};/*731*/

View File

@ -0,0 +1,174 @@
TK_CONST_DATA_ALIGN(const unsigned char ui_test_fscript[]) = {
0x04,0x00,0x01,0x01,0x53,0x0d,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,
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,0x63,0x6c,0x6f,0x73,
0x61,0x62,0x6c,0x65,0x00,0x6e,0x6f,0x00,0x74,0x65,0x78,0x74,0x00,0x44,0x65,0x73,0x6b,0x74,0x6f,0x70,
0x00,0x61,0x6e,0x69,0x6d,0x5f,0x68,0x69,0x6e,0x74,0x00,0x68,0x74,0x72,0x61,0x6e,0x73,0x6c,0x61,0x74,
0x65,0x00,0x73,0x69,0x6e,0x67,0x6c,0x65,0x5f,0x69,0x6e,0x73,0x74,0x61,0x6e,0x63,0x65,0x00,0x74,0x72,
0x75,0x65,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,0x31,0x2c,0x72,0x3d,0x31,0x30,0x2c,0x6d,0x3d,
0x35,0x2c,0x73,0x3d,0x35,0x29,0x00,0x00,0x6c,0x61,0x62,0x65,0x6c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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,0x6c,0x61,0x62,0x65,0x6c,0x00,0x74,0x65,0x78,0x74,0x00,0x6c,0x61,0x62,0x65,0x6c,0x00,0x00,0x00,
0x70,0x72,0x6f,0x67,0x72,0x65,0x73,0x73,0x5f,0x62,0x61,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,0x6e,0x61,0x6d,0x65,0x00,0x62,0x61,0x72,0x00,0x74,0x65,0x78,
0x74,0x00,0x00,0x76,0x61,0x6c,0x75,0x65,0x00,0x31,0x30,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,0x66,0x6f,0x63,
0x75,0x73,0x65,0x64,0x00,0x74,0x72,0x75,0x65,0x00,0x6f,0x6e,0x3a,0x63,0x6c,0x69,0x63,0x6b,0x00,0x6f,
0x70,0x65,0x6e,0x28,0x62,0x61,0x73,0x69,0x63,0x5f,0x66,0x73,0x63,0x72,0x69,0x70,0x74,0x29,0x00,0x74,
0x65,0x78,0x74,0x00,0x42,0x61,0x73,0x69,0x63,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,
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,0x69,
0x70,0x74,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x61,0x73,0x73,0x65,0x72,0x74,
0x28,0x21,0x76,0x61,0x6c,0x75,0x65,0x5f,0x69,0x73,0x5f,0x6e,0x75,0x6c,0x6c,0x28,0x77,0x69,0x6e,0x29,
0x29,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,0x2c,0x20,0x63,0x6c,0x6f,0x73,0x65,0x2e,0x74,0x65,0x78,0x74,0x2c,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,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,0x70,0x61,
0x72,0x65,0x6e,0x74,0x2c,0x20,0x6c,0x61,0x62,0x65,0x6c,0x2e,0x74,0x65,0x78,0x74,0x29,0x20,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,0x54,0x52,0x55,0x45,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,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,0x54,0x52,0x55,0x45,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,0x3e,0x3d,0x20,0x31,
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,
0x2d,0x20,0x31,0x30,0x29,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,
0x54,0x52,0x55,0x45,0x29,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,0x0a,0x20,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,0x64,0x67,0x65,0x74,
0x5f,0x6c,0x6f,0x6f,0x6b,0x75,0x70,0x28,0x77,0x69,0x6e,0x64,0x6f,0x77,0x2e,0x76,0x69,0x65,0x77,0x29,
0x2c,0x20,0x30,0x2c,0x20,0x30,0x2c,0x20,0x30,0x2c,0x20,0x30,0x29,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,
0x20,0x20,0x20,0x20,0x61,0x73,0x73,0x65,0x72,0x74,0x28,0x21,0x76,0x61,0x6c,0x75,0x65,0x5f,0x69,0x73,
0x5f,0x6e,0x75,0x6c,0x6c,0x28,0x61,0x29,0x29,0x0a,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,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,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,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,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,0x54,0x52,0x55,0x45,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,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,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,};/*3459*/

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -62,6 +62,7 @@
#include "assets/default/inc/ui/tab_control.data"
#include "assets/default/inc/ui/slide_view_v2.data"
#include "assets/default/inc/ui/animation.data"
#include "assets/default/inc/ui/basic_fscript.data"
#include "assets/default/inc/ui/keyboard.data"
#include "assets/default/inc/ui/kb_hex.data"
#include "assets/default/inc/ui/popdown.data"
@ -78,6 +79,7 @@
#include "assets/default/inc/ui/tab_bottom.data"
#include "assets/default/inc/ui/list_view_m.data"
#include "assets/default/inc/ui/slide_view_h_loop.data"
#include "assets/default/inc/ui/main_fscript.data"
#include "assets/default/inc/ui/mutable_image.data"
#include "assets/default/inc/ui/calibration_win.data"
#include "assets/default/inc/ui/memtest.data"
@ -135,6 +137,7 @@
#include "assets/default/inc/ui/menu_right_top.data"
#include "assets/default/inc/ui/image_list.data"
#include "assets/default/inc/ui/slide_view_v1.data"
#include "assets/default/inc/ui/test_fscript.data"
#include "assets/default/inc/ui/mono_test.data"
#include "assets/default/inc/ui/select1.data"
#include "assets/default/inc/ui/hscroll_label.data"
@ -149,6 +152,7 @@
#include "assets/default/inc/ui/top.data"
#include "assets/default/inc/ui/button.data"
#include "assets/default/inc/ui/menu.data"
#include "assets/default/inc/ui/button_fscript.data"
#include "assets/default/inc/ui/file_chooser_for_save.data"
#include "assets/default/inc/ui/system_bar.data"
#include "assets/default/inc/ui/menu_right_bottom.data"
@ -527,6 +531,7 @@ ret_t assets_init(void) {
assets_manager_add(am, ui_tab_control);
assets_manager_add(am, ui_slide_view_v2);
assets_manager_add(am, ui_animation);
assets_manager_add(am, ui_basic_fscript);
assets_manager_add(am, ui_keyboard);
assets_manager_add(am, ui_kb_hex);
assets_manager_add(am, ui_popdown);
@ -543,6 +548,7 @@ ret_t assets_init(void) {
assets_manager_add(am, ui_tab_bottom);
assets_manager_add(am, ui_list_view_m);
assets_manager_add(am, ui_slide_view_h_loop);
assets_manager_add(am, ui_main_fscript);
assets_manager_add(am, ui_mutable_image);
assets_manager_add(am, ui_calibration_win);
assets_manager_add(am, ui_memtest);
@ -600,6 +606,7 @@ ret_t assets_init(void) {
assets_manager_add(am, ui_menu_right_top);
assets_manager_add(am, ui_image_list);
assets_manager_add(am, ui_slide_view_v1);
assets_manager_add(am, ui_test_fscript);
assets_manager_add(am, ui_mono_test);
assets_manager_add(am, ui_select1);
assets_manager_add(am, ui_hscroll_label);
@ -614,6 +621,7 @@ ret_t assets_init(void) {
assets_manager_add(am, ui_top);
assets_manager_add(am, ui_button);
assets_manager_add(am, ui_menu);
assets_manager_add(am, ui_button_fscript);
assets_manager_add(am, ui_file_chooser_for_save);
assets_manager_add(am, ui_system_bar);
assets_manager_add(am, ui_menu_right_bottom);

View File

@ -1013,6 +1013,7 @@ event_t* assets_event_init(assets_event_t* event, assets_manager_t* am, uint32_t
*/
int32_t event_from_name(const char* name) ;
#define STR_ON_EVENT_PREFIX "on:"
#define STR_GLOBAL_EVENT_PREFIX "global"
#define STR_VALUE_CHANGED_BY_UI "value_changed_by_ui"

View File

@ -22,6 +22,7 @@
#include "tkc/mem.h"
#include "tkc/utf8.h"
#include "tkc/utils.h"
#include "tkc/fscript.h"
#include "tkc/color_parser.h"
#include "tkc/object_default.h"
@ -1573,6 +1574,34 @@ static ret_t widget_on_ungrab_keys(void* ctx, event_t* e) {
return RET_REMOVE;
}
static ret_t widget_exec_code(void* ctx, event_t* evt) {
value_t result;
widget_t* widget = WIDGET(evt->target);
const char* code = (const char*)ctx;
object_t* obj = object_default_create();
return_value_if_fail(obj != NULL && code != NULL, RET_REMOVE);
object_set_prop_pointer(obj, STR_PROP_SELF, widget);
object_set_prop_pointer(obj, STR_PROP_PARENT, widget->parent);
object_set_prop_pointer(obj, STR_PROP_WINDOW, widget_get_window(widget));
object_set_prop_pointer(obj, STR_PROP_WINDOW_MANAGER, widget_get_window_manager(widget));
value_set_int(&result, 0);
fscript_eval(obj, code, &result);
value_reset(&result);
OBJECT_UNREF(obj);
return RET_OK;
}
static ret_t widget_free_code(void* ctx, event_t* evt) {
widget_t* widget = WIDGET(evt->target);
widget_off_by_ctx(widget, ctx);
TKMEM_FREE(ctx);
return RET_REMOVE;
}
ret_t widget_set_prop(widget_t* widget, const char* name, const value_t* v) {
ret_t ret = RET_OK;
prop_change_event_t e;
@ -1670,7 +1699,21 @@ ret_t widget_set_prop(widget_t* widget, const char* name, const value_t* v) {
}
}
ret = object_set_prop(widget->custom_props, name, v);
if (strncmp(name, STR_ON_EVENT_PREFIX, sizeof(STR_ON_EVENT_PREFIX)-1) == 0) {
int32_t etype = event_from_name(name + sizeof(STR_ON_EVENT_PREFIX)-1);
if (etype != EVT_NONE) {
char* code = tk_strdup(value_str(v));
if(code != NULL) {
widget_on(widget, etype, widget_exec_code, code);
widget_on(widget, EVT_DESTROY, widget_free_code, code);
ret = RET_OK;
}
} else {
log_debug("not found event %s\n", name);
}
} else {
ret = object_set_prop(widget->custom_props, name, v);
}
}
}

View File

@ -1529,6 +1529,12 @@ typedef enum _window_closable_t {
*/
#define WIDGET_CURSOR_SIZEALL "cursor_size_all"
/*for fscript*/
#define STR_PROP_SELF "self"
#define STR_PROP_PARENT "parent"
#define STR_PROP_WINDOW "window"
#define STR_PROP_WINDOW_MANAGER "window_manager"
END_C_DECLS
#endif /*TK_WIDGET_CONSTS_H*/

View File

@ -38,12 +38,22 @@
#include "fscript_ext/fscript_iostream_inet.h"
#include "fscript_ext/fscript_iostream_serial.h"
#ifdef FSCRIPT_WITH_WIDGET
#include "fscript_ext/fscript_widget.h"
#endif/*FSCRIPT_WITH_WIDGET*/
static ret_t func_value_is_valid(fscript_t* fscript, fscript_args_t* args, value_t* result) {
FSCRIPT_FUNC_CHECK(args->size == 1, RET_BAD_PARAMS);
value_set_bool(result, args->args->type != VALUE_TYPE_INVALID);
return RET_OK;
}
static ret_t func_value_is_null(fscript_t* fscript, fscript_args_t* args, value_t* result) {
FSCRIPT_FUNC_CHECK(args->size == 1, RET_BAD_PARAMS);
value_set_bool(result, value_pointer(args->args) == NULL || args->args->type == VALUE_TYPE_INVALID);
return RET_OK;
}
static ret_t func_value_get_binary_size(fscript_t* fscript, fscript_args_t* args, value_t* result) {
FSCRIPT_FUNC_CHECK(args->size == 1, RET_BAD_PARAMS);
@ -72,6 +82,7 @@ static ret_t func_value_get_binary_data(fscript_t* fscript, fscript_args_t* args
ret_t fscript_ext_init(void) {
ENSURE(fscript_register_func("value_is_valid", func_value_is_valid) == RET_OK);
ENSURE(fscript_register_func("value_is_null", func_value_is_null) == RET_OK);
ENSURE(fscript_register_func("value_get_binary_data", func_value_get_binary_data) == RET_OK);
ENSURE(fscript_register_func("value_get_binary_size", func_value_get_binary_size) == RET_OK);
@ -137,5 +148,9 @@ ret_t fscript_ext_init(void) {
fscript_date_time_register();
#endif /*FSCRIPT_WITH_DATE_TIME*/
#ifdef FSCRIPT_WITH_WIDGET
fscript_widget_register();
#endif /*FSCRIPT_WITH_WIDGET*/
return RET_OK;
}

View File

@ -48,6 +48,7 @@ ret_t fscript_ext_init(void);
#define FSCRIPT_WITH_STREAM_INET 1
#define FSCRIPT_WITH_STREAM_SERIAL 1
#define FSCRIPT_WITH_DATE_TIME 1
#define FSCRIPT_WITH_WIDGET 1
#endif /*PC*/
END_C_DECLS

View File

@ -0,0 +1,251 @@
/**
* File: fscript_widget.c
* Author: AWTK Develop Team
* Brief: widget functions for fscript
*
* Copyright (c) 2020 - 2021 Guangzhou ZHIYUAN Electronics Co.,Ltd.
*
*/
/**
* History:
* ================================================================
* 2021-01-08 Li XianJing <lixianjing@zlg.cn> created
*
*/
#include "awtk_global.h"
#include "tkc/fscript.h"
#include "tkc/tokenizer.h"
#include "base/window.h"
#include "base/locale_info.h"
#include "base/widget_factory.h"
#include "base/window_manager.h"
#include "ui_loader/ui_builder_default.h"
static ret_t func_tr(fscript_t* fscript, fscript_args_t* args, value_t* result) {
FSCRIPT_FUNC_CHECK(args->size == 1, RET_BAD_PARAMS);
value_dup_str(result, locale_info_tr(locale_info(), value_str(args->args)));
return RET_OK;
}
static ret_t func_window_open(fscript_t* fscript, fscript_args_t* args, value_t* result) {
widget_t* widget = NULL;
FSCRIPT_FUNC_CHECK(args->size == 1, RET_BAD_PARAMS);
widget = window_open(value_str(args->args));
value_set_pointer(result, widget);
return RET_OK;
}
static ret_t func_window_close(fscript_t* fscript, fscript_args_t* args, value_t* result) {
value_t* v = NULL;
ret_t ret = RET_OK;
if (args->size == 1) {
v = args->args;
if (v->type == VALUE_TYPE_STRING) {
ret = window_close(widget_child(window_manager(), value_str(v)));
} else if (v->type == VALUE_TYPE_POINTER) {
ret = window_close(WIDGET(value_pointer(v)));
} else {
ret = window_manager_back(window_manager());
}
} else {
widget_t* self = WIDGET(object_get_prop_pointer(fscript->obj, STR_PROP_SELF));
ret = window_close(widget_get_window(self));
}
value_set_bool(result, ret == RET_OK);
return ret;
}
static widget_t* find_target_widget(widget_t* widget, const char* path, uint32_t len) {
bool_t is_first = TRUE;
tokenizer_t tokenizer;
widget_t* iter = widget;
tokenizer_t* t = NULL;
return_value_if_fail(widget != NULL && path != NULL, NULL);
t = tokenizer_init(&tokenizer, path, len, ".");
return_value_if_fail(t != NULL, NULL);
while (tokenizer_has_more(t) && iter != NULL) {
const char* name = tokenizer_next(t);
if (is_first) {
if (tk_str_eq(name, STR_PROP_PARENT)) {
iter = widget->parent;
} else if (tk_str_eq(name, STR_PROP_WINDOW)) {
iter = widget_get_window(widget);
} else if (tk_str_eq(name, STR_PROP_WINDOW_MANAGER)) {
iter = widget_get_window_manager(widget);
} else {
iter = widget_child(iter, name);
}
is_first = FALSE;
} else {
iter = widget_child(iter, name);
}
}
tokenizer_deinit(t);
return iter;
}
static ret_t widget_set(widget_t* self, const char* path, const value_t* v) {
widget_t* widget = self;
const char* prop = strrchr(path, '.');
if (prop != NULL) {
widget = find_target_widget(self, path, prop - path);
prop++;
} else {
prop = path;
}
return_value_if_fail(widget != NULL, RET_BAD_PARAMS);
return widget_set_prop(widget, prop, v);
}
static ret_t widget_get(widget_t* self, const char* path, value_t* v) {
widget_t* widget = self;
const char* prop = strrchr(path, '.');
if (prop != NULL) {
widget = find_target_widget(self, path, prop - path);
prop++;
} else {
prop = path;
}
return_value_if_fail(widget != NULL, RET_BAD_PARAMS);
return widget_get_prop(widget, prop, v);
}
static ret_t func_quit(fscript_t* fscript, fscript_args_t* args, value_t* result) {
tk_quit();
return RET_OK;
}
static ret_t func_back(fscript_t* fscript, fscript_args_t* args, value_t* result) {
window_manager_back(window_manager());
return RET_OK;
}
static ret_t func_back_to_home(fscript_t* fscript, fscript_args_t* args, value_t* result) {
window_manager_back_to_home(window_manager());
return RET_OK;
}
static ret_t func_widget_lookup(fscript_t* fscript, fscript_args_t* args, value_t* result) {
widget_t* widget = NULL;
const char* path = NULL;
bool_t recursive = FALSE;
FSCRIPT_FUNC_CHECK(args->size >= 1, RET_BAD_PARAMS);
if (args->size == 1) {
widget = WIDGET(object_get_prop_pointer(fscript->obj, STR_PROP_SELF));
path = value_str(args->args);
} else {
widget = WIDGET(value_pointer(args->args));
path = value_str(args->args + 1);
recursive = args->size > 2 ? value_bool(args->args + 2) : FALSE;
}
FSCRIPT_FUNC_CHECK(widget != NULL && path != NULL, RET_BAD_PARAMS);
if(strchr(path, '.') != NULL) {
widget = find_target_widget(widget, path, strlen(path));
} else {
widget = widget_lookup(widget, path, recursive);
}
value_set_pointer(result, widget);
return RET_OK;
}
static ret_t func_widget_get(fscript_t* fscript, fscript_args_t* args, value_t* result) {
widget_t* widget = NULL;
const char* path = NULL;
FSCRIPT_FUNC_CHECK(args->size >= 1, RET_BAD_PARAMS);
if (args->size == 1) {
widget = WIDGET(object_get_prop_pointer(fscript->obj, STR_PROP_SELF));
path = value_str(args->args);
} else {
widget = WIDGET(value_pointer(args->args));
path = value_str(args->args + 1);
}
FSCRIPT_FUNC_CHECK(widget != NULL && path != NULL, RET_BAD_PARAMS);
return widget_get(widget, path, result);
}
static ret_t func_widget_set(fscript_t* fscript, fscript_args_t* args, value_t* result) {
value_t* v = NULL;
ret_t ret = RET_OK;
widget_t* widget = NULL;
const char* path = NULL;
FSCRIPT_FUNC_CHECK(args->size >= 2, RET_BAD_PARAMS);
if (args->size == 2) {
widget = WIDGET(object_get_prop_pointer(fscript->obj, STR_PROP_SELF));
path = value_str(args->args);
v = args->args + 1;
} else {
widget = WIDGET(value_pointer(args->args));
path = value_str(args->args + 1);
v = args->args + 2;
}
FSCRIPT_FUNC_CHECK(widget != NULL && path != NULL, RET_BAD_PARAMS);
ret = widget_set(widget, path, v);
value_set_bool(result, ret == RET_OK);
return ret;
}
static ret_t func_widget_create(fscript_t* fscript, fscript_args_t* args, value_t* result) {
int32_t x = 0;
int32_t y = 0;
int32_t w = 0;
int32_t h = 0;
const char* type = NULL;
widget_t* widget = NULL;
widget_t* parent = NULL;
FSCRIPT_FUNC_CHECK(args->size == 6, RET_BAD_PARAMS);
type = value_str(args->args);
parent = value_pointer(args->args+1);
return_value_if_fail(type != NULL && parent != NULL, RET_BAD_PARAMS);
x = value_int(args->args+2);
y = value_int(args->args+3);
w = value_int(args->args+4);
h = value_int(args->args+5);
widget = widget_factory_create_widget(widget_factory(), type, parent, x, y, w, h);
value_set_pointer(result, widget);
return RET_OK;
}
static ret_t func_widget_destroy(fscript_t* fscript, fscript_args_t* args, value_t* result) {
FSCRIPT_FUNC_CHECK(args->size == 1, RET_BAD_PARAMS);
value_set_bool(result, widget_destroy(WIDGET(value_pointer(args->args))) == RET_OK);
return RET_OK;
}
ret_t fscript_widget_register(void) {
ENSURE(fscript_register_func("tr", func_tr) == RET_OK);
ENSURE(fscript_register_func("open", func_window_open) == RET_OK);
ENSURE(fscript_register_func("close", func_window_close) == RET_OK);
ENSURE(fscript_register_func("quit", func_quit) == RET_OK);
ENSURE(fscript_register_func("back", func_back) == RET_OK);
ENSURE(fscript_register_func("widget_lookup", func_widget_lookup) == RET_OK);
ENSURE(fscript_register_func("widget_get", func_widget_get) == RET_OK);
ENSURE(fscript_register_func("widget_set", func_widget_set) == RET_OK);
ENSURE(fscript_register_func("back_to_home", func_back_to_home) == RET_OK);
ENSURE(fscript_register_func("widget_create", func_widget_create) == RET_OK);
ENSURE(fscript_register_func("widget_destroy", func_widget_destroy) == RET_OK);
return RET_OK;
}

View File

@ -0,0 +1,35 @@
/**
* File: fscript_widget.h
* Author: AWTK Develop Team
* Brief: widget functions for fscript
*
* Copyright (c) 2020 - 2021 Guangzhou ZHIYUAN Electronics Co.,Ltd.
*
*/
/**
* History:
* ================================================================
* 2021-01-08 Li XianJing <lixianjing@zlg.cn> created
*
*/
#ifndef TK_FSCRIPT_WIDGET_H
#define TK_FSCRIPT_WIDGET_H
#include "tkc/str.h"
#include "tkc/object.h"
BEGIN_C_DECLS
/**
* @method fscript_widget_register
* widget函数
*
* @return {ret_t} RET_OK表示成功
*/
ret_t fscript_widget_register(void);
END_C_DECLS
#endif /*TK_FSCRIPT_WIDGET_H*/

View File

@ -208,8 +208,8 @@ static ret_t fscript_get_var(fscript_t* fscript, const char* name, value_t* valu
if (is_fast_var(name)) {
value_t* var = fscript_get_fast_var(fscript, name);
if (name[1] == '.') {
object_t* obj = value_object(var);
if (obj != NULL) {
if (var->type == VALUE_TYPE_OBJECT) {
object_t* obj = value_object(var);
ret = object_get_prop(obj, name + 2, value);
} else {
ret = object_get_prop(fscript->obj, name, value);
@ -221,7 +221,7 @@ static ret_t fscript_get_var(fscript_t* fscript, const char* name, value_t* valu
ret = object_get_prop(fscript->obj, name, value);
}
if (ret != RET_OK) {
log_warn("get var %s failed\n", name);
log_warn("get var %s failed, treat as string\n", name);
}
return ret;
}
@ -231,8 +231,8 @@ static ret_t fscript_set_var(fscript_t* fscript, const char* name, const value_t
if (is_fast_var(name)) {
value_t* var = fscript_get_fast_var(fscript, name);
if (name[1] == '.') {
object_t* obj = value_object(var);
if (obj != NULL) {
if (var->type == VALUE_TYPE_OBJECT) {
object_t* obj = value_object(var);
ret = object_set_prop(obj, name + 2, value);
} else {
ret = object_set_prop(fscript->obj, name, value);

View File

@ -137,7 +137,7 @@ static object_t* object_default_get_sub_object(object_t* obj, const char* name)
int32_t index = object_default_find(o->props, o->props_size, subname);
if (index >= 0 && index < o->props_size) {
named_value_t* nv = o->props + index;
if (tk_str_eq(nv->name, subname)) {
if (tk_str_eq(nv->name, subname) && nv->value.type == VALUE_TYPE_OBJECT) {
return value_object(&(nv->value));
}
}