Skip to content

Commit

Permalink
Added transparent commands and settings
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeAkinobu committed May 14, 2024
1 parent 1cab0bc commit 805d347
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
7 changes: 7 additions & 0 deletions content.en/docs/85_mdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ Show the operating status on the top left at startup (can be switched after star
show_fps=true
```

(Windows) transparent window. Can set a color to be transparent (default is green (0.0,1.0,0.0))

{{<mdf>}}
transparent_window=true
transparent_color=0.0,1.0,0.0
{{</mdf>}}

## 3-D Models

Maximum number of models to display at once. Minimum is 1, maximum is 1024.
Expand Down
21 changes: 20 additions & 1 deletion content.en/docs/86_messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ STAGE|(floor image file),(back image file)
STAGE|(stage file .xpmd or .pmd)
{{</message>}}

## Foreground & Frame
## Foreground image overlay (Frame)

**WINDOWFRAME**

Expand All @@ -411,6 +411,25 @@ Overlay a frame image (.png) on top of the screen. The image will be stretched t
WINDOWFRAME|filename.png
{{</message>}}

## Transparent Window (Win)

**TRANSPARENT_START**

(Windows only) Make app window transparent. The transparent color can be specified. If the color is not specified, the default value will be used. (default value is the color specified by `transparent_color=` in .mdf, or `0.0,1.0,0.0`)

{{<message>}}
TRANSPARENT_START
TRANSPARENT_START|r,g,b
{{</message>}}

**TRANSPARENT_STOP**

(Windows only) Reset transparency and revert to normal window.

{{<message>}}
TRANSPARENT_STOP
{{</message>}}

## Light Source

**LIGHTCOLOR**
Expand Down
7 changes: 7 additions & 0 deletions content.ja/docs/85_mdf.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ full_screen=false
show_fps=true
{{</mdf>}}

(Windows)指定色を透明にする。透明色を指定(デフォルトはグリーン (0.0,1.0,0.0))

{{<mdf>}}
transparent_window=true
transparent_color=0.0,1.0,0.0
{{</mdf>}}

## 3-Dモデル

いちどに表示するモデルの最大数。最小は1、最大は1024。
Expand Down
21 changes: 20 additions & 1 deletion content.ja/docs/86_messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ STAGE|(floor image file),(back image file)
STAGE|(stage file .xpmd or .pmd)
{{</message>}}

## 前景・フレーム
## イメージ重ね(前景・フレーム

**WINDOWFRAME**

Expand All @@ -409,6 +409,25 @@ STAGE|(stage file .xpmd or .pmd)
WINDOWFRAME|filename.png
{{</message>}}

## 透過画面 (Win)

**TRANSPARENT_START**

(Windowsのみ) メインウィンドウを透過にする。色を指定しない場合はデフォルト値が用いられる。(デフォルト値=.mdf の `transparent_color=` で指定した値、指定しない場合はグリーン(`0.0,1.0,0.0`)。

{{<message>}}
TRANSPARENT_START
TRANSPARENT_START|r,g,b
{{</message>}}

**TRANSPARENT_STOP**

(Windowsのみ) 透過にしたウィンドウを元に戻す。

{{<message>}}
TRANSPARENT_STOP
{{</message>}}

## 光源

**LIGHTCOLOR**
Expand Down

0 comments on commit 805d347

Please sign in to comment.