Changeset 13
- Timestamp:
- Nov 27, 2009, 8:36:34 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/About.dfm
r10 r13 41 41 Left = 40 42 42 Top = 56 43 Width = 9844 Height = 13 45 Caption = ' maron2@centrum.cz'43 Width = 58 44 Height = 13 45 Caption = 'Author email' 46 46 DragCursor = crHandPoint 47 47 Font.Charset = DEFAULT_CHARSET … … 204 204 Left = 40 205 205 Top = 72 206 Width = 150206 Width = 77 207 207 Height = 13 208 208 Cursor = crHandPoint 209 Caption = ' http://wow.zdechov.net/client/'209 Caption = 'Homepage URL' 210 210 Font.Charset = DEFAULT_CHARSET 211 211 Font.Color = clNavy -
trunk/About.pas
r8 r13 40 40 procedure TForm3.FormCreate(Sender: TObject); 41 41 begin 42 Label4.Caption := AuthorEmail; 42 43 Label6.Caption := ProjectHomepage; 43 44 Label2.Caption := 'Verze: ' + ApplicationVersion; -
trunk/ImportZWebu.dfm
r6 r13 2 2 Left = 396 3 3 Top = 141 4 Width = 6365 Height = 3236 4 Caption = 'Import server'#367' z servery.wowresource.eu' 5 ClientHeight = 296 6 ClientWidth = 628 7 7 Color = clBtnFace 8 8 Font.Charset = DEFAULT_CHARSET … … 19 19 Top = 0 20 20 Width = 628 21 Height = 2 8921 Height = 296 22 22 Align = alClient 23 23 Columns = < … … 56 56 OnDblClick = ListView1DblClick 57 57 OnMouseDown = ListView1MouseDown 58 ExplicitHeight = 289 58 59 end 59 60 object IdHTTP1: TIdHTTP … … 62 63 ProxyParams.ProxyPort = 0 63 64 Request.ContentLength = -1 64 Request.ContentRangeEnd = 065 Request.ContentRangeStart = 066 65 Request.ContentType = 'text/html' 67 66 Request.Accept = 'text/html, */*' … … 76 75 Top = 80 77 76 Bitmap = { 78 494C010101000 400040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D360077 494C010101000200040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600 79 78 0000000000003600000028000000400000001000000001002000000000000010 80 79 00000000000000000000000000000000000000000000F2F2F200E9E7E400DFDB -
trunk/ImportZWebu.pas
r6 r13 246 246 procedure TForm8.LoadCountRegServers; 247 247 var 248 reg: TRegistry;248 Reg: TRegistry; 249 249 begin 250 250 Reg := TRegistry.Create; 251 251 try 252 252 // načítání pozice formuláře 253 if Reg.OpenKey(R +'CountSerers', False) then begin253 if Reg.OpenKey(R + 'CountSerers', False) then begin 254 254 CountWoWStatusServers := Reg.ReadInteger('WoWStatus'); 255 255 CountWoWResourceServers := Reg.ReadInteger('WoWResource'); 256 256 end; 257 257 finally 258 reg.Free;258 Reg.Free; 259 259 end; 260 260 end; … … 262 262 procedure TForm8.SaveCountRegServers; 263 263 var 264 reg: TRegistry;264 Reg: TRegistry; 265 265 begin 266 266 Reg := TRegistry.Create; … … 268 268 try 269 269 // načítání pozice formuláře 270 if Reg.OpenKey(R +'CountSerers', True) then begin271 Reg.WriteInteger('WoWStatus', CountWoWStatusServers);272 Reg.WriteInteger('WoWResource', CountWoWResourceServers);270 if Reg.OpenKey(R + 'CountSerers', True) then begin 271 Reg.WriteInteger('WoWStatus', CountWoWStatusServers); 272 Reg.WriteInteger('WoWResource', CountWoWResourceServers); 273 273 end; 274 274 finally 275 reg.Free;275 Reg.Free; 276 276 end; 277 277 end; -
trunk/Main.dfm
r8 r13 3 3 Top = 74 4 4 Caption = 'Heroes of Fantasy - Client' 5 ClientHeight = 2 745 ClientHeight = 293 6 6 ClientWidth = 389 7 7 Color = clBtnFace … … 20 20 DesignSize = ( 21 21 389 22 2 74)22 293) 23 23 PixelsPerInch = 96 24 24 TextHeight = 13 … … 47 47 object StatusBar1: TStatusBar 48 48 Left = 162 49 Top = 2 5449 Top = 273 50 50 Width = 227 51 51 Height = 19 … … 54 54 Panels = <> 55 55 SimplePanel = True 56 ExplicitTop = 254 56 57 end 57 58 object Panel1: TPanel 58 59 Left = 0 59 Top = 2 5460 Top = 273 60 61 Width = 161 61 62 Height = 19 62 63 Anchors = [akLeft, akBottom] 63 64 TabOrder = 1 65 ExplicitTop = 254 64 66 object Image1: TImage 65 67 Left = 108 … … 401 403 Top = 36 402 404 Width = 105 403 Height = 189405 Height = 208 404 406 Anchors = [akTop, akRight, akBottom] 405 407 BorderStyle = bsNone … … 417 419 ReadOnly = True 418 420 TabOrder = 2 421 ExplicitHeight = 189 419 422 end 420 423 object Button1: TButton 421 424 Left = 343 422 Top = 2 31425 Top = 250 423 426 Width = 46 424 427 Height = 17 … … 428 431 TabOrder = 3 429 432 OnClick = Button1Click 433 ExplicitTop = 231 430 434 end 431 435 object ListView1: TListView … … 433 437 Top = 0 434 438 Width = 269 435 Height = 2 49439 Height = 268 436 440 Hint = 437 441 'Poklep'#225'n'#237'm se p'#345'ipoj'#237'te na dan'#253' server, uk'#225'z'#225'n'#237'm zobraz'#237'te infor' + … … 463 467 OnMouseMove = ListView1MouseMove 464 468 OnSelectItem = ListView1SelectItem 469 ExplicitHeight = 249 465 470 end 466 471 object Panel2: TPanel … … 468 473 Top = 0 469 474 Width = 9 470 Height = 2 49475 Height = 268 471 476 Cursor = crHSplit 472 477 Hint = 'K schov'#225'n'#237' detajl'#367' p'#345'et'#225'hn'#283'te k prav'#233'mu okraji' … … 479 484 OnMouseMove = Panel2MouseMove 480 485 OnMouseUp = Panel2MouseUp 486 ExplicitHeight = 249 481 487 end 482 488 object MediaPlayer1: TMediaPlayer 483 489 Left = 152 484 490 Top = 8 485 Width = 29491 Width = 0 486 492 Height = 30 487 493 EnabledButtons = [btPlay, btPause, btStop] -
trunk/Main.pas
r10 r13 12 12 13 13 const 14 ApplicationVersion = '3. 3';14 ApplicationVersion = '3.4'; 15 15 ApplicationRevision = 6; 16 16 R = '\Software\maronsoft\Heroes of Fantasy client pack\'; 17 UpdateInfoFile = 'http://wow.zdechov.net/client/aktualizace.txt'; 18 DefaultRSSChannel = 'http://wow.zdechov.net/rss.php?category=articles'; 19 OldRSSChannel = 'http://wow.zdechov.net/rss.php'; 17 HoFWeb = 'www.heroesoffantasy.cz'; 18 HoFRealmList = 'heroesoffantasy.cz'; 19 UpdateInfoFile = 'http://' + HoFWeb + '/client/aktualizace.txt'; 20 DefaultRSSChannel = 'http://' + HoFWeb + '/rss.php?category=articles'; 21 OldRSSChannel = 'http://' + HoFWeb + '/rss.php'; 20 22 AoWoWSearchURL = 'http://wowpreklad.zdechov.net/aowow/?search='; 21 HoFOnlineListURL = 'http://wow.zdechov.net/stat/stat.xml'; 22 ProjectHomepage = 'http://wow.zdechov.net/?page=client'; 23 23 HoFOnlineListURL = 'http://' + HoFWeb + '/stat/stat.xml'; 24 ProjectHomepage = 'http://' + HoFWeb + '/?page=client'; 25 AuthorEmail = 'maron2@centrum.cz'; 26 24 27 type 25 28 TWMMoving = record … … 343 346 SetLength(Servers, 3); 344 347 Servers[0].Name := 'Heroes of Fantasy'; 345 Servers[0].Address := 'wow.zdechov.net';348 Servers[0].Address := HoFRealmList; 346 349 Servers[0].OnlinePlayersAddress := HoFOnlineListURL; 347 350 Servers[0].ExeFile := GetWoWExeFile; 348 351 Servers[0].Image := '1'; 349 Servers[0].Description := 'Free server' +chr(13)+chr(10)+'Server podporovaný výrobcem programu'+chr(13)+chr(10)+'web: http://wow.zdechov.net/'+chr(13)+chr(10)+'reamlist: wow.zdechov.net';352 Servers[0].Description := 'Free server'#13#10'Server podporovaný výrobcem programu'#13#10'web: http://' + HoFWeb + '/'#13#10'reamlist: ' + HoFRealmList; 350 353 351 354 Servers[1].Name := 'Oficiální Server - Eu'; … … 353 356 Servers[1].ExeFile := GetWoWExeFile; 354 357 Servers[1].Image := ''; 355 Servers[1].Description := 'Oficiální server - Evropa' +chr(13)+chr(10)+'Web: http://www.wow-europe.com/';358 Servers[1].Description := 'Oficiální server - Evropa'#13#10'Web: http://www.wow-europe.com/'; 356 359 357 360 Servers[2].Name := 'Oficiální Server - USA'; … … 359 362 Servers[2].ExeFile := GetWoWExeFile; 360 363 Servers[2].Image := ''; 361 Servers[2].Description := 'Oficiální server - Evropa' +chr(13)+chr(10)+'Web: http://www.worldofwarcraft.com/';364 Servers[2].Description := 'Oficiální server - Evropa'#13#10'Web: http://www.worldofwarcraft.com/'; 362 365 end; 363 366 … … 1037 1040 with Servers[length(Servers) - 1] do begin 1038 1041 Name := 'Heroes of Fantasy'; 1039 Address := 'wow.zdechov.net';1042 Address := HoFRealmList; 1040 1043 OnlinePlayersAddress := HoFOnlineListURL; 1041 1044 ExeFile := GetWoWExeFile; 1042 1045 Image := '1'; 1043 Description := 'Heroes of Fantasy - Free server' +chr(13)+chr(10)+' 2x XP'+chr(13)+chr(10)+'web: http://wow.zdechov.net/'+chr(13)+chr(10)+'realmlist: wow.zdechov.net';1046 Description := 'Heroes of Fantasy - Free server'#13#10' 2x XP'#13#10'web: http://' + HoFWeb + '/'#13#10'realmlist: ' + HoFRealmList; 1044 1047 end; 1045 1048 WriteImages; … … 1203 1206 { 1204 1207 <?xml version="1.0" encoding="UTF-8"?> 1205 <!DOCTYPE server SYSTEM "http://w ow.zdechov.net/projectonlineplayes/onlineplayers.dtd">1208 <!DOCTYPE server SYSTEM "http://www.heroesoffantasy.cz/projectonlineplayes/onlineplayers.dtd"> 1206 1209 <server> 1207 1210 <servername>Heroes Of Fantasy</servername> 1208 <serveraddress>w ow.zdechov.net</serveraddress>1211 <serveraddress>www.heroesoffantasy.cz</serveraddress> 1209 1212 <owner>Chronos</owner> 1210 1213 <patch>2.13</patch> … … 1421 1424 procedure TForm1.Importzwowstatusnet1Click(Sender: TObject); 1422 1425 begin 1423 //http://wowstatus.net/serverlist.php1424 1425 // načtení počtu serverů1426 // http://wowstatus.net/serverlist.php 1427 1428 // Načtení počtu serverů 1426 1429 Form8.Caption := 'Import serverů z WoWStatus.net'; 1427 1430 Form8.LoadCountRegServers; 1428 Form9.Gauge1.MaxValue := CountWoWStatusServers +80;1431 Form9.Gauge1.MaxValue := CountWoWStatusServers + 80; 1429 1432 Form9.Show; 1430 1433 … … 1432 1435 Form8.ListView1.Clear; 1433 1436 Form8.WriteServersWoWStatus('http://wowstatus.net/serverlist.php'); 1434 1435 1437 Form9.Close; 1436 1438 1437 1438 if EndLoadingBool = false then begin 1439 if not EndLoadingBool then begin 1439 1440 Form8.Show; 1440 // uložení počtu serverů1441 // Uložení počtu serverů 1441 1442 CountWoWStatusServers := Form8.ListView1.Items.Count; 1442 1443 Form8.SaveCountRegServers; 1443 1444 end; 1444 1445 // Form8.Timer1.Enabled := true; 1445 1446 1446 end; 1447 1447 -
trunk/OnlinePlayers.pas
r7 r13 79 79 FriendSoundFile: string; 80 80 LockOnlineAddres: Boolean = True; 81 LockAddres: string = 'http://wow.zdechov.net/stat/stat.xml';81 LockAddres: string = HoFOnlineListURL; 82 82 83 83 ColumnIndexSoft: integer = 0; … … 186 186 StateIndex := StrToInt(sRace) - 1; 187 187 end; 188 // zjišťování přátel a zobrazení188 // Zjišťování přátel a zobrazení 189 189 for i:=0 to length(Friends) - 1 do begin 190 190 if GetLowerString(sName) = GetLowerString(Friends[i]) then begin … … 203 203 until ANode = nil; 204 204 205 Label1.Caption := IntToStr(ListView1.Items.Count +1);205 Label1.Caption := IntToStr(ListView1.Items.Count + 1); 206 206 if LockOnlineAddres then begin 207 207 Form1.CoolTrayIcon1.Hint := IntToStr(ListView1.Items.Count + 1)+' hráčů'; … … 229 229 230 230 231 // zjišťovánízda se připojil nový přítel232 if FirstDownload = false then begin231 // Zjišťování, zda se připojil nový přítel 232 if FirstDownload = False then begin 233 233 if ListView2.Items.Count > length(OldOnlineFriend) then begin 234 234 if BeepAfterNewFriend then … … 255 255 var 256 256 reg: TRegistry; 257 i, count: integer;257 i, Count: integer; 258 258 begin 259 259 Reg := TRegistry.Create; 260 260 try 261 // načítání pozice formuláře262 if Reg.OpenKey(R +'FormOnlinePlayers', False) then begin261 // Načítání pozice formuláře 262 if Reg.OpenKey(R + 'FormOnlinePlayers', False) then begin 263 263 Top := Reg.ReadInteger('Top'); 264 264 Left := Reg.ReadInteger('Left'); … … 292 292 end; 293 293 294 if Reg.OpenKey(R +'Friends', False) then begin295 count := Reg.ReadInteger('Count');296 SetLength(Friends, count);297 for i:=0 to count-1 do begin298 Friends[i] := Reg.ReadString('Friend' +IntToStr(i));294 if Reg.OpenKey(R + 'Friends', False) then begin 295 Count := Reg.ReadInteger('Count'); 296 SetLength(Friends, Count); 297 for i:=0 to Count - 1 do begin 298 Friends[i] := Reg.ReadString('Friend' + IntToStr(i)); 299 299 end; 300 300 end; … … 391 391 case ColumnIndexSoft of 392 392 1:begin 393 if StrToInt(ListView1.Items[0].SubItems[0]) > StrToInt(ListView1.Items[ListView1.Items.count -1].SubItems[0]) then394 Compare := -OrderNumber(Item1, Item2, Compare)393 if StrToInt(ListView1.Items[0].SubItems[0]) > StrToInt(ListView1.Items[ListView1.Items.count - 1].SubItems[0]) then 394 Compare := -OrderNumber(Item1, Item2, Compare) 395 395 else 396 Compare := OrderNumber(Item1, Item2, Compare);396 Compare := OrderNumber(Item1, Item2, Compare); 397 397 end; 398 398 2:begin 399 if AnsiCompareText(ListView1.Items[0].SubItems[1], ListView1.Items[ListView1.Items.count -1].SubItems[1]) = -1 then400 Compare := OrderMap(Item1, Item2, Compare)399 if AnsiCompareText(ListView1.Items[0].SubItems[1], ListView1.Items[ListView1.Items.count - 1].SubItems[1]) = -1 then 400 Compare := OrderMap(Item1, Item2, Compare) 401 401 else 402 Compare := -OrderMap(Item1, Item2, Compare);402 Compare := -OrderMap(Item1, Item2, Compare); 403 403 end; 404 404 3:begin 405 if AnsiCompareText(ListView1.Items[0].SubItems[2], ListView1.Items[ListView1.Items.count -1].SubItems[2]) = -1 then406 Compare := OrderZone(Item1, Item2, Compare)405 if AnsiCompareText(ListView1.Items[0].SubItems[2], ListView1.Items[ListView1.Items.count - 1].SubItems[2]) = -1 then 406 Compare := OrderZone(Item1, Item2, Compare) 407 407 else 408 Compare := -OrderZone(Item1, Item2, Compare);408 Compare := -OrderZone(Item1, Item2, Compare); 409 409 end; 410 410 else 411 411 if AnsiCompareText(ListView1.Items[0].Caption, ListView1.Items[ListView1.Items.count-1].Caption) = -1 then 412 Compare := Order(Item1, Item2, Compare)412 Compare := Order(Item1, Item2, Compare) 413 413 else 414 Compare := -Order(Item1, Item2, Compare);414 Compare := -Order(Item1, Item2, Compare); 415 415 end; 416 416 end; … … 784 784 if Assigned(ListView1.Selected) then begin 785 785 if IsStringInArray(ListView1.Selected.Caption,Friends) then begin 786 SetLength(Friends,length(Friends) +1);787 Friends[length(Friends) -1] := ListView1.Selected.Caption;786 SetLength(Friends,length(Friends) + 1); 787 Friends[length(Friends) - 1] := ListView1.Selected.Caption; 788 788 with ListView2.Items.Add do begin 789 789 Caption := ListView1.Selected.Caption; … … 812 812 if DragDown then begin 813 813 GetCursorPos(Position); 814 if Position. y-Top-Panel2.Height < Height-38 then815 Panel2.Top := Position.Y -Top-Panel2.Height-16814 if Position.Y - Top - Panel2.Height < Height - 38 then 815 Panel2.Top := Position.Y - Top - Panel2.Height - 16 816 816 else 817 Panel2.Top := Height -35;817 Panel2.Top := Height - 35; 818 818 DrawForm; 819 819 end; … … 828 828 procedure TForm5.DrawForm; 829 829 begin 830 ListView1.Height := Panel2.Top -20;831 ListView2.Top := Panel2.Top +Panel2.Height;832 ListView2.Height := Height -Panel2.Top-Panel2.Height-20;830 ListView1.Height := Panel2.Top - 20; 831 ListView2.Top := Panel2.Top + Panel2.Height; 832 ListView2.Height := Height - Panel2.Top - Panel2.Height - 20; 833 833 834 834 end; … … 841 841 begin 842 842 NewFriend := True; 843 for i :=0 to length(ArrayOfString)-1 do begin843 for i := 0 to length(ArrayOfString) - 1 do begin 844 844 if (GetLowerString(Find) = GetLowerString(ArrayOfString[i])) then 845 NewFriend := false;845 NewFriend := False; 846 846 end; 847 847 … … 884 884 YetWas := False; 885 885 if Assigned(ListView2.Selected) then begin 886 for i :=0 to High(Friends) do begin886 for i := 0 to High(Friends) do begin 887 887 if YetWas then 888 Friends[i -1] := Friends[i];888 Friends[i - 1] := Friends[i]; 889 889 890 890 if (GetLowerString(Friends[i]) = GetLowerString(ListView2.Selected.Caption)) then 891 891 YetWas := true; 892 892 end; 893 SetLength(Friends, Length(Friends)-1);893 SetLength(Friends, Length(Friends) - 1); 894 894 ListView2.Selected.Delete; 895 895 end; … … 901 901 MousePos: TPoint; 902 902 begin 903 if Assigned(ListView2.GetItemAt(x, y)) and (Button = mbRight) then begin903 if Assigned(ListView2.GetItemAt(x, y)) and (Button = mbRight) then begin 904 904 GetCursorPos(MousePos); 905 PopupMenu3.Popup(MousePos.X, MousePos.y);905 PopupMenu3.Popup(MousePos.X, MousePos.y); 906 906 end; 907 907 end; -
trunk/Options.dfm
r7 r13 63 63 Width = 393 64 64 Height = 305 65 ActivePage = TabSheet 265 ActivePage = TabSheet3 66 66 Anchors = [akLeft, akTop, akRight, akBottom] 67 67 TabOrder = 3 … … 384 384 Height = 21 385 385 TabOrder = 4 386 Text = 'http://wow.zdechov.net/stat/stat.xml'387 386 end 388 387 end … … 512 511 Width = 361 513 512 Height = 21 514 Hint = 'Adresa RSS '#269'te'#269'ky pro HeF (http://wow.zdechov.net/rss.php)'513 Hint = 'Adresa RSS '#269'te'#269'ky' 515 514 ParentShowHint = False 516 515 ShowHint = True -
trunk/Options.pas
r6 r13 463 463 ShowBalloonHint := True; 464 464 ShowDetails := False; 465 RSSAddress := 'http://wow.zdechov.net/rss.php';465 RSSAddress := DefaultRSSChannel; 466 466 Form1.CoolTrayIcon1.MinimizeToTray := True; 467 467 //Form1.SkinData1.Active := False; … … 471 471 Form1.Timer1.Enabled := True; 472 472 Form1.Aktuality1.Checked := True; 473 Form1.Timer1.Interval := 10 *60000;473 Form1.Timer1.Interval := 10 * 60000; 474 474 PlaySoundNews := False; 475 475 SoundFileNews := ''; … … 477 477 //online hráči 478 478 Form1.Timer2.Enabled := True; 479 Form1.Timer2.Interval := 10 *60000;479 Form1.Timer2.Interval := 10 * 60000; 480 480 LockOnlineAddres := True; 481 LockAddres := 'http://wow.zdechov.net/stat/stat.xml';481 LockAddres := HoFOnlineListURL; 482 482 if LockOnlineAddres then 483 483 Form5.Button2.Enabled := false -
trunk/help/Nápověda HoFClient.jrt
r1 r13 46 46 Email\b0 47 47 : \i 48 maron2@cen rum.cz\par48 maron2@centrum.cz\par 49 49 \b 50 50 \i0 … … 53 53 54 54 55 {\uldb http://w ow.zdechov.net/client/}{\v !ExecFile(http://wow.zdechov.net/client/)}\cf155 {\uldb http://www.heroesoffantasy.cz/page=client}{\v !ExecFile(http://www.heroesoffantasy.cz/page=client)}\cf1 56 56 57 57
Note:
See TracChangeset
for help on using the changeset viewer.