diff --git a/programs/system/icon_new/RButton.inc b/programs/system/icon_new/RButton.inc index 51a5f29d03..48067fc3c7 100644 --- a/programs/system/icon_new/RButton.inc +++ b/programs/system/icon_new/RButton.inc @@ -159,14 +159,35 @@ RBWRedraw: ;----------- определяем и рисуем кнопки mov ecx,[NumMenuButt] - xor eax,eax .DrawUB: push ecx - push eax - stdcall DrawRBLine,eax,0 - pop eax - add eax,16 + mov eax,[NumMenuButt] + sub eax,ecx + mov edx,eax ;button ID = от 0 до NumMenuButt + or edx,60000000h + shl eax,4+16 ;*16*10000h + mov ecx,eax + mov cx,16 + + xor ebx,ebx + mov bx,[RMenuW] + mov esi,[sc.work] + mcall 8 ;определили + + mov ebx,70000h + shr ecx,16 + mov bx,cx + add bx,7 + + mov ecx,[sc.work_text] + or ecx,80000000h + + mov eax,[NumMenuButt] + sub eax,[esp] + mov edx,[RBMenuCP+eax*8] + mcall 4 + pop ecx loop .DrawUB diff --git a/programs/system/icon_new/build_et.bat b/programs/system/icon_new/build_et.bat index 5ed4bebae7..4c7338b4bd 100644 --- a/programs/system/icon_new/build_et.bat +++ b/programs/system/icon_new/build_et.bat @@ -1,6 +1,6 @@ @erase lang.inc @echo lang fix et >lang.inc @fasm -m 16384 @icon.asm @icon -@kpack icon +@kpack @icon @erase lang.inc @pause \ No newline at end of file