EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI Developer Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=3)
-   -   The only bag you will ever need.. if its possible... (https://www.eq2interface.com/forums/showthread.php?t=6348)

asknotthou 06-23-2006 12:13 PM

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.

Zonx 06-23-2006 04:46 PM

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.

asknotthou 06-23-2006 05:26 PM

thanks zonx, ill see what i can do

asknotthou 06-23-2006 05:42 PM

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.

Landiin 06-23-2006 10:04 PM

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

mother9987 06-24-2006 01:39 PM

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.

Zonx 06-24-2006 05:51 PM

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.

asknotthou 06-25-2006 12:33 AM

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

I see what i can come up with.


All times are GMT -5. The time now is 06:34 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI