Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 1618 → Rev 1619

/programs/games/nu_pogodi/trunk/main.ini
1,4 → 1,5
[Files]
count=2
count=3
g0=nu_pogod.ini
g1=kvaka_za.ini
g1=nu_pogod_n.ini
g2=kvaka_za.ini
/programs/games/nu_pogodi/trunk/nu_pogod.asm
918,11 → 918,11
or edx,0x73000000
mov edi,hed
mcall ;ᮧ¤ ­¨¥ ®ª­ 
mcall 9,procinfo,-1
 
cmp byte[game_select_mode],0
jne .select_mode
 
mcall 9,procinfo,-1
mov edi,buf_displ
mov eax,dword[procinfo.client_box.width]
cmp eax,dword[displ_w]
1015,6 → 1015,9
jmp @f
.select_mode:
stdcall dword[tl_draw],dword tree1
mov edi,tree1
add edi,tl_offs_box
stdcall draw_rect_border, procinfo.client_box, edi
@@:
 
mcall 12,2
1021,7 → 1024,59
popad
ret
 
; äã­ªæ¨ï à¨áã¥â ¯®«ï ¢®ªà㣠¯àאַ㣮«ì­¨ª  user_box
; à §¬¥à ¯®«¥© ¢ëç¨á«ï¥âáï ¨áå®¤ï ¨§ à §¬¥à®¢ client_rect
; ¯à¥¤¯®« £ ¥âáï, çâ® ¢ ¡®«ì設á⢥ á«ãç ¥¢ client_rect > user_box
align 4
proc draw_rect_border, client_rect:dword, user_box:dword
pushad
mov edi,dword[client_rect]
mov esi,dword[user_box]
cmp esi,0
je @f
mov ebx,dword[edi+8] ;+8 = width
inc bx
mov ecx,dword[esi+4] ;+4 = top
mov edx,[sc.work]
mov eax,13
int 0x40 ;top
 
mov eax,dword[esi+4] ;+4 = top
add eax,dword[esi+12] ;+12 = height
cmp eax,dword[edi+12]
jge .no_bottom
mov ecx,eax
shl ecx,16
mov cx,word[edi+12] ;+12 = bottom
inc cx
sub cx,ax
mov eax,13
int 0x40 ;bottom
.no_bottom:
 
mov ebx,dword[esi] ;+0 left
mov ecx,dword[esi+4] ;+4 = top
shl ecx,16
mov cx,word[esi+12] ;+12 = height
inc cx
mov eax,13
int 0x40 ;left
 
mov eax,dword[esi] ;+0 left
add eax,dword[esi+8] ;+8 = width
mov ebx,eax
shl ebx,16
mov bx,word[edi+8] ;+8 = right
sub bx,ax
inc bx
mov eax,13
int 0x40 ;right
@@:
popad
ret
endp
 
align 4
draw_display:
 
stdcall mem_copy, dword[buf_fon],dword[buf_displ],dword[displ_bytes] ;ª®¯¨à®¢ ­¨¥ ¨§®¡à ¦¥­¨ï ¨§ ä®­®¢®£® ¡ãä¥à 
1168,7 → 1223,7
image_data_gray dd 0 ;¯ ¬ïâì á ¢à¥¬¥­­ë¬¨ á¥à묨 ¨§®¡à ¦¥­¨ï¬¨ ¢ ä®à¬ â¥ 24-bit, ¨§ ª®â®àëå ¡ã¤ãâ ᮧ¤ ¢ âìáï âà ä à¥âë
 
run_file_70 FileInfoBlock
hed db 'Nu pogodi 08.09.10',0 ;¯®¤¯¨áì ®ª­ 
hed db 'Nu pogodi 17.09.10',0 ;¯®¤¯¨áì ®ª­ 
sc system_colors ;á¨á⥬­ë¥ 梥â 
 
count_of_dir_list_files equ 10
/programs/games/nu_pogodi/trunk/nu_pogod_n.ini
0,0 → 1,22
[Files]
displ_w=315
displ_h=210
file_decorat=curici.png
file_unit=wolf.png
file_objects=eggs.png
file_lost=chi.png
offs_shadow_x=1
offs_shadow_y=1
[Game]
delay_a=65
delay_b=35
delay_min=15
[Colors]
background=0,0,0 ;öâåò ôîíà
shadows=255,255,255 ;öâåò òåíåé
unit=255,255,255 ;öâåò èãðàêà
objects=0,255,255 ;öâåò äâèãàþùèõñÿ ïðåäìåòîâ
lost=255,0,0 ;öâåò ïðîïóùåííûõ ïðåäìåòîâ
dec0=0,0,128
dec1=128,128,128
dec2=0,128,0