-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #370 from ffbeso/WindowAlpha
ありがとうございます。 Added WindowAlpha add-on
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<TablacusExplorer> | ||
<General> | ||
<Version>1.00</Version> | ||
<MinVersion>2022.2.5</MinVersion> | ||
<pubDate>Tue Feb 13 2024 00:00:00 GMT</pubDate> | ||
<Options>Common:0:0</Options> | ||
<Level>2</Level> | ||
<Creator>Sho Nitta</Creator> | ||
<URL>https://tablacus.github.io/TablacusExplorerAddons/</URL> | ||
<License>MIT License</License> | ||
</General> | ||
<en> | ||
<Name>Window Alpha</Name> | ||
<Description>Window Alpha Setting</Description> | ||
</en> | ||
<ja> | ||
<Name>ウィンドウ透過</Name> | ||
</ja> | ||
</TablacusExplorer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<br> | ||
<table style="width: 100%"> | ||
<tr> | ||
<td style="white-space: nowrap;"><label>@mspaint.exe,-23202[Transparent]</label></td> | ||
<td style="text-align: center; width: 100%" id="rangeValue"></td> | ||
<td style="white-space: nowrap"><label>@mspaint.exe,-23201[Opaque]</label></td> | ||
</tr> | ||
</table> | ||
<input type="range" name="Alpha" min="1" max="255" style="width: 100%" oninput="document.getElementById('rangeValue').textContent = this.value;"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const Addon_Id = "windowalpha"; | ||
const item = GetAddonElement(Addon_Id); | ||
|
||
if (window.Addon == 1) { | ||
AddEvent("Arrange", async function (Ctrl, rc) { | ||
SetWindowAlpha(ui_.hwnd, item.getAttribute("Alpha") || 230); | ||
ui_.Show = 2; | ||
}); | ||
} else { | ||
SetTabContents(0, "", await ReadTextFile("addons\\" + Addon_Id + "\\options.html")); | ||
document.getElementById('rangeValue').textContent = item.getAttribute("Alpha"); | ||
} |