Skip to content

Instantly share code, notes, and snippets.

@triacontane
Created May 23, 2020 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triacontane/7722d4c295e31a573f333813c807e2e7 to your computer and use it in GitHub Desktop.
Save triacontane/7722d4c295e31a573f333813c807e2e7 to your computer and use it in GitHub Desktop.
ウィンドウのページ送りの矢印を横向きにする
Window_AudioCategory.prototype._refreshArrows = function() {
Window.prototype._refreshArrows.call(this);
var w = this._width;
var h = this._height;
var p = 24;
var q = p / 2;
this._downArrowSprite.rotation = 270 * Math.PI / 180;
this._downArrowSprite.move(w - q, h / 2);
this._upArrowSprite.rotation = 270 * Math.PI / 180;
this._upArrowSprite.move(q, h / 2);
};
@triacontane
Copy link
Author

「Window_AudioCategory」のところに横向きにしたいウィンドウのクラスを指定して使います。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment