mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 22:56:50 +00:00
gui2/ttext_box: Move selection highlight to the right place
This commit is contained in:
parent
b1fe37b90b
commit
5375ad838f
@ -24,17 +24,6 @@
|
|||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
#define _GUI_DRAW_BORDER COLOR
|
#define _GUI_DRAW_BORDER COLOR
|
||||||
[rectangle]
|
|
||||||
x = "(text_x_offset + selection_offset)"
|
|
||||||
y = "(text_y_offset)"
|
|
||||||
w = "(selection_width)"
|
|
||||||
h = "(text_font_height)"
|
|
||||||
|
|
||||||
border_thickness = 0
|
|
||||||
fill_color = "21, 53, 80, 255"
|
|
||||||
|
|
||||||
[/rectangle]
|
|
||||||
|
|
||||||
[rectangle]
|
[rectangle]
|
||||||
x = 0
|
x = 0
|
||||||
y = 0
|
y = 0
|
||||||
@ -48,6 +37,16 @@
|
|||||||
#enddef
|
#enddef
|
||||||
|
|
||||||
#define _GUI_DRAW_TEXT SIZE COLOR
|
#define _GUI_DRAW_TEXT SIZE COLOR
|
||||||
|
[rectangle]
|
||||||
|
x = "(text_x_offset + selection_offset)"
|
||||||
|
y = "(text_y_offset)"
|
||||||
|
w = "(selection_width)"
|
||||||
|
h = "(text_font_height)"
|
||||||
|
|
||||||
|
border_thickness = 0
|
||||||
|
fill_color = "21, 53, 80, 255"
|
||||||
|
[/rectangle]
|
||||||
|
|
||||||
[text]
|
[text]
|
||||||
x = "(text_x_offset)"
|
x = "(text_x_offset)"
|
||||||
y = "(text_y_offset)"
|
y = "(text_y_offset)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user