37,7 → 37,7 |
align 4 |
prop_start: |
pushad |
mcall SF_SET_EVENTS_MASK,0x27 ;¬ ᪠®¦¨¤ ¥¬ëå ᮡë⨩ |
mcall 40,0x27 ;¬ ᪠®¦¨¤ ¥¬ëå ᮡë⨩ |
inc byte[prop_wnd_run] |
mov dword[w_scr_t3.type],1 |
mov edi,o3d |
44,6 → 44,11 |
stdcall obj_clear_param, edi |
call mnu_reset_settings |
|
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 |
|
stdcall [tl_node_get_data],tree1 |
xor edx,edx |
mov dword[capt_p],txt_q |
165,7 → 170,7 |
prop_still: |
pushad |
|
mcall SF_WAIT_EVENT_TIMEOUT,10 |
mcall 23,10 |
or eax,eax |
jnz @f |
call prop_timer_funct |
195,7 → 200,7 |
align 4 |
prop_red_win: |
pushad |
mcall SF_REDRAW,SSF_BEGIN_DRAW |
mcall 12,1 |
|
xor eax,eax |
mov edi,dword[capt_p] ;children window caption |
213,12 → 218,12 |
int 0x40 |
|
mov esi,[sc.work_button] |
mcall SF_DEFINE_BUTTON, (5 shl 16)+20, (266 shl 16)+20, 3 |
mcall 8, (5 shl 16)+20, (266 shl 16)+20, 3 |
mcall , (30 shl 16)+20, (266 shl 16)+20, 4 |
|
mov ebx,[image_data_toolbar] |
add ebx,3*IMAGE_TOOLBAR_ICON_SIZE |
mcall SF_PUT_IMAGE, , (16 shl 16)+16, (7 shl 16)+268 ;load |
mcall 7, , (16 shl 16)+16, (7 shl 16)+268 ;load |
|
sub ebx,IMAGE_TOOLBAR_ICON_SIZE |
mov edx,(32 shl 16)+268 ;save |
233,13 → 238,13 |
|
stdcall [kmainmenu_draw], [main_menu] |
stdcall draw_3d, o3d |
mcall SF_REDRAW,SSF_END_DRAW |
mcall 12,2 |
popad |
ret |
|
align 4 |
proc prop_key uses eax ebx |
mcall SF_GET_KEY |
mcall 2 |
|
test word [edit1.flags],10b ;ed_focus |
je @f |
301,13 → 306,13 |
align 4 |
prop_mouse: |
push eax ebx |
mcall SF_MOUSE_GET,SSF_BUTTON_EXT |
mcall 37,3 |
bt eax,0 |
jnc .end_m |
;mouse l. but. move |
cmp dword[mouse_drag],1 |
jne .end_m |
mcall SF_MOUSE_GET,SSF_WINDOW_POSITION ;get mouse coords |
mcall 37,1 ;get mouse coords |
mov ebx,eax |
shr ebx,16 ;mouse.x |
cmp ebx,3d_wnd_l |
356,7 → 361,7 |
bt eax,8 |
jnc .end_d |
;mouse l. but. press |
mcall SF_MOUSE_GET,SSF_WINDOW_POSITION ;get mouse coords |
mcall 37,1 ;get mouse coords |
mov ebx,eax |
shr ebx,16 ;mouse.x |
cmp ebx,3d_wnd_l |
385,7 → 390,7 |
|
align 4 |
prop_button: |
mcall SF_GET_BUTTON |
mcall 17 ;¯®«ãç¨âì ª®¤ ¦ ⮩ ª®¯ª¨ |
|
cmp ah,3 |
jne @f |
523,7 → 528,7 |
mov dword[edi+offs_obj_normals_tri_data],0 |
mov dword[edi+offs_obj_normals_poi_data],0 |
mov byte[prop_wnd_run],0 ;®¡ã«ï¥¬ áç¥â稪 ®ª® |
mcall SF_TERMINATE_PROCESS ;¢ë室 ¨§ ¯à®£à ¬¬ë |
mcall -1 ;¢ë室 ¨§ ¯à®£à ¬¬ë |
|
align 4 |
get_point_coords: |