I managed to get an 8-slot always-open inventory going but I ran into a couple of issues. First, this is what it currently looks like:
On the left side of the Wireframe you can see an N1 and what looks like a dialog border. I can't figure out for the life of me how to get rid of them.
As for the Sc2Layout code, it's in the following Pastebin (I couldn't figure out how to link code in a forum post without messing it up): http://pastebin.com/MeDKue0V
Resolved. It was a conflict with another Layout file. Please close or delete this thread. However, for posterity, the code linked and the triggers work.
If you still want some rep, I do have a small issue with this I couldn't resolve.
There is still the N1 problem (I can't make it go away) and I want the two smaller slots lined up so that they less of an OCD nightmare (there is a weird gap between them). Bonus points: adding some sort of image as a background image behind the two small inventory slots. The SC2Layout is still the same as in the original post above. Extra bonus points: how do I add hotkeys to the last 2 inventory slots (the small ones)?
n1 seems to be the hotkey of the container. try to hide it (alpha set to 0 or visible= false). workaround would be to create a black dialog above it.
why don't you resize the last 2 slots to 80 ?
the gap between the last 2 two slots can be fixed by lowering the offset by 2.
set the background image either by layoutfiles or with a trigger hook - workaround would be to create a new frame (layout files) of type image at the same place as the slot. or to create a trigger dialog image.
hotkeys cannot be changed (i have asked for this too). at least i couldn't figure it out yet.
@Stormahawk: Go
Item's dont have hotkeys (unless you're buying it from a shop).
You can set the <shortcut val=""/> to a static hotkey for the inventory slot, but thats it. There's very little you can do in the way of customization currently. You can alter the Game UI Settings in the data editor, scroll to hotkey info, and assign one of the empty values to the shortcut. Ex. Shortcut val="@CommandButton00"/>, however this is fickle. The command must be a "target" type command (note: not "self"). Unfortunately there arent any empty target command slots for hotkey customization.
in regards to the "N1", thats a personal game setting. Turn off the command button hotkey helper in your game options. (It also shows the M/A/S/H above the normal command card). If you want it repositioned correctly again above the inventory command card, you'll have to use some UI finess. I'd have to see the current code to know whats going on, but more than likely you repositioned a button or image and not the actual container.
For an image in the inventory container slot:
(make sure the ContainerPanel is correct. It varies depending on which "slot" holds your container in the 6 slot normal inventory row. 00 is farthest left, 05 is farthest right.)
I managed to get an 8-slot always-open inventory going but I ran into a couple of issues. First, this is what it currently looks like:
On the left side of the Wireframe you can see an N1 and what looks like a dialog border. I can't figure out for the life of me how to get rid of them.
As for the Sc2Layout code, it's in the following Pastebin (I couldn't figure out how to link code in a forum post without messing it up): http://pastebin.com/MeDKue0V
Note: I used http://www.sc2mapster.com/forums/development/gui/40021-9-slot-inventory-always-open/#p18 as basis and used the triggers in http://www.sc2mapster.com/forums/general/general-chat/40030-1-5-ui-stuff-demo-1-control-built-in-ui-stuff-with/#posts to make it work.
Any help will be much appreciated, thanks!
Resolved. It was a conflict with another Layout file. Please close or delete this thread. However, for posterity, the code linked and the triggers work.
@Stormahawk: Go
and i wanted to earn my 10th reputation finally.
@FunkyUserName: Go
If you still want some rep, I do have a small issue with this I couldn't resolve.
There is still the N1 problem (I can't make it go away) and I want the two smaller slots lined up so that they less of an OCD nightmare (there is a weird gap between them). Bonus points: adding some sort of image as a background image behind the two small inventory slots. The SC2Layout is still the same as in the original post above. Extra bonus points: how do I add hotkeys to the last 2 inventory slots (the small ones)?
@Stormahawk: Go
@FunkyUserName: Go
What if the items themselves have a hotkey?
@Stormahawk: Go Item's dont have hotkeys (unless you're buying it from a shop). You can set the <shortcut val=""/> to a static hotkey for the inventory slot, but thats it. There's very little you can do in the way of customization currently. You can alter the Game UI Settings in the data editor, scroll to hotkey info, and assign one of the empty values to the shortcut. Ex. Shortcut val="@CommandButton00"/>, however this is fickle. The command must be a "target" type command (note: not "self"). Unfortunately there arent any empty target command slots for hotkey customization.
in regards to the "N1", thats a personal game setting. Turn off the command button hotkey helper in your game options. (It also shows the M/A/S/H above the normal command card). If you want it repositioned correctly again above the inventory command card, you'll have to use some UI finess. I'd have to see the current code to know whats going on, but more than likely you repositioned a button or image and not the actual container.
For an image in the inventory container slot: (make sure the ContainerPanel is correct. It varies depending on which "slot" holds your container in the 6 slot normal inventory row. 00 is farthest left, 05 is farthest right.)