2011-09-09 22:55:11 +02:00
|
|
|
|
;
|
|
|
|
|
; <EFBFBD> <EFBFBD>⮬ 䠩<EFBFBD><EFBFBD> ᮡ࠭<EFBFBD> <EFBFBD>㭪樨 <EFBFBD>㦭<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> ᮧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>
|
2015-11-26 15:58:32 +01:00
|
|
|
|
; ࠡ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD>न<EFBFBD><EFBFBD>⠬<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>設
|
2011-09-09 22:55:11 +02:00
|
|
|
|
;
|
|
|
|
|
|
2015-11-29 15:40:02 +01:00
|
|
|
|
prop_wnd_width equ 340 ;<EFBFBD><EFBFBD>ਭ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⢠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
|
|
|
|
prop_wnd_height equ 460 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⢠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD><EFBFBD>
|
|
|
|
|
3d_wnd_l equ 5 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> tinygl <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>
|
|
|
|
|
3d_wnd_t equ 23 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> tinygl <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᢥ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
3d_wnd_w equ 320
|
|
|
|
|
3d_wnd_h equ 240
|
2011-09-09 22:55:11 +02:00
|
|
|
|
SIZE_ONE_FLOAT equ 14
|
|
|
|
|
MAX_OBJECT_SIZE equ (4+SIZE_ONE_FLOAT*3+1)
|
|
|
|
|
|
|
|
|
|
prop_wnd_run db 0 ;<EFBFBD><EFBFBD>६<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> ⥬ <EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>᪠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1-<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⢠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>६<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
2011-09-12 13:00:48 +02:00
|
|
|
|
txt_q db '?',0
|
2011-09-09 22:55:11 +02:00
|
|
|
|
txt_space:
|
|
|
|
|
db SIZE_ONE_FLOAT dup(' ')
|
|
|
|
|
.end:
|
|
|
|
|
db 0
|
|
|
|
|
|
|
|
|
|
obj_point: ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>ꥪ<EFBFBD>
|
|
|
|
|
dd 0 ;㪠<EFBFBD><EFBFBD>⥫<EFBFBD>
|
|
|
|
|
.text:
|
|
|
|
|
rb MAX_OBJECT_SIZE
|
|
|
|
|
|
2015-12-02 13:25:32 +01:00
|
|
|
|
if lang eq ru
|
|
|
|
|
txt_select_vert: db '<27><><EFBFBD>࠭<EFBFBD>: '
|
|
|
|
|
else
|
|
|
|
|
txt_select_vert: db 'Select: '
|
|
|
|
|
end if
|
|
|
|
|
.count:
|
|
|
|
|
dq 0,0
|
2011-09-09 22:55:11 +02:00
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) <EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪樥<EFBFBD> but_wnd_coords
|
|
|
|
|
align 4
|
|
|
|
|
prop_start:
|
|
|
|
|
pushad
|
|
|
|
|
mcall 40,0x27 ;<EFBFBD><EFBFBD>᪠ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᮡ<EFBFBD>⨩
|
|
|
|
|
inc byte[prop_wnd_run]
|
2015-11-24 15:55:05 +01:00
|
|
|
|
mov dword[w_scr_t3.type],1
|
2016-01-09 20:39:34 +01:00
|
|
|
|
mov edi,o3d
|
|
|
|
|
stdcall obj_clear_param, edi
|
2011-09-09 22:55:11 +02:00
|
|
|
|
|
|
|
|
|
stdcall [tl_node_get_data],tree1
|
|
|
|
|
xor edx,edx
|
2013-12-06 13:07:49 +01:00
|
|
|
|
mov dword[capt_p],txt_q
|
2015-11-11 00:11:17 +01:00
|
|
|
|
cmp eax,0
|
2013-12-06 13:07:49 +01:00
|
|
|
|
je .no_points
|
2015-11-26 15:58:32 +01:00
|
|
|
|
mov ebx,[eax] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>祭<EFBFBD><EFBFBD> ᤢ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2015-11-29 15:40:02 +01:00
|
|
|
|
add ebx,[open_file_data]
|
|
|
|
|
|
|
|
|
|
cmp word[ebx],CHUNK_OBJBLOCK
|
|
|
|
|
jne .end_oblo
|
|
|
|
|
mov dword[capt_p],txt_4000
|
2015-12-02 13:25:32 +01:00
|
|
|
|
stdcall found_block_data, tree1
|
2015-11-29 15:40:02 +01:00
|
|
|
|
cmp eax,0
|
|
|
|
|
je .no_points
|
|
|
|
|
mov esi,eax
|
|
|
|
|
movzx ecx,byte[esi+2] ;cl - <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
|
|
|
|
.cycle_0:
|
|
|
|
|
stdcall [tl_node_poi_get_next_info], tree1,esi
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .no_points
|
|
|
|
|
cmp byte[eax+2],cl
|
|
|
|
|
jle .no_points
|
|
|
|
|
mov esi,eax
|
|
|
|
|
stdcall [tl_node_poi_get_data], tree1,esi
|
|
|
|
|
mov ebx,[eax]
|
|
|
|
|
add ebx,[open_file_data]
|
|
|
|
|
cmp word[ebx],CHUNK_VERTLIST
|
|
|
|
|
je .ini_vlist
|
|
|
|
|
jmp .cycle_0
|
|
|
|
|
jmp .no_points
|
|
|
|
|
.end_oblo:
|
|
|
|
|
cmp word[ebx],CHUNK_TRIMESH
|
|
|
|
|
jne .end_trim
|
|
|
|
|
mov dword[capt_p],txt_4100
|
2015-12-02 13:25:32 +01:00
|
|
|
|
stdcall found_block_data, tree1
|
2015-11-29 15:40:02 +01:00
|
|
|
|
cmp eax,0
|
|
|
|
|
je .no_points
|
|
|
|
|
mov esi,eax
|
|
|
|
|
movzx ecx,byte[esi+2] ;cl - <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
|
|
|
|
.cycle_1:
|
|
|
|
|
stdcall [tl_node_poi_get_next_info], tree1,esi
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .no_points
|
|
|
|
|
cmp byte[eax+2],cl
|
|
|
|
|
jle .no_points
|
|
|
|
|
mov esi,eax
|
|
|
|
|
stdcall [tl_node_poi_get_data], tree1,esi
|
|
|
|
|
mov ebx,[eax]
|
|
|
|
|
add ebx,[open_file_data]
|
|
|
|
|
cmp word[ebx],CHUNK_VERTLIST
|
|
|
|
|
je .ini_vlist
|
|
|
|
|
jmp .cycle_1
|
|
|
|
|
jmp .no_points
|
|
|
|
|
.end_trim:
|
2013-12-06 13:07:49 +01:00
|
|
|
|
cmp word[ebx],CHUNK_VERTLIST
|
2015-11-26 15:58:32 +01:00
|
|
|
|
jne .end_vlist
|
2015-11-29 15:40:02 +01:00
|
|
|
|
mov dword[capt_p],txt_4110
|
|
|
|
|
.ini_vlist:
|
2013-12-06 13:07:49 +01:00
|
|
|
|
movzx edx,word[ebx+6] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢮ <EFBFBD><EFBFBD>祪
|
|
|
|
|
add ebx,8
|
2015-11-26 15:58:32 +01:00
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>㣮<EFBFBD>쪮<EFBFBD>
|
2015-12-02 13:25:32 +01:00
|
|
|
|
stdcall found_block_data, tree1
|
2015-11-29 15:40:02 +01:00
|
|
|
|
cmp eax,0
|
|
|
|
|
je .set_points
|
|
|
|
|
mov esi,eax
|
2015-11-26 15:58:32 +01:00
|
|
|
|
;<EFBFBD> <EFBFBD><EFBFBD>諨 <EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD> 㧥<EFBFBD>, <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>⠥<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧥<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD>㣮<EFBFBD>쭨<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
movzx ecx,byte[esi+2] ;cl - <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD>
|
2015-11-29 15:40:02 +01:00
|
|
|
|
.cycle_2:
|
2015-11-26 15:58:32 +01:00
|
|
|
|
stdcall [tl_node_poi_get_next_info], tree1,esi
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .set_points
|
|
|
|
|
mov esi,eax
|
|
|
|
|
stdcall [tl_node_poi_get_data], tree1,esi
|
|
|
|
|
cmp byte[esi+2],cl
|
|
|
|
|
jl .set_points
|
|
|
|
|
je .found
|
2015-11-29 15:40:02 +01:00
|
|
|
|
jmp .cycle_2
|
2015-11-26 15:58:32 +01:00
|
|
|
|
.found: ;<EFBFBD> <EFBFBD><EFBFBD>諨 㧥<EFBFBD> ⮣<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><EFBFBD><EFBFBD> 㧥<EFBFBD>
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .set_points
|
|
|
|
|
mov eax,[eax]
|
2015-11-29 15:40:02 +01:00
|
|
|
|
add eax,[open_file_data]
|
2015-11-26 15:58:32 +01:00
|
|
|
|
cmp word[eax],CHUNK_FACELIST
|
2015-11-29 15:40:02 +01:00
|
|
|
|
jne .cycle_2
|
2015-11-26 15:58:32 +01:00
|
|
|
|
movzx ecx,word[eax+6]
|
2016-01-09 20:39:34 +01:00
|
|
|
|
mov [edi+offs_obj_tri_count],ecx
|
2015-11-26 15:58:32 +01:00
|
|
|
|
add eax,8 ;2+4+2 (chunk+size+count)
|
2016-01-09 20:39:34 +01:00
|
|
|
|
mov [edi+offs_obj_tri_data],eax
|
2015-11-26 15:58:32 +01:00
|
|
|
|
jmp .set_points
|
|
|
|
|
.end_vlist:
|
|
|
|
|
cmp word[ebx],CHUNK_TRACKPIVOT
|
2013-12-06 13:07:49 +01:00
|
|
|
|
jne @f
|
|
|
|
|
inc edx
|
|
|
|
|
add ebx,6
|
|
|
|
|
mov dword[capt_p],txt_b013
|
2015-11-26 15:58:32 +01:00
|
|
|
|
jmp .set_points
|
2013-12-06 13:07:49 +01:00
|
|
|
|
@@:
|
|
|
|
|
cmp word[ebx],0xb014
|
|
|
|
|
jne @f
|
|
|
|
|
mov edx,2
|
|
|
|
|
add ebx,6
|
|
|
|
|
mov dword[capt_p],txt_b014
|
2015-11-26 15:58:32 +01:00
|
|
|
|
;jmp .set_points
|
2013-12-06 13:07:49 +01:00
|
|
|
|
@@:
|
2015-11-26 15:58:32 +01:00
|
|
|
|
.set_points:
|
2016-01-09 20:39:34 +01:00
|
|
|
|
mov [edi+offs_obj_poi_data],ebx
|
|
|
|
|
mov [edi+offs_obj_poi_count],edx
|
2013-12-06 13:07:49 +01:00
|
|
|
|
.no_points:
|
2011-09-09 22:55:11 +02:00
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ன<EFBFBD><EFBFBD> ᯨ᪠ <EFBFBD><EFBFBD>ꥪ⮢
|
|
|
|
|
mov dword[tree3.info_max_count],2
|
|
|
|
|
add dword[tree3.info_max_count],edx ;<EFBFBD>⠢<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 㧫<EFBFBD><EFBFBD>, ࠢ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>祪 (+2 <EFBFBD><EFBFBD> <EFBFBD><EFBFBD>砫<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᯨ᪠)
|
|
|
|
|
stdcall dword[tl_data_init], tree3
|
|
|
|
|
mov eax,dword[icon_tl_sys]
|
|
|
|
|
mov dword[tree3.data_img_sys],eax
|
|
|
|
|
mov eax,dword[icon_toolbar]
|
|
|
|
|
mov dword[tree3.data_img],eax
|
|
|
|
|
|
2013-12-06 13:07:49 +01:00
|
|
|
|
cmp edx,0
|
2011-09-09 22:55:11 +02:00
|
|
|
|
je .no_object
|
2011-09-12 13:00:48 +02:00
|
|
|
|
mov word[NumberSymbolsAD],5
|
2011-09-09 22:55:11 +02:00
|
|
|
|
finit
|
|
|
|
|
.new_point:
|
|
|
|
|
mov dword[obj_point],ebx
|
|
|
|
|
mov dword[obj_point.text],0
|
|
|
|
|
cld
|
|
|
|
|
mov ecx,3
|
|
|
|
|
@@:
|
|
|
|
|
fld dword[ebx]
|
|
|
|
|
fstp qword[Data_Double]
|
|
|
|
|
call DoubleFloat_to_String
|
|
|
|
|
add ebx,4
|
|
|
|
|
stdcall str_len, Data_String
|
|
|
|
|
mov esi,txt_space
|
|
|
|
|
add esi,eax
|
|
|
|
|
cmp esi,txt_space.end
|
|
|
|
|
jl .normal_size
|
|
|
|
|
mov esi,txt_space.end-1 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1 <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㦭<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.normal_size:
|
|
|
|
|
stdcall str_cat, obj_point.text,esi
|
|
|
|
|
stdcall str_cat, obj_point.text,Data_String
|
|
|
|
|
loop @b
|
2015-12-02 13:25:32 +01:00
|
|
|
|
stdcall dword[tl_node_add], tree3,(ID_ICON_POINT shl 16),obj_point
|
2011-09-09 22:55:11 +02:00
|
|
|
|
stdcall dword[tl_cur_next], tree3
|
|
|
|
|
dec edx
|
|
|
|
|
cmp edx,0
|
|
|
|
|
jg .new_point
|
|
|
|
|
stdcall dword[tl_cur_beg], tree3
|
|
|
|
|
.no_object:
|
2016-01-09 20:39:34 +01:00
|
|
|
|
stdcall obj_set_sizes, o3d
|
|
|
|
|
stdcall obj_set_normals, o3d
|
2011-09-12 13:00:48 +02:00
|
|
|
|
edit_boxes_set_sys_color edit1,editboxes_end,sc ;<EFBFBD><EFBFBD>⠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>⥬<EFBFBD><EFBFBD><EFBFBD> 梥⮢
|
|
|
|
|
stdcall [edit_box_set_text], edit1, txt_q
|
|
|
|
|
stdcall [edit_box_set_text], edit2, txt_q
|
|
|
|
|
stdcall [edit_box_set_text], edit3, txt_q
|
2015-11-29 15:40:02 +01:00
|
|
|
|
mov eax,0xc0c0c0
|
|
|
|
|
mov ebx,[color_ox]
|
|
|
|
|
shr ebx,2
|
|
|
|
|
and ebx,0x3f3f3f
|
|
|
|
|
add eax,ebx
|
|
|
|
|
mov [edit1.color],eax
|
|
|
|
|
mov eax,0xc0c0c0
|
|
|
|
|
mov ebx,[color_oy]
|
|
|
|
|
shr ebx,2
|
|
|
|
|
and ebx,0x3f3f3f
|
|
|
|
|
add eax,ebx
|
|
|
|
|
mov [edit2.color],eax
|
|
|
|
|
mov eax,0xc0c0c0
|
|
|
|
|
mov ebx,[color_oz]
|
|
|
|
|
shr ebx,2
|
|
|
|
|
and ebx,0x3f3f3f
|
|
|
|
|
add eax,ebx
|
|
|
|
|
mov [edit3.color],eax
|
2015-12-02 13:25:32 +01:00
|
|
|
|
|
|
|
|
|
mov eax,dword[ctx1] ;eax -> TinyGLContext.GLContext
|
|
|
|
|
mov eax,[eax] ;eax -> ZBuffer
|
|
|
|
|
mov eax,[eax+offs_zbuf_pbuf] ;eax -> ZBuffer.pbuf
|
|
|
|
|
mov dword[buf_ogl],eax
|
2011-09-09 22:55:11 +02:00
|
|
|
|
popad
|
|
|
|
|
|
2015-11-24 15:55:05 +01:00
|
|
|
|
call prop_red_win
|
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㭪<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD>।<EFBFBD><EFBFBD><EFBFBD>饩
|
|
|
|
|
align 4
|
|
|
|
|
prop_still:
|
|
|
|
|
pushad
|
2015-11-26 15:58:32 +01:00
|
|
|
|
|
|
|
|
|
mcall 23,10
|
|
|
|
|
or eax,eax
|
|
|
|
|
jnz @f
|
|
|
|
|
call prop_timer_funct
|
|
|
|
|
jmp .end
|
|
|
|
|
@@:
|
2015-11-24 15:55:05 +01:00
|
|
|
|
|
|
|
|
|
cmp al,1 ;<EFBFBD><EFBFBD><EFBFBD>. <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
jne @f
|
|
|
|
|
call prop_red_win
|
|
|
|
|
jmp .end
|
|
|
|
|
@@:
|
|
|
|
|
cmp al,2
|
|
|
|
|
jne @f
|
|
|
|
|
call prop_key
|
|
|
|
|
jmp .end
|
|
|
|
|
@@:
|
|
|
|
|
cmp al,3
|
|
|
|
|
jz prop_button
|
|
|
|
|
cmp al,6
|
|
|
|
|
jne @f
|
|
|
|
|
call prop_mouse
|
|
|
|
|
@@:
|
|
|
|
|
.end:
|
|
|
|
|
popad
|
|
|
|
|
jmp prop_still
|
|
|
|
|
|
2011-09-09 22:55:11 +02:00
|
|
|
|
align 4
|
|
|
|
|
prop_red_win:
|
|
|
|
|
pushad
|
|
|
|
|
mcall 12,1
|
|
|
|
|
|
|
|
|
|
xor eax,eax
|
2013-12-06 13:07:49 +01:00
|
|
|
|
mov edi,dword[capt_p] ;children window caption
|
2011-09-09 22:55:11 +02:00
|
|
|
|
mov bx,word[procinfo.box.left]
|
|
|
|
|
add bx,word[buf_0.l]
|
2015-11-24 15:55:05 +01:00
|
|
|
|
add bx,5 ;<EFBFBD><EFBFBD>ਭ<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠬ<EFBFBD><EFBFBD>
|
2011-09-09 22:55:11 +02:00
|
|
|
|
shl ebx,16
|
|
|
|
|
mov bx,prop_wnd_width
|
|
|
|
|
mov cx,word[procinfo.box.top]
|
2011-09-12 13:00:48 +02:00
|
|
|
|
add cx,word[buf_0.t]
|
2011-09-09 22:55:11 +02:00
|
|
|
|
shl ecx,16
|
2015-11-24 15:55:05 +01:00
|
|
|
|
mov cx,prop_wnd_height
|
2015-11-29 15:40:02 +01:00
|
|
|
|
mov edx,[sc.work]
|
|
|
|
|
or edx,0x33000000
|
2011-09-09 22:55:11 +02:00
|
|
|
|
int 0x40
|
|
|
|
|
|
2011-09-12 13:00:48 +02:00
|
|
|
|
mov esi,[sc.work_button]
|
2015-11-26 15:58:32 +01:00
|
|
|
|
mcall 8, (5 shl 16)+20, (266 shl 16)+20, 3
|
|
|
|
|
mcall , (30 shl 16)+20, (266 shl 16)+20, 4
|
2011-09-12 13:00:48 +02:00
|
|
|
|
|
|
|
|
|
mov ebx,[image_data_toolbar]
|
2015-11-29 15:40:02 +01:00
|
|
|
|
add ebx,3*IMAGE_TOOLBAR_ICON_SIZE
|
2015-11-26 15:58:32 +01:00
|
|
|
|
mcall 7, , (16 shl 16)+16, (7 shl 16)+268 ;load
|
2011-09-12 13:00:48 +02:00
|
|
|
|
|
|
|
|
|
sub ebx,IMAGE_TOOLBAR_ICON_SIZE
|
2015-11-26 15:58:32 +01:00
|
|
|
|
mov edx,(32 shl 16)+268 ;save
|
2011-09-12 13:00:48 +02:00
|
|
|
|
int 0x40
|
|
|
|
|
|
2011-09-09 22:55:11 +02:00
|
|
|
|
mov dword[w_scr_t3.all_redraw],1
|
|
|
|
|
stdcall [scrollbar_ver_draw],dword w_scr_t3
|
|
|
|
|
stdcall [tl_draw], tree3
|
2011-09-12 13:00:48 +02:00
|
|
|
|
stdcall [edit_box_draw], edit1
|
|
|
|
|
stdcall [edit_box_draw], edit2
|
|
|
|
|
stdcall [edit_box_draw], edit3
|
2015-11-24 15:55:05 +01:00
|
|
|
|
|
2015-11-26 15:58:32 +01:00
|
|
|
|
stdcall [kmainmenu_draw], [main_menu]
|
2016-01-09 20:39:34 +01:00
|
|
|
|
stdcall draw_3d, o3d
|
2011-09-09 22:55:11 +02:00
|
|
|
|
mcall 12,2
|
|
|
|
|
popad
|
2015-11-24 15:55:05 +01:00
|
|
|
|
ret
|
2011-09-09 22:55:11 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
2015-11-26 15:58:32 +01:00
|
|
|
|
proc prop_key uses eax ebx
|
2011-09-09 22:55:11 +02:00
|
|
|
|
mcall 2
|
2015-11-24 15:55:05 +01:00
|
|
|
|
|
|
|
|
|
test word [edit1.flags],10b ;ed_focus
|
|
|
|
|
je @f
|
|
|
|
|
stdcall [edit_box_key], edit1
|
|
|
|
|
jmp .end
|
|
|
|
|
@@:
|
|
|
|
|
test word [edit2.flags],10b
|
|
|
|
|
je @f
|
|
|
|
|
stdcall [edit_box_key], edit2
|
|
|
|
|
jmp .end
|
|
|
|
|
@@:
|
|
|
|
|
test word [edit3.flags],10b
|
|
|
|
|
je @f
|
|
|
|
|
stdcall [edit_box_key], edit3
|
|
|
|
|
jmp .end
|
|
|
|
|
@@:
|
2015-11-26 15:58:32 +01:00
|
|
|
|
cmp dword[el_focus], tree3
|
|
|
|
|
jne @f
|
|
|
|
|
stdcall [tl_key], tree3
|
|
|
|
|
jmp .end
|
|
|
|
|
@@:
|
2015-11-24 15:55:05 +01:00
|
|
|
|
|
|
|
|
|
cmp ah,178 ;Up
|
|
|
|
|
jne @f
|
|
|
|
|
fld dword[angle_x]
|
|
|
|
|
fadd dword[delt_size]
|
|
|
|
|
fstp dword[angle_x]
|
2016-01-09 20:39:34 +01:00
|
|
|
|
stdcall draw_3d, o3d
|
2015-11-24 15:55:05 +01:00
|
|
|
|
jmp .end
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,177 ;Down
|
|
|
|
|
jne @f
|
|
|
|
|
fld dword[angle_x]
|
|
|
|
|
fsub dword[delt_size]
|
|
|
|
|
fstp dword[angle_x]
|
2016-01-09 20:39:34 +01:00
|
|
|
|
stdcall draw_3d, o3d
|
2015-11-24 15:55:05 +01:00
|
|
|
|
jmp .end
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,176 ;Left
|
|
|
|
|
jne @f
|
|
|
|
|
fld dword[angle_y]
|
|
|
|
|
fadd dword[delt_size]
|
|
|
|
|
fstp dword[angle_y]
|
2016-01-09 20:39:34 +01:00
|
|
|
|
stdcall draw_3d, o3d
|
2015-11-24 15:55:05 +01:00
|
|
|
|
jmp .end
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,179 ;Right
|
|
|
|
|
jne @f
|
|
|
|
|
fld dword[angle_y]
|
|
|
|
|
fsub dword[delt_size]
|
|
|
|
|
fstp dword[angle_y]
|
2016-01-09 20:39:34 +01:00
|
|
|
|
stdcall draw_3d, o3d
|
2015-11-24 15:55:05 +01:00
|
|
|
|
;jmp .end
|
|
|
|
|
@@:
|
|
|
|
|
.end:
|
2011-09-09 22:55:11 +02:00
|
|
|
|
ret
|
2015-11-26 15:58:32 +01:00
|
|
|
|
endp
|
2011-09-09 22:55:11 +02:00
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
prop_mouse:
|
2015-11-29 15:40:02 +01:00
|
|
|
|
push eax ebx
|
|
|
|
|
mcall 37,3
|
|
|
|
|
bt eax,0
|
|
|
|
|
jnc .end_m
|
|
|
|
|
;mouse l. but. move
|
|
|
|
|
cmp dword[mouse_drag],1
|
|
|
|
|
jne .end_m
|
|
|
|
|
mcall 37,1 ;get mouse coords
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
shr ebx,16 ;mouse.x
|
|
|
|
|
cmp ebx,3d_wnd_l
|
|
|
|
|
jg @f
|
|
|
|
|
mov ebx,3d_wnd_l
|
|
|
|
|
@@:
|
|
|
|
|
sub ebx,3d_wnd_l
|
|
|
|
|
cmp ebx,3d_wnd_w
|
|
|
|
|
jle @f
|
|
|
|
|
mov ebx,3d_wnd_w
|
|
|
|
|
@@:
|
|
|
|
|
and eax,0xffff ;mouse.y
|
|
|
|
|
cmp eax,3d_wnd_t
|
|
|
|
|
jg @f
|
|
|
|
|
mov eax,3d_wnd_t
|
|
|
|
|
@@:
|
|
|
|
|
sub eax,3d_wnd_t
|
|
|
|
|
cmp eax,3d_wnd_h
|
|
|
|
|
jle @f
|
|
|
|
|
mov eax,3d_wnd_h
|
|
|
|
|
@@:
|
|
|
|
|
finit
|
|
|
|
|
fild dword[mouse_y]
|
|
|
|
|
mov [mouse_y],eax
|
|
|
|
|
fisub dword[mouse_y]
|
|
|
|
|
fdiv dword[angle_dxm] ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> y (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>) <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> x
|
|
|
|
|
fadd dword[angle_x]
|
|
|
|
|
fstp dword[angle_x]
|
|
|
|
|
|
|
|
|
|
fild dword[mouse_x]
|
|
|
|
|
mov [mouse_x],ebx
|
|
|
|
|
fisub dword[mouse_x]
|
|
|
|
|
fdiv dword[angle_dym] ;<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> x (<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>) <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> y
|
|
|
|
|
fadd dword[angle_y]
|
|
|
|
|
fstp dword[angle_y]
|
|
|
|
|
|
2016-01-09 20:39:34 +01:00
|
|
|
|
stdcall draw_3d, o3d
|
2015-11-29 15:40:02 +01:00
|
|
|
|
jmp .end_d
|
|
|
|
|
.end_m:
|
|
|
|
|
bt eax,16
|
|
|
|
|
jnc @f
|
|
|
|
|
;mouse l. but. up
|
|
|
|
|
mov dword[mouse_drag],0
|
|
|
|
|
jmp .end_d
|
|
|
|
|
@@:
|
|
|
|
|
bt eax,8
|
|
|
|
|
jnc .end_d
|
|
|
|
|
;mouse l. but. press
|
|
|
|
|
mcall 37,1 ;get mouse coords
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
shr ebx,16 ;mouse.x
|
|
|
|
|
cmp ebx,3d_wnd_l
|
|
|
|
|
jl .end_d
|
|
|
|
|
sub ebx,3d_wnd_l
|
|
|
|
|
cmp ebx,3d_wnd_w
|
|
|
|
|
jg .end_d
|
|
|
|
|
and eax,0xffff ;mouse.y
|
|
|
|
|
cmp eax,3d_wnd_t
|
|
|
|
|
jl .end_d
|
|
|
|
|
sub eax,3d_wnd_t
|
|
|
|
|
cmp eax,3d_wnd_h
|
|
|
|
|
jg .end_d
|
|
|
|
|
mov dword[mouse_drag],1
|
|
|
|
|
mov dword[mouse_x],ebx
|
|
|
|
|
mov dword[mouse_y],eax
|
|
|
|
|
.end_d:
|
|
|
|
|
|
2015-11-26 15:58:32 +01:00
|
|
|
|
stdcall [kmainmenu_dispatch_cursorevent], [main_menu]
|
2011-09-09 22:55:11 +02:00
|
|
|
|
stdcall [tl_mouse], tree3
|
2011-09-12 13:00:48 +02:00
|
|
|
|
stdcall [edit_box_mouse], edit1
|
|
|
|
|
stdcall [edit_box_mouse], edit2
|
|
|
|
|
stdcall [edit_box_mouse], edit3
|
2015-11-29 15:40:02 +01:00
|
|
|
|
pop ebx eax
|
2011-09-09 22:55:11 +02:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
prop_button:
|
|
|
|
|
mcall 17 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮩ <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
2011-09-12 13:00:48 +02:00
|
|
|
|
cmp ah,3
|
|
|
|
|
jne @f
|
2015-11-24 15:55:05 +01:00
|
|
|
|
call get_point_coords
|
2016-01-09 20:39:34 +01:00
|
|
|
|
stdcall draw_3d, o3d
|
2015-11-24 15:55:05 +01:00
|
|
|
|
jmp prop_still.end
|
2011-09-12 13:00:48 +02:00
|
|
|
|
@@:
|
|
|
|
|
cmp ah,4
|
2011-09-09 22:55:11 +02:00
|
|
|
|
jne @f
|
2015-11-11 00:11:17 +01:00
|
|
|
|
push eax ebx ecx edi esi
|
2011-09-12 13:00:48 +02:00
|
|
|
|
stdcall [tl_node_get_data],tree3
|
2015-11-11 00:11:17 +01:00
|
|
|
|
cmp eax,0
|
2011-09-12 13:00:48 +02:00
|
|
|
|
je .no_select_1
|
2015-11-11 00:11:17 +01:00
|
|
|
|
mov ebx,[eax]
|
2011-09-12 13:00:48 +02:00
|
|
|
|
finit
|
|
|
|
|
|
|
|
|
|
mov esi,string1
|
|
|
|
|
mov edi,Data_String
|
|
|
|
|
cld
|
2015-11-24 15:55:05 +01:00
|
|
|
|
mov ecx,8
|
|
|
|
|
rep movsd
|
2011-09-12 13:00:48 +02:00
|
|
|
|
call String_to_DoubleFloat
|
|
|
|
|
fld qword[Data_Double] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> double
|
|
|
|
|
fstp dword[ebx] ;<EFBFBD><EFBFBD><EFBFBD>࠭塞 <EFBFBD><EFBFBD><EFBFBD> float
|
|
|
|
|
|
|
|
|
|
mov esi,string2
|
|
|
|
|
mov edi,Data_String
|
|
|
|
|
cld
|
2015-11-24 15:55:05 +01:00
|
|
|
|
mov ecx,8
|
|
|
|
|
rep movsd
|
2011-09-12 13:00:48 +02:00
|
|
|
|
call String_to_DoubleFloat
|
|
|
|
|
fld qword[Data_Double] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> double
|
|
|
|
|
fstp dword[ebx+4] ;<EFBFBD><EFBFBD><EFBFBD>࠭塞 <EFBFBD><EFBFBD><EFBFBD> float
|
|
|
|
|
|
|
|
|
|
mov esi,string3
|
|
|
|
|
mov edi,Data_String
|
|
|
|
|
cld
|
2015-11-24 15:55:05 +01:00
|
|
|
|
mov ecx,8
|
|
|
|
|
rep movsd
|
2011-09-12 13:00:48 +02:00
|
|
|
|
call String_to_DoubleFloat
|
|
|
|
|
fld qword[Data_Double] ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>뢠<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> double
|
|
|
|
|
fstp dword[ebx+8] ;<EFBFBD><EFBFBD><EFBFBD>࠭塞 <EFBFBD><EFBFBD><EFBFBD> float
|
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD> <EFBFBD> ᯨ᪥ tree3 <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD> ⠩<EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
mov word[NumberSymbolsAD],5
|
|
|
|
|
mov dword[obj_point],ebx
|
|
|
|
|
mov dword[obj_point.text],0
|
|
|
|
|
cld
|
|
|
|
|
mov ecx,3
|
|
|
|
|
.coord:
|
|
|
|
|
fld dword[ebx]
|
|
|
|
|
fstp qword[Data_Double]
|
|
|
|
|
call DoubleFloat_to_String
|
|
|
|
|
add ebx,4
|
|
|
|
|
stdcall str_len, Data_String
|
|
|
|
|
mov esi,txt_space
|
|
|
|
|
add esi,eax
|
|
|
|
|
cmp esi,txt_space.end
|
|
|
|
|
jl .normal_size
|
|
|
|
|
mov esi,txt_space.end-1 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1 <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㦭<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.normal_size:
|
|
|
|
|
stdcall str_cat, obj_point.text,esi
|
|
|
|
|
stdcall str_cat, obj_point.text,Data_String
|
|
|
|
|
loop .coord
|
2015-12-02 13:25:32 +01:00
|
|
|
|
mov byte[obj_point.text],'*' ;<EFBFBD>⬥砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>設<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2015-11-11 00:11:17 +01:00
|
|
|
|
stdcall dword[tl_node_set_data], tree3,obj_point
|
2011-09-12 13:00:48 +02:00
|
|
|
|
stdcall dword[tl_draw], tree3
|
|
|
|
|
mov byte[can_save],1 ;<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '<27><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD>'
|
|
|
|
|
mov dword[offs_last_timer],0 ;<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> ⠩<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2016-01-09 20:39:34 +01:00
|
|
|
|
stdcall draw_3d, o3d
|
2011-09-12 13:00:48 +02:00
|
|
|
|
.no_select_1:
|
2015-11-11 00:11:17 +01:00
|
|
|
|
pop esi edi ecx ebx eax
|
2015-11-24 15:55:05 +01:00
|
|
|
|
jmp prop_still.end
|
2011-09-09 22:55:11 +02:00
|
|
|
|
@@:
|
2015-11-26 15:58:32 +01:00
|
|
|
|
cmp ah,5
|
|
|
|
|
jne @f
|
|
|
|
|
call mnu_vertexes_on_off
|
|
|
|
|
jmp prop_still.end
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,6
|
|
|
|
|
jne @f
|
|
|
|
|
call mnu_faces_on_off
|
|
|
|
|
jmp prop_still.end
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,7
|
2015-11-29 15:40:02 +01:00
|
|
|
|
jne @f
|
|
|
|
|
call mnu_faces_fill_on_off
|
|
|
|
|
jmp prop_still.end
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,8
|
2015-11-26 15:58:32 +01:00
|
|
|
|
jne @f
|
|
|
|
|
call mnu_light_on_off
|
|
|
|
|
jmp prop_still.end
|
|
|
|
|
@@:
|
2015-11-29 15:40:02 +01:00
|
|
|
|
cmp ah,9
|
|
|
|
|
jne @f
|
|
|
|
|
call mnu_reset_settings
|
|
|
|
|
jmp prop_still.end
|
|
|
|
|
@@:
|
2015-12-02 13:25:32 +01:00
|
|
|
|
cmp ah,10
|
|
|
|
|
jne @f
|
|
|
|
|
call mnu_vertexes_select
|
|
|
|
|
jmp prop_still.end
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,11
|
|
|
|
|
jne @f
|
|
|
|
|
call mnu_vertexes_deselect
|
|
|
|
|
jmp prop_still.end
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,12
|
|
|
|
|
jne @f
|
|
|
|
|
call mnu_reset_average_x
|
|
|
|
|
jmp prop_still.end
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,13
|
|
|
|
|
jne @f
|
|
|
|
|
call mnu_reset_average_y
|
|
|
|
|
jmp prop_still.end
|
|
|
|
|
@@:
|
|
|
|
|
cmp ah,14
|
|
|
|
|
jne @f
|
|
|
|
|
call mnu_reset_average_z
|
|
|
|
|
jmp prop_still.end
|
|
|
|
|
@@:
|
2011-09-09 22:55:11 +02:00
|
|
|
|
|
|
|
|
|
cmp ah,1
|
2015-11-24 15:55:05 +01:00
|
|
|
|
jne prop_still.end
|
2011-09-09 22:55:11 +02:00
|
|
|
|
.exit:
|
|
|
|
|
mov dword[tree3.data_img],0 ;<EFBFBD><EFBFBD><EFBFBD>⨬ 㪠<EFBFBD><EFBFBD>⥫<EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD> 㤠<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov dword[tree3.data_img_sys],0 ;<EFBFBD>. <EFBFBD>. <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>ᯮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>㣨<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall dword[tl_data_clear], tree3
|
2016-01-09 20:39:34 +01:00
|
|
|
|
mov edi,o3d
|
|
|
|
|
stdcall mem.Free,[edi+offs_obj_normals_tri_data]
|
|
|
|
|
stdcall mem.Free,[edi+offs_obj_normals_poi_data]
|
|
|
|
|
mov dword[edi+offs_obj_normals_tri_data],0
|
|
|
|
|
mov dword[edi+offs_obj_normals_poi_data],0
|
2011-09-09 22:55:11 +02:00
|
|
|
|
mov byte[prop_wnd_run],0 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>稪 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mcall -1 ;<EFBFBD><EFBFBD>室 <EFBFBD><EFBFBD> <EFBFBD>ணࠬ<EFBFBD><EFBFBD>
|
|
|
|
|
|
2015-11-24 15:55:05 +01:00
|
|
|
|
align 4
|
|
|
|
|
get_point_coords:
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD>㧪<EFBFBD> <EFBFBD><EFBFBD><EFBFBD>न<EFBFBD><EFBFBD><EFBFBD> <EFBFBD> editbox-<EFBFBD>
|
|
|
|
|
push eax ebx
|
|
|
|
|
stdcall [tl_node_get_data],tree3
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je @f
|
|
|
|
|
mov ebx,[eax]
|
|
|
|
|
mov word[NumberSymbolsAD],8
|
|
|
|
|
finit
|
|
|
|
|
fld dword[ebx]
|
|
|
|
|
fstp qword[Data_Double]
|
|
|
|
|
call DoubleFloat_to_String
|
|
|
|
|
stdcall [edit_box_set_text], edit1, Data_String
|
|
|
|
|
fld dword[ebx+4]
|
|
|
|
|
fstp qword[Data_Double]
|
|
|
|
|
call DoubleFloat_to_String
|
|
|
|
|
stdcall [edit_box_set_text], edit2, Data_String
|
|
|
|
|
fld dword[ebx+8]
|
|
|
|
|
fstp qword[Data_Double]
|
|
|
|
|
call DoubleFloat_to_String
|
|
|
|
|
stdcall [edit_box_set_text], edit3, Data_String
|
|
|
|
|
stdcall [edit_box_draw], edit1
|
|
|
|
|
stdcall [edit_box_draw], edit2
|
|
|
|
|
stdcall [edit_box_draw], edit3
|
|
|
|
|
@@:
|
|
|
|
|
pop ebx eax
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
align 4
|
2015-11-26 15:58:32 +01:00
|
|
|
|
proc prop_timer_funct uses eax
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD>ᬠ<EFBFBD>ਢ<EFBFBD><EFBFBD><EFBFBD> <EFBFBD>뤥<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>न<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
stdcall [tl_node_get_data],tree3
|
|
|
|
|
cmp [cursor_last_draw],eax
|
|
|
|
|
je @f
|
|
|
|
|
mov [cursor_last_draw],eax
|
2016-01-09 20:39:34 +01:00
|
|
|
|
stdcall draw_3d, o3d
|
2015-11-26 15:58:32 +01:00
|
|
|
|
@@:
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2015-12-02 13:25:32 +01:00
|
|
|
|
align 4
|
|
|
|
|
proc mnu_vertexes_select uses eax ebx
|
|
|
|
|
stdcall [tl_node_get_data],tree3
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .no_points
|
|
|
|
|
stdcall found_block_data,tree3
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .no_points
|
|
|
|
|
mov bx,word[eax]
|
|
|
|
|
cmp bx,ID_ICON_POINT_SEL
|
|
|
|
|
je @f
|
|
|
|
|
mov word[eax],ID_ICON_POINT_SEL
|
|
|
|
|
inc dword[obj_poi_sel_c]
|
|
|
|
|
jmp .change
|
|
|
|
|
@@:
|
|
|
|
|
mov word[eax],ID_ICON_POINT
|
|
|
|
|
dec dword[obj_poi_sel_c]
|
|
|
|
|
.change:
|
|
|
|
|
mov eax,[obj_poi_sel_c]
|
|
|
|
|
stdcall convert_int_to_str, txt_select_vert.count,16
|
|
|
|
|
.no_points:
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc mnu_vertexes_deselect uses eax
|
|
|
|
|
cmp dword[obj_poi_sel_c],0
|
|
|
|
|
je .no_points
|
|
|
|
|
mov dword[obj_poi_sel_c],0
|
|
|
|
|
stdcall [tl_node_poi_get_info], tree3,0
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .no_points
|
|
|
|
|
@@:
|
|
|
|
|
mov word[eax],ID_ICON_POINT
|
|
|
|
|
stdcall [tl_node_poi_get_next_info], tree3,eax
|
|
|
|
|
cmp eax,0
|
|
|
|
|
jne @b
|
|
|
|
|
.no_points:
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc mnu_reset_average_x uses eax ebx ecx edx edi
|
|
|
|
|
cmp dword[obj_poi_sel_c],2
|
|
|
|
|
jl .end_select
|
|
|
|
|
finit
|
|
|
|
|
fldz
|
|
|
|
|
mov ecx,dword[obj_poi_sel_c]
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], tree3,0
|
|
|
|
|
@@:
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .end_select
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
cmp word[ebx],ID_ICON_POINT_SEL
|
|
|
|
|
jne .next_sel0
|
|
|
|
|
stdcall [tl_node_poi_get_data], tree3,ebx
|
|
|
|
|
mov eax,[eax]
|
|
|
|
|
fadd dword[eax]
|
|
|
|
|
dec ecx
|
|
|
|
|
jz @f
|
|
|
|
|
.next_sel0:
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], tree3,ebx
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
fidiv dword[obj_poi_sel_c]
|
|
|
|
|
fstp dword[eax]
|
|
|
|
|
mov edx,[eax]
|
|
|
|
|
mov ecx,dword[obj_poi_sel_c]
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], tree3,0
|
|
|
|
|
@@:
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .end_select
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
cmp word[ebx],ID_ICON_POINT_SEL
|
|
|
|
|
jne .next_sel1
|
|
|
|
|
stdcall [tl_node_poi_get_data], tree3,ebx
|
|
|
|
|
mov edi,eax
|
|
|
|
|
mov eax,[eax]
|
|
|
|
|
mov [eax],edx
|
|
|
|
|
stdcall update_tree, edi
|
|
|
|
|
dec ecx
|
|
|
|
|
jz @f
|
|
|
|
|
.next_sel1:
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], tree3,ebx
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
.end_select:
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc mnu_reset_average_y uses eax ebx ecx edx edi
|
|
|
|
|
cmp dword[obj_poi_sel_c],2
|
|
|
|
|
jl .end_select
|
|
|
|
|
finit
|
|
|
|
|
fldz
|
|
|
|
|
mov ecx,dword[obj_poi_sel_c]
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], tree3,0
|
|
|
|
|
@@:
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .end_select
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
cmp word[ebx],ID_ICON_POINT_SEL
|
|
|
|
|
jne .next_sel0
|
|
|
|
|
stdcall [tl_node_poi_get_data], tree3,ebx
|
|
|
|
|
mov eax,[eax]
|
|
|
|
|
fadd dword[eax+4]
|
|
|
|
|
dec ecx
|
|
|
|
|
jz @f
|
|
|
|
|
.next_sel0:
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], tree3,ebx
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
fidiv dword[obj_poi_sel_c]
|
|
|
|
|
fstp dword[eax+4]
|
|
|
|
|
mov edx,[eax+4]
|
|
|
|
|
mov ecx,dword[obj_poi_sel_c]
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], tree3,0
|
|
|
|
|
@@:
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .end_select
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
cmp word[ebx],ID_ICON_POINT_SEL
|
|
|
|
|
jne .next_sel1
|
|
|
|
|
stdcall [tl_node_poi_get_data], tree3,ebx
|
|
|
|
|
mov edi,eax
|
|
|
|
|
mov eax,[eax]
|
|
|
|
|
mov [eax+4],edx
|
|
|
|
|
stdcall update_tree, edi
|
|
|
|
|
dec ecx
|
|
|
|
|
jz @f
|
|
|
|
|
.next_sel1:
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], tree3,ebx
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
.end_select:
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc mnu_reset_average_z uses eax ebx ecx edx edi
|
|
|
|
|
cmp dword[obj_poi_sel_c],2
|
|
|
|
|
jl .end_select
|
|
|
|
|
finit
|
|
|
|
|
fldz
|
|
|
|
|
mov ecx,dword[obj_poi_sel_c]
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], tree3,0
|
|
|
|
|
@@:
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .end_select
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
cmp word[ebx],ID_ICON_POINT_SEL
|
|
|
|
|
jne .next_sel0
|
|
|
|
|
stdcall [tl_node_poi_get_data], tree3,ebx
|
|
|
|
|
mov eax,[eax]
|
|
|
|
|
fadd dword[eax+8]
|
|
|
|
|
dec ecx
|
|
|
|
|
jz @f
|
|
|
|
|
.next_sel0:
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], tree3,ebx
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
fidiv dword[obj_poi_sel_c]
|
|
|
|
|
fstp dword[eax+8]
|
|
|
|
|
mov edx,[eax+8]
|
|
|
|
|
mov ecx,dword[obj_poi_sel_c]
|
|
|
|
|
stdcall dword[tl_node_poi_get_info], tree3,0
|
|
|
|
|
@@:
|
|
|
|
|
cmp eax,0
|
|
|
|
|
je .end_select
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
cmp word[ebx],ID_ICON_POINT_SEL
|
|
|
|
|
jne .next_sel1
|
|
|
|
|
stdcall [tl_node_poi_get_data], tree3,ebx
|
|
|
|
|
mov edi,eax
|
|
|
|
|
mov eax,[eax]
|
|
|
|
|
mov [eax+8],edx
|
|
|
|
|
stdcall update_tree, edi
|
|
|
|
|
dec ecx
|
|
|
|
|
jz @f
|
|
|
|
|
.next_sel1:
|
|
|
|
|
stdcall dword[tl_node_poi_get_next_info], tree3,ebx
|
|
|
|
|
jmp @b
|
|
|
|
|
@@:
|
|
|
|
|
.end_select:
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
|
|
|
|
align 4
|
|
|
|
|
proc update_tree h_mem:dword
|
|
|
|
|
pushad
|
|
|
|
|
mov edi,[h_mem]
|
|
|
|
|
mov ebx,[edi]
|
|
|
|
|
finit
|
|
|
|
|
|
|
|
|
|
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㧫<EFBFBD> <EFBFBD> ᯨ᪥ tree3 <EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<EFBFBD><EFBFBD> ⠩<EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|
|
|
|
mov word[NumberSymbolsAD],5
|
|
|
|
|
mov dword[obj_point.text],0
|
|
|
|
|
cld
|
|
|
|
|
mov ecx,3
|
|
|
|
|
.coord:
|
|
|
|
|
fld dword[ebx]
|
|
|
|
|
fstp qword[Data_Double]
|
|
|
|
|
call DoubleFloat_to_String
|
|
|
|
|
add ebx,4
|
|
|
|
|
stdcall str_len, Data_String
|
|
|
|
|
mov esi,txt_space
|
|
|
|
|
add esi,eax
|
|
|
|
|
cmp esi,txt_space.end
|
|
|
|
|
jl .normal_size
|
|
|
|
|
mov esi,txt_space.end-1 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1 <EFBFBD><EFBFBD><EFBFBD> <EFBFBD>㦭<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
.normal_size:
|
|
|
|
|
stdcall str_cat, obj_point.text,esi
|
|
|
|
|
stdcall str_cat, obj_point.text,Data_String
|
|
|
|
|
loop .coord
|
|
|
|
|
mov esi,obj_point.text
|
|
|
|
|
mov byte[esi],'*' ;<EFBFBD>⬥砥<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>設<EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
mov byte[can_save],1 ;<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '<27><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD>'
|
|
|
|
|
add edi,4
|
|
|
|
|
mov ecx,MAX_OBJECT_SIZE-4
|
|
|
|
|
rep movsb
|
|
|
|
|
popad
|
|
|
|
|
ret
|
|
|
|
|
endp
|
|
|
|
|
|
2015-11-29 15:40:02 +01:00
|
|
|
|
align 4
|
|
|
|
|
angle_dxm dd 1.7775 ;~ 3d_wnd_w/180 - <EFBFBD>ਡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 㣫<EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD>業<EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD>饭<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>襩
|
|
|
|
|
angle_dym dd 1.3335 ;~ 3d_wnd_h/180
|
2015-12-03 11:55:32 +01:00
|
|
|
|
ratio dd 1.3333 ;~ 3d_wnd_w/3d_wnd_h
|
2015-11-26 15:58:32 +01:00
|
|
|
|
cursor_last_draw dd 0 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><EFBFBD> 3d <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2013-12-06 13:07:49 +01:00
|
|
|
|
capt_p dd 0
|
|
|
|
|
|
2011-09-09 22:55:11 +02:00
|
|
|
|
;<EFBFBD><EFBFBD>ॢ<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD>ꥪ⠬<EFBFBD> <EFBFBD> <EFBFBD><EFBFBD><EFBFBD>짮<EFBFBD><EFBFBD>⥫<EFBFBD><EFBFBD> 䠩<EFBFBD><EFBFBD>
|
2015-11-24 15:55:05 +01:00
|
|
|
|
tree3 tree_list MAX_OBJECT_SIZE,3, tl_key_no_edit+tl_list_box_mode,\
|
2015-11-26 15:58:32 +01:00
|
|
|
|
16,16, 0xffffff,0xb0d0ff,0x400040, 5,290,303,140, 16, 4,0, el_focus,\
|
2015-11-24 15:55:05 +01:00
|
|
|
|
w_scr_t3,get_point_coords
|
|
|
|
|
|
2015-11-26 15:58:32 +01:00
|
|
|
|
edit1 edit_box 80, 76, 269, 0xffd0d0, 0xff, 0x80ff, 0, 0x8000, 34, string1, mouse_dd, 0
|
|
|
|
|
edit2 edit_box 80, 160, 269, 0xd0d0ff, 0xff, 0x80ff, 0, 0x8000, 34, string2, mouse_dd, 0
|
|
|
|
|
edit3 edit_box 80, 244, 269, 0xd0ffd0, 0xff, 0x80ff, 0, 0x8000, 34, string3, mouse_dd, 0
|
2011-09-12 13:00:48 +02:00
|
|
|
|
editboxes_end:
|
|
|
|
|
|
|
|
|
|
string1 rb 34
|
|
|
|
|
string2 rb 34
|
|
|
|
|
string3 rb 34
|
|
|
|
|
|
2011-09-09 22:55:11 +02:00
|
|
|
|
align 4
|
2015-11-24 15:55:05 +01:00
|
|
|
|
w_scr_t3 scrollbar 16, 0,0,0, 15, 100,0,0, 0,0,0, 1
|