コミットを比較
| 作成者 | SHA1 | 日付 | |
|---|---|---|---|
|
|
4299846a52
|
||
|
|
d106c11986
|
||
|
|
28ba801163
|
||
|
|
9602d94de4
|
||
|
|
d6abb0405a
|
||
|
|
0f1c533d78
|
||
|
|
8725c9feaf
|
検索条件に一致するファイルはありません
@@ -0,0 +1,456 @@
|
||||
name: リリース
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: リリースするタグ
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
- name: ソースコードのチェックアウト
|
||||
uses: actions/checkout@v4
|
||||
env:
|
||||
GIT_CONFIG_COUNT: "2"
|
||||
GIT_CONFIG_KEY_0: url.https://git.routersys.com/routersys/.insteadOf
|
||||
GIT_CONFIG_VALUE_0: https://github.com/routersys/
|
||||
GIT_CONFIG_KEY_1: url.https://git.routersys.com/manju-summoner/YukkuriMovieMaker.Generator.insteadOf
|
||||
GIT_CONFIG_VALUE_1: https://github.com/manju-summoner/YukkuriMovieMaker.Generator
|
||||
with:
|
||||
ref: ${{ inputs.tag || github.ref_name }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: MSBuild のセットアップ
|
||||
uses: microsoft/setup-msbuild@v2
|
||||
|
||||
- name: タグ名からバージョンを取得
|
||||
id: version
|
||||
shell: pwsh
|
||||
run: |
|
||||
$tag = "${{ inputs.tag || github.ref_name }}"
|
||||
echo "TAG=$tag" >> $env:GITHUB_OUTPUT
|
||||
echo "VERSION=$($tag.TrimStart('v'))" >> $env:GITHUB_OUTPUT
|
||||
|
||||
- name: バージョン記載の照合
|
||||
shell: pwsh
|
||||
run: |
|
||||
$tag = "${{ steps.version.outputs.TAG }}"
|
||||
$version = "${{ steps.version.outputs.VERSION }}"
|
||||
$problems = @()
|
||||
|
||||
$pluginPath = "src/Plugin.cpp"
|
||||
$plugin = Get-Content $pluginPath -Raw
|
||||
if (-not $plugin.Contains("プロキシ編集 version $version")) {
|
||||
$current = if ($plugin -match 'プロキシ編集 version ([^"]*)') { $Matches[1] } else { "記載なし" }
|
||||
$problems += "$pluginPath のバージョンが $current です。$version にしてください。"
|
||||
}
|
||||
|
||||
$iniPath = ".github/package.ini"
|
||||
$ini = Get-Content $iniPath -Raw
|
||||
if (-not $ini.Contains("information=プロキシ編集 version $version")) {
|
||||
$current = if ($ini -match '(?m)^information=プロキシ編集 version (\S+)') { $Matches[1] } else { "記載なし" }
|
||||
$problems += "$iniPath の information が $current です。$version にしてください。"
|
||||
}
|
||||
|
||||
$readmePath = ".github/Plugin_Readme.txt"
|
||||
$readme = Get-Content $readmePath -Raw
|
||||
if (-not $readme.Contains(" プロキシ編集 for AviUtl ExEdit2 $tag")) {
|
||||
$current = if ($readme -match '(?m)^ プロキシ編集 for AviUtl ExEdit2 (\S+)') { $Matches[1] } else { "記載なし" }
|
||||
$problems += "$readmePath の見出しが $current です。$tag にしてください。"
|
||||
}
|
||||
|
||||
$documentPath = "README.md"
|
||||
$document = Get-Content $documentPath -Raw
|
||||
foreach ($name in @("ProxyEdit_$tag.au2pkg.zip", "ProxyEdit_$tag.zip")) {
|
||||
if (-not $document.Contains($name)) {
|
||||
$problems += "$documentPath が $name を案内していません。"
|
||||
}
|
||||
}
|
||||
|
||||
if ($problems.Count -eq 0) {
|
||||
Write-Host "バージョン記載は $tag と一致しています"
|
||||
exit 0
|
||||
}
|
||||
|
||||
foreach ($problem in $problems) {
|
||||
Write-Host "::error::$problem"
|
||||
}
|
||||
Write-Host "::error::リリースの対象は $tag が指すコミットです。タグを付けた後で main へ訂正を積んでも、その訂正はリリースに入りません。タグを削除し、記載を直したコミットを積んでから付け直してください。"
|
||||
exit 1
|
||||
|
||||
- name: プロジェクトのビルド
|
||||
shell: pwsh
|
||||
run: |
|
||||
& msbuild "ProxyEdit.sln" `
|
||||
/t:Rebuild `
|
||||
/p:Configuration=Release `
|
||||
/p:Platform=x64 `
|
||||
/v:minimal `
|
||||
/nologo `
|
||||
/fl "/flp:LogFile=build.log;Verbosity=minimal;Encoding=UTF-8"
|
||||
$code = $LASTEXITCODE
|
||||
|
||||
$log = @()
|
||||
if (Test-Path "build.log") {
|
||||
$log = @(Get-Content "build.log")
|
||||
$log | ForEach-Object { Write-Host $_ }
|
||||
}
|
||||
|
||||
if ($code -ne 0) {
|
||||
Write-Host "::error::ビルドに失敗しました。"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$warnings = @($log | Where-Object { $_ -match '\bwarning\b' })
|
||||
if ($warnings.Count -gt 0) {
|
||||
foreach ($warning in $warnings) {
|
||||
Write-Host "::error::$warning"
|
||||
}
|
||||
Write-Host "::error::本リポジトリは警告0を維持します。警告を解消してから付け直してください。"
|
||||
exit 1
|
||||
}
|
||||
|
||||
- name: パッケージの作成
|
||||
id: package
|
||||
shell: pwsh
|
||||
run: |
|
||||
$tag = "${{ steps.version.outputs.TAG }}"
|
||||
$binary = "build/Release/ProxyEdit.aux2"
|
||||
$stageRoot = "stage/package"
|
||||
$plainRoot = "stage/plain/ProxyEdit"
|
||||
$pkgName = "ProxyEdit_$tag.au2pkg.zip"
|
||||
$zipName = "ProxyEdit_$tag.zip"
|
||||
|
||||
if (-not (Test-Path $binary)) {
|
||||
Write-Error "ビルド結果が見つかりませんでした: $binary"
|
||||
exit 1
|
||||
}
|
||||
|
||||
New-Item -ItemType Directory -Path "$stageRoot/Plugin" -Force | Out-Null
|
||||
Copy-Item $binary "$stageRoot/Plugin/ProxyEdit.aux2"
|
||||
Copy-Item ".github/package.ini" "$stageRoot/package.ini"
|
||||
Copy-Item ".github/Plugin_Readme.txt" "$stageRoot/package.txt"
|
||||
|
||||
New-Item -ItemType Directory -Path "$plainRoot/LICENSE" -Force | Out-Null
|
||||
Copy-Item $binary "$plainRoot/ProxyEdit.aux2"
|
||||
Copy-Item ".github/Plugin_Readme.txt" "$plainRoot/Readme.txt"
|
||||
Copy-Item "LICENSE.txt" "$plainRoot/LICENSE/ProxyEdit.txt"
|
||||
Copy-Item ".github/LICENSE/*.txt" "$plainRoot/LICENSE/"
|
||||
|
||||
$packaged = Get-Content "$stageRoot/package.txt" -Raw
|
||||
if (-not $packaged.Contains(" プロキシ編集 for AviUtl ExEdit2 $tag")) {
|
||||
Write-Error "同梱する package.txt の見出しが $tag と一致しません"
|
||||
exit 1
|
||||
}
|
||||
|
||||
Compress-Archive -Path "$stageRoot/*" -DestinationPath $pkgName -CompressionLevel Optimal
|
||||
Compress-Archive -Path "stage/plain/*" -DestinationPath $zipName -CompressionLevel Optimal
|
||||
echo "PKG_NAME=$pkgName" >> $env:GITHUB_OUTPUT
|
||||
echo "ZIP_NAME=$zipName" >> $env:GITHUB_OUTPUT
|
||||
|
||||
- name: 変更履歴の作成
|
||||
id: changelog
|
||||
shell: pwsh
|
||||
env:
|
||||
GITEA_TOKEN: ${{ github.token }}
|
||||
TAG: ${{ steps.version.outputs.TAG }}
|
||||
REPOSITORY: ${{ github.repository }}
|
||||
SERVER_URL: ${{ github.server_url }}
|
||||
PACKAGE: ${{ steps.package.outputs.PKG_NAME }}
|
||||
ARCHIVE: ${{ steps.package.outputs.ZIP_NAME }}
|
||||
run: |
|
||||
$tag = $env:TAG
|
||||
$repository = $env:REPOSITORY
|
||||
$server = $env:SERVER_URL
|
||||
$code = [char]0x60
|
||||
$fence = [string]::new($code, 3)
|
||||
$unit = [char]0x1f
|
||||
|
||||
$previous = ""
|
||||
$candidates = @(git tag --list "v*" --merged $tag --sort=-creatordate | Where-Object { $_ -ne $tag })
|
||||
if ($candidates.Count -gt 0) {
|
||||
$previous = $candidates[0]
|
||||
}
|
||||
Write-Host "直前のタグ: $previous"
|
||||
|
||||
$range = if ($previous) { "$previous..$tag" } else { $tag }
|
||||
$log = @(git log "--format=%H%x1f%s%x1f%an%x1f%ad" --date=short $range)
|
||||
|
||||
$commits = @()
|
||||
foreach ($line in $log) {
|
||||
if (-not $line) { continue }
|
||||
$fields = $line -split $unit
|
||||
if ($fields.Count -lt 4) { continue }
|
||||
$commits += [pscustomobject]@{
|
||||
Sha = $fields[0]
|
||||
Subject = $fields[1]
|
||||
Name = $fields[2]
|
||||
Date = $fields[3]
|
||||
Login = ""
|
||||
Avatar = ""
|
||||
}
|
||||
}
|
||||
Write-Host "コミット数: $($commits.Count)"
|
||||
|
||||
$pending = [System.Collections.Generic.HashSet[string]]::new()
|
||||
foreach ($commit in $commits) {
|
||||
[void]$pending.Add($commit.Sha)
|
||||
}
|
||||
|
||||
$headers = @{ Authorization = "token $env:GITEA_TOKEN" }
|
||||
|
||||
$accounts = @{}
|
||||
$page = 1
|
||||
while ($pending.Count -gt 0 -and $page -le 20) {
|
||||
$rows = @()
|
||||
try {
|
||||
$rows = @(Invoke-RestMethod -Uri "$server/api/v1/repos/$repository/commits?sha=$tag&limit=50&page=$page&stat=false&verification=false&files=false" -Headers $headers)
|
||||
}
|
||||
catch {
|
||||
Write-Host "コミットの作者を取得できませんでした: $($_.Exception.Message)"
|
||||
break
|
||||
}
|
||||
if ($rows.Count -eq 0) { break }
|
||||
|
||||
foreach ($row in $rows) {
|
||||
if ($pending.Remove($row.sha)) {
|
||||
$login = ""
|
||||
$avatar = ""
|
||||
if ($row.author) {
|
||||
$login = [string]$row.author.login
|
||||
$avatar = [string]$row.author.avatar_url
|
||||
}
|
||||
$accounts[$row.sha] = @{ Login = $login; Avatar = $avatar }
|
||||
}
|
||||
}
|
||||
|
||||
if ($rows.Count -lt 50) { break }
|
||||
$page++
|
||||
}
|
||||
|
||||
foreach ($commit in $commits) {
|
||||
if ($accounts.ContainsKey($commit.Sha)) {
|
||||
$commit.Login = $accounts[$commit.Sha].Login
|
||||
$commit.Avatar = $accounts[$commit.Sha].Avatar
|
||||
}
|
||||
}
|
||||
|
||||
$emptyTree = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"
|
||||
$base = if ($previous) { $previous } else { $emptyTree }
|
||||
$shortstat = (@(git diff --shortstat $base $tag) -join " ")
|
||||
$changedFiles = 0
|
||||
$insertions = 0
|
||||
$deletions = 0
|
||||
if ($shortstat -match "(\d+) file") { $changedFiles = [int]$Matches[1] }
|
||||
if ($shortstat -match "(\d+) insertion") { $insertions = [int]$Matches[1] }
|
||||
if ($shortstat -match "(\d+) deletion") { $deletions = [int]$Matches[1] }
|
||||
$diffStat = @(git diff --stat $base $tag)
|
||||
$tagDate = (git log -1 "--format=%ad" --date=short $tag)
|
||||
|
||||
$contributors = @($commits |
|
||||
Group-Object -Property { if ($_.Login) { $_.Login } else { $_.Name } } |
|
||||
Sort-Object -Property Count -Descending)
|
||||
|
||||
function Get-Icon($avatar, $login, $size) {
|
||||
if (-not $avatar) { return "" }
|
||||
$sized = if ($avatar.Contains("?")) { "$avatar&s=$($size * 2)" } else { "$avatar" + "?s=$($size * 2)" }
|
||||
return "<img src=""$sized"" width=""$size"" height=""$size"" alt=""$login""> "
|
||||
}
|
||||
|
||||
$body = [System.Collections.Generic.List[string]]::new()
|
||||
$body.Add("## 概要")
|
||||
$body.Add("")
|
||||
$body.Add("| 項目 | 内容 |")
|
||||
$body.Add("|---|---|")
|
||||
$body.Add("| タグ | [$tag]($server/$repository/tree/$tag) |")
|
||||
$body.Add("| 公開日 | $tagDate |")
|
||||
if ($previous) {
|
||||
$body.Add("| 直前のリリース | [$previous]($server/$repository/releases/tag/$previous) |")
|
||||
}
|
||||
$body.Add("| コミット数 | $($commits.Count) |")
|
||||
$body.Add("| 貢献者 | $($contributors.Count) 名 |")
|
||||
$body.Add("| 変更されたファイル | $changedFiles |")
|
||||
$body.Add("| 追加された行 | $insertions |")
|
||||
$body.Add("| 削除された行 | $deletions |")
|
||||
|
||||
$body.Add("")
|
||||
$body.Add("## ダウンロード")
|
||||
$body.Add("")
|
||||
$body.Add("| ファイル | 用途 | サイズ |")
|
||||
$body.Add("|---|---|---|")
|
||||
foreach ($entry in @(
|
||||
@{ Path = $env:PACKAGE; Use = "プレビュー画面へドロップしてインストールします" },
|
||||
@{ Path = $env:ARCHIVE; Use = "手動で配置する場合に使います" })) {
|
||||
$file = Get-Item $entry.Path
|
||||
$size = [math]::Round($file.Length / 1MB, 2)
|
||||
$body.Add("| $($file.Name) | $($entry.Use) | $size MB |")
|
||||
}
|
||||
|
||||
$body.Add("")
|
||||
$body.Add("## 貢献者")
|
||||
$body.Add("")
|
||||
$body.Add("| 貢献者 | コミット数 |")
|
||||
$body.Add("|---|---|")
|
||||
foreach ($contributor in $contributors) {
|
||||
$first = $contributor.Group[0]
|
||||
if ($first.Login) {
|
||||
$name = (Get-Icon $first.Avatar $first.Login 40) + "[@$($first.Login)]($server/$($first.Login))"
|
||||
}
|
||||
else {
|
||||
$name = $first.Name
|
||||
}
|
||||
$body.Add("| $name | $($contributor.Count) |")
|
||||
}
|
||||
|
||||
$body.Add("")
|
||||
$body.Add("## 変更履歴")
|
||||
$body.Add("")
|
||||
$body.Add("| コミット | 内容 | 貢献者 | 日付 |")
|
||||
$body.Add("|---|---|---|---|")
|
||||
$maximumCommits = 300
|
||||
$listed = 0
|
||||
foreach ($commit in $commits) {
|
||||
if ($listed -ge $maximumCommits) { break }
|
||||
$short = $commit.Sha.Substring(0, 7)
|
||||
$subject = $commit.Subject -replace '\|', '\|'
|
||||
if ($commit.Login) {
|
||||
$author = (Get-Icon $commit.Avatar $commit.Login 20) + "[@$($commit.Login)]($server/$($commit.Login))"
|
||||
}
|
||||
else {
|
||||
$author = $commit.Name
|
||||
}
|
||||
$body.Add("| [$code$short$code]($server/$repository/commit/$($commit.Sha)) | $subject | $author | $($commit.Date) |")
|
||||
$listed++
|
||||
}
|
||||
if ($commits.Count -gt $maximumCommits) {
|
||||
$body.Add("")
|
||||
$body.Add("残り $($commits.Count - $maximumCommits) 件のコミットは省略しました。")
|
||||
}
|
||||
|
||||
if ($diffStat.Count -gt 0) {
|
||||
$body.Add("")
|
||||
$body.Add("## 変更されたファイル")
|
||||
$body.Add("")
|
||||
$body.Add("<details>")
|
||||
$body.Add("<summary>差分の統計</summary>")
|
||||
$body.Add("")
|
||||
$body.Add($fence)
|
||||
$maximumStatLines = 200
|
||||
$shown = 0
|
||||
foreach ($line in $diffStat) {
|
||||
if ($shown -ge $maximumStatLines) { break }
|
||||
$body.Add($line)
|
||||
$shown++
|
||||
}
|
||||
if ($diffStat.Count -gt $maximumStatLines) {
|
||||
$body.Add("... 残り $($diffStat.Count - $maximumStatLines) 行は省略しました。")
|
||||
}
|
||||
$body.Add($fence)
|
||||
$body.Add("")
|
||||
$body.Add("</details>")
|
||||
}
|
||||
|
||||
if ($previous) {
|
||||
$body.Add("")
|
||||
$body.Add("## 全ての変更")
|
||||
$body.Add("")
|
||||
$body.Add("$server/$repository/compare/$previous...$tag")
|
||||
}
|
||||
|
||||
$path = "release-body.md"
|
||||
Set-Content -Path $path -Value ($body -join "`n") -Encoding utf8NoBOM
|
||||
if (-not (Test-Path $path)) {
|
||||
throw "変更履歴を作成できませんでした。"
|
||||
}
|
||||
Write-Host "変更履歴の行数: $($body.Count)"
|
||||
$global:LASTEXITCODE = 0
|
||||
|
||||
- name: Gitea リリースの作成
|
||||
shell: pwsh
|
||||
env:
|
||||
GITEA_TOKEN: ${{ github.token }}
|
||||
REPOSITORY: ${{ github.repository }}
|
||||
SERVER_URL: ${{ github.server_url }}
|
||||
EVENT_NAME: ${{ github.event_name }}
|
||||
WORKFLOW_NAME: ${{ github.workflow }}
|
||||
JOB_NAME: ${{ github.job }}
|
||||
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}
|
||||
RELEASE_TAG: ${{ inputs.tag || github.ref_name }}
|
||||
RELEASE_NAME: ${{ steps.version.outputs.TAG }}
|
||||
RELEASE_BODY: ''
|
||||
RELEASE_BODY_PATH: release-body.md
|
||||
RELEASE_DRAFT: false
|
||||
RELEASE_PRERELEASE: false
|
||||
RELEASE_FILES: |
|
||||
${{ steps.package.outputs.PKG_NAME }}
|
||||
${{ steps.package.outputs.ZIP_NAME }}
|
||||
run: |
|
||||
$headers = @{ Authorization = "token $env:GITEA_TOKEN" }
|
||||
$api = "$env:SERVER_URL/api/v1/repos/$env:REPOSITORY"
|
||||
$tag = $env:RELEASE_TAG
|
||||
|
||||
$body = $env:RELEASE_BODY
|
||||
if ($env:RELEASE_BODY_PATH -and (Test-Path $env:RELEASE_BODY_PATH)) {
|
||||
$body = Get-Content $env:RELEASE_BODY_PATH -Raw -Encoding utf8
|
||||
}
|
||||
|
||||
$files = @()
|
||||
foreach ($pattern in ($env:RELEASE_FILES -split "[`r`n,]+" | Where-Object { $_.Trim() })) {
|
||||
$found = @(Get-ChildItem -Path $pattern.Trim() -File -ErrorAction SilentlyContinue)
|
||||
if ($found.Count -eq 0) { throw "リリースに付けるファイルが見つかりません: $pattern" }
|
||||
$files += $found
|
||||
}
|
||||
|
||||
$payload = @{
|
||||
tag_name = $tag
|
||||
name = $env:RELEASE_NAME
|
||||
body = [string]$body
|
||||
draft = ($env:RELEASE_DRAFT -eq 'true')
|
||||
prerelease = ($env:RELEASE_PRERELEASE -eq 'true')
|
||||
} | ConvertTo-Json
|
||||
$bytes = [System.Text.Encoding]::UTF8.GetBytes($payload)
|
||||
|
||||
$existing = $null
|
||||
try { $existing = Invoke-RestMethod -Uri "$api/releases/tags/$([System.Uri]::EscapeDataString($tag))" -Headers $headers } catch { }
|
||||
if ($existing) {
|
||||
$release = Invoke-RestMethod -Method Patch -Uri "$api/releases/$($existing.id)" -Headers $headers -ContentType "application/json; charset=utf-8" -Body $bytes
|
||||
foreach ($asset in @($existing.assets)) {
|
||||
Invoke-RestMethod -Method Delete -Uri "$api/releases/$($existing.id)/assets/$($asset.id)" -Headers $headers | Out-Null
|
||||
}
|
||||
} else {
|
||||
$release = Invoke-RestMethod -Method Post -Uri "$api/releases" -Headers $headers -ContentType "application/json; charset=utf-8" -Body $bytes
|
||||
}
|
||||
foreach ($file in $files) {
|
||||
$name = [System.Uri]::EscapeDataString($file.Name)
|
||||
Invoke-RestMethod -Method Post -Uri "$api/releases/$($release.id)/assets?name=$name" -Headers $headers -Form @{ attachment = Get-Item $file.FullName } | Out-Null
|
||||
Write-Host "添付しました: $($file.Name)"
|
||||
}
|
||||
Write-Host "リリースを作成しました: $($release.html_url)"
|
||||
|
||||
if ($env:EVENT_NAME -eq 'workflow_dispatch') {
|
||||
try {
|
||||
$sha = (git rev-parse HEAD).Trim()
|
||||
$status = @{
|
||||
state = 'success'
|
||||
context = "$env:WORKFLOW_NAME / $env:JOB_NAME (workflow_dispatch)"
|
||||
description = "Actions がタグ $tag のコミットから作成しました"
|
||||
target_url = $env:RUN_URL
|
||||
} | ConvertTo-Json
|
||||
Invoke-RestMethod -Method Post -Uri "$api/statuses/$sha" -Headers $headers -ContentType "application/json; charset=utf-8" -Body ([System.Text.Encoding]::UTF8.GetBytes($status)) | Out-Null
|
||||
Write-Host "タグのコミット $sha に成功の状態を付けました"
|
||||
}
|
||||
catch {
|
||||
Write-Warning "タグのコミットに状態を付けられませんでした: $($_.Exception.Message)"
|
||||
}
|
||||
}
|
||||
|
||||
+24
@@ -203,6 +203,30 @@ struct FILTER_ITEM_SEPARATOR {
|
||||
LPCWSTR name; // 設定名
|
||||
};
|
||||
|
||||
// 非表示条件項目構造体
|
||||
// 非表示条件を満たした項目を非表示にすることが出来ます
|
||||
// 例:FILTER_ITEM_HIDE_RULE hide = { L"ファイル", L"チェック", FILTER_ITEM_HIDE_RULE::OPERATOR::EQUAL, 0 };
|
||||
struct FILTER_ITEM_HIDE_RULE {
|
||||
enum class OPERATOR {
|
||||
EQUAL = 0, // == (等しい)
|
||||
NOT_EQUAL = 1, // != (等しくない)
|
||||
GREATER = 2, // > (より大きい)
|
||||
LESS = 3, // < (より小さい)
|
||||
};
|
||||
FILTER_ITEM_HIDE_RULE(LPCWSTR name, LPCWSTR condition_name, OPERATOR condition_operator = OPERATOR::EQUAL, int condition_value = 0)
|
||||
: name(name), condition_name(condition_name), condition_operator(condition_operator), condition_value(condition_value) {}
|
||||
LPCWSTR type = L"hiderule"; // 設定の種別
|
||||
LPCWSTR name; // 非表示にする設定名 ※設定値を持つ項目のみ
|
||||
LPCWSTR condition_name; // 非表示の条件の設定名
|
||||
// チェックボックス項目,リスト選択項目,ファイル選択項目,フォルダ選択項目
|
||||
// ※セクション毎のチェックボックスはセクション毎が有効の場合は2を返却(0/1/2)
|
||||
// ※ファイル,フォルダ選択項目は選択されているかを返却(0/1)
|
||||
// ※nullptrを指定した場合は常に非表示
|
||||
// ※"filter"を指定した場合はフィルタオブジェクトかを返却(0/1)
|
||||
const OPERATOR condition_operator; // 非表示の条件の比較種別
|
||||
const int condition_value; // 非表示の条件の比較値
|
||||
};
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// 頂点データ構造体(描画色)
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする