![]() |
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. |
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. |
thanks zonx, ill see what i can do
|
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. |
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
|
Quote:
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. |
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. |
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