Changeset 12 for trunk/LocalPlayer
- Timestamp:
- Jan 7, 2017, 8:25:59 PM (8 years ago)
- Location:
- trunk/LocalPlayer
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.