Hi Everyone, I'm creating this complex rts where each unit is capable of carrying an item.
I'd like to have it so that if you select a group of units, you will see their portraits, and their items icons right below those portraits, a bit like this:
The map also has a marketplace, which is a building with 4 items. I'd like to make it so that in the place of the units statistics panel, you will see a picture of a goblin with his arms outstretched above the 4 items. I'm not worried about the image for the goblin, but I don't know how to make the ui function this way.
I know this is a lot to ask for, but I'm very new to the galaxy editor and I would really appreciate it if someone could guide me through modifying the ui in such a manor.
Well, what I would do for this is hiding the selection ui and making my own through Dialogs. Then have a trigger about when the player does a selection, pick eatch unit in the selection and show their icon and what they carry if they have something for eatch space. The risk here is that in sc2 you can select up to 500 units at once, so... I don't know how many units you mean by a "group of units in a rts" but if it's more than say 15, it will start to get somewhat clumpy. Also doing it the way i just said would not fully work as a good selection UI because you won't be able to do normal stuff like Shift+Clicking a unit to remove it from selection or simply clicking it to select it, (even though it's possible to do as well...with more triggers haha) That would be the easy way of doing it I feel like.
Otherwise, you could edit the UI and re-align eatch selection icon to be able to move add maybe the inventory of eatch units... not sure if you can show many at once... but that would work best if it does. This way you could litteraly pick up and throw items on the ground through you selection. That would be more complicated but more efficient.
There are without doubt more ways of doing it based on what you really want, imagine, have time for, etc.
Hi Everyone, I'm creating this complex rts where each unit is capable of carrying an item. I'd like to have it so that if you select a group of units, you will see their portraits, and their items icons right below those portraits, a bit like this:
The map also has a marketplace, which is a building with 4 items. I'd like to make it so that in the place of the units statistics panel, you will see a picture of a goblin with his arms outstretched above the 4 items. I'm not worried about the image for the goblin, but I don't know how to make the ui function this way.
I know this is a lot to ask for, but I'm very new to the galaxy editor and I would really appreciate it if someone could guide me through modifying the ui in such a manor.
Well, what I would do for this is hiding the selection ui and making my own through Dialogs. Then have a trigger about when the player does a selection, pick eatch unit in the selection and show their icon and what they carry if they have something for eatch space. The risk here is that in sc2 you can select up to 500 units at once, so... I don't know how many units you mean by a "group of units in a rts" but if it's more than say 15, it will start to get somewhat clumpy. Also doing it the way i just said would not fully work as a good selection UI because you won't be able to do normal stuff like Shift+Clicking a unit to remove it from selection or simply clicking it to select it, (even though it's possible to do as well...with more triggers haha) That would be the easy way of doing it I feel like.
Otherwise, you could edit the UI and re-align eatch selection icon to be able to move add maybe the inventory of eatch units... not sure if you can show many at once... but that would work best if it does. This way you could litteraly pick up and throw items on the ground through you selection. That would be more complicated but more efficient.
There are without doubt more ways of doing it based on what you really want, imagine, have time for, etc.
Working on projects: