- Joined
- May 16, 2012
- Messages
- 644
Hello Hive,
I have been playing around with UI Frames lately and right now I'm trying to create a description frame for my new system, the problem is that I want the looks of a TEXT frame type with the scrolling functionality of a TEXTAREA frame type. The other way around works as well, a TEXTAREA with its native scrolling functionality but with the looks of a TEXT frame (less line spacing and utilizing all the vertical and horizontal space available). For example, this is the results I'm having right now:
First I tried with just a TEXT frame type and it looks exactly how I want it, but the text that overflow the given area is not displayed and I don't want it to be dynamic (that is why I need the scrolling)
And using the TEXTAREA I get scrolling, but as you can see the line spacing is just huge, and the worst of all, it does not use all the vertical and horizontal space available
I did try finding a solution or a hint in the forums but the closest thing was a post by @Tasyen here but it is using the TEXTAREA frame type as well. There he defines a FDF with some configurations that I tried as well, but the result was the same:
So, is there a way I can configure (in code or in the FDF file) the TEXTAREA frame to look like the TEXT frame or the other way around, add the scrolling functionality to the TEXT frame? @Tasyen you might be the guy to answer this.
I have been playing around with UI Frames lately and right now I'm trying to create a description frame for my new system, the problem is that I want the looks of a TEXT frame type with the scrolling functionality of a TEXTAREA frame type. The other way around works as well, a TEXTAREA with its native scrolling functionality but with the looks of a TEXT frame (less line spacing and utilizing all the vertical and horizontal space available). For example, this is the results I'm having right now:
First I tried with just a TEXT frame type and it looks exactly how I want it, but the text that overflow the given area is not displayed and I don't want it to be dynamic (that is why I need the scrolling)
JASS:
BlzCreateFrameByType("TEXT", "", parent, "", 0)
And using the TEXTAREA I get scrolling, but as you can see the line spacing is just huge, and the worst of all, it does not use all the vertical and horizontal space available
JASS:
BlzCreateFrameByType("TEXTAREA", "", parent, "", 0)
I did try finding a solution or a hint in the forums but the closest thing was a post by @Tasyen here but it is using the TEXTAREA frame type as well. There he defines a FDF with some configurations that I tried as well, but the result was the same:
Code:
Frame "TEXTAREA" "DescriptionArea" INHERITS WITHCHILDREN "BattleNetTextAreaTemplate" {
DecorateFileNames,
FrameFont "MasterFont", 0.020, "",
TextAreaLineHeight 0.005,
}
JASS:
BlzCreateFrame("DescriptionArea", parent, 0, 0)
So, is there a way I can configure (in code or in the FDF file) the TEXTAREA frame to look like the TEXT frame or the other way around, add the scrolling functionality to the TEXT frame? @Tasyen you might be the guy to answer this.