Skip to content

Commit 71c112a

Browse files
committed
touch: simplify touch move indicator toggle script
1 parent 815def4 commit 71c112a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

3rdparty/cs16client-extras/touch/customcmd.cfg

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ if $ui_language = russian // Russian
1919
:set _menu_txt_exit "Выход"
2020

2121
// Cvars
22-
if $_menu_opened <= 0
23-
:set touch_indicator_value "$touch_move_indicator"
24-
set _menu_opened 1
25-
if "$touch_move_indicator > 0"
26-
:set touch_move_indicator 0
22+
if "$touch_move_indicator > 0";:set touch_indicator_value "$touch_move_indicator";:set touch_move_indicator 0
2723
set _menu_stroke 1 156 77 20 200 ;touch_set_stroke $_menu_stroke
2824
set _menu_sel_bg "156 77 20 180"
2925
set _menu_bg "0 0 0 180"
@@ -34,7 +30,7 @@ set _menu_click_cnd media/launch_select1.wav
3430
set _menu_click_cnd_back media/launch_upmenu1.wav
3531
set _menu_vibrate_value 30
3632
// Alias commands
37-
alias _erase_frame "touch_removebutton _menu_*; touch_setclientonly 0; set touch_move_indicator $touch_indicator_value; set _menu_opened 0; unalias _erase_frame"
33+
alias _erase_frame "touch_removebutton _menu_*; touch_setclientonly 0; set touch_move_indicator $touch_indicator_value; unalias _erase_frame"
3834
alias _reset_menu "touch_removebutton _menu_*; touch_setclientonly 0"
3935
alias _click_cnd "play $_menu_click_cnd ; vibrate $_menu_vibrate_value"
4036
alias _click_cnd_back "play $_menu_click_cnd_back ; vibrate $_menu_vibrate_value"

3rdparty/cs16client-extras/userconfig.d/touch_defalias.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,3 @@ alias scoreboard "exec touch/scoreboard.cfg"
3434
// SET CVARS FOR MENU
3535
set enable_controls "0"
3636
set bot_quota_value "9"
37-
set _menu_opened "0"

0 commit comments

Comments
 (0)