gui2/ttext_box: Move selection highlight to the right place
This commit is contained in:
parent
b1fe37b90b
commit
5375ad838f
1 changed files with 10 additions and 11 deletions
|
@ -24,17 +24,6 @@
|
|||
#enddef
|
||||
|
||||
#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]
|
||||
x = 0
|
||||
y = 0
|
||||
|
@ -48,6 +37,16 @@
|
|||
#enddef
|
||||
|
||||
#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]
|
||||
x = "(text_x_offset)"
|
||||
y = "(text_y_offset)"
|
||||
|
|
Loading…
Add table
Reference in a new issue