X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Feditor%2Ff_addresource_texture.pas;h=927017e6de9d6cfba12566faae8c9b5e51eb9d87;hb=4c87d715a2cbbad04f3e785be4012422d675dca3;hp=cdd06218b5338bd8c18fc4713f31b29986f30f8f;hpb=acc4fbaaecd9113aa28251b5137522f3571e6231;p=d2df-editor.git diff --git a/src/editor/f_addresource_texture.pas b/src/editor/f_addresource_texture.pas index cdd0621..927017e 100644 --- a/src/editor/f_addresource_texture.pas +++ b/src/editor/f_addresource_texture.pas @@ -189,7 +189,7 @@ begin Inherited; lStats.Caption := ''; - cbWADList.Items.Add(_lc[I_WAD_SPECIAL_TEXS]); + cbWADList.Items.Add(MsgWadSpecialTexs); eTextureName.Text := ''; iPreview.Canvas.FillRect(iPreview.Canvas.ClipRect); @@ -212,11 +212,11 @@ begin Exit; if FResourceName = '' then Exit; - if cbWADList.Text = _lc[I_WAD_SPECIAL_TEXS] then + if cbWADList.Text = MsgWadSpecialTexs then Exit; g_ProcessResourceStr(FFullResourceName, @wad, nil, nil); - if wad = _lc[I_WAD_SPECIAL_TEXS] then + if wad = MsgWadSpecialTexs then Exit; Anim := IsAnim(FFullResourceName); @@ -229,9 +229,9 @@ begin Exit; if Anim then - lStats.Caption := Format(_lc[I_CAP_ANIMATION], [Texture.Width, Texture.Height, NumFrames]) + lStats.Caption := Format(MsgCapAnimation, [Texture.Width, Texture.Height, NumFrames]) else - lStats.Caption := Format(_lc[I_CAP_TEXTURE], [Texture.Width, Texture.Height]); + lStats.Caption := Format(MsgCapTexture, [Texture.Width, Texture.Height]); iPreview.Canvas.FillRect(iPreview.Canvas.ClipRect); iPreview.Canvas.CopyRect(Texture.Canvas.ClipRect, Texture.Canvas, Texture.Canvas.ClipRect); @@ -275,7 +275,7 @@ end; procedure TAddTextureForm.cbWADListChange(Sender: TObject); begin - if cbWADList.Text = _lc[I_WAD_SPECIAL_TEXS] then + if cbWADList.Text = MsgWadSpecialTexs then begin cbSectionsList.Clear(); cbSectionsList.Items.Add('..'); @@ -287,7 +287,7 @@ end; procedure TAddTextureForm.cbSectionsListChange(Sender: TObject); begin - if cbWADList.Text = _lc[I_WAD_SPECIAL_TEXS] then + if cbWADList.Text = MsgWadSpecialTexs then begin lbResourcesList.Clear(); lbResourcesList.Items.Add(TEXTURE_NAME_WATER);