EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   Request (https://www.eq2interface.com/forums/forumdisplay.php?f=25)
-   -   resizeable bags (https://www.eq2interface.com/forums/showthread.php?t=4807)

smsmstroble 11-13-2005 12:00 AM

resizeable bags
 
is there any way to make a bag behave like a hot bar?

id be nice not to have to make separate mods for 5 x N and 4 x N ect.

GenesisRage 11-13-2005 03:18 AM

im fairly new to ui modding and have started to undergo a major project of revamping the entire ui... but the only way i would think to make resizable bags like that, you would have to program it with certain events. basically like a toggle button that would switch from 4 to 5 to 6 across.

Agathorn 11-13-2005 09:08 AM

Several UIs have incroporated similiar bag mods. Tablets II has one for example. It doesn't strictly work like the hotkey bar, but i has preset 'layouts' that you can toggle through.

smsmstroble 11-13-2005 12:06 PM

i dont see why you couldent make it act like a hot bar.
i took a look at the files for the hot bar and bag with the ui editor, couldent you just put the bag slots in a resizable table like the hot bar?
i made an attempt myself but i know very little about ui modding and screwed something up.

smsmstroble 11-13-2005 12:24 PM

1 Attachment(s)
ok i took another look at the attemot i made and i got the slots to move like a hot bar in the uieditor, dosent work in play mode or in game but if you rezise the the volume page the slots will rearange like a hot bar.

GenesisRage 11-14-2005 03:50 AM

dealing with a volume page, ive come to find out that the Hotbar is the only window that will automatically resize the frame to the volume.
also you have to make sure the bag slots are in the right spot (in the list) or eq cant "find" them, because that is something that is hard-codded into the program.

smsmstroble 11-14-2005 03:53 PM

oh ok hardcoded. that sucks.

Sir Taleisin The Seer 11-14-2005 05:16 PM

I made some progress with this idea, got it working ingame, however it cannot have a frame and looks like smeg

Zonx 11-14-2005 06:25 PM

Prior to the bag slot increase, I had a working mod that dynamically sized each bag based on the total number of slots. It worked and looked perfect, but the coding was a MAJOR PITA. Here's how it worked...

All slots are set to hidden.

Each initial transitional slot in a layout recieves an OnShow script to press a layout button.

For every layout, create a layout button with an OnPress script that positions every slot and sizes the parent window.

Say you want all 1-8 slot bags to be 4 x 2 and all 9-12 slot bags to be 6 x 2. Slot 0 would have an OnShow script that presses the Layout4x2 button. Slot 8 would trigger the Layout6x2 button.

With upwards of 30 slots triggering 30 buttons that then reposition 30 slots, you're looking at over 900 lines of code.

If we could do math on the height and width of an object, I'm sure I could cludge up something similar to position everything based on window resize. Problem is we haven't figured any way to do math on the comma seperated values.


All times are GMT -5. The time now is 05:17 AM.

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