From 3695aa1b4890d798acd1948884e7f296e523c464 Mon Sep 17 00:00:00 2001 From: tobigun Date: Thu, 23 Jul 2009 19:33:10 +0000 Subject: - Translations added - Info popup added git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@1895 b956fd51-792f-4845-bead-9b4dfca2ff2c --- unicode/src/screens/UScreenPopup.pas | 44 +++++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 8 deletions(-) (limited to 'unicode/src/screens/UScreenPopup.pas') diff --git a/unicode/src/screens/UScreenPopup.pas b/unicode/src/screens/UScreenPopup.pas index 1af712dd..fdf4a69c 100644 --- a/unicode/src/screens/UScreenPopup.pas +++ b/unicode/src/screens/UScreenPopup.pas @@ -61,7 +61,7 @@ type end; type - TScreenPopupError = class(TMenu) + TScreenPopup = class(TMenu) { private CurMenu: byte; //Num of the cur. Shown Menu @@ -77,6 +77,16 @@ type function Draw: boolean; override; end; + TScreenPopupError = class(TScreenPopup) + public + constructor Create; + end; + + TScreenPopupInfo = class(TScreenPopup) + public + constructor Create; + end; + var //ISelections: array of string; SelectValue: integer; @@ -94,6 +104,8 @@ uses UDisplay, UUnicodeUtils; +{ TScreenPopupCheck } + function TScreenPopupCheck.ParseInput(PressedKey: cardinal; CharCode: UCS4Char; PressedDown: boolean): boolean; var Value: boolean; @@ -187,9 +199,9 @@ begin Background.OnShow end; -// error popup +{ TScreenPopup } -function TScreenPopupError.ParseInput(PressedKey: cardinal; CharCode: UCS4Char; PressedDown: boolean): boolean; +function TScreenPopup.ParseInput(PressedKey: cardinal; CharCode: UCS4Char; PressedDown: boolean): boolean; begin Result := true; if (PressedDown) then @@ -223,7 +235,7 @@ begin end; end; -constructor TScreenPopupError.Create; +constructor TScreenPopup.Create; begin inherited Create; @@ -238,22 +250,22 @@ begin Interaction := 0; end; -function TScreenPopupError.Draw: boolean; +function TScreenPopup.Draw: boolean; begin Draw := inherited Draw; end; -procedure TScreenPopupError.OnShow; +procedure TScreenPopup.OnShow; begin inherited; end; -procedure TScreenPopupError.OnHide; +procedure TScreenPopup.OnHide; begin end; -procedure TScreenPopupError.ShowPopup(const Msg: UTF8String); +procedure TScreenPopup.ShowPopup(const Msg: UTF8String); begin Interaction := 0; //Reset Interaction Visible := true; //Set Visible @@ -277,4 +289,20 @@ begin Button[0].Text[0].Text := 'OK'; end; +{ TScreenPopupError } + +constructor TScreenPopupError.Create; +begin + inherited; + Text[1].Text := Language.Translate('MSG_ERROR_TITLE'); +end; + +{ TScreenPopupInfo } + +constructor TScreenPopupInfo.Create; +begin + inherited; + Text[1].Text := Language.Translate('MSG_INFO_TITLE'); +end; + end. -- cgit v1.2.3