Changeset 13


Ignore:
Timestamp:
Nov 27, 2009, 8:36:34 AM (14 years ago)
Author:
george
Message:
  • Opraveno: Všechny odkazy na starý web wow.zdechov.net opraveny na aktuální www.heroesoffantasy.cz.
Location:
trunk
Files:
3 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/About.dfm

    r10 r13  
    4141    Left = 40
    4242    Top = 56
    43     Width = 98
    44     Height = 13
    45     Caption = 'maron2@centrum.cz'
     43    Width = 58
     44    Height = 13
     45    Caption = 'Author email'
    4646    DragCursor = crHandPoint
    4747    Font.Charset = DEFAULT_CHARSET
     
    204204    Left = 40
    205205    Top = 72
    206     Width = 150
     206    Width = 77
    207207    Height = 13
    208208    Cursor = crHandPoint
    209     Caption = 'http://wow.zdechov.net/client/'
     209    Caption = 'Homepage URL'
    210210    Font.Charset = DEFAULT_CHARSET
    211211    Font.Color = clNavy
  • trunk/About.pas

    r8 r13  
    4040procedure TForm3.FormCreate(Sender: TObject);
    4141begin
     42  Label4.Caption := AuthorEmail;
    4243  Label6.Caption := ProjectHomepage;
    4344  Label2.Caption := 'Verze: ' + ApplicationVersion;
  • trunk/ImportZWebu.dfm

    r6 r13  
    22  Left = 396
    33  Top = 141
    4   Width = 636
    5   Height = 323
    64  Caption = 'Import server'#367' z servery.wowresource.eu'
     5  ClientHeight = 296
     6  ClientWidth = 628
    77  Color = clBtnFace
    88  Font.Charset = DEFAULT_CHARSET
     
    1919    Top = 0
    2020    Width = 628
    21     Height = 289
     21    Height = 296
    2222    Align = alClient
    2323    Columns = <
     
    5656    OnDblClick = ListView1DblClick
    5757    OnMouseDown = ListView1MouseDown
     58    ExplicitHeight = 289
    5859  end
    5960  object IdHTTP1: TIdHTTP
     
    6263    ProxyParams.ProxyPort = 0
    6364    Request.ContentLength = -1
    64     Request.ContentRangeEnd = 0
    65     Request.ContentRangeStart = 0
    6665    Request.ContentType = 'text/html'
    6766    Request.Accept = 'text/html, */*'
     
    7675    Top = 80
    7776    Bitmap = {
    78       494C010101000400040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
     77      494C010101000200040010001000FFFFFFFFFF10FFFFFFFFFFFFFFFF424D3600
    7978      0000000000003600000028000000400000001000000001002000000000000010
    8079      00000000000000000000000000000000000000000000F2F2F200E9E7E400DFDB
  • trunk/ImportZWebu.pas

    r6 r13  
    246246procedure TForm8.LoadCountRegServers;
    247247var
    248   reg: TRegistry;
     248  Reg: TRegistry;
    249249begin
    250250  Reg := TRegistry.Create;
    251251  try
    252252    // načítání pozice formuláře
    253     if Reg.OpenKey(R+'CountSerers', False) then begin
     253    if Reg.OpenKey(R + 'CountSerers', False) then begin
    254254      CountWoWStatusServers := Reg.ReadInteger('WoWStatus');
    255255      CountWoWResourceServers := Reg.ReadInteger('WoWResource');
    256256    end;
    257257  finally
    258     reg.Free;
     258    Reg.Free;
    259259  end;
    260260end;
     
    262262procedure TForm8.SaveCountRegServers;
    263263var
    264   reg: TRegistry;
     264  Reg: TRegistry;
    265265begin
    266266  Reg := TRegistry.Create;
     
    268268  try
    269269    // načítání pozice formuláře
    270     if Reg.OpenKey(R+'CountSerers', True) then begin
    271       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);
    273273    end;
    274274  finally
    275     reg.Free;
     275    Reg.Free;
    276276  end;
    277277end;
  • trunk/Main.dfm

    r8 r13  
    33  Top = 74
    44  Caption = 'Heroes of Fantasy - Client'
    5   ClientHeight = 274
     5  ClientHeight = 293
    66  ClientWidth = 389
    77  Color = clBtnFace
     
    2020  DesignSize = (
    2121    389
    22     274)
     22    293)
    2323  PixelsPerInch = 96
    2424  TextHeight = 13
     
    4747  object StatusBar1: TStatusBar
    4848    Left = 162
    49     Top = 254
     49    Top = 273
    5050    Width = 227
    5151    Height = 19
     
    5454    Panels = <>
    5555    SimplePanel = True
     56    ExplicitTop = 254
    5657  end
    5758  object Panel1: TPanel
    5859    Left = 0
    59     Top = 254
     60    Top = 273
    6061    Width = 161
    6162    Height = 19
    6263    Anchors = [akLeft, akBottom]
    6364    TabOrder = 1
     65    ExplicitTop = 254
    6466    object Image1: TImage
    6567      Left = 108
     
    401403    Top = 36
    402404    Width = 105
    403     Height = 189
     405    Height = 208
    404406    Anchors = [akTop, akRight, akBottom]
    405407    BorderStyle = bsNone
     
    417419    ReadOnly = True
    418420    TabOrder = 2
     421    ExplicitHeight = 189
    419422  end
    420423  object Button1: TButton
    421424    Left = 343
    422     Top = 231
     425    Top = 250
    423426    Width = 46
    424427    Height = 17
     
    428431    TabOrder = 3
    429432    OnClick = Button1Click
     433    ExplicitTop = 231
    430434  end
    431435  object ListView1: TListView
     
    433437    Top = 0
    434438    Width = 269
    435     Height = 249
     439    Height = 268
    436440    Hint =
    437441      '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' +
     
    463467    OnMouseMove = ListView1MouseMove
    464468    OnSelectItem = ListView1SelectItem
     469    ExplicitHeight = 249
    465470  end
    466471  object Panel2: TPanel
     
    468473    Top = 0
    469474    Width = 9
    470     Height = 249
     475    Height = 268
    471476    Cursor = crHSplit
    472477    Hint = 'K schov'#225'n'#237' detajl'#367' p'#345'et'#225'hn'#283'te k prav'#233'mu okraji'
     
    479484    OnMouseMove = Panel2MouseMove
    480485    OnMouseUp = Panel2MouseUp
     486    ExplicitHeight = 249
    481487  end
    482488  object MediaPlayer1: TMediaPlayer
    483489    Left = 152
    484490    Top = 8
    485     Width = 29
     491    Width = 0
    486492    Height = 30
    487493    EnabledButtons = [btPlay, btPause, btStop]
  • trunk/Main.pas

    r10 r13  
    1212
    1313const
    14   ApplicationVersion = '3.3';
     14  ApplicationVersion = '3.4';
    1515  ApplicationRevision = 6;
    1616  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';
    2022  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 
    2427type
    2528  TWMMoving = record
     
    343346        SetLength(Servers, 3);
    344347        Servers[0].Name := 'Heroes of Fantasy';
    345         Servers[0].Address := 'wow.zdechov.net';
     348        Servers[0].Address := HoFRealmList;
    346349        Servers[0].OnlinePlayersAddress := HoFOnlineListURL;
    347350        Servers[0].ExeFile := GetWoWExeFile;
    348351        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;
    350353
    351354        Servers[1].Name := 'Oficiální Server - Eu';
     
    353356        Servers[1].ExeFile := GetWoWExeFile;
    354357        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/';
    356359
    357360        Servers[2].Name := 'Oficiální Server - USA';
     
    359362        Servers[2].ExeFile := GetWoWExeFile;
    360363        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/';
    362365      end;
    363366
     
    10371040  with Servers[length(Servers) - 1] do begin
    10381041    Name := 'Heroes of Fantasy';
    1039     Address := 'wow.zdechov.net';
     1042    Address := HoFRealmList;
    10401043    OnlinePlayersAddress := HoFOnlineListURL;
    10411044    ExeFile := GetWoWExeFile;
    10421045    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;
    10441047  end;
    10451048  WriteImages;
     
    12031206  {
    12041207<?xml version="1.0" encoding="UTF-8"?>
    1205 <!DOCTYPE server SYSTEM "http://wow.zdechov.net/projectonlineplayes/onlineplayers.dtd">
     1208<!DOCTYPE server SYSTEM "http://www.heroesoffantasy.cz/projectonlineplayes/onlineplayers.dtd">
    12061209<server>
    12071210  <servername>Heroes Of Fantasy</servername>
    1208   <serveraddress>wow.zdechov.net</serveraddress>
     1211  <serveraddress>www.heroesoffantasy.cz</serveraddress>
    12091212  <owner>Chronos</owner>
    12101213  <patch>2.13</patch>
     
    14211424procedure TForm1.Importzwowstatusnet1Click(Sender: TObject);
    14221425begin
    1423 //http://wowstatus.net/serverlist.php
    1424 
    1425   //načtení počtu serverů
     1426  // http://wowstatus.net/serverlist.php
     1427
     1428  // Načtení počtu serverů
    14261429  Form8.Caption := 'Import serverů z WoWStatus.net';
    14271430  Form8.LoadCountRegServers;
    1428   Form9.Gauge1.MaxValue := CountWoWStatusServers+80;
     1431  Form9.Gauge1.MaxValue := CountWoWStatusServers + 80;
    14291432  Form9.Show;
    14301433
     
    14321435  Form8.ListView1.Clear;
    14331436  Form8.WriteServersWoWStatus('http://wowstatus.net/serverlist.php');
    1434 
    14351437  Form9.Close;
    14361438
    1437 
    1438   if EndLoadingBool = false then begin
     1439  if not EndLoadingBool then begin
    14391440    Form8.Show;
    1440     //uložení počtu serverů
     1441    // Uložení počtu serverů
    14411442    CountWoWStatusServers := Form8.ListView1.Items.Count;
    14421443    Form8.SaveCountRegServers;
    14431444  end;
    14441445   // Form8.Timer1.Enabled := true;
    1445 
    14461446end;
    14471447
  • trunk/OnlinePlayers.pas

    r7 r13  
    7979  FriendSoundFile: string;
    8080  LockOnlineAddres: Boolean = True;
    81   LockAddres: string = 'http://wow.zdechov.net/stat/stat.xml';
     81  LockAddres: string = HoFOnlineListURL;
    8282
    8383  ColumnIndexSoft: integer = 0;
     
    186186        StateIndex := StrToInt(sRace) - 1;
    187187      end;
    188       //zjišťování přátel a zobrazení
     188      // Zjišťování přátel a zobrazení
    189189      for i:=0 to length(Friends) - 1 do begin
    190190        if GetLowerString(sName) = GetLowerString(Friends[i]) then begin
     
    203203    until ANode = nil;
    204204
    205     Label1.Caption := IntToStr(ListView1.Items.Count+1);
     205    Label1.Caption := IntToStr(ListView1.Items.Count + 1);
    206206    if LockOnlineAddres then begin
    207207      Form1.CoolTrayIcon1.Hint := IntToStr(ListView1.Items.Count + 1)+' hráčů';
     
    229229
    230230
    231   //zjišťování zda se připojil nový přítel
    232   if FirstDownload = false then begin
     231  // Zjišťování, zda se připojil nový přítel
     232  if FirstDownload = False then begin
    233233    if ListView2.Items.Count > length(OldOnlineFriend) then begin
    234234      if BeepAfterNewFriend then
     
    255255var
    256256  reg: TRegistry;
    257   i, count: integer;
     257  i, Count: integer;
    258258begin
    259259  Reg := TRegistry.Create;
    260260  try
    261     // načítání pozice formuláře
    262     if Reg.OpenKey(R+'FormOnlinePlayers', False) then begin
     261    // Načítání pozice formuláře
     262    if Reg.OpenKey(R + 'FormOnlinePlayers', False) then begin
    263263      Top := Reg.ReadInteger('Top');
    264264      Left := Reg.ReadInteger('Left');
     
    292292    end;
    293293
    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));
     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));
    299299      end;
    300300    end;
     
    391391  case ColumnIndexSoft of
    392392    1:begin
    393         if StrToInt(ListView1.Items[0].SubItems[0]) > StrToInt(ListView1.Items[ListView1.Items.count-1].SubItems[0]) then
    394           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)
    395395        else
    396           Compare := OrderNumber(Item1, Item2,Compare);
     396          Compare := OrderNumber(Item1, Item2, Compare);
    397397      end;
    398398    2:begin
    399       if AnsiCompareText(ListView1.Items[0].SubItems[1], ListView1.Items[ListView1.Items.count-1].SubItems[1]) = -1 then
    400         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)
    401401      else
    402         Compare := -OrderMap(Item1, Item2,Compare);
     402        Compare := -OrderMap(Item1, Item2, Compare);
    403403      end;
    404404    3:begin
    405       if AnsiCompareText(ListView1.Items[0].SubItems[2], ListView1.Items[ListView1.Items.count-1].SubItems[2]) = -1 then
    406         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)
    407407      else
    408         Compare := -OrderZone(Item1, Item2,Compare);
     408        Compare := -OrderZone(Item1, Item2, Compare);
    409409      end;
    410410  else
    411411    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)
    413413    else
    414       Compare := -Order(Item1, Item2,Compare);
     414      Compare := -Order(Item1, Item2, Compare);
    415415  end;
    416416end;
     
    784784  if Assigned(ListView1.Selected) then begin
    785785    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;
    788788      with ListView2.Items.Add do begin
    789789        Caption := ListView1.Selected.Caption;
     
    812812  if DragDown then begin
    813813    GetCursorPos(Position);
    814     if Position.y-Top-Panel2.Height < Height-38 then
    815       Panel2.Top := Position.Y-Top-Panel2.Height-16
     814    if Position.Y - Top - Panel2.Height < Height - 38 then
     815      Panel2.Top := Position.Y - Top - Panel2.Height - 16
    816816    else
    817       Panel2.Top := Height-35;
     817      Panel2.Top := Height - 35;
    818818    DrawForm;
    819819  end;
     
    828828procedure TForm5.DrawForm;
    829829begin
    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;
    833833
    834834end;
     
    841841begin
    842842  NewFriend := True;
    843   for i:=0 to length(ArrayOfString)-1 do begin
     843  for i := 0 to length(ArrayOfString) - 1 do begin
    844844    if (GetLowerString(Find) = GetLowerString(ArrayOfString[i])) then
    845       NewFriend := false;
     845      NewFriend := False;
    846846  end;
    847847
     
    884884  YetWas := False;
    885885  if Assigned(ListView2.Selected) then begin
    886     for i:=0 to High(Friends) do begin
     886    for i := 0 to High(Friends) do begin
    887887      if YetWas then
    888         Friends[i-1] := Friends[i];
     888        Friends[i - 1] := Friends[i];
    889889
    890890      if (GetLowerString(Friends[i]) = GetLowerString(ListView2.Selected.Caption)) then
    891891        YetWas := true;
    892892    end;
    893     SetLength(Friends,Length(Friends)-1);
     893    SetLength(Friends, Length(Friends) - 1);
    894894    ListView2.Selected.Delete;
    895895  end;
     
    901901  MousePos: TPoint;
    902902begin
    903   if Assigned(ListView2.GetItemAt(x,y)) and (Button = mbRight) then begin
     903  if Assigned(ListView2.GetItemAt(x, y)) and (Button = mbRight) then begin
    904904    GetCursorPos(MousePos);
    905     PopupMenu3.Popup(MousePos.X,MousePos.y);
     905    PopupMenu3.Popup(MousePos.X, MousePos.y);
    906906  end;
    907907end;
  • trunk/Options.dfm

    r7 r13  
    6363    Width = 393
    6464    Height = 305
    65     ActivePage = TabSheet2
     65    ActivePage = TabSheet3
    6666    Anchors = [akLeft, akTop, akRight, akBottom]
    6767    TabOrder = 3
     
    384384        Height = 21
    385385        TabOrder = 4
    386         Text = 'http://wow.zdechov.net/stat/stat.xml'
    387386      end
    388387    end
     
    512511        Width = 361
    513512        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'
    515514        ParentShowHint = False
    516515        ShowHint = True
  • trunk/Options.pas

    r6 r13  
    463463  ShowBalloonHint := True;
    464464  ShowDetails := False;
    465   RSSAddress := 'http://wow.zdechov.net/rss.php';
     465  RSSAddress := DefaultRSSChannel;
    466466  Form1.CoolTrayIcon1.MinimizeToTray := True;
    467467  //Form1.SkinData1.Active := False;
     
    471471  Form1.Timer1.Enabled := True;
    472472  Form1.Aktuality1.Checked := True;
    473   Form1.Timer1.Interval := 10*60000;
     473  Form1.Timer1.Interval := 10 * 60000;
    474474  PlaySoundNews := False;
    475475  SoundFileNews := '';
     
    477477  //online hráči
    478478  Form1.Timer2.Enabled := True;
    479   Form1.Timer2.Interval := 10*60000;
     479  Form1.Timer2.Interval := 10 * 60000;
    480480  LockOnlineAddres := True;
    481   LockAddres := 'http://wow.zdechov.net/stat/stat.xml';
     481  LockAddres := HoFOnlineListURL;
    482482  if LockOnlineAddres then
    483483    Form5.Button2.Enabled := false
  • trunk/help/Nápověda HoFClient.jrt

    r1 r13  
    4646Email\b0
    4747: \i
    48 maron2@cenrum.cz\par
     48maron2@centrum.cz\par
    4949\b
    5050\i0
     
    5353
    5454
    55 {\uldb http://wow.zdechov.net/client/}{\v !ExecFile(http://wow.zdechov.net/client/)}\cf1
     55{\uldb http://www.heroesoffantasy.cz/page=client}{\v !ExecFile(http://www.heroesoffantasy.cz/page=client)}\cf1
    5656
    5757 
Note: See TracChangeset for help on using the changeset viewer.