@@ -126,25 +126,20 @@ function draw_window_preferences() {
126126 draw_set_color (c_black)
127127 if (fdark) draw_set_color (c_white)
128128 }
129- if (c) {
130- if (mouse_check_button (mb_left)) {
131- // draw_sprite(spr_tabbuttons_f, 6 + 9 * fdark, x1 + b, y1 + 28 + 21 - 19)
132- // draw_sprite_ext(spr_tabbuttons_f, 7 + 9 * fdark, x1 + b + 2, y1 + 28 + 21 - 19, string_width_dynamic(str[a]) / 2 + 4, 1, 0, -1, 1)
133- // draw_sprite(spr_tabbuttons_f, 8 + 9 * fdark, x1 + b + string_width_dynamic(str[a]) + 10, y1 + 28 + 21 - 19)
134- if (fdark) {
135- if (selected_tab = a) draw_set_color (10724259 )
136- else draw_set_color (11579568 )
137- } else {
138- if (selected_tab = a) draw_set_color (10000536 )
139- else draw_set_color (7631988 )
140- }
141- } else {
142- // draw_sprite(spr_tabbuttons_f, 0 + 3 * c + 9 * fdark, x1 + b, y1 + 28 + 21 - 19)
143- // draw_sprite_ext(spr_tabbuttons_f, 1 + 3 * c + 9 * fdark, x1 + b + 2, y1 + 28 + 21 - 19, string_width_dynamic(str[a]) / 2 + 4, 1, 0, -1, 1)
144- // draw_sprite(spr_tabbuttons_f, 2 + 3 * c + 9 * fdark, x1 + b + string_width_dynamic(str[a]) + 10, y1 + 28 + 21 - 19)
145- if (fdark) draw_set_color (11579568 )
146- else draw_set_color (10000536 )
147- }
129+ if (mouse_check_button (mb_left) && c) {
130+ // draw_sprite(spr_tabbuttons_f, 6 + 9 * fdark, x1 + b, y1 + 28 + 21 - 19)
131+ // draw_sprite_ext(spr_tabbuttons_f, 7 + 9 * fdark, x1 + b + 2, y1 + 28 + 21 - 19, string_width_dynamic(str[a]) / 2 + 4, 1, 0, -1, 1)
132+ // draw_sprite(spr_tabbuttons_f, 8 + 9 * fdark, x1 + b + string_width_dynamic(str[a]) + 10, y1 + 28 + 21 - 19)
133+ draw_set_color (7631988 )
134+ if (fdark) draw_set_color (11579568 )
135+ if (selected_tab = a) draw_set_color (10000536 )
136+ if (selected_tab = a && fdark) draw_set_color (10724259 )
137+ } else if (c) {
138+ // draw_sprite(spr_tabbuttons_f, 0 + 3 * c + 9 * fdark, x1 + b, y1 + 28 + 21 - 19)
139+ // draw_sprite_ext(spr_tabbuttons_f, 1 + 3 * c + 9 * fdark, x1 + b + 2, y1 + 28 + 21 - 19, string_width_dynamic(str[a]) / 2 + 4, 1, 0, -1, 1)
140+ // draw_sprite(spr_tabbuttons_f, 2 + 3 * c + 9 * fdark, x1 + b + string_width_dynamic(str[a]) + 10, y1 + 28 + 21 - 19)
141+ if (selected_tab = a) draw_set_color (7631988 )
142+ if (selected_tab = a && fdark) draw_set_color (11579568 )
148143 }
149144 draw_text_dynamic (x1 + b + 6 , y1 + 30 + 21 - 8 , str[a])
150145 if (mouse_check_button_released (mb_left) && c) nsel = a
0 commit comments