Update zwidget

* Moved subtree scripts to tools, updated bash script for granularity

* Squashed 'libraries/ZWidget/' changes from 96501b6ef1..02da8cdc0e

02da8cdc0e Added ListView::GetPreferredWidth, ListView::GetPreferredHeight, ListView::GetMinHeight
04bf153d9d Added event subscriber system
1ce55e5da2 Added Dropdown Known issues: does not hide when parent widget's visibility changes

git-subtree-dir: libraries/ZWidget
git-subtree-split: 02da8cdc0e0ca14443245e0aa5a25b3f8e84928b
This commit is contained in:
Marcus Minhorst 2025-08-09 17:28:36 -07:00 committed by GitHub
commit 2ef2243f7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 514 additions and 12 deletions

View file

@ -0,0 +1,3 @@
@echo off
git subtree pull --prefix=libraries/ZWidget https://github.com/dpjudas/ZWidget master --squash
git subtree pull --prefix=libraries/ZMusic https://github.com/ZDoom/ZMusic master --squash

16
tools/update-subtrees.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
pushd "$(git rev-parse --show-toplevel)" >/dev/null
pull() {
if [[ "${1}" == "${2}" || "${1}" == "all" ]]
then
echo "fetching ${2}"
git subtree pull --prefix="${3}" "https://github.com/${4}" "${5}" --squash || exit
else
echo "${2} not specified, skipping"
fi
}
pull "$1" 'zwidget' 'libraries/ZWidget' 'dpjudas/ZWidget' 'master'
pull "$1" 'zmusic' 'libraries/ZMusic' 'ZDoom/ZMusic' 'master'