/[Discussion]resinfo / res_ui client side.

Results 1 to 8 of 8
  1. #1
    Proficient Member antoha is offline
    MemberRank
    Oct 2007 Join Date
    Ukrain, KievLocation
    153Posts

    /[Discussion]resinfo / res_ui client side.

    well actuly i stumbled into this by accident, while trying to add a pop-up window (like isro/ksro wich presents a window with certain text once the user logs in).
    thouse 2 folders actuly have alot of "If" txt files, wich are remarkably like the launcher files wich determins the locations of .ddj files inside the window.
    lets take a look:
    ifexchange.txt:
    Code:
     GDR_EXCHANGE_TEXT_BOX:CIFTextBox
     {
      ClientRect=RECT,"0,0,0,0"
      Color=COLOR,"255,255,255,255"
      DDJ=STRING,""
      FontColor=COLOR,"255,255,255,255"
      FontIndex=INTEGER,"0"
      HAlign=INTEGER,"0"
      ID=INTEGER,"304"
      Rect=RECT,"14,342,337,87"
      StretchType=INTEGER,"0"
      Style=INTEGER,"0"
      SubSection=STRING,""
      Text=STRING,""
      UV_LB=POINT,"0,1"
      UV_LT=POINT,"0,0"
      UV_RB=POINT,"1,1"
      UV_RT=POINT,"1,0"
      VAlign=INTEGER,"0"
     }
     GDR_EXCHANGE_TEXT_BOX_FRAME_BG:CIFNormalTile
     {
      ClientRect=RECT,"0,0,0,0"
      Color=COLOR,"255,255,255,255"
      DDJ=STRING,"interface\\ifcommon\\bg_tile\\com_bg_tile_e.ddj"
      FontColor=COLOR,"255,255,255,255"
      FontIndex=INTEGER,"0"
      HAlign=INTEGER,"0"
      ID=INTEGER,"303"
      Rect=RECT,"14,342,337,87"
      Style=INTEGER,"0"
      SubSection=STRING,""
      Text=STRING,""
      UV_LB=POINT,"0,1"
      UV_LT=POINT,"0,0"
      UV_RB=POINT,"1,1"
      UV_RT=POINT,"1,0"
      VAlign=INTEGER,"0"
     }
    lets take acloser look at it:
    CIFTextBox - this is the code sro_client uses to call this command.
    if u open sro_client with hex u can find it.
    color - duh.. guess for urself
    ddj - the location of the .ddj file for the bh of the top part of the exchange window
    rect - the locations (X,Y) of the .ddj (didnt test it, its simply a guess).
    and the rest are not self-explanery and didnt have time to test it.

    so, i guess that if u can break down everything and understand how it works, we can basicly create new functions for the server.
    like the afro-mentioned login-text-box.

    any ideas on this... disscussion would be appritiated ^_^

    thnx
    ~AntohA


  2. #2
    Developer sladlejrhfpq is offline
    MemberRank
    Oct 2011 Join Date
    671Posts

    Re: /[Discussion]resinfo / res_ui client side.

    Quote Originally Posted by antoha View Post
    well actuly i stumbled into this by accident, while trying to add a pop-up window (like isro/ksro wich presents a window with certain text once the user logs in).
    thouse 2 folders actuly have alot of "If" txt files, wich are remarkably like the launcher files wich determins the locations of .ddj files inside the window.
    lets take a look:
    ifexchange.txt:
    Code:
     GDR_EXCHANGE_TEXT_BOX:CIFTextBox
     {
      ClientRect=RECT,"0,0,0,0"
      Color=COLOR,"255,255,255,255"
      DDJ=STRING,""
      FontColor=COLOR,"255,255,255,255"
      FontIndex=INTEGER,"0"
      HAlign=INTEGER,"0"
      ID=INTEGER,"304"
      Rect=RECT,"14,342,337,87"
      StretchType=INTEGER,"0"
      Style=INTEGER,"0"
      SubSection=STRING,""
      Text=STRING,""
      UV_LB=POINT,"0,1"
      UV_LT=POINT,"0,0"
      UV_RB=POINT,"1,1"
      UV_RT=POINT,"1,0"
      VAlign=INTEGER,"0"
     }
     GDR_EXCHANGE_TEXT_BOX_FRAME_BG:CIFNormalTile
     {
      ClientRect=RECT,"0,0,0,0"
      Color=COLOR,"255,255,255,255"
      DDJ=STRING,"interface\\ifcommon\\bg_tile\\com_bg_tile_e.ddj"
      FontColor=COLOR,"255,255,255,255"
      FontIndex=INTEGER,"0"
      HAlign=INTEGER,"0"
      ID=INTEGER,"303"
      Rect=RECT,"14,342,337,87"
      Style=INTEGER,"0"
      SubSection=STRING,""
      Text=STRING,""
      UV_LB=POINT,"0,1"
      UV_LT=POINT,"0,0"
      UV_RB=POINT,"1,1"
      UV_RT=POINT,"1,0"
      VAlign=INTEGER,"0"
     }
    lets take acloser look at it:
    CIFTextBox - this is the code sro_client uses to call this command.
    if u open sro_client with hex u can find it.
    color - duh.. guess for urself
    ddj - the location of the .ddj file for the bh of the top part of the exchange window
    rect - the locations (X,Y) of the .ddj (didnt test it, its simply a guess).
    and the rest are not self-explanery and didnt have time to test it.

    so, i guess that if u can break down everything and understand how it works, we can basicly create new functions for the server.
    like the afro-mentioned login-text-box.

    any ideas on this... disscussion would be appritiated ^_^

    thnx
    ~AntohA
    I think what you need is Media\server_dep\silkroad\event\event_interface.txt and mall_notify.txt

  3. #3
    Proficient Member antoha is offline
    MemberRank
    Oct 2007 Join Date
    Ukrain, KievLocation
    153Posts

    Re: /[Discussion]resinfo / res_ui client side.

    lol ur totaly totaly right.... simply amazing o_O

    i was sure this future was not implemented in the vsro files, and i was tryin to find a way to copy it from ksro, but apperently i was totaly offcourse. thnx for making this clear.

  4. #4
    Developer sladlejrhfpq is offline
    MemberRank
    Oct 2011 Join Date
    671Posts

    Re: /[Discussion]resinfo / res_ui client side.

    Quote Originally Posted by antoha View Post
    lol ur totaly totaly right.... simply amazing o_O

    i was sure this future was not implemented in the vsro files, and i was tryin to find a way to copy it from ksro, but apperently i was totaly offcourse. thnx for making this clear.
    your welcome, all you have to do is set the Open="1", or something like this, and write some text ^^

  5. #5
    Proficient Member antoha is offline
    MemberRank
    Oct 2007 Join Date
    Ukrain, KievLocation
    153Posts

    Re: /[Discussion]resinfo / res_ui client side.

    ye took me exactly 2 min to figure it out once i saw the file.
    really simple... i guess sometimes everythin is easier than it seems.

  6. #6
    Developer sladlejrhfpq is offline
    MemberRank
    Oct 2011 Join Date
    671Posts

    Re: /[Discussion]resinfo / res_ui client side.

    Quote Originally Posted by antoha View Post
    ye took me exactly 2 min to figure it out once i saw the file.
    really simple... i guess sometimes everythin is easier than it seems.
    yeah :D

  7. #7
    Member >>LiNkS<< is offline
    MemberRank
    Apr 2007 Join Date
    Alex NorthLocation
    96Posts

    Re: /[Discussion]resinfo / res_ui client side.

    what about enabling Summer event flags and interface? i can pay a few $$ if you tell me how to do that in PM ^^

  8. #8
    SilkRoad loveme is offline
    MemberRank
    Sep 2011 Join Date
    JanganLocation
    498Posts

    Re: /[Discussion]resinfo / res_ui client side.

    what does it do?



Advertisement