From 6d23f127e9d71c3c84fd17b9a868330adec0605d Mon Sep 17 00:00:00 2001 From: emisjerry Date: Mon, 5 Apr 2021 10:23:07 +0800 Subject: [PATCH] v0.0.2 --- .../ad-abstract.png | Bin ad-bug.png => adminitions/ad-bug.png | Bin ad-danger.png => adminitions/ad-danger.png | Bin ad-example.png => adminitions/ad-example.png | Bin ad-failure.png => adminitions/ad-failure.png | Bin ad-info.png => adminitions/ad-info.png | Bin ad-note.png => adminitions/ad-note.png | Bin .../ad-question.png | Bin ad-quote.png => adminitions/ad-quote.png | Bin ad-success.png => adminitions/ad-success.png | Bin ad-tip.png => adminitions/ad-tip.png | Bin ad-warning.png => adminitions/ad-warning.png | Bin admonitions.ahk | 26 +++++++++--------- 13 files changed, 13 insertions(+), 13 deletions(-) rename ad-abstract.png => adminitions/ad-abstract.png (100%) rename ad-bug.png => adminitions/ad-bug.png (100%) rename ad-danger.png => adminitions/ad-danger.png (100%) rename ad-example.png => adminitions/ad-example.png (100%) rename ad-failure.png => adminitions/ad-failure.png (100%) rename ad-info.png => adminitions/ad-info.png (100%) rename ad-note.png => adminitions/ad-note.png (100%) rename ad-question.png => adminitions/ad-question.png (100%) rename ad-quote.png => adminitions/ad-quote.png (100%) rename ad-success.png => adminitions/ad-success.png (100%) rename ad-tip.png => adminitions/ad-tip.png (100%) rename ad-warning.png => adminitions/ad-warning.png (100%) diff --git a/ad-abstract.png b/adminitions/ad-abstract.png similarity index 100% rename from ad-abstract.png rename to adminitions/ad-abstract.png diff --git a/ad-bug.png b/adminitions/ad-bug.png similarity index 100% rename from ad-bug.png rename to adminitions/ad-bug.png diff --git a/ad-danger.png b/adminitions/ad-danger.png similarity index 100% rename from ad-danger.png rename to adminitions/ad-danger.png diff --git a/ad-example.png b/adminitions/ad-example.png similarity index 100% rename from ad-example.png rename to adminitions/ad-example.png diff --git a/ad-failure.png b/adminitions/ad-failure.png similarity index 100% rename from ad-failure.png rename to adminitions/ad-failure.png diff --git a/ad-info.png b/adminitions/ad-info.png similarity index 100% rename from ad-info.png rename to adminitions/ad-info.png diff --git a/ad-note.png b/adminitions/ad-note.png similarity index 100% rename from ad-note.png rename to adminitions/ad-note.png diff --git a/ad-question.png b/adminitions/ad-question.png similarity index 100% rename from ad-question.png rename to adminitions/ad-question.png diff --git a/ad-quote.png b/adminitions/ad-quote.png similarity index 100% rename from ad-quote.png rename to adminitions/ad-quote.png diff --git a/ad-success.png b/adminitions/ad-success.png similarity index 100% rename from ad-success.png rename to adminitions/ad-success.png diff --git a/ad-tip.png b/adminitions/ad-tip.png similarity index 100% rename from ad-tip.png rename to adminitions/ad-tip.png diff --git a/ad-warning.png b/adminitions/ad-warning.png similarity index 100% rename from ad-warning.png rename to adminitions/ad-warning.png diff --git a/admonitions.ahk b/admonitions.ahk index fd35e9d..6f01a62 100644 --- a/admonitions.ahk +++ b/admonitions.ahk @@ -8,24 +8,24 @@ SetWorkingDir %A_ScriptDir% SetBatchLines -1 global k_ID := 0 - +global imagesFolder := A_WorkingDir . "\admonitions\" !q:: WinGet, k_ID, ID, A Gui Font, s12, Segoe UI Gui Add, Text, x16 y24 w70 h23 +0x200, 類型: -Gui Add, Picture, gAdNote x88 y4 w151 h76, %A_ScriptDir%\ad-note.png -Gui Add, Picture, gAdAbstract x240 y0 w176 h81, %A_ScriptDir%\ad-abstract.png -Gui Add, Picture, gAdInfo x416 y0 w149 h82, %A_ScriptDir%\ad-info.png -Gui Add, Picture, gAdTip x88 y88 w150 h78, %A_ScriptDir%\ad-tip.png -Gui Add, Picture, gAdSuccess x240 y88 w174 h77, %A_ScriptDir%\ad-success.png -Gui Add, Picture, gAdQuestion x419 y86 w151 h75, %A_ScriptDir%\ad-question.png -Gui Add, Picture, gAdFailure x240 y168 w172 h75, %A_ScriptDir%\ad-failure.png -Gui Add, Picture, gAdDanger x421 y169 w144 h73, %A_ScriptDir%\ad-danger.png -Gui Add, Picture, gAdBug x88 y248 w143 h76, %A_ScriptDir%\ad-bug.png -Gui Add, Picture, gAdExample x240 y248 w175 h76, %A_ScriptDir%\ad-example.png -Gui Add, Picture, gAdQuote x419 y248 w147 h74, %A_ScriptDir%\ad-quote.png -Gui Add, Picture, gAdWarning x88 y168 w150 h76, %A_ScriptDir%\ad-warning.png +Gui Add, Picture, gAdNote x88 y4 w151 h76, %imagesFolder%\ad-note.png +Gui Add, Picture, gAdAbstract x240 y0 w176 h81, %imagesFolder%\ad-abstract.png +Gui Add, Picture, gAdInfo x416 y0 w149 h82, %imagesFolder%\ad-info.png +Gui Add, Picture, gAdTip x88 y88 w150 h78, %imagesFolder%\ad-tip.png +Gui Add, Picture, gAdSuccess x240 y88 w174 h77, %imagesFolder%\ad-success.png +Gui Add, Picture, gAdQuestion x419 y86 w151 h75, %imagesFolder%\ad-question.png +Gui Add, Picture, gAdFailure x240 y168 w172 h75, %imagesFolder%\ad-failure.png +Gui Add, Picture, gAdDanger x421 y169 w144 h73, %imagesFolder%\ad-danger.png +Gui Add, Picture, gAdBug x88 y248 w143 h76, %imagesFolder%\ad-bug.png +Gui Add, Picture, gAdExample x240 y248 w175 h76, %imagesFolder%\ad-example.png +Gui Add, Picture, gAdQuote x419 y248 w147 h74, %imagesFolder%\ad-quote.png +Gui Add, Picture, gAdWarning x88 y168 w150 h76, %imagesFolder%\ad-warning.png Gui Show, x782 y143 w594 h341, Admonition 提醒區塊