[TOGoS] [0.17.66] Text-box graphical glitch
Posted: Mon Aug 26, 2019 7:44 pm
A text-box with a style who set "horizontally_stretchable" to "on", will have a grey box appear on the right, if there is at least more than one line of text.
The vertical scroll bar will not appear.
Steps to reproduce:
- Have a text-box style with a "horizontally_stretchable" set to "on":
- In game, run this command :
The result should look like this:
This behaviour is even more weird with a big text-box (minimal_width = 600, minimal_height = 600), as the grey box appears over the text-box, and disappear when you try to type text.
I don't know if a text-box is supposed to be working with the "horizontally_stretchable" style, but this appeared a bit too weird to me.
The vertical scroll bar will not appear.
Steps to reproduce:
- Have a text-box style with a "horizontally_stretchable" set to "on":
Code: Select all
data.raw["gui-style"].default["text_box_test"] = {
type = "textbox_style",
parent = "textbox",
horizontally_stretchable = "on"
}
Code: Select all
/c game.player.gui.center.add{type = "text-box", style = "text_box_test", text = "\n"}
This behaviour is even more weird with a big text-box (minimal_width = 600, minimal_height = 600), as the grey box appears over the text-box, and disappear when you try to type text.
I don't know if a text-box is supposed to be working with the "horizontally_stretchable" style, but this appeared a bit too weird to me.