Changeset 36 for trunk/Forms
- Timestamp:
- Mar 8, 2014, 12:01:08 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 5 5 xtactics.dbg 6 6 heaptrclog.trc 7 Config.xml
-
- Property svn:ignore
-
trunk/Forms/UFormNew.lfm
r34 r36 89 89 Left = 16 90 90 Height = 22 91 Top = 2 0692 Width = 7593 Caption = 'Map size:'91 Top = 224 92 Width = 88 93 Caption = 'Map width:' 94 94 ParentColor = False 95 95 end … … 97 97 Left = 136 98 98 Height = 32 99 Top = 2 0099 Top = 219 100 100 Width = 98 101 101 MinValue = 2 102 OnChange = SpinEditMapSizeXChange 102 103 TabOrder = 6 103 104 Value = 2 104 105 end 105 106 object SpinEditMapSizeY: TSpinEdit 106 Left = 256107 Left = 136 107 108 Height = 32 108 Top = 2 00109 Width = 9 0109 Top = 270 110 Width = 98 110 111 MinValue = 2 112 OnChange = SpinEditMapSizeYChange 111 113 TabOrder = 7 112 114 Value = 2 113 end114 object Label2: TLabel115 Left = 240116 Height = 22117 Top = 208118 Width = 9119 Caption = 'x'120 ParentColor = False121 115 end 122 116 object ButtonPlayerModify: TButton … … 130 124 TabOrder = 8 131 125 end 132 object SpinEdit 1: TSpinEdit126 object SpinEditVoidPercent: TSpinEdit 133 127 Left = 224 134 128 Height = 32 … … 147 141 ParentColor = False 148 142 end 143 object TrackBarSizeX: TTrackBar 144 Left = 248 145 Height = 43 146 Top = 216 147 Width = 451 148 Max = 100 149 Min = 2 150 OnChange = TrackBarSizeXChange 151 Position = 2 152 TickStyle = tsNone 153 Anchors = [akTop, akLeft, akRight] 154 TabOrder = 11 155 end 156 object TrackBarSizeY: TTrackBar 157 Left = 248 158 Height = 43 159 Top = 264 160 Width = 451 161 Max = 100 162 Min = 2 163 OnChange = TrackBarSizeYChange 164 Position = 2 165 TickStyle = tsNone 166 Anchors = [akTop, akLeft, akRight] 167 TabOrder = 10 168 end 169 object Label2: TLabel 170 Left = 16 171 Height = 22 172 Top = 272 173 Width = 94 174 Caption = 'Map height:' 175 ParentColor = False 176 end 149 177 end -
trunk/Forms/UFormNew.lrt
r34 r36 9 9 TFORMNEW.BUTTONPLAYERADD.CAPTION=Add 10 10 TFORMNEW.BUTTONPLAYERREMOVE.CAPTION=Remove 11 TFORMNEW.LABEL1.CAPTION=Map size: 12 TFORMNEW.LABEL2.CAPTION=x 11 TFORMNEW.LABEL1.CAPTION=Map width: 13 12 TFORMNEW.BUTTONPLAYERMODIFY.CAPTION=Modify 14 13 TFORMNEW.LABEL3.CAPTION=% 14 TFORMNEW.LABEL2.CAPTION=Map height: -
trunk/Forms/UFormNew.pas
r34 r36 24 24 Label3: TLabel; 25 25 ListView1: TListView; 26 SpinEdit 1: TSpinEdit;26 SpinEditVoidPercent: TSpinEdit; 27 27 SpinEditMapSizeX: TSpinEdit; 28 28 SpinEditMapSizeY: TSpinEdit; 29 TrackBarSizeX: TTrackBar; 30 TrackBarSizeY: TTrackBar; 29 31 procedure ButtonPlayerAddClick(Sender: TObject); 30 32 procedure ButtonPlayerModifyChangeBounds(Sender: TObject); … … 38 40 procedure ListView1SelectItem(Sender: TObject; Item: TListItem; 39 41 Selected: Boolean); 42 procedure SpinEditMapSizeXChange(Sender: TObject); 43 procedure SpinEditMapSizeYChange(Sender: TObject); 44 procedure TrackBarSizeYChange(Sender: TObject); 45 procedure TrackBarSizeXChange(Sender: TObject); 40 46 private 41 47 Players: TPlayers; … … 76 82 end; 77 83 84 procedure TFormNew.SpinEditMapSizeXChange(Sender: TObject); 85 begin 86 TrackBarSizeX.Position := SpinEditMapSizeX.Value; 87 end; 88 89 procedure TFormNew.SpinEditMapSizeYChange(Sender: TObject); 90 begin 91 TrackBarSizeY.Position := SpinEditMapSizeY.Value; 92 end; 93 94 procedure TFormNew.TrackBarSizeYChange(Sender: TObject); 95 begin 96 SpinEditMapSizeY.Value := TrackBarSizeY.Position; 97 end; 98 99 procedure TFormNew.TrackBarSizeXChange(Sender: TObject); 100 begin 101 SpinEditMapSizeX.Value := TrackBarSizeX.Position; 102 end; 103 78 104 procedure TFormNew.ReloadView; 79 105 begin … … 104 130 procedure TFormNew.CheckBoxVoidChange(Sender: TObject); 105 131 begin 106 SpinEdit 1.Enabled := CheckBoxVoid.Checked;132 SpinEditVoidPercent.Enabled := CheckBoxVoid.Checked; 107 133 end; 108 134 … … 142 168 begin 143 169 CheckBoxVoid.Checked := Game.VoidEnabled; 144 SpinEdit 1.Value := Game.VoidPercentage;145 SpinEdit 1.Enabled := Game.VoidEnabled;170 SpinEditVoidPercent.Value := Game.VoidPercentage; 171 SpinEditVoidPercent.Enabled := Game.VoidEnabled; 146 172 for I := 0 to Players.Count - 1 do 147 173 Players[I] := nil; … … 168 194 end; 169 195 Game.VoidEnabled := CheckBoxVoid.Checked; 170 Game.VoidPercentage := SpinEdit 1.Value;196 Game.VoidPercentage := SpinEditVoidPercent.Value; 171 197 Game.Map.Size := Point(SpinEditMapSizeX.Value, SpinEditMapSizeY.Value); 172 198 end;
Note:
See TracChangeset
for help on using the changeset viewer.