Commit 0ef68098 authored by Mikhail Tergoev's avatar Mikhail Tergoev

Merge branch 'Htylol-update-yad3' into devel

parents a9db46eb ff45a17b
...@@ -3583,27 +3583,24 @@ fi ...@@ -3583,27 +3583,24 @@ fi
case "${PW_VULKAN_USE}" in case "${PW_VULKAN_USE}" in
0) 0)
# WineD3D OpenGL # WineD3D OpenGL
VKD3D_CB=DCB VKD3D_CB="DCB"
PW_VKD3D_FEATURE_LEVEL="disabled"
DISABLE_EDIT_DB_LIST="PW_VKBASALT PW_VKBASALT_USER_CONF PW_USE_RAY_TRACING PW_USE_OBS_VKCAPTURE DISABLE_EDIT_DB_LIST="PW_VKBASALT PW_VKBASALT_USER_CONF PW_USE_RAY_TRACING PW_USE_OBS_VKCAPTURE
" "
;; ;;
1|2) 1|2)
# Stable, Newest # Stable, Newest
VKD3D_CB=CB VKD3D_CB="CB"
;; ;;
3) 3)
# Gallium Nine # Gallium Nine
VKD3D_CB=DCB VKD3D_CB="DCB"
PW_VKD3D_FEATURE_LEVEL="disabled"
DISABLE_EDIT_DB_LIST="PW_MANGOHUD PW_MANGOHUD_USER_CONF PW_VKBASALT PW_VKBASALT_USER_CONF PW_USE_RAY_TRACING PW_WINE_FULLSCREEN_FSR DISABLE_EDIT_DB_LIST="PW_MANGOHUD PW_MANGOHUD_USER_CONF PW_VKBASALT PW_VKBASALT_USER_CONF PW_USE_RAY_TRACING PW_WINE_FULLSCREEN_FSR
PW_USE_SYSTEM_VK_LAYERS PW_USE_OBS_VKCAPTURE PW_USE_SYSTEM_VK_LAYERS PW_USE_OBS_VKCAPTURE
" "
;; ;;
4|5|6) 4|5|6)
# Galliun Zink, Legacy, WineD3D Vulkan # Galliun Zink, Legacy, WineD3D Vulkan
VKD3D_CB=DCB VKD3D_CB="DCB"
PW_VKD3D_FEATURE_LEVEL="disabled"
DISABLE_EDIT_DB_LIST="PW_USE_RAY_TRACING DISABLE_EDIT_DB_LIST="PW_USE_RAY_TRACING
" "
;; ;;
...@@ -3619,7 +3616,7 @@ fi ...@@ -3619,7 +3616,7 @@ fi
int_to_boole_non_pw="$(echo ${int_to_boole//PW_/} | sed 's/_/ /g')" int_to_boole_non_pw="$(echo ${int_to_boole//PW_/} | sed 's/_/ /g')"
if [[ ! "${PW_VULKAN_USE}" == "1" ]] && [[ ! "${PW_VULKAN_USE}" == "2" ]] \ if [[ ! "${PW_VULKAN_USE}" == "1" ]] && [[ ! "${PW_VULKAN_USE}" == "2" ]] \
&& grep -wo "${int_to_boole}" <<<"${DISABLE_EDIT_DB_LIST}" &>/dev/null && grep -wo "${int_to_boole}" <<<"${DISABLE_EDIT_DB_LIST}" &>/dev/null
then ADD_CHK_BOX_EDIT_DB+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:FD${THEME_CHKBOX}%${!int_to_boole}%" then ADD_CHK_BOX_EDIT_DB+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:D${THEME_CHKBOX}%${!int_to_boole}%"
else ADD_CHK_BOX_EDIT_DB+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:${THEME_CHKBOX}%${!int_to_boole}%" else ADD_CHK_BOX_EDIT_DB+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:${THEME_CHKBOX}%${!int_to_boole}%"
fi fi
done done
...@@ -3666,9 +3663,9 @@ A brief instruction: ...@@ -3666,9 +3663,9 @@ A brief instruction:
* library=n,b - use <b>WINDOWS</b> library and then <b>WINE</b> * library=n,b - use <b>WINDOWS</b> library and then <b>WINE</b>
* library=b,n - use <b>WINE</b> library and then <b>WINDOWS</b> * library=b,n - use <b>WINE</b> library and then <b>WINDOWS</b>
* library= - disable the use of this library") :CBE" "$(combobox_fix_empty "${WINEDLLOVERRIDES}" "libglesv2=!d3dx9_36,d3dx9_42=n,b;mfc120=b,n")" \ * library= - disable the use of this library") :CBE" "$(combobox_fix_empty "${WINEDLLOVERRIDES}" "libglesv2=!d3dx9_36,d3dx9_42=n,b;mfc120=b,n")" \
--field=":LBL" "" \ --field=":LBLH" "" \
--field="$(gettext "ADD ARGUMENTS FOR .EXE FILE")!$(gettext "Adding an argument after the <b>.exe</b> file, just like you would add an argument in a shortcut on a <b>WINDOWS </b> system") :CBE" "$(combobox_fix_empty "\\${LAUNCH_PARAMETERS[@]}" "-dx11 -skipintro 1")" \ --field="$(gettext "ADD ARGUMENTS FOR .EXE FILE")!$(gettext "Adding an argument after the <b>.exe</b> file, just like you would add an argument in a shortcut on a <b>WINDOWS </b> system") :CBE" "$(combobox_fix_empty "\\${LAUNCH_PARAMETERS[@]}" "-dx11 -skipintro 1")" \
--field=":LBL" "" \ --field=":LBLH" "" \
--field="$(gettext "Limit the use of processor cores")!$(gettext "Limiting the number of CPU cores is useful for Unity games (It is recommended to set the value equal to 8)") :CB" "$(combobox_fix_disabled "${CPU_LIMIT_VAR}" "${GET_LOGICAL_CORE}")" \ --field="$(gettext "Limit the use of processor cores")!$(gettext "Limiting the number of CPU cores is useful for Unity games (It is recommended to set the value equal to 8)") :CB" "$(combobox_fix_disabled "${CPU_LIMIT_VAR}" "${GET_LOGICAL_CORE}")" \
--field="$(gettext "Choose a graphics card to run the game (in user.conf)")!$(gettext "Select which video card will be used to run the game (used for all running games and programs in PortProton)") :CB" "$(combobox_fix_disabled "${GPU_VAR}" "${GET_GPU_NAMES}")" \ --field="$(gettext "Choose a graphics card to run the game (in user.conf)")!$(gettext "Select which video card will be used to run the game (used for all running games and programs in PortProton)") :CB" "$(combobox_fix_disabled "${GPU_VAR}" "${GET_GPU_NAMES}")" \
--field="$(gettext "Forcibly select the OpenGL version for the game")!$(gettext "You can select the required OpenGL version, some games require a forced Compatibility Profile (COMPAT). (Examples are in the drop-down list)") :CB" "$(combobox_fix_disabled "${PW_MESA_GL_VERSION_OVERRIDE}" "4.6COMPAT!4.6!4.5COMPAT!4.5!3.3COMPAT!3.3")" \ --field="$(gettext "Forcibly select the OpenGL version for the game")!$(gettext "You can select the required OpenGL version, some games require a forced Compatibility Profile (COMPAT). (Examples are in the drop-down list)") :CB" "$(combobox_fix_disabled "${PW_MESA_GL_VERSION_OVERRIDE}" "4.6COMPAT!4.6!4.5COMPAT!4.5!3.3COMPAT!3.3")" \
...@@ -4014,7 +4011,7 @@ fi ...@@ -4014,7 +4011,7 @@ fi
done done
old_IFS=$IFS && IFS="%" old_IFS=$IFS && IFS="%"
"${pw_yad}" --plug=$KEY_MH_GUI --tabnum="1" --form --columns=4 --separator=" " --text-align=center \ "${pw_yad}" --plug=$KEY_MH_GUI --tabnum="1" --form --columns=5 --separator=" " --text-align=center \
--text="$(gettext "MangoHud settings (Keys <b>R_SHIFT + F12</b> disable MangoHud)\n<b>note:</b> To display help for each item, just hover the mouse cursor over the text.")" \ --text="$(gettext "MangoHud settings (Keys <b>R_SHIFT + F12</b> disable MangoHud)\n<b>note:</b> To display help for each item, just hover the mouse cursor over the text.")" \
--gui-type-text=${MANGOHUD_GUI_TYPE_TEXT_UP} --gui-type-layout=${MANGOHUD_GUI_TYPE_LAYOUT_UP} \ --gui-type-text=${MANGOHUD_GUI_TYPE_TEXT_UP} --gui-type-layout=${MANGOHUD_GUI_TYPE_LAYOUT_UP} \
${ADD_GUI_MH} 1> "${PW_TMPFS_PATH}/tmp_yad_mh_set" 2>/dev/null & ${ADD_GUI_MH} 1> "${PW_TMPFS_PATH}/tmp_yad_mh_set" 2>/dev/null &
...@@ -4178,7 +4175,7 @@ fi ...@@ -4178,7 +4175,7 @@ fi
int_to_boole_non_pw="$(echo ${int_to_boole//PW_DGV2/} | sed 's/_/ /g' )" int_to_boole_non_pw="$(echo ${int_to_boole//PW_DGV2/} | sed 's/_/ /g' )"
if [[ ! "${PW_VULKAN_USE}" == "1" ]] && [[ ! "${PW_VULKAN_USE}" == "2" ]] \ if [[ ! "${PW_VULKAN_USE}" == "1" ]] && [[ ! "${PW_VULKAN_USE}" == "2" ]] \
&& grep -wo "${int_to_boole}" <<<"${DISABLE_DGV2_LIST}" &>/dev/null && grep -wo "${int_to_boole}" <<<"${DISABLE_DGV2_LIST}" &>/dev/null
then ADD_CHK_BOX_DGV2+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:FD${THEME_CHKBOX}%${!int_to_boole}%" then ADD_CHK_BOX_DGV2+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:D${THEME_CHKBOX}%${!int_to_boole}%"
else ADD_CHK_BOX_DGV2+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:${THEME_CHKBOX}%${!int_to_boole}%" else ADD_CHK_BOX_DGV2+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:${THEME_CHKBOX}%${!int_to_boole}%"
fi fi
done done
...@@ -4393,7 +4390,7 @@ fi ...@@ -4393,7 +4390,7 @@ fi
fi fi
TMP_HELP_FOR_GUI="${int_to_boole}_INFO" TMP_HELP_FOR_GUI="${int_to_boole}_INFO"
int_to_boole_non_pw="$(echo ${int_to_boole//PW_GS/} | sed 's/_/ /g' )" int_to_boole_non_pw="$(echo ${int_to_boole//PW_GS/} | sed 's/_/ /g' )"
ADD_CHK_BOX_GS+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:FD${THEME_CHKBOX}%${!int_to_boole}%" ADD_CHK_BOX_GS+="--field=${CHKBOX_SPACE}${int_to_boole_non_pw}!${!TMP_HELP_FOR_GUI}:D${THEME_CHKBOX}%${!int_to_boole}%"
done done
fi fi
......
...@@ -39,44 +39,44 @@ export START_GUI_TYPE="--gui-type=start \ ...@@ -39,44 +39,44 @@ export START_GUI_TYPE="--gui-type=start \
" "
export START_GUI_TYPE_BOX=5 export START_GUI_TYPE_BOX=5
export START_GUI_TYPE_LAYOUT_UP=3 export START_GUI_TYPE_LAYOUT_UP=5
export START_GUI_TYPE_LAYOUT_PANED=0 export START_GUI_TYPE_LAYOUT_PANED=0
export START_GUI_TYPE_LAYOUT_NOTEBOOK=0 export START_GUI_TYPE_LAYOUT_NOTEBOOK=0
export START_GUI_TYPE_TEXT=2 export START_GUI_TYPE_TEXT=2
export START_GUI_TYPE_IMAGE=5 export START_GUI_TYPE_IMAGE=2
export MAIN_MENU_GUI_TYPE_LAYOUT=0 export MAIN_MENU_GUI_TYPE_LAYOUT=0
export VKBASALT_GUI_TYPE_LAYOUT_UP=5 export VKBASALT_GUI_TYPE_LAYOUT_UP=10
export VKBASALT_GUI_TYPE_LAYOUT_DOWN=5 export VKBASALT_GUI_TYPE_LAYOUT_DOWN=5
export VKBASALT_GUI_TYPE_TEXT_UP=5 export VKBASALT_GUI_TYPE_TEXT_UP=5
export MANGOHUD_GUI_TYPE_LAYOUT_UP=5 export MANGOHUD_GUI_TYPE_LAYOUT_UP=10
export MANGOHUD_GUI_TYPE_LAYOUT_DOWN=5 export MANGOHUD_GUI_TYPE_LAYOUT_DOWN=10
export MANGOHUD_GUI_TYPE_TEXT_UP=5 export MANGOHUD_GUI_TYPE_TEXT_UP=5
export MANGOHUD_GUI_TYPE_TEXT_DOWN=5 export MANGOHUD_GUI_TYPE_TEXT_DOWN=5
export DGVOODOO2_GUI_TYPE_LAYOUT_UP=5 export DGVOODOO2_GUI_TYPE_LAYOUT_UP=10
export DGVOODOO2_GUI_TYPE_LAYOUT_DOWN=5 export DGVOODOO2_GUI_TYPE_LAYOUT_DOWN=10
export DGVOODOO2_GUI_TYPE_TEXT_UP=5 export DGVOODOO2_GUI_TYPE_TEXT_UP=5
export GAMESCOPE_GUI_TYPE_LAYOUT_UP=5 export GAMESCOPE_GUI_TYPE_LAYOUT_UP=10
export GAMESCOPE_GUI_TYPE_LAYOUT_DOWN=5 export GAMESCOPE_GUI_TYPE_LAYOUT_DOWN=10
export GAMESCOPE_GUI_TYPE_TEXT_UP=5 export GAMESCOPE_GUI_TYPE_TEXT_UP=5
export GAMESCOPE_GUI_TYPE_TEXT_DOWN=5 export GAMESCOPE_GUI_TYPE_TEXT_DOWN=5
export SETTINGS_BASE_GUI_TYPE_LAYOUT=2 export SETTINGS_BASE_GUI_TYPE_LAYOUT=5
export SETTINGS_BASE_GUI_TYPE_TEXT=0 export SETTINGS_BASE_GUI_TYPE_TEXT=2
export WINETRICKS_GUI_TYPE_LAYOUT=7 export WINETRICKS_GUI_TYPE_LAYOUT=5
export WINETRICKS_GUI_TYPE_TEXT=2 export WINETRICKS_GUI_TYPE_TEXT=2
export WINE_DOWNLOAD_GUI_TYPE_LAYOUT=7 export WINE_DOWNLOAD_GUI_TYPE_LAYOUT=5
export WINE_DOWNLOAD_GUI_TYPE_TEXT=2 export WINE_DOWNLOAD_GUI_TYPE_TEXT=2
export SETTINGS_SHORTCUT_GUI_TYPE_BOX=5 export SETTINGS_SHORTCUT_GUI_TYPE_BOX=2
export SETTINGS_SHORTCUT_GUI_TYPE_LAYOUT=5 export SETTINGS_SHORTCUT_GUI_TYPE_LAYOUT=5
export SETTINGS_SHORTCUT_GUI_TYPE_TEXT=5 export SETTINGS_SHORTCUT_GUI_TYPE_TEXT=2
export SETTINGS_SHORTCUT_GUI_TYPE_IMAGE=5 export SETTINGS_SHORTCUT_GUI_TYPE_IMAGE=5
export YAD_INFO_GUI_TYPE_LAYOUT=2 export YAD_INFO_GUI_TYPE_LAYOUT=2
......
...@@ -52,53 +52,53 @@ export START_GUI_TYPE="--gui-type=start \ ...@@ -52,53 +52,53 @@ export START_GUI_TYPE="--gui-type=start \
## отступы ## отступы
# для окна запуска приложения # для окна запуска приложения
export START_GUI_TYPE_BOX=5 # значение для box export START_GUI_TYPE_BOX=5 # значение для box
export START_GUI_TYPE_LAYOUT_UP=3 # значение для layout вверху (для notebook 1 вкладка) export START_GUI_TYPE_LAYOUT_UP=5 # значение для layout вверху (для notebook 1 вкладка)
export START_GUI_TYPE_LAYOUT_PANED=0 # значение для layout внизу для paned export START_GUI_TYPE_LAYOUT_PANED=0 # значение для layout внизу для paned
export START_GUI_TYPE_LAYOUT_NOTEBOOK=0 # значение для layout в notebook 2 вкладка export START_GUI_TYPE_LAYOUT_NOTEBOOK=0 # значение для layout в notebook 2 вкладка
export START_GUI_TYPE_TEXT=2 # значение для text export START_GUI_TYPE_TEXT=2 # значение для text
export START_GUI_TYPE_IMAGE=5 # значение для images export START_GUI_TYPE_IMAGE=2 # значение для images
# для основного меню # для основного меню
export MAIN_MENU_GUI_TYPE_LAYOUT=0 export MAIN_MENU_GUI_TYPE_LAYOUT=0
# для vkbasalt # для vkbasalt
export VKBASALT_GUI_TYPE_LAYOUT_UP=5 export VKBASALT_GUI_TYPE_LAYOUT_UP=20
export VKBASALT_GUI_TYPE_LAYOUT_DOWN=5 export VKBASALT_GUI_TYPE_LAYOUT_DOWN=10
export VKBASALT_GUI_TYPE_TEXT_UP=5 export VKBASALT_GUI_TYPE_TEXT_UP=10
# для mangohud # для mangohud
export MANGOHUD_GUI_TYPE_LAYOUT_UP=5 export MANGOHUD_GUI_TYPE_LAYOUT_UP=20
export MANGOHUD_GUI_TYPE_LAYOUT_DOWN=5 export MANGOHUD_GUI_TYPE_LAYOUT_DOWN=20
export MANGOHUD_GUI_TYPE_TEXT_UP=5 export MANGOHUD_GUI_TYPE_TEXT_UP=10
export MANGOHUD_GUI_TYPE_TEXT_DOWN=5 export MANGOHUD_GUI_TYPE_TEXT_DOWN=10
# для dgvoodoo2 # для dgvoodoo2
export DGVOODOO2_GUI_TYPE_LAYOUT_UP=5 export DGVOODOO2_GUI_TYPE_LAYOUT_UP=20
export DGVOODOO2_GUI_TYPE_LAYOUT_DOWN=5 export DGVOODOO2_GUI_TYPE_LAYOUT_DOWN=20
export DGVOODOO2_GUI_TYPE_TEXT_UP=5 export DGVOODOO2_GUI_TYPE_TEXT_UP=10
# для gamescope # для gamescope
export GAMESCOPE_GUI_TYPE_LAYOUT_UP=5 export GAMESCOPE_GUI_TYPE_LAYOUT_UP=20
export GAMESCOPE_GUI_TYPE_LAYOUT_DOWN=5 export GAMESCOPE_GUI_TYPE_LAYOUT_DOWN=20
export GAMESCOPE_GUI_TYPE_TEXT_UP=5 export GAMESCOPE_GUI_TYPE_TEXT_UP=10
export GAMESCOPE_GUI_TYPE_TEXT_DOWN=5 export GAMESCOPE_GUI_TYPE_TEXT_DOWN=10
# для основных настроек # для основных настроек
export SETTINGS_BASE_GUI_TYPE_LAYOUT=2 export SETTINGS_BASE_GUI_TYPE_LAYOUT=5
export SETTINGS_BASE_GUI_TYPE_TEXT=0 export SETTINGS_BASE_GUI_TYPE_TEXT=2
# для окна winetricks # для окна winetricks
export WINETRICKS_GUI_TYPE_LAYOUT=7 export WINETRICKS_GUI_TYPE_LAYOUT=5
export WINETRICKS_GUI_TYPE_TEXT=2 export WINETRICKS_GUI_TYPE_TEXT=2
# для окна скачивания версий wine # для окна скачивания версий wine
export WINE_DOWNLOAD_GUI_TYPE_LAYOUT=5 export WINE_DOWNLOAD_GUI_TYPE_LAYOUT=5
export WINE_DOWNLOAD_GUI_TYPE_TEXT=5 export WINE_DOWNLOAD_GUI_TYPE_TEXT=2
# для создания ярлыков # для создания ярлыков
export SETTINGS_SHORTCUT_GUI_TYPE_BOX=5 export SETTINGS_SHORTCUT_GUI_TYPE_BOX=2
export SETTINGS_SHORTCUT_GUI_TYPE_LAYOUT=5 export SETTINGS_SHORTCUT_GUI_TYPE_LAYOUT=5
export SETTINGS_SHORTCUT_GUI_TYPE_TEXT=5 export SETTINGS_SHORTCUT_GUI_TYPE_TEXT=2
export SETTINGS_SHORTCUT_GUI_TYPE_IMAGE=5 export SETTINGS_SHORTCUT_GUI_TYPE_IMAGE=5
# для всплывающих окон по типу error, info, question # для всплывающих окон по типу error, info, question
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment