EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > XML Modification Help & Info

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 02-02-2005, 07:15 PM
Hideki's Avatar
Hideki Hideki is offline
A Grove Wisp
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Server: Lavastorm
Posts: 29
Default SourceResource ?

hy all,

i have seen that in most of the XML files we have a referer value named SourceResource but sometimes like :

SourceResource="images/..."

and

SourceResource="/images/..."

or

Source="images/..."

and

Source="/images/..."

what is really the difference ? i assume that normally, the xml files seems to make like HTML and in case of ="Images/" point to UI/[personnal ui folder]/Images" but if it's not the same think is the ="/" point to /UI ?

the goal of this question is what SourceResource= i must used to point to the Iages directory of the default UI if i don't have changed images ?

hope to be enough clear
Reply With Quote
  #2  
Unread 02-02-2005, 07:29 PM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

Sometimes "Images/" doesn't work for me, but "/Images/" always does. *shrug*
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #3  
Unread 02-03-2005, 11:02 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

"images/" is what's called a relative reference. In theroy the UI looks for a child object named "images". I'm guessing the UI is smart enough to know some paramaters are only refering to external images and looks in the images directory, but on many things it doesn't know if you're refering to a child UI object or the images directory.

"/images/" is what's called a root reference. The begining slash tells the UI to go to the root first, then look for a child named "images". Presumably it understands all root references to "images" as an external directory reference. Might get confused if you made a page off of root called "Images".

Source appears to be reserved for ImageFrames.

SourceResourse appears to be used for every other image reference /shrug.

Probably just a coding inconsistancy in the rendering engine.

Last edited by Zonx : 02-03-2005 at 11:21 AM.
Reply With Quote
  #4  
Unread 02-03-2005, 11:36 AM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

In my coding experience:

Images/
/Images/
./Images

is all the same

../Images

is one directory under the current, then to images.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #5  
Unread 02-03-2005, 07:18 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Quote:
Originally Posted by Drumstix42
../Images

is one directory under the current, then to images.
Huh? Please clarify this since it doesn't match what I'm seeing with the EQ2 UI. By under do you mean the next contaner at the same lvl but lower in the tree? A parent container? A Child container?

In virtually every other pathing scheme I've seen ../ takes you up 1 lvl to the parent directory. Doesn't seam to work in EQ2 land, but "parent" does.
Reply With Quote
  #6  
Unread 02-03-2005, 08:27 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Code:
Base Folder
L Sub Folder 1
   L File 1.xml
   L File 2.xml
   L INI Files
      L File 1.ini
L Images
   L Icons
      L icon1.tga
I'm just saying from my own coding knowledge, maybe it's different in XML or EQ world....

If I was inside File1 and I wanted to use icons1.tga from the Icons folder, it would be like this:

../Images/Icon/icon1.tga

If I wanted to call upon File 1.ini I could use:
/INI FIles/FIle 1.ini
INI FIles/FIle 1.ini
./INI FIles/FIle 1.ini

/shrug
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #7  
Unread 02-03-2005, 10:03 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

Wow, that totaly doesn't jive with my Perl, UNIX, JavaScript, HTML, or DOS experience. In all those cases

"/" is top of tree
"./" is same branch
"../" is parent.

In your example ../images would result in busted image links since the Images directory is off the root, not off the subfolder containing your file.

Likewise /INI Files would break since that directory isn't off the root.
Reply With Quote
  #8  
Unread 02-03-2005, 10:21 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Maybe I'm explaining it wrong, but what you said confuses me
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:52 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI