Changeset 74 for trunk/Forms
- Timestamp:
- Oct 4, 2014, 9:19:27 PM (10 years ago)
- Location:
- trunk/Forms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.lfm
r73 r74 89 89 Top = 162 90 90 Width = 32 91 Caption = 'ToolButton9'92 91 Style = tbsSeparator 93 92 end -
trunk/Forms/UFormMain.lrt
r58 r74 1 1 TFORMMAIN.CAPTION=xTactics 2 TFORMMAIN.TOOLBUTTON9.CAPTION=ToolButton93 2 TFORMMAIN.MENUITEM1.CAPTION=Game 4 3 TFORMMAIN.MENUITEM5.CAPTION=- -
trunk/Forms/UFormNew.lfm
r70 r74 49 49 TabOrder = 0 50 50 ViewStyle = vsReport 51 OnCustomDrawSubItem = ListView1CustomDrawSubItem 51 52 OnData = ListView1Data 52 53 OnDblClick = ListView1DblClick … … 127 128 object CheckBoxVoid: TCheckBox 128 129 Left = 8 129 Height = 2 4130 Height = 27 130 131 Top = 101 131 Width = 1 75132 Width = 198 132 133 Caption = 'Inaccessible places' 133 134 OnChange = CheckBoxVoidChange … … 136 137 object Label1: TLabel 137 138 Left = 8 138 Height = 2 2139 Height = 25 139 140 Top = 9 140 Width = 88141 Width = 104 141 142 Caption = 'Map width:' 142 143 ParentColor = False … … 144 145 object SpinEditMapSizeX: TSpinEdit 145 146 Left = 128 146 Height = 3 2147 Height = 35 147 148 Top = 4 148 149 Width = 98 … … 154 155 object SpinEditMapSizeY: TSpinEdit 155 156 Left = 128 156 Height = 3 2157 Height = 35 157 158 Top = 55 158 159 Width = 98 … … 164 165 object SpinEditVoidPercent: TSpinEdit 165 166 Left = 216 166 Height = 3 2167 Height = 35 167 168 Top = 97 168 169 Width = 106 … … 173 174 object Label3: TLabel 174 175 Left = 331 175 Height = 2 2176 Height = 25 176 177 Top = 102 177 Width = 1 5178 Width = 17 178 179 Caption = '%' 179 180 ParentColor = False … … 207 208 object Label2: TLabel 208 209 Left = 8 209 Height = 2 2210 Height = 25 210 211 Top = 57 211 Width = 94212 Width = 110 212 213 Caption = 'Map height:' 213 214 ParentColor = False … … 215 216 object CheckBoxCity: TCheckBox 216 217 Left = 8 217 Height = 2 4218 Height = 27 218 219 Top = 141 219 Width = 68220 Width = 73 220 221 Caption = 'Cities' 221 222 OnChange = CheckBoxCityChange … … 224 225 object SpinEditCityPercent: TSpinEdit 225 226 Left = 216 226 Height = 3 2227 Height = 35 227 228 Top = 137 228 229 Width = 106 … … 233 234 object Label4: TLabel 234 235 Left = 331 235 Height = 2 2236 Height = 25 236 237 Top = 142 237 Width = 1 5238 Width = 17 238 239 Caption = '%' 239 240 ParentColor = False … … 253 254 ChildSizing.Layout = cclLeftToRightThenTopToBottom 254 255 ChildSizing.ControlsPerLine = 1 255 ClientHeight = 52256 ClientHeight = 49 256 257 ClientWidth = 301 257 258 Items.Strings = ( … … 275 276 ChildSizing.Layout = cclLeftToRightThenTopToBottom 276 277 ChildSizing.ControlsPerLine = 1 277 ClientHeight = 81278 ClientHeight = 78 278 279 ClientWidth = 308 279 280 Items.Strings = ( … … 286 287 object ComboBoxGridType: TComboBox 287 288 Left = 473 288 Height = 3 0289 Height = 37 289 290 Top = 201 290 291 Width = 208 … … 300 301 object Label5: TLabel 301 302 Left = 336 302 Height = 2 2303 Height = 25 303 304 Top = 201 304 Width = 79305 Width = 90 305 306 Caption = 'Grid type:' 306 307 ParentColor = False … … 308 309 object Label6: TLabel 309 310 Left = 8 310 Height = 2 2311 Height = 25 311 312 Top = 313 312 Width = 1 14313 Width = 129 313 314 Caption = 'Win objective:' 314 315 ParentColor = False … … 316 317 object ComboBoxWinObjective: TComboBox 317 318 Left = 232 318 Height = 3 0319 Height = 37 319 320 Top = 305 320 321 Width = 328 … … 331 332 object Label7: TLabel 332 333 Left = 8 333 Height = 2 2334 Height = 25 334 335 Top = 348 335 Width = 2 11336 Width = 245 336 337 Caption = 'Max random neutral units:' 337 338 ParentColor = False … … 339 340 object SpinEditNeutralUnits: TSpinEdit 340 341 Left = 384 341 Height = 3 2342 Height = 35 342 343 Top = 344 343 344 Width = 98 … … 349 350 object CheckBoxSymetricMap: TCheckBox 350 351 Left = 334 351 Height = 2 4352 Height = 27 352 353 Top = 238 353 Width = 1 33354 Width = 151 354 355 Caption = 'Symetric map' 355 356 TabOrder = 15 -
trunk/Forms/UFormNew.pas
r70 r74 56 56 procedure FormDestroy(Sender: TObject); 57 57 procedure FormShow(Sender: TObject); 58 procedure ListView1CustomDrawSubItem(Sender: TCustomListView; 59 Item: TListItem; SubItem: Integer; State: TCustomDrawState; 60 var DefaultDraw: Boolean); 58 61 procedure ListView1Data(Sender: TObject; Item: TListItem); 59 62 procedure ListView1DblClick(Sender: TObject); … … 111 114 Item.Data := Players[Item.Index]; 112 115 Item.SubItems.Add(PlayerModeText[Mode]); 113 Item.SubItems.Add( IntToStr(Color));116 Item.SubItems.Add(''); // Do not show color text 114 117 Item.SubItems.Add(IntToStr(StartUnits)); 115 118 end; … … 212 215 begin 213 216 ReloadView; 217 end; 218 219 procedure TFormNew.ListView1CustomDrawSubItem(Sender: TCustomListView; 220 Item: TListItem; SubItem: Integer; State: TCustomDrawState; 221 var DefaultDraw: Boolean); 222 begin 223 if SubItem = 2 then 224 with ListView1.Canvas do begin 225 Brush.Color := TPlayer(Item.Data).Color; 226 Brush.Style := bsSolid; 227 FillRect(Item.DisplayRectSubItem(2, drBounds)); 228 end; 214 229 end; 215 230
Note:
See TracChangeset
for help on using the changeset viewer.