- Timestamp:
- Jan 7, 2017, 8:25:59 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Integrated.lpi
r11 r12 131 131 <Filename Value="Start.pas"/> 132 132 <IsPartOfProject Value="True"/> 133 <HasResources Value="True"/> 133 <ComponentName Value="StartDlg"/> 134 <HasResources Value="True"/> 135 <ResourceBaseClass Value="Form"/> 134 136 </Unit11> 135 137 <Unit12> … … 182 184 <Filename Value="LocalPlayer\Term.pas"/> 183 185 <IsPartOfProject Value="True"/> 184 <HasResources Value="True"/> 186 <ComponentName Value="MainScreen"/> 187 <HasResources Value="True"/> 188 <ResourceBaseClass Value="Form"/> 185 189 </Unit22> 186 190 <Unit23> … … 236 240 <Filename Value="LocalPlayer\Nego.pas"/> 237 241 <IsPartOfProject Value="True"/> 238 <HasResources Value="True"/> 242 <ComponentName Value="NegoDlg"/> 243 <HasResources Value="True"/> 244 <ResourceBaseClass Value="Form"/> 239 245 </Unit33> 240 246 <Unit34> -
trunk/LocalPlayer/CityScreen.pas
r9 r12 240 240 SmallCityMap.Free; 241 241 ZoomCityMap.Free; 242 SmallCityMapTemplate.Free; 242 243 CityMapTemplate.Free; 243 244 Template.Free; -
trunk/LocalPlayer/Draft.pas
r9 r12 97 97 procedure TDraftDlg.FormDestroy(Sender: TObject); 98 98 begin 99 Template.Free; 99 FreeAndNil(Template); 100 FreeAndNil(Back); 100 101 end; 101 102 -
trunk/LocalPlayer/Help.pas
r9 r12 37 37 38 38 type 39 40 { THyperText } 41 39 42 THyperText = class(TStringList) 40 43 procedure AddLine(s: String = ''; Format: integer = 0; Picpix: integer = 0; 41 44 LinkCategory: integer = 0; LinkIndex: integer = 0); 45 procedure AddText(Const S : String); override; 42 46 procedure LF; 47 destructor Destroy; override; 43 48 end; 44 49 … … 122 127 end; 123 128 129 procedure THyperText.AddText(const S: String); 130 begin 131 AddLine(S); 132 end; 133 124 134 procedure THyperText.LF; 125 135 begin 126 136 AddLine; 137 end; 138 139 destructor THyperText.Destroy; 140 begin 141 inherited Destroy; 127 142 end; 128 143 … … 189 204 inc(ModalFrameIndent, 29); 190 205 MainText := THyperText.Create; 206 MainText.OwnsObjects := True; 191 207 SearchResult := THyperText.Create; 208 SearchResult.OwnsObjects := True; 192 209 CreatePVSB(sb, Handle, 36, 551, 36 + 432); 193 210 … … 226 243 procedure THelpDlg.FormDestroy(Sender: TObject); 227 244 begin 228 MainText.Free;229 SearchResult.Free;230 ExtPic.Free;231 TerrIcon.Free;232 HelpText.Free;233 // CaptionFont.Free;245 FreeAndNil(MainText); 246 FreeAndNil(SearchResult); 247 FreeAndNil(ExtPic); 248 FreeAndNil(TerrIcon); 249 FreeAndNil(HelpText); 250 // FreeAndNil(CaptionFont); 234 251 end; 235 252 -
trunk/LocalPlayer/Nego.pas
r9 r12 12 12 const 13 13 MaxHistory = 62; 14 scDipNoticeStart = scDipNotice - scDipStart; 15 scDipBreakStart = scDipBreak - scDipStart; 14 16 15 17 type … … 18 20 Text: array [0 .. MaxHistory - 1] of ansistring; 19 21 end; 22 23 TCommandAllowedEnum = scDipNoticeStart .. scDipBreakStart; 24 25 { TNegoDlg } 20 26 21 27 TNegoDlg = class(TBufferedDrawDlg) … … 53 59 CancelTreatyBtn: TButtonN; 54 60 procedure FormCreate(Sender: TObject); 61 procedure FormDestroy(Sender: TObject); 55 62 procedure FormMouseDown(Sender: TObject; Button: TMouseButton; 56 63 Shift: TShiftState; X, Y: integer); … … 76 83 CurrentOffer: TOffer; 77 84 MyAllowed, OppoAllowed: TPriceSet; 78 CommandAllowed: set of scDipNotice - scDipStart .. scDipBreak - scDipStart;85 CommandAllowed: set of TCommandAllowedEnum; 79 86 History: array [0 .. nPl - 1] of THistory; 80 87 RomanFont: TFont; … … 167 174 end; 168 175 176 procedure TNegoDlg.FormDestroy(Sender: TObject); 177 begin 178 FreeAndNil(RomanFont); 179 end; 180 169 181 procedure TNegoDlg.FormShow(Sender: TObject); 170 182 begin -
trunk/LocalPlayer/Term.lfm
r9 r12 1 1 object MainScreen: TMainScreen 2 2 Left = 231 3 Height = 480 3 4 Top = 190 5 Width = 800 4 6 HorzScrollBar.Visible = False 5 7 VertScrollBar.Visible = False 6 8 Caption = 'C-evo' 7 ClientHeight = 4 358 ClientWidth = 7829 ClientHeight = 480 10 ClientWidth = 800 9 11 Color = clBtnFace 10 12 Constraints.MinHeight = 480 11 13 Constraints.MinWidth = 800 12 Font.Charset = DEFAULT_CHARSET13 14 Font.Color = clWindowText 14 15 Font.Height = -13 15 16 Font.Name = 'MS Sans Serif' 16 Font.Style = []17 17 KeyPreview = True 18 Position = poDefault19 WindowState = wsMaximized20 18 OnClose = FormClose 21 19 OnCloseQuery = FormCloseQuery … … 30 28 OnResize = FormResize 31 29 OnShow = FormShow 32 PixelsPerInch = 96 30 Position = poDefault 31 LCLVersion = '1.6.2.0' 32 WindowState = wsMaximized 33 33 object UnitBtn: TButtonB 34 34 Tag = 14 35 35 Left = 208 36 Height = 25 36 37 Top = 384 37 38 Width = 25 38 Height = 2539 39 Visible = False 40 40 Down = False … … 46 46 Tag = 51 47 47 Left = 16 48 Height = 12 48 49 Top = 304 49 50 Width = 12 50 Height = 1251 51 Visible = False 52 52 Down = False … … 58 58 Tag = 291 59 59 Left = 16 60 Height = 12 60 61 Top = 320 61 62 Width = 12 62 Height = 1263 63 Visible = False 64 64 Down = False … … 70 70 Tag = 1028 71 71 Left = 16 72 Height = 12 72 73 Top = 368 73 74 Width = 12 74 Height = 1275 75 Visible = False 76 76 Down = False … … 82 82 Tag = 1328 83 83 Left = 16 84 Height = 12 84 85 Top = 384 85 86 Width = 12 86 Height = 1287 87 Visible = False 88 88 Down = False … … 94 94 Tag = 1541 95 95 Left = 16 96 Height = 12 96 97 Top = 400 97 98 Width = 12 98 Height = 1299 99 Visible = False 100 100 Down = False … … 106 106 Tag = 28 107 107 Left = 240 108 Height = 25 108 109 Top = 384 109 110 Width = 25 110 Height = 25111 111 Visible = False 112 112 Down = False … … 118 118 Tag = 15 119 119 Left = 176 120 Height = 25 120 121 Top = 384 121 122 Width = 25 122 Height = 25123 123 Visible = False 124 124 Down = False … … 129 129 object EOT: TEOTButton 130 130 Left = 712 131 Height = 48 131 132 Top = 368 132 133 Width = 48 133 Height = 48134 134 Visible = False 135 135 Down = False … … 140 140 object MenuArea: TArea 141 141 Left = 2 142 Height = 36 142 143 Top = 1 143 144 Width = 36 144 Height = 36145 145 end 146 146 object TreasuryArea: TArea 147 147 Left = 208 148 Height = 36 148 149 Top = 1 149 150 Width = 164 150 Height = 36151 151 end 152 152 object ResearchArea: TArea 153 153 Left = 384 154 Height = 36 154 155 Top = 1 155 156 Width = 240 156 Height = 36157 157 end 158 158 object ManagementArea: TArea 159 159 Left = 704 160 Height = 40 160 161 Top = 312 161 162 Width = 56 162 Height = 40163 163 end 164 164 object MovieSpeed1Btn: TButtonB 165 165 Tag = 256 166 166 Left = 384 167 Height = 25 167 168 Top = 384 168 169 Width = 25 169 Height = 25170 170 Visible = False 171 171 Down = False … … 177 177 Tag = 512 178 178 Left = 416 179 Height = 25 179 180 Top = 384 180 181 Width = 25 181 Height = 25182 182 Visible = False 183 183 Down = False … … 189 189 Tag = 768 190 190 Left = 448 191 Height = 25 191 192 Top = 384 192 193 Width = 25 193 Height = 25194 194 Visible = False 195 195 Down = False … … 201 201 Tag = 1024 202 202 Left = 480 203 Height = 25 203 204 Top = 384 204 205 Width = 25 205 Height = 25206 206 Visible = False 207 207 Down = False … … 214 214 Interval = 50 215 215 OnTimer = Timer1Timer 216 Left = 8217 Top = 48216 left = 8 217 top = 48 218 218 end 219 219 object GamePopup: TPopupMenu 220 220 AutoPopup = False 221 Left = 40222 Top = 48221 left = 40 222 top = 48 223 223 object mHelp: TMenuItem 224 224 Tag = 7 … … 249 249 Tag = 30 250 250 GroupIndex = 1 251 RadioItem = True 251 252 object mSlowMoves: TMenuItem 252 253 Tag = 75 … … 275 276 Tag = 90 276 277 GroupIndex = 1 278 RadioItem = True 277 279 object mAlSlowMoves: TMenuItem 278 280 Tag = 91 … … 301 303 Tag = 74 302 304 GroupIndex = 1 305 RadioItem = True 303 306 object mEnMoves: TMenuItem 304 307 Tag = 78 … … 327 330 Caption = '-' 328 331 GroupIndex = 1 332 RadioItem = True 329 333 end 330 334 object mRepList: TMenuItem … … 575 579 object UnitPopup: TPopupMenu 576 580 AutoPopup = False 577 Left = 104578 Top = 48581 left = 104 582 top = 48 579 583 object mdisband: TMenuItem 580 584 Tag = 72 … … 658 662 object StatPopup: TPopupMenu 659 663 AutoPopup = False 660 Left = 72661 Top = 48664 left = 72 665 top = 48 662 666 object mUnitStat: TMenuItem 663 667 Tag = 9 … … 714 718 end 715 719 object EditPopup: TPopupMenu 716 Left = 168717 Top = 48720 left = 168 721 top = 48 718 722 object mCreateUnit: TMenuItem 719 723 Tag = 47 … … 721 725 end 722 726 object TerrainPopup: TPopupMenu 723 Left = 136724 Top = 48727 left = 136 728 top = 48 725 729 object mtrans: TMenuItem 726 730 Tag = 273 -
trunk/LocalPlayer/Term.pas
r10 r12 3529 3529 i: integer; 3530 3530 begin 3531 Mini.free; 3532 Buffer.free; 3533 Panel.free; 3531 TopBar.Free; 3532 Mini.Free; 3533 Buffer.Free; 3534 Panel.Free; 3534 3535 for i := 0 to nPl - 1 do 3535 3536 if AILogo[i] <> nil then 3536 AILogo[i]. free;3537 AILogo[i].Free; 3537 3538 end; 3538 3539 -
trunk/Start.lfm
r9 r12 1 1 object StartDlg: TStartDlg 2 2 Left = 246 3 Height = 326 3 4 Top = 109 5 Width = 556 4 6 BorderIcons = [] 5 7 BorderStyle = bsNone … … 8 10 ClientWidth = 556 9 11 Color = clBtnFace 10 Font.Charset = DEFAULT_CHARSET11 12 Font.Color = clWindowText 12 13 Font.Height = -13 13 14 Font.Name = 'MS Sans Serif' 14 Font.Style = []15 15 FormStyle = fsStayOnTop 16 16 OnClose = FormClose … … 24 24 OnPaint = FormPaint 25 25 OnShow = FormShow 26 PixelsPerInch = 9626 LCLVersion = '1.6.2.0' 27 27 object StartBtn: TButtonA 28 28 Tag = 15104 29 29 Left = 389 30 Height = 25 30 31 Top = 286 31 32 Width = 100 32 Height = 2533 33 Down = False 34 34 Permanent = False 35 35 OnClick = StartBtnClick 36 Caption = ''37 36 end 38 37 object Down1Btn: TButtonC 39 38 Tag = 4096 40 39 Left = 522 40 Height = 12 41 41 Top = 111 42 42 Width = 12 43 Height = 1244 43 Down = False 45 44 Permanent = False … … 50 49 Tag = 4096 51 50 Left = 522 51 Height = 12 52 52 Top = 99 53 53 Width = 12 54 Height = 1255 54 Down = False 56 55 Permanent = False … … 61 60 Tag = 10240 62 61 Left = 412 62 Height = 25 63 63 Top = 98 64 64 Width = 25 65 Height = 2566 65 Visible = False 67 66 Down = False … … 73 72 Tag = 10240 74 73 Left = 441 74 Height = 25 75 75 Top = 98 76 76 Width = 25 77 Height = 2578 77 Visible = False 79 78 Down = False … … 85 84 Tag = 6912 86 85 Left = 522 86 Height = 12 87 87 Top = 249 88 88 Width = 12 89 Height = 1290 89 Visible = False 91 90 Down = False … … 97 96 Tag = 6912 98 97 Left = 522 98 Height = 12 99 99 Top = 237 100 100 Width = 12 101 Height = 12102 101 Visible = False 103 102 Down = False … … 109 108 Tag = 268435200 110 109 Left = 530 110 Height = 25 111 111 Top = 7 112 112 Width = 25 113 Height = 25114 113 Down = False 115 114 Permanent = False … … 120 119 Tag = 768 121 120 Left = 120 121 Height = 12 122 122 Top = 302 123 123 Width = 12 124 Height = 12125 124 Down = False 126 125 Permanent = False … … 130 129 object AutoDiffUpBtn: TButtonC 131 130 Left = 280 131 Height = 12 132 132 Top = 237 133 133 Width = 12 134 Height = 12135 134 Down = False 136 135 Permanent = False … … 140 139 object AutoDiffDownBtn: TButtonC 141 140 Left = 280 141 Height = 12 142 142 Top = 249 143 143 Width = 12 144 Height = 12145 144 Down = False 146 145 Permanent = False … … 150 149 object AutoEnemyUpBtn: TButtonC 151 150 Left = 206 151 Height = 12 152 152 Top = 152 153 153 Width = 12 154 Height = 12155 154 Down = False 156 155 Permanent = False … … 160 159 object AutoEnemyDownBtn: TButtonC 161 160 Left = 206 161 Height = 12 162 162 Top = 164 163 163 Width = 12 164 Height = 12165 164 Down = False 166 165 Permanent = False … … 171 170 Tag = 2048 172 171 Left = 352 172 Height = 25 173 173 Top = 286 174 174 Width = 25 175 Height = 25176 175 Down = False 177 176 Permanent = False … … 182 181 Tag = 15360 183 182 Left = 45 183 Height = 238 184 184 Top = 64 185 185 Width = 266 186 Height = 238187 TabStop = False188 186 BorderStyle = bsNone 189 187 Color = clBlack 190 188 ExtendedSelect = False 191 Font.Charset = DEFAULT_CHARSET192 189 Font.Color = 4176863 193 190 Font.Height = -15 … … 195 192 Font.Style = [fsBold] 196 193 IntegralHeight = True 197 ItemHeight = 17 194 ItemHeight = 0 195 OnClick = ListClick 198 196 ParentFont = False 199 197 TabOrder = 0 200 Visible= False201 OnClick = ListClick198 TabStop = False 199 Visible = False 202 200 end 203 201 object PopupMenu1: TPopupMenu 204 Left = 8205 Top = 8202 left = 8 203 top = 8 206 204 end 207 205 end -
trunk/Start.pas
r9 r12 20 20 21 21 type 22 23 { TStartDlg } 24 22 25 TStartDlg = class(TDrawDlg) 23 26 PopupMenu1: TPopupMenu;
Note:
See TracChangeset
for help on using the changeset viewer.