じ☆ve冰风 发表于 2026-8-1 18:10:24

Mjshi's Menu Scriptlets

I got these from Mjshi and wanted to share them.

This one gets rid of the tint that happens when you open the save menu, main menu, or item/equipment/formation/skill/status menus:

                Code:       
class Scene_MenuBase
def create_background
    @background_sprite = Sprite.new
    @background_sprite.bitmap = SceneManager.background_bitmap
    # you can remove the # sign below and change the numbers. It goes R, G, B, Opacity (0 to 255)
    # @background_sprite.color.set(16, 16, 16, 128)
end
end


This one lets you choose a background for the save menu:

                Code:       
class Scene_Save
def create_background
    @background_sprite = Sprite.new
    @background_sprite.bitmap = Cache.load_bitmap("Graphics/Pictures/", "filename.png")
end
end

class Scene_Load
def create_background
    @background_sprite = Sprite.new
    @background_sprite.bitmap = Cache.load_bitmap("Graphics/Pictures/", "filename.png")
end
end


"Graphics/Pictures/" is the directory. "Filename.png" is the background. You can add a different background for when you save or load. Don't repeat my mistake by not putting the directory and filename in quotes.

And this class script call lets you display an actor's class in the save file:

                Code:       
$game_actors.class.name


Just change the 1 to whatever number your actor is in the actors' list, no need to change "name."


本贴来自国际rpgmaker官方论坛作者:Burgerland处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/mjshis-menu-scriptlets.75514/
页: [1]
查看完整版本: Mjshi's Menu Scriptlets