From 068d0c4144bd8bfea1a2b86f9d8652e78825effe Mon Sep 17 00:00:00 2001 From: denniscuflat Date: Sat, 10 Sep 2011 02:43:40 +0000 Subject: [PATCH] "TappyTux Loader" interface updated. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1930 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- applications/tappytux/gameconfigform.lfm | 47 ++++++++++++---- applications/tappytux/gameconfigform.pas | 28 +++++++++- applications/tappytux/tappytux.lpi | 71 ++++++++++++------------ 3 files changed, 98 insertions(+), 48 deletions(-) diff --git a/applications/tappytux/gameconfigform.lfm b/applications/tappytux/gameconfigform.lfm index 1ec8c278a..3992c8691 100644 --- a/applications/tappytux/gameconfigform.lfm +++ b/applications/tappytux/gameconfigform.lfm @@ -7,14 +7,6 @@ object Form1: TForm1 ClientHeight = 436 ClientWidth = 582 LCLVersion = '0.9.31' - object lblGameType: TLabel - Left = 16 - Height = 16 - Top = 16 - Width = 58 - Caption = 'GameType' - ParentColor = False - end object comboGameType: TComboBox Left = 17 Height = 23 @@ -25,6 +17,7 @@ object Form1: TForm1 'Tappy Words' 'Tappy Math' ) + OnChange = comboGameTypeChange TabOrder = 0 Text = 'GameType' end @@ -46,10 +39,17 @@ object Form1: TForm1 end object ltbWordlist: TListBox Left = 212 - Height = 292 - Top = 44 + Height = 300 + Top = 38 Width = 132 - ItemHeight = 0 + Items.Strings = ( + 'English' + 'German' + 'Afrikaans' + 'French' + 'Portuguese' + ) + ItemHeight = 15 TabOrder = 2 end object lblSettings: TLabel @@ -150,7 +150,24 @@ object Form1: TForm1 Height = 173 Top = 189 Width = 153 + Lines.Strings = ( + 'Função 1:' + ' Nome 1.1' + '' + 'Função 2:' + ' Nome 2.1' + ' Nome 2.2' + '' + 'Função 3:' + ' Nome 3.1' + ' Nome 3.2' + ' Nome 3.3' + '' + 'Função 4:' + ' Nome 4.1' + ) ReadOnly = True + ScrollBars = ssAutoVertical TabOrder = 6 end object btnLoad: TButton @@ -169,4 +186,12 @@ object Form1: TForm1 Caption = 'Wordlist Editor' TabOrder = 8 end + object lblGameType: TLabel + Left = 16 + Height = 16 + Top = 16 + Width = 58 + Caption = 'GameType' + ParentColor = False + end end diff --git a/applications/tappytux/gameconfigform.pas b/applications/tappytux/gameconfigform.pas index 847f9b482..557e80fc0 100644 --- a/applications/tappytux/gameconfigform.pas +++ b/applications/tappytux/gameconfigform.pas @@ -5,7 +5,8 @@ unit gameconfigform; interface uses - Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; + Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, + ExtCtrls; type @@ -28,6 +29,7 @@ type ltbWordlist: TListBox; memoGameType: TMemo; memoCredits: TMemo; + procedure comboGameTypeChange(Sender: TObject); private { private declarations } public @@ -41,5 +43,29 @@ implementation {$R *.lfm} +{ TForm1 } + +procedure TForm1.comboGameTypeChange(Sender: TObject); +begin + + Case comboGameType.itemIndex of + 0: begin + memoGameType.Clear; + memoGameType.Lines.Add('Description: '); + memoGameType.Lines.Add(''); + memoGameType.Lines.Add('Hint: '); + end; + + 1: begin + memoGameType.Clear; + memoGameType.Lines.Add('Description: '); + memoGameType.Lines.Add(''); + memoGameType.Lines.Add('Hint: '); + end; + + end; + +end; + end. diff --git a/applications/tappytux/tappytux.lpi b/applications/tappytux/tappytux.lpi index edf4e1676..64bc72d60 100644 --- a/applications/tappytux/tappytux.lpi +++ b/applications/tappytux/tappytux.lpi @@ -39,7 +39,7 @@ - + @@ -50,10 +50,10 @@ - - - - + + + + @@ -67,8 +67,7 @@ - - + @@ -76,47 +75,47 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -124,75 +123,75 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +