Subversion Repositories Kolibri OS

Rev

Rev 1577 | Rev 1619 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1577 Rev 1609
Line 10... Line 10...
10
	dd sys_path
10
	dd sys_path
Line 11... Line 11...
11
 
11
 
12
include '../../../macros.inc'
12
include '../../../macros.inc'
13
include '../../../proc32.inc'
13
include '../../../proc32.inc'
-
 
14
include '../../../develop/libraries/box_lib/load_lib.mac'
14
include '../../../develop/libraries/box_lib/load_lib.mac'
15
include '../../../develop/libraries/box_lib/trunk/box_lib.mac' ;¬ ªà®áë ¤«ï § ¤ ­¨ï í«¥¬¥­â®¢ box_lib
15
include 'mem.inc'
16
include 'mem.inc'
Line 16... Line 17...
16
include 'dll.inc'
17
include 'dll.inc'
Line 59... Line 60...
59
BUT1_L equ 15 ;®âáâ㯠᫥¢ 
60
BUT1_L equ 15 ;®âáâ㯠᫥¢ 
60
BUT1_W equ 50 ;è¨à¨­ 
61
BUT1_W equ 50 ;è¨à¨­ 
61
BUT1_H equ 20 ;¢ëá®â 
62
BUT1_H equ 20 ;¢ëá®â 
62
BUT1_NEXT_TOP equ (BUT1_T+BUT1_H)*65536
63
BUT1_NEXT_TOP equ (BUT1_T+BUT1_H)*65536
Line -... Line 64...
-
 
64
 
Line 63... Line 65...
63
 
65
game_select_mode db 1 ;०¨¬ ¢ë¡®à  ¨£àë
64
 
66
 
65
FILE_NAME_MAX equ 20 ;¬ ªá¨¬ «ì­ ï ¤«¨­­  ¨¬¥­¨ ä ©«  (¡¥§ ¯ ¯®ª, ®â­®á¨â¥«ì­® ⥪ã饩)
67
FILE_NAME_MAX equ 20 ;¬ ªá¨¬ «ì­ ï ¤«¨­­  ¨¬¥­¨ ä ©«  (¡¥§ ¯ ¯®ª, ®â­®á¨â¥«ì­® ⥪ã饩)
66
;§­ ç¥­¨ï ¨¬¥­ ¯® 㬮«ç ­¨î
68
;§­ ç¥­¨ï ¨¬¥­ ¯® 㬮«ç ­¨î
67
ini_def_decorat_file db 'curici.png',0
69
ini_def_decorat_file db 'curici.png',0
-
 
70
ini_def_unit_file db 'wolf.png',0
68
ini_def_unit_file db 'wolf.png',0
71
ini_def_objects_file db 'eggs.png',0
69
ini_def_objects_file db 'eggs.png',0
72
ini_def_lost_file db 'chi.png',0
70
;¨¬¥­  ä ©«®¢
73
;¨¬¥­  ä ©«®¢
71
fn_icon0 rb FILE_NAME_MAX ;¨¬ï ä ©«  á ¤¥ª®à æ¨ï¬¨
74
fn_icon0 rb FILE_NAME_MAX ;¨¬ï ä ©«  á ¤¥ª®à æ¨ï¬¨
72
fn_icon1 rb FILE_NAME_MAX ;¨¬ï ä ©«  á ¢®«ª®¬ ¨ § ©æ¥¬
75
fn_icon1 rb FILE_NAME_MAX ;¨¬ï ä ©«  á ¢®«ª®¬ ¨ § ©æ¥¬
73
fn_icon2 rb FILE_NAME_MAX ;¨¬ï ä ©«  á ï©æ ¬¨
76
fn_icon2 rb FILE_NAME_MAX ;¨¬ï ä ©«  á ï©æ ¬¨
Line -... Line 77...
-
 
77
fn_icon3 rb FILE_NAME_MAX ;¨¬ï ä ©«  á 樯«ïâ ¬¨
-
 
78
fn_font db 'font8x9.bmp',0
-
 
79
 
74
fn_icon3 db 'chi.png',0 ;¨¬ï ä ©«  á 樯«ïâ ¬¨
80
fn_icon_tl_sys db 'tl_sys_16.png',0
-
 
81
TREE_ICON_SYS16_BMP_SIZE equ 256*3*11+54 ;à §¬¥à bmp ä ©«  á á¨á⥬­ë¬¨ ¨ª®­ª ¬¨
-
 
82
 
-
 
83
ini_m_name db 'main.ini',0
-
 
84
key_count db 'count',0
-
 
85
key_game db 'g'
75
fn_font db 'font8x9.bmp',0
86
	key_game_ind db 0,0,0
76
 
87
 
77
ini_name db 'nu_pogod.ini',0
88
ini_name rb FILE_NAME_MAX ;¨¬ï ini ä ©«  c ¢ë¡à ­­®© ¨£à®©
78
ini_sec_files db 'Files',0
89
ini_sec_files db 'Files',0
-
 
90
key_file_decorat db 'file_decorat',0
79
key_file_decorat db 'file_decorat',0
91
key_file_unit db 'file_unit',0
80
key_file_unit db 'file_unit',0
92
key_file_objects db 'file_objects',0
81
key_file_objects db 'file_objects',0
93
key_file_lost db 'file_lost',0
82
key_displ_w db 'displ_w',0
94
key_displ_w db 'displ_w',0
Line 610... Line 622...
610
	stdcall mem.Free,[image_data_gray] ;®á¢®¡®¦¤ ¥¬ ¯ ¬ïâì
622
	stdcall mem.Free,[image_data_gray] ;®á¢®¡®¦¤ ¥¬ ¯ ¬ïâì
611
	popad
623
	popad
612
	ret
624
	ret
613
endp
625
endp
Line -... Line 626...
-
 
626
 
-
 
627
txt_tile_type_0 rb FILE_NAME_MAX
614
 
628
 
615
align 4
629
align 4
616
start:
630
user_is_select:
Line 617... Line 631...
617
	load_libraries l_libs_start,load_lib_end
631
	push ecx esi edi
618
 
632
	
619
	;¯à®¢¥àª  ­  ᪮«ìª® 㤠筮 § £ã§¨« áì ­ è  «¨¡ 
633
	stdcall [tl_node_get_data], tree1
620
	mov	ebp,lib0
634
	pop esi
621
	cmp	dword [ebp+ll_struc_size-4],0
635
	cmp esi,0 ;¥á«¨ ¨¬ï ¨£àë ¯ãá⮥
-
 
636
	je @f	
622
	jz	@f
637
		mov edi,ini_name
623
		mcall -1 ;exit not correct
638
		mov ecx,FILE_NAME_MAX
-
 
639
		cld
624
	@@:
640
		rep movsb
625
	mov	ebp,lib1
-
 
626
	cmp	dword [ebp+ll_struc_size-4],0
641
 
627
	jz	@f
642
		mov byte[game_select_mode],0
-
 
643
		call InitAll
Line 628... Line 644...
628
		mcall -1 ;exit not correct
644
	@@:
629
	@@:
-
 
-
 
645
	pop edi esi ecx
Line -... Line 646...
-
 
646
 
-
 
647
	call draw_window
-
 
648
	ret
-
 
649
 
-
 
650
;******************************************************************************
-
 
651
; äã­ªæ¨ï, ª®â®à ï 1 à § ¤¥« ¥â ¢á¥ ­ áâனª¨ ­ã¦­ë¥ ¤«ï ¨£àë
630
 
652
;******************************************************************************
631
	mcall 40,0x27
653
align 4
632
	mcall 48,3,sc,sizeof.system_colors ;¯®«ãç ¥¬ á¨á⥬­ë¥ 梥â 
654
InitAll:
633
 
655
	pushad
634
	;à ¡®â  á ä ©«®¬ ­ áâ஥ª
656
	;à ¡®â  á ä ©«®¬ ­ áâ஥ª
635
	copy_path ini_name,sys_path,file_name,0x0
657
	copy_path ini_name,sys_path,file_name,0x0
636
	stdcall dword[ini_get_int],file_name,ini_sec_files,key_displ_w,210
658
	stdcall dword[ini_get_int],file_name,ini_sec_files,key_displ_w,210
637
	mov	dword[displ_w],eax
659
	mov	dword[displ_w],eax
638
	stdcall dword[ini_get_int],file_name,ini_sec_files,key_displ_h,140
660
	stdcall dword[ini_get_int],file_name,ini_sec_files,key_displ_h,140
-
 
661
	mov	dword[displ_h],eax
-
 
662
	stdcall dword[ini_get_str],file_name,ini_sec_files,key_file_decorat,fn_icon0,FILE_NAME_MAX,ini_def_decorat_file
639
	mov	dword[displ_h],eax
663
	stdcall dword[ini_get_str],file_name,ini_sec_files,key_file_unit,fn_icon1,FILE_NAME_MAX,ini_def_unit_file
640
	stdcall dword[ini_get_str],file_name,ini_sec_files,key_file_decorat,fn_icon0,FILE_NAME_MAX,ini_def_decorat_file
664
	stdcall dword[ini_get_str],file_name,ini_sec_files,key_file_objects,fn_icon2,FILE_NAME_MAX,ini_def_objects_file
641
	stdcall dword[ini_get_str],file_name,ini_sec_files,key_file_unit,fn_icon1,FILE_NAME_MAX,ini_def_unit_file
665
	stdcall dword[ini_get_str],file_name,ini_sec_files,key_file_lost,fn_icon3,FILE_NAME_MAX,ini_def_lost_file
642
	stdcall dword[ini_get_str],file_name,ini_sec_files,key_file_objects,fn_icon2,FILE_NAME_MAX,ini_def_objects_file
666
 
Line 712... Line 736...
712
	mov buf2d_h,edx
736
	mov buf2d_h,edx
713
	stdcall [buf2d_create], buf_fon ;ᮧ¤ ¥¬ ¡ãä¥à á ä®­®¢ë¬¨ ¤¥ª®à æ¨ï¬¨
737
	stdcall [buf2d_create], buf_fon ;ᮧ¤ ¥¬ ¡ãä¥à á ä®­®¢ë¬¨ ¤¥ª®à æ¨ï¬¨
Line 714... Line 738...
714
 
738
 
715
	call InitBackgroundBuffer ;§ ¯®«­ï¥¬ ¡ãä¥à á ä®­®¢ë¬¨ ¤¥ª®à æ¨ï¬¨
739
	call InitBackgroundBuffer ;§ ¯®«­ï¥¬ ¡ãä¥à á ä®­®¢ë¬¨ ¤¥ª®à æ¨ï¬¨
-
 
740
	stdcall InitGame,0
-
 
741
	popad
-
 
742
	ret
-
 
743
 
-
 
744
align 4
-
 
745
start:
-
 
746
	load_libraries l_libs_start,load_lib_end
-
 
747
 
-
 
748
	;¯à®¢¥àª  ­  ᪮«ìª® 㤠筮 § £ã§¨« áì ­ è  «¨¡ 
-
 
749
	mov	ebp,lib0
-
 
750
	cmp	dword [ebp+ll_struc_size-4],0
-
 
751
	jz	@f
-
 
752
		mcall -1 ;exit not correct
-
 
753
	@@:
-
 
754
	mov	ebp,lib1
-
 
755
	cmp	dword [ebp+ll_struc_size-4],0
-
 
756
	jz	@f
-
 
757
		mcall -1 ;exit not correct
-
 
758
	@@:
-
 
759
 
-
 
760
	mcall 40,0x27
-
 
761
	mcall 48,3,sc,sizeof.system_colors ;¯®«ãç ¥¬ á¨á⥬­ë¥ 梥â 
-
 
762
 
-
 
763
;******************************************************************************
-
 
764
; ¯®¤£®â®¢ª  ᯨ᪠ ¨£®à
-
 
765
;******************************************************************************
-
 
766
	stdcall dword[tl_data_init], tree1
-
 
767
 
-
 
768
	load_image_file fn_icon_tl_sys, image_data_gray,TREE_ICON_SYS16_BMP_SIZE
-
 
769
	stdcall [buf2d_create_f_img], buf_tree_sys,[image_data_gray] ;ᮧ¤ ¥¬ ¡ãä¥à
-
 
770
	stdcall mem.Free,[image_data_gray] ;®á¢®¡®¦¤ ¥¬ ¯ ¬ïâì
-
 
771
 
-
 
772
	mov edi,buf_tree_sys
-
 
773
	m2m dword[tree1.data_img_sys],buf2d_data
-
 
774
 
-
 
775
	;à ¡®â  á £« ¢­ë¬ ä ©«®¬ ­ áâ஥ª
-
 
776
	copy_path ini_m_name,sys_path,file_name,0x0
-
 
777
 
-
 
778
	stdcall dword[ini_get_int],file_name,ini_sec_files,key_count,1
-
 
779
	mov	ecx,eax
-
 
780
	mov dl,'0'
-
 
781
	cld
-
 
782
	@@:
-
 
783
		mov byte[key_game_ind],dl
-
 
784
		inc dl
-
 
785
		push ecx edx
-
 
786
		stdcall dword[ini_get_str],file_name,ini_sec_files,key_game,txt_tile_type_0,FILE_NAME_MAX,ini_def_decorat_file
-
 
787
		stdcall dword[tl_node_add], txt_tile_type_0, 0, tree1 ;¤®¡ ¢«ï¥¬ ­ §¢ ­¨¥ ¨£àë
-
 
788
		stdcall dword[tl_cur_next], tree1 ;¯¥à¥­®á¨¬ ªãàá®à ¢­¨§, çâ®-¡ë ­¥ ¯®¬¥­ï«áï ¯®à冷ª ¨£à
-
 
789
		pop edx ecx
-
 
790
	loop @b
-
 
791
	stdcall dword[tl_cur_beg], tree1 ;¯¥à¥­®á¨¬ ªãàá®à ¢¢¥àå
716
	stdcall InitGame,0
792
 
717
	mcall 26,9
793
	mcall 26,9
Line 723... Line 799...
723
red_win:
799
red_win:
724
	call draw_window
800
	call draw_window
Line 725... Line 801...
725
 
801
 
726
align 4
802
align 4
-
 
803
still: ;£« ¢­ë© 横«
-
 
804
 
727
still: ;£« ¢­ë© 横«
805
	cmp byte[game_select_mode],0
-
 
806
	jne .select_mode
-
 
807
	
728
	mcall 26,9
808
	mcall 26,9 ;¡¥à¥¬ á¨á⥬­®¥ ¢à¥¬ï
729
	mov ebx,[last_time]
809
	mov ebx,[last_time]
730
	add ebx,dword[game_spd] ;delay
810
	add ebx,dword[game_spd] ;delay
731
	sub ebx,eax
811
	sub ebx,eax
732
	cmp ebx,dword[game_spd] ;delay
812
	cmp ebx,dword[game_spd] ;delay
Line 736... Line 816...
736
	mcall 23
816
	mcall 23
Line 737... Line 817...
737
 
817
 
738
	cmp eax,0
818
	cmp eax,0
Line -... Line 819...
-
 
819
	je it_is_time_now
-
 
820
 
739
	je it_is_time_now
821
	jmp @f
-
 
822
	.select_mode:
Line 740... Line 823...
740
 
823
		mcall 10
741
	;mcall 10
824
	@@:
742
 
825
 
743
	cmp al,0x1 ;¨§¬¥­¨«®áì ¯®«®¦¥­¨¥ ®ª­ 
826
	cmp al,1 ;¨§¬¥­¨«®áì ¯®«®¦¥­¨¥ ®ª­ 
744
	jz red_win
827
	jz red_win
745
	cmp al,0x2
828
	cmp al,2
-
 
829
	jz key
-
 
830
	cmp al,3
-
 
831
	jz button
-
 
832
	cmp al,6
Line -... Line 833...
-
 
833
	jz mouse
-
 
834
 
-
 
835
	jmp still
-
 
836
 
-
 
837
align 4
-
 
838
mouse:
746
	jz key
839
	cmp byte[game_select_mode],0
Line 747... Line 840...
747
	cmp al,0x3
840
	je @f
748
	jz button
841
		stdcall [tl_mouse], tree1 ;¥á«¨ ¨£à  ¥é¥ ­¥ ¢ë¡à ­ 
749
 
842
	@@:
750
	jmp still
843
	jmp still
Line -... Line 844...
-
 
844
 
-
 
845
align 4
-
 
846
it_is_time_now:
751
 
847
	mcall 26,9
752
align 4
848
	mov [last_time],eax
753
it_is_time_now:
849
 
754
	mcall 26,9
850
	cmp byte[game_select_mode],0
Line 755... Line 851...
755
	mov [last_time],eax
851
	jne still
756
 
852
 
757
	;...§¤¥áì ¨¤ãâ ¤¥©á⢨ï, ¢ë§ë¢ ¥¬ë¥ ª ¦¤ë¥ delay á®âëå ¤®«¥© ᥪ㭤...
853
	;...§¤¥áì ¨¤ãâ ¤¥©á⢨ï, ¢ë§ë¢ ¥¬ë¥ ª ¦¤ë¥ delay á®âëå ¤®«¥© ᥪ㭤...
758
	call MoveEggs
854
	call MoveEggs
Line -... Line 855...
-
 
855
	call draw_display
-
 
856
	jmp still
-
 
857
 
-
 
858
align 4
-
 
859
key:
759
	call draw_display
860
	push eax ebx
760
	jmp still
861
	mcall 2
761
 
862
 
762
align 4
863
	cmp byte[game_select_mode],0
763
key:
864
	je @f
Line 816... Line 917...
816
	;or edx,0x33000000
917
	;or edx,0x33000000
817
	or edx,0x73000000
918
	or edx,0x73000000
818
	mov edi,hed
919
	mov edi,hed
819
	mcall ;ᮧ¤ ­¨¥ ®ª­ 
920
	mcall ;ᮧ¤ ­¨¥ ®ª­ 
Line -... Line 921...
-
 
921
 
-
 
922
	cmp byte[game_select_mode],0
-
 
923
	jne .select_mode
820
 
924
 
821
	mcall 9,procinfo,-1
925
	mcall 9,procinfo,-1
822
	mov edi,buf_displ
926
	mov edi,buf_displ
823
	mov eax,dword[procinfo.client_box.width]
927
	mov eax,dword[procinfo.client_box.width]
824
	cmp eax,dword[displ_w]
928
	cmp eax,dword[displ_w]
Line 906... Line 1010...
906
	xor ebx,ebx
1010
	xor ebx,ebx
907
	mov bx,buf2d_l
1011
	mov bx,buf2d_l
908
	mov ecx,dword[displ_h]
1012
	mov ecx,dword[displ_h]
909
	int 0x40 ;à¨á®¢ ­¨¥ «¥¢®£® ¡®ª®¢®£® ¯®«ï
1013
	int 0x40 ;à¨á®¢ ­¨¥ «¥¢®£® ¡®ª®¢®£® ¯®«ï
Line -... Line 1014...
-
 
1014
 
-
 
1015
	jmp @f
-
 
1016
	.select_mode:
-
 
1017
		stdcall dword[tl_draw],dword tree1
-
 
1018
	@@:
910
 
1019
 
911
	mcall 12,2
1020
	mcall 12,2
912
	popad
1021
	popad
Line 913... Line 1022...
913
	ret
1022
	ret
914
 
1023
 
Line 915... Line 1024...
915
align 4
1024
align 4
916
draw_display:
1025
draw_display:
917
 
1026
 
918
	stdcall mem_copy, dword[buf_fon],dword[buf_displ],315*210*3;dword[displ_bytes] ;ª®¯¨à®¢ ­¨¥ ¨§®¡à ¦¥­¨ï ¨§ ä®­®¢®£® ¡ãä¥à 
1027
	stdcall mem_copy, dword[buf_fon],dword[buf_displ],dword[displ_bytes] ;ª®¯¨à®¢ ­¨¥ ¨§®¡à ¦¥­¨ï ¨§ ä®­®¢®£® ¡ãä¥à 
Line 919... Line 1028...
919
	call DrawZaac ;à¨á㥬 § ©æ 
1028
	call DrawZaac ;à¨á㥬 § ©æ 
Line 944... Line 1053...
944
	jne still
1053
	jne still
945
.exit:
1054
.exit:
946
	stdcall [buf2d_delete],buf_fon ;㤠«ï¥¬ ¡ãä¥à
1055
	stdcall [buf2d_delete],buf_fon ;㤠«ï¥¬ ¡ãä¥à
947
	stdcall [buf2d_delete],buf_displ ;㤠«ï¥¬ ¡ãä¥à
1056
	stdcall [buf2d_delete],buf_displ ;㤠«ï¥¬ ¡ãä¥à
Line -... Line 1057...
-
 
1057
 
948
 
1058
	stdcall [buf2d_delete],buf_tree_sys
Line 949... Line 1059...
949
	stdcall [buf2d_delete],buf_font
1059
	stdcall [buf2d_delete],buf_font
950
 
1060
 
951
	cld
1061
	cld
Line 972... Line 1082...
972
	@@: ;㤠«ï¥¬ 22 ¡ãä¥à 
1082
	@@: ;㤠«ï¥¬ 22 ¡ãä¥à 
973
		stdcall [buf2d_delete],edi
1083
		stdcall [buf2d_delete],edi
974
		add edi,BUF_STRUCT_SIZE
1084
		add edi,BUF_STRUCT_SIZE
975
		loop @b
1085
		loop @b
Line -... Line 1086...
-
 
1086
 
-
 
1087
	mov dword[tree1.data_img_sys],0 ;ç¨á⨬ 㪠§ â¥«ì ­  ¨§®¡à ¦¥­¨¥
976
 
1088
	stdcall dword[tl_data_clear], tree1
Line 977... Line 1089...
977
	mcall -1 ;¢ë室 ¨§ ¯à®£à ¬¬ë
1089
	mcall -1 ;¢ë室 ¨§ ¯à®£à ¬¬ë
978
 
1090
 
Line 979... Line 1091...
979
head_f_i:
1091
head_f_i:
980
head_f_l  db '‘¨á⥬­ ï ®è¨¡ª ',0
1092
head_f_l  db '‘¨á⥬­ ï ®è¨¡ª ',0
981
 
1093
 
982
system_dir0 db '/sys/lib/'
1094
system_dir0 db '/sys/lib/'
Line 983... Line 1095...
983
name_buf2d db 'buf2d.obj',0
1095
lib0_name db 'buf2d.obj',0
984
err_message_found_lib0 db '¥ 㤠«®áì ­ ©â¨ ¡¨¡«¨®â¥ªã buf2d.obj',0
1096
err_message_found_lib0 db '¥ 㤠«®áì ­ ©â¨ ¡¨¡«¨®â¥ªã buf2d.obj',0
985
err_message_import0 db 'Žè¨¡ª  ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ buf2d.obj',0
1097
err_message_import0 db 'Žè¨¡ª  ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ buf2d.obj',0
986
 
1098
 
Line 987... Line 1099...
987
system_dir1 db '/sys/lib/'
1099
system_dir1 db '/sys/lib/'
988
name_libimg db 'libimg.obj',0
1100
lib1_name db 'libimg.obj',0
989
err_message_found_lib1 db '¥ 㤠«®áì ­ ©â¨ ¡¨¡«¨®â¥ªã libimg.obj',0
1101
err_message_found_lib1 db '¥ 㤠«®áì ­ ©â¨ ¡¨¡«¨®â¥ªã libimg.obj',0
990
err_message_import1 db 'Žè¨¡ª  ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ libimg.obj',0
1102
err_message_import1 db 'Žè¨¡ª  ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ libimg.obj',0
Line -... Line 1103...
-
 
1103
 
-
 
1104
system_dir2 db '/sys/lib/'
-
 
1105
lib2_name db 'libini.obj',0
-
 
1106
err_message_found_lib2 db '¥ 㤠«®áì ­ ©â¨ ¡¨¡«¨®â¥ªã libini.obj',0
-
 
1107
err_message_import2 db 'Žè¨¡ª  ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ libini.obj',0
991
 
1108
 
992
system_dir2 db '/sys/lib/'
1109
system_dir3 db '/sys/lib/'
993
libini_name db 'libini.obj',0
1110
lib3_name db 'box_lib.obj',0
994
err_message_found_lib2 db '¥ 㤠«®áì ­ ©â¨ ¡¨¡«¨®â¥ªã libini.obj',0
1111
err_message_found_lib3 db '¥ 㤠«®áì ­ ©â¨ ¡¨¡«¨®â¥ªã box_lib.obj',0
995
err_message_import2 db 'Žè¨¡ª  ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ libini.obj',0
1112
err_message_import3 db 'Žè¨¡ª  ¯à¨ ¨¬¯®à⥠¡¨¡«¨®â¥ª¨ box_lib.obj',0
-
 
1113
 
996
 
1114
;library structures
Line 997... Line 1115...
997
;library structures
1115
l_libs_start:
998
l_libs_start:
1116
	lib0 l_libs lib0_name,	sys_path, file_name, system_dir0, err_message_found_lib0, head_f_l, import_buf2d_lib, err_message_import0, head_f_i
999
	lib0 l_libs name_buf2d,  sys_path, file_name, system_dir0, err_message_found_lib0, head_f_l, import_buf2d_lib, err_message_import0, head_f_i
1117
	lib1 l_libs lib1_name, sys_path, file_name, system_dir1, err_message_found_lib1, head_f_l, import_libimg, err_message_import1, head_f_i
Line 1048... Line 1166...
1048
last_time dd ?
1166
last_time dd ?
1049
image_data dd 0 ;¯ ¬ïâì ¤«ï ¯à¥®¡à §®¢ ­¨ï ª à⨭ª¨ äã­ªæ¨ï¬¨ libimg
1167
image_data dd 0 ;¯ ¬ïâì ¤«ï ¯à¥®¡à §®¢ ­¨ï ª à⨭ª¨ äã­ªæ¨ï¬¨ libimg
1050
image_data_gray dd 0 ;¯ ¬ïâì á ¢à¥¬¥­­ë¬¨ á¥à묨 ¨§®¡à ¦¥­¨ï¬¨ ¢ ä®à¬ â¥ 24-bit, ¨§ ª®â®àëå ¡ã¤ãâ ᮧ¤ ¢ âìáï âà ä à¥âë
1168
image_data_gray dd 0 ;¯ ¬ïâì á ¢à¥¬¥­­ë¬¨ á¥à묨 ¨§®¡à ¦¥­¨ï¬¨ ¢ ä®à¬ â¥ 24-bit, ¨§ ª®â®àëå ¡ã¤ãâ ᮧ¤ ¢ âìáï âà ä à¥âë
Line 1051... Line 1169...
1051
 
1169
 
1052
run_file_70 FileInfoBlock
1170
run_file_70 FileInfoBlock
1053
hed db 'Nu pogodi 22.08.10',0 ;¯®¤¯¨áì ®ª­ 
1171
hed db 'Nu pogodi 08.09.10',0 ;¯®¤¯¨áì ®ª­ 
Line -... Line 1172...
-
 
1172
sc system_colors  ;á¨á⥬­ë¥ 梥â 
-
 
1173
 
-
 
1174
count_of_dir_list_files equ 10
-
 
1175
el_focus dd tree1
-
 
1176
tree1 tree_list FILE_NAME_MAX,count_of_dir_list_files+2, tl_key_no_edit+tl_draw_par_line+tl_list_box_mode,\
-
 
1177
	16,16, 0x8080ff,0x0000ff,0xffffff, 10,10,140,100, 0,0,0, el_focus,\
-
 
1178
	0,user_is_select
-
 
1179
 
-
 
1180
align 4
-
 
1181
buf_tree_sys:
-
 
1182
	dd 0 ;㪠§ â¥«ì ­  ¡ãä¥à ¨§®¡à ¦¥­¨ï
-
 
1183
	dw 0 ;+4 left
-
 
1184
	dw 0 ;+6 top
-
 
1185
	dd 16 ;+8 w
-
 
1186
	dd 16*11 ;+12 h
-
 
1187
	dd 0 ;+16 color
1054
sc system_colors  ;á¨á⥬­ë¥ 梥â 
1188
	db 24 ;+20 bit in pixel
1055
 
1189
 
1056
align 4
1190
align 4
1057
buf_font: ;¡ãä¥à á® èà¨ä⮬
1191
buf_font: ;¡ãä¥à á® èà¨ä⮬
1058
	dd 0 ;㪠§ â¥«ì ­  ¡ãä¥à ¨§®¡à ¦¥­¨ï
1192
	dd 0 ;㪠§ â¥«ì ­  ¡ãä¥à ¨§®¡à ¦¥­¨ï
Line 1099... Line 1233...
1099
	rb 13*BUF_STRUCT_SIZE
1233
	rb 13*BUF_STRUCT_SIZE
Line 1100... Line 1234...
1100
 
1234
 
1101
 
1235
 
1102
 
1236
 
1103
align 4
1237
align 4
1104
libini_import:
1238
import_libini:
1105
	dd alib_init0
1239
	dd alib_init0
1106
	ini_get_str   dd aini_get_str
1240
	ini_get_str   dd aini_get_str
Line 1201... Line 1335...
1201
	sz_buf2d_convert_text_matrix db 'buf2d_convert_text_matrix',0
1335
	sz_buf2d_convert_text_matrix db 'buf2d_convert_text_matrix',0
1202
	sz_buf2d_draw_text db 'buf2d_draw_text',0
1336
	sz_buf2d_draw_text db 'buf2d_draw_text',0
1203
	sz_buf2d_crop_color db 'buf2d_crop_color',0
1337
	sz_buf2d_crop_color db 'buf2d_crop_color',0
1204
	sz_buf2d_offset_h db 'buf2d_offset_h',0
1338
	sz_buf2d_offset_h db 'buf2d_offset_h',0
Line -... Line 1339...
-
 
1339
 
-
 
1340
align 4
-
 
1341
import_box_lib:
-
 
1342
	dd alib_init2
-
 
1343
 
-
 
1344
	;scrollbar_ver_draw  dd aScrollbar_ver_draw
-
 
1345
 
-
 
1346
	tl_data_init dd sz_tl_data_init
-
 
1347
	tl_data_clear dd sz_tl_data_clear
-
 
1348
	tl_info_clear dd sz_tl_info_clear
-
 
1349
	tl_key dd sz_tl_key
-
 
1350
	tl_mouse dd sz_tl_mouse
-
 
1351
	tl_draw dd sz_tl_draw
-
 
1352
	tl_info_undo dd sz_tl_info_undo
-
 
1353
	tl_info_redo dd sz_tl_info_redo
-
 
1354
	tl_node_add dd sz_tl_node_add
-
 
1355
	tl_node_set_data dd sz_tl_node_set_data
-
 
1356
	tl_node_get_data dd sz_tl_node_get_data
-
 
1357
	tl_node_delete dd sz_tl_node_delete
-
 
1358
	tl_cur_beg dd sz_tl_cur_beg
-
 
1359
	tl_cur_next dd sz_tl_cur_next
-
 
1360
	tl_cur_perv dd sz_tl_cur_perv
-
 
1361
	tl_node_close_open dd sz_tl_node_close_open
-
 
1362
	tl_node_lev_inc dd sz_tl_node_lev_inc
-
 
1363
	tl_node_lev_dec dd sz_tl_node_lev_dec
-
 
1364
 
-
 
1365
dd 0,0
-
 
1366
	alib_init2 db 'lib_init',0
-
 
1367
 
-
 
1368
	;aScrollbar_ver_draw  db 'scrollbar_v_draw',0
-
 
1369
 
-
 
1370
	sz_tl_data_init db 'tl_data_init',0
-
 
1371
	sz_tl_data_clear db 'tl_data_clear',0
-
 
1372
	sz_tl_info_clear db 'tl_info_clear',0
-
 
1373
	sz_tl_key db 'tl_key',0
-
 
1374
	sz_tl_mouse db 'tl_mouse',0
-
 
1375
	sz_tl_draw db 'tl_draw',0
-
 
1376
	sz_tl_info_undo db 'tl_info_undo',0
-
 
1377
	sz_tl_info_redo db 'tl_info_redo',0
-
 
1378
	sz_tl_node_add db 'tl_node_add',0
-
 
1379
	sz_tl_node_set_data db 'tl_node_set_data',0
-
 
1380
	sz_tl_node_get_data db 'tl_node_get_data',0
-
 
1381
	sz_tl_node_delete db 'tl_node_delete',0
-
 
1382
	sz_tl_cur_beg db 'tl_cur_beg',0
-
 
1383
	sz_tl_cur_next db 'tl_cur_next',0
-
 
1384
	sz_tl_cur_perv db 'tl_cur_perv',0
-
 
1385
	sz_tl_node_close_open db 'tl_node_close_open',0
-
 
1386
	sz_tl_node_lev_inc db 'tl_node_lev_inc',0
-
 
1387
	sz_tl_node_lev_dec db 'tl_node_lev_dec',0
-
 
1388
 
-
 
1389
 
1205
 
1390
 
1206
i_end:
1391
i_end:
1207
	rb 1024
1392
	rb 1024
1208
	align 16
1393
	align 16
1209
	procinfo process_information
1394
	procinfo process_information
1210
stacktop:
1395
stacktop:
1211
	sys_path rb 4096
1396
	sys_path rb 4096
1212
	file_name:
1397
	file_name:
1213
		rb 4096
-
 
1214
	plugin_path:
-
 
1215
		rb 4096
1398
		rb 4096
1216
	openfile_path:
1399
	openfile_path:
1217
		rb 4096
1400
		rb 4096
1218
	filename_area:
1401
	filename_area:
1219
		rb 256
1402
		rb 256
1220
mem:
1403
mem: