EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 06-23-2006, 12:13 PM
asknotthou asknotthou is offline
A Brown Bear
 
Join Date: Jun 2006
Server: Butcherblock
Posts: 12
Default The only bag you will ever need.. if its possible...

I would like to make an upgraded version of madbommers 100% moddable bag, with his version you can set the default number of colums in a simple xml file that is included into eq2ui_inventory_bag.xml. What i would like to do is be able to set each bag for each character.

I have an idea that involves onshow=(playername.localtext==... for setting it for each character but i dont see anything in eq2ui_inventory_bag.xml that reffers to a specific bag just slots.

So is there anyway to set each bag individually in the xml? iIknow it is possible in game but its annoying to have to switch bags everytime you login.
Reply With Quote
  #2  
Unread 06-23-2006, 04:46 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

Its probably possible but would require some effort to determine exactly what each bag's window name is.

Each bag window gets a unique window name by the client that has nothing to do with anything in the XML. Basically the client uses the bag.xml file as a template for creating several instances of the bag window. Each instance gets a name assigned by the client.

Another option is to configure bags automatically based on the number of slots. I set something like this up way back before the bags got bigger but ditched it. The code gets extreamly bloated with code to support 36 separate layouts.
Reply With Quote
  #3  
Unread 06-23-2006, 05:26 PM
asknotthou asknotthou is offline
A Brown Bear
 
Join Date: Jun 2006
Server: Butcherblock
Posts: 12
Default

thanks zonx, ill see what i can do
Reply With Quote
  #4  
Unread 06-23-2006, 05:42 PM
asknotthou asknotthou is offline
A Brown Bear
 
Join Date: Jun 2006
Server: Butcherblock
Posts: 12
Default

Hmm i cant seem to find the name that the client gives the bags...

is there anyway to pull the label and use that for comparison?

or is there a way to do
bagslots < 20
BagSlots / 4 == integer
set the number of colums to 4?

parts of that i need the most help with is how do you pull the bagslots data (nvm i figured this part out) and is there a way to check to see of something is a integer.

Last edited by asknotthou : 06-23-2006 at 06:29 PM.
Reply With Quote
  #5  
Unread 06-23-2006, 10:04 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

You could add something to the onhover event of the main bag window to change the title to the bag name. something like OnHoverIn="WindowFrame.LeftGrouper.Titlle.Text=Name". Not at all sure that would work as I've never tried it. It may just return bag or the client name but with my luck it would just return bag :P
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #6  
Unread 06-24-2006, 01:39 PM
mother9987's Avatar
mother9987 mother9987 is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Everfrost
Posts: 204
Default

Quote:
Originally Posted by asknotthou
Hmm i cant seem to find the name that the client gives the bags...

is there anyway to pull the label and use that for comparison?

or is there a way to do
bagslots < 20
BagSlots / 4 == integer
set the number of colums to 4?

parts of that i need the most help with is how do you pull the bagslots data (nvm i figured this part out) and is there a way to check to see of something is a integer.
To check if something is an integer... /cue bad flashback sounds and wave vision effect - I've converted numbers to an integer for my timer window, so you should be able to adapt that:

Numbers are rounded automatically at the thousand's place. So, if you subtract .5, divide by 1000 and then multiply by 1000 you get the integer portion of a number.

Then compare that to the original number to see if it was an integer.
__________________
'Tetht the printhiple, tetht the printhiple,' muttered Igor. 'Thorry, thur, but Igorth do not "tetht the printhiple". Thtrap it to the bench and put a good thick bolt of lightning through it, thatth our motto. Thatth how you tetht thomething.'
Reply With Quote
  #7  
Unread 06-24-2006, 05:51 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

Be aware, any time you do any sort of math with SOE's XML scripting it produces a 3 didgit float ( 1 x 1 = 1.000 ) and there's currently no way to truncate the float.

Several controls simply ignore values with float when they expect an intiger.
Reply With Quote
  #8  
Unread 06-25-2006, 12:33 AM
asknotthou asknotthou is offline
A Brown Bear
 
Join Date: Jun 2006
Server: Butcherblock
Posts: 12
Thumbs Up

Thanks all, that helps alot, especially(sp?) mother's idea.

I see what i can come up with.
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 03:06 PM.


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