It is possible to edit the behavior bar, but if you're getting a cannot create error, then you're clearly not using the correct path to access it. You'll have to post your actual layout code to get more specific help.
Though all you will really be able to do with the behavior bar is change the size of it and reposition it. You can't add more behaviors or change the arrangement of them.
It is possible to edit the behavior bar, but if you're getting a cannot create error, then you're clearly not using the correct path to access it. You'll have to post your actual layout code to get more specific help.
Though all you will really be able to do with the behavior bar is change the size of it and reposition it. You can't add more behaviors or change the arrangement of them.
Well here it is http://i.imgur.com/iB3aWHu.png
I notice it's changed to saying
[10/3/2013 7:51:05 PM] UI: File [aaCustomGarbage.SC2Layout] Line [15] Column [5]. Failed to locate specified Desc [BehaviorBar/BehaviorBarTemplate].
[10/3/2013 7:51:05 PM] UI: File [aaCustomGarbage.SC2Layout] Line [15] Column [5]. Could not find Frame Desc [BehaviorBar/BehaviorBarTemplate] in File Desc [BehaviorBar].
I couldn't help you with that, unfortunately. I've never modified layouts separately in that manner, I just have a single file overriding the actual implementation.
I couldn't help you with that, unfortunately. I've never modified layouts separately in that manner, I just have a single file overriding the actual implementation.
If you have the time you should tell me all about it if it's easier and works for this, I don't want to do it the hard way or anything.
You'd have to add it as an override layout file in the UI: Custom Layout Files field of the GameUI data section.
Modifying the size of the icons is a different story. You'd have to do that the way that you were trying to, which I haven't done before, so I can't help you with.
@MasterWrath
Don't use default templates when editing the default UI. These modifications have been made already, so they shouldn't make a difference at all.
But I assume you only copy pasted the code.
--
Editing the behavior bar exists out of two parts: area for images and tooltip area. For unknown reasons these are separated.
One part is in the GameUI and the other part is in its template. The comment in the code should suffice.
<Frametype="Frame"name="GameUI/UIContainer/ConsoleUIContainer/InfoPanel/UnitPanel"file="GameUI"><!-- Behavior bar's tooltip area --><Frametype="BehaviorBar"name="BehaviorBar"><Anchorside="Top"relative="$parent"pos="Min"offset="6"/><Anchorside="Left"relative="$parent"pos="Min"offset="10"/><Heightval="192"/><Widthval="32"/></Frame></Frame><!-- Behavior icon (not the area that has the tooltip, just the icon... these are separated) --><Frametype="BehaviorIcon"name="BehaviorIconTemplate"file="BehaviorBar"><Widthval="32"/><Heightval="32"/></Frame>
You have to make sure the width is identical. Also, the behavior bar needs to have a height for 6 icons. I don't know if it could display more, but that is the amount the original UI can display, so we might want to support that, too.
The values displayed in my code are the default values, so you should think about changing them when you test it.
edit:
Changing the position of each icon is not directly possible. But I found a dirty trick that would allow a free positioning of behavior bar icons anywhere in the whole UI. I didn't release the interface that uses it, yet, but I hope to finish it this week.
Is it possible to move and resize behavior bar with new patch 2.1.0? I tried code above but it's still says UI: Cannot create [BehaviorBar/BehaviorBarTemplate] because frames of type [BehaviorBar] are marked as Blizzard Only.
Is it possible to move and resize behavior bar with new patch 2.1.0? I tried code above but it's still says UI: Cannot create [BehaviorBar/BehaviorBarTemplate] because frames of type [BehaviorBar] are marked as Blizzard Only.
1. You don't need to apply the template.
2. Is your path correct? It seems like you are trying to create a new instance of the BehaviorBar doesn't work (directly).
3. Did you try my code?
1. You don't need to apply the template.
2. Is your path correct? It seems like you are trying to create a new instance of the BehaviorBar doesn't work (directly).
3. Did you try my code?
It works, thanks. But can i rotate behavior bar and make it horizontal?
Is it possible to move and resize behavior bar with new patch 2.1.0? I tried code above but it's still says UI: Cannot create [BehaviorBar/BehaviorBarTemplate] because frames of type [BehaviorBar] are marked as Blizzard Only.
The error I get is:
UI: Cannot create [BehaviorBar/BehaviorBarTemplate] because frames of type [BehaviorBar] are marked as Blizzard Only.
Why is this? Has anyone else encountered this weirdness?
Yeah I tried using the BehaviorBar but didn't get it to work. If someone finds a way I'm very interested :)
It is possible to edit the behavior bar, but if you're getting a cannot create error, then you're clearly not using the correct path to access it. You'll have to post your actual layout code to get more specific help.
Though all you will really be able to do with the behavior bar is change the size of it and reposition it. You can't add more behaviors or change the arrangement of them.
Well here it is http://i.imgur.com/iB3aWHu.png
I notice it's changed to saying
[10/3/2013 7:51:05 PM] UI: File [aaCustomGarbage.SC2Layout] Line [15] Column [5]. Failed to locate specified Desc [BehaviorBar/BehaviorBarTemplate].
[10/3/2013 7:51:05 PM] UI: File [aaCustomGarbage.SC2Layout] Line [15] Column [5]. Could not find Frame Desc [BehaviorBar/BehaviorBarTemplate] in File Desc [BehaviorBar].
@zorbotron: Go
I couldn't help you with that, unfortunately. I've never modified layouts separately in that manner, I just have a single file overriding the actual implementation.
If you have the time you should tell me all about it if it's easier and works for this, I don't want to do it the hard way or anything.
@zorbotron: Go
Modifying the size/position of the Behavior Bar for all players would involve a layout like this:
You'd have to add it as an override layout file in the UI: Custom Layout Files field of the GameUI data section.
Modifying the size of the icons is a different story. You'd have to do that the way that you were trying to, which I haven't done before, so I can't help you with.
@MasterWrath
Don't use default templates when editing the default UI. These modifications have been made already, so they shouldn't make a difference at all.
But I assume you only copy pasted the code.
--Editing the behavior bar exists out of two parts: area for images and tooltip area. For unknown reasons these are separated.
One part is in the GameUI and the other part is in its template. The comment in the code should suffice.
You have to make sure the width is identical. Also, the behavior bar needs to have a height for 6 icons. I don't know if it could display more, but that is the amount the original UI can display, so we might want to support that, too.
The values displayed in my code are the default values, so you should think about changing them when you test it.
edit:
Changing the position of each icon is not directly possible. But I found a dirty trick that would allow a free positioning of behavior bar icons anywhere in the whole UI. I didn't release the interface that uses it, yet, but I hope to finish it this week.
At least I will write something about it in this thread.
@Ahli634: Go
It may not seem right intuitively, but I assure you that it works. That snippet is from the AoS layout file.
Edit: Obviously with the path compressed.
Is it possible to move and resize behavior bar with new patch 2.1.0? I tried code above but it's still says UI: Cannot create [BehaviorBar/BehaviorBarTemplate] because frames of type [BehaviorBar] are marked as Blizzard Only.
http://www.youtube.com/user/RussianMapster
1. You don't need to apply the template.
2. Is your path correct? It seems like you are trying to create a new instance of the BehaviorBar doesn't work (directly).
3. Did you try my code?
It works, thanks. But can i rotate behavior bar and make it horizontal?
http://www.youtube.com/user/RussianMapster
Didnt you quit?
I am back.
http://www.youtube.com/user/RussianMapster
@KorvinGump: Go
Welcome back.
No. You can't rotate it unless 2.1 altered anything related to UI modifications.
But it would be possible via creating multiple InfoPanels and only letting shining one buff icon through onto your original InfoPanel. But this is kind of difficult to understand or to get into. But yes, there is a hacky way of achieving that impression.