skincfg: remove old non-skinned window, gui fixes

git-svn-id: svn://kolibrios.org@6170 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2016-02-08 14:28:25 +00:00
parent c8de4cb0ee
commit d43a9570e1
3 changed files with 42 additions and 114 deletions

View File

@ -5,29 +5,17 @@ area:
.width = 206
.height = 191
;--------------------------------------
wnd1:
.x = area.x+49
.y = area.y+5
.width = 150
.height = 90
;--------------------------------------
wnd2:
.x = area.x+35
.y = area.y+35
.width = 150
.height = 90
;--------------------------------------
wnd3:
.x = area.x+21
.y = area.y+65
.width = 150
.height = 90
.x = area.x+32
.y = area.y+35
.width = 160
.height = 100
;--------------------------------------
wnd4:
.x = area.x+7
.y = area.y+95
.width = 150
.height = 90
.x = area.x+15
.y = area.y+70
.width = 160
.height = 100
;--------------------------------------
virtual at edi+SKIN_PARAMS.dtp.data
dtp system_colors
@ -36,70 +24,6 @@ end virtual
draw_skin:
mcall 13,<area.x,area.width>,<area.y+2,area.height>,0x00FFFFFF
mov ebp,not_packed_area
mov edi,[ebp+SKIN_HEADER.params]
add edi,ebp
mpack ebx,wnd1.x,wnd1.width
mpack ecx,wnd1.y,wnd1.height
mov edx,[dtp.frame]
call draw_framerect
mcall 13,<wnd1.x+1,wnd1.width-2>,<wnd1.y+1,wnd1.height-2>,dword[dtp.work]
mov eax,38
mpack ebx,wnd1.x+1,wnd1.x+wnd1.width-2
mpack ecx,wnd1.y+1,wnd1.y+1
mov edx,[dtp.grab]
mov esi,20
;--------------------------------------
@@:
mcall
call dec_edx
add ecx,0x00010001
dec esi
jnz @b
mov edi,[ebp+SKIN_HEADER.params]
add edi,ebp
mcall 4,<wnd1.x+6,wnd1.y+7>,dword[dtp.grab_text],caption_text,caption_text.size
mcall 8,<wnd1.x+wnd1.width-18,12>,<wnd1.y+4,12>,0,[dtp.grab_button]
mcall 4,<wnd1.x+wnd1.width-18+4,wnd1.y+4+2>,dword[dtp.grab_button_text],close_text,close_text.size
;----------------------------------------------------------------------
mov edi,[ebp+SKIN_HEADER.params]
add edi,ebp
mpack ebx,wnd2.x,wnd2.width
mpack ecx,wnd2.y,wnd2.height
mov edx,[dtp.frame]
shr edx,1
and edx,0x007F7F7F
call draw_framerect
mpack ebx,wnd2.x+4,wnd2.width-8
mpack ecx,wnd2.y+4,wnd2.height-8
call draw_framerect
mcall 13,<wnd2.x+1,wnd2.width-2>,<wnd2.y+1,3>,[dtp.frame]
add ecx,(wnd2.height-5)*65536
mcall
mcall ,<wnd2.x+1,3>,<wnd2.y+1,wnd2.height-2>
add ebx,(wnd2.width-5)*65536
mcall
mcall ,<wnd2.x+5,wnd2.width-10>,<wnd2.y+5,wnd2.height-10>,dword[dtp.work]
mov eax,38
mpack ebx,wnd2.x+4,wnd2.x+wnd2.width-5
mpack ecx,wnd2.y+4,wnd2.y+4
mov edx,[dtp.grab]
mov esi,16
;--------------------------------------
@@:
mcall
call dec_edx
add ecx,0x00010001
dec esi
jnz @b
mov edi,[ebp+SKIN_HEADER.params]
add edi,ebp
mcall 4,<wnd2.x+8,wnd2.y+7>,dword[dtp.grab_text],caption_text,caption_text.size
mcall 8,<wnd2.x+wnd2.width-20,12>,<wnd2.y+4,12>,0,[dtp.grab_button]
mcall 4,<wnd2.x+wnd2.width-20+4,wnd2.y+4+2>,dword[dtp.grab_button_text],close_text,close_text.size
;----------------------------------------------------------------------
mov edi,[ebp+SKIN_HEADER.params]
add edi,ebp
mpack ebx,wnd3.x,wnd3.width
@ -160,10 +84,12 @@ draw_skin:
sub ax,[edi+SKIN_PARAMS.margin.bottom]
shr ax,1
add ax,[edi+SKIN_PARAMS.margin.top]
add ax,-4
add ax,-9
push eax
lea ebx,[eax+wnd3.x*65536+wnd3.y]
mcall 4,,dword[dtp.grab_text],caption_text,caption_text.size
mov ecx,dword[dtp.grab_text]
add ecx,0x10000000
mcall 4,,,caption_text,caption_text.size
;---------------------------------------------------------
mov edi,[ebp+SKIN_HEADER.params]
add edi,ebp
@ -222,7 +148,9 @@ draw_skin:
add edi,ebp
pop eax
lea ebx,[eax+wnd4.x*65536+wnd4.y]
mcall 4,,dword[dtp.grab_text],caption_text,caption_text.size
mov ecx,dword[dtp.grab_text]
add ecx,0x10000000
mcall 4,,,caption_text,caption_text.size
;----------------------------------------------------------------------
mov edi,[ebp+SKIN_HEADER.buttons]
add edi,ebp
@ -256,13 +184,13 @@ draw_skin:
mcall 13,<wnd4.x+window_text.size*6+20,wnd4.x+wnd4.width-10-\
(wnd4.x+window_text.size*6+20)>,,[dtp.work_graph]
add ecx,25*65536+8
add ecx,25*65536+10
mcall 8,<wnd4.x+wnd4.width/2-button_text.size*3-6,\
button_text.size*6+11>,,0,[dtp.work_button]
shr ecx,16
mov bx,cx
add ebx,0x00060006
add ebx,0x00060007
mcall 4,,[dtp.work_button_text],button_text,button_text.size
ret
;---------------------------------------------------------------------

View File

@ -1,11 +1,11 @@
;-----------------------------------------------------------------------------
text:
if lang eq ru
db ' <EFBFBD>€ŚŠ€ ŽŠŤ€ '
db ' ŹŽ‹Ž‘€ ‡€<E280A1>ŽŽŠ€ '
db ' ŠŤŽŹŠ€ Ť€ ŹŽ‹Ž‘… ‡€<E280A1>ŽŽŠ€ '
db ' ’…Š‘’ Ť€ ŠŤŽŹŠ… Ť€ ‡€<E280A1>ŽŽŠ… '
db ' ’…Š‘’ ‡€<E280A1>ŽŽŠ€ '
db ' UNUSED1 '
db ' UNUSED2 '
db ' 3D ’…ŚŤ€ź Ž<E28099>ŽŤ€ '
db ' 3D ‘‚…’‹€ź Ž<E28099>ŽŤ€ '
db ' UNUSED3 '
db ' <20><EFBFBD>Ž—€Ÿ Ž<>œ '
db ' Š<>Ž<EFBFBD>Š€ <20><EFBFBD>Ž—…‰ Ž<>ˆ '
db ' ’…Š‘’ <20>€ Š<>Ž<EFBFBD>Š… '
@ -13,11 +13,11 @@ if lang eq ru
db ' ƒ<>€”ˆŠ€ <20><EFBFBD>Ž—…‰ Ž<>ˆ '
db 'x'
else if lang eq et
db ' AKNA RAAM '
db ' AKNA HAARAMISE RIBA '
db ' AKNA HAARAMISE NUPP '
db ' AKNA HAARAMISE NUPU TEKST '
db ' AKNA HAARAMISE PEALKIRI '
db ' UNUSED1 '
db ' UNUSED2 '
db ' WORK 3D DARK '
db ' WORK 3D LIGHT '
db ' UNUSED3 '
db ' AKNA TÖÖPIIRKOND '
db ' AKNA TÖÖPIIRKONNA NUPP '
db ' AKNA TÖÖPIIRKONNA NUPPU TEKST '
@ -25,16 +25,16 @@ else if lang eq et
db ' AKNA TÖÖPIIRKONNA GRAAFIKA '
db 'x'
else
db ' WINDOW FRAME '
db ' WINDOW GRAB BAR '
db ' WINDOW GRAB BUTTON '
db ' WINDOW GRAB BUTTON TEXT '
db ' WINDOW GRAB TITLE '
db ' WINDOW WORK AREA '
db ' WINDOW WORK AREA BUTTON '
db ' WINDOW WORK AREA BUTTON TEXT '
db ' WINDOW WORK AREA TEXT '
db ' WINDOW WORK AREA GRAPH '
db ' UNUSED1 '
db ' UNUSED2 '
db ' WORK 3D DARK '
db ' WORK 3D LIGHT '
db ' UNUSED3 '
db ' WORK AREA BACKGROUND '
db ' WORK AREA BUTTON '
db ' WORK AREA BUTTON TEXT '
db ' WORK AREA TEXT '
db ' WORK AREA GRAPH '
db 'x'
end if
;-----------------------------------------------------------------------------

View File

@ -1,10 +1,10 @@
struc system_colors
{
.nonset1 dd 0x646464
.nonset2 dd 0x000000
.3d_dark dd 0xAEA6A6
.3d_light dd 0xFBFBFB
.grab_text dd 0x333333
.unused1 dd 0x646464
.unused2 dd 0x000000
.work_3d_dark dd 0xAEA6A6
.work_3d_light dd 0xFBFBFB
.unused3 dd 0x333333
.work dd 0xDDD7CF
.work_button dd 0x7887A6
.work_button_text dd 0xFEFEFE