设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
返回列表
+ 发新帖
查看: 532|回复: 0

[转载发布] 蛐蛐儿的简约(渣)菜单计划(三)

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    3 天前
  • 签到天数: 221 天

    连续签到: 1 天

    [LV.7]常住居民III

    9100

    主题

    890

    回帖

    7万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    64872
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    74892

    灌水之王

    发表于 2024-4-19 20:02:07 | 显示全部楼层 |阅读模式
    计划之一:http://rpg.blue/thread-202640-1-1.html
    计划之二:http://rpg.blue/thread-202724-1-1.html
    这次是装备界面- -,各种赶工。


    各种外援脚本及立绘照旧。


    截图:



    正文:
    part1:part2:[code]class Scene_Equip  def update_change    Input.update    @help_text.bitmap.clear    if @data[@left_index][@right_index] != nil && @data[@left_index][@right_index]!= -1      @help_text.bitmap.draw_text(0,0,510,20,@data[@left_index][@right_index].description,1)    end    if Input.trigger?(Input::B)      @right = false      @right_index = 0      @equip_choose.visible = false      @equip_choose.blink_off      @page = 0      @new_equip[@left_index].y = 0      for i in 0..6        draw_par(i)      end      return     end    right_index(true) if Input.trigger?(Input::DOWN)    right_index if Input.trigger?(Input::UP)    if Input.trigger?(Input::C)      $game_system.se_play($data_system.equip_se)      item = @data[@left_index][@right_index]      @actor.equip(@left_index, (item == nil || item == -1) ? 0 : item.id)      @new_equip[@left_index].bitmap.clear      @data[@left_index] = []      @new_equip[@left_index].bitmap.draw_text(40,30,184,12,"[脱下装备]")      @data[@left_index].push(-1)      y = 44      if @left_index == 0        weapon_set = $data_classes[@actor.class_id].weapon_set        for n in 1...$data_weapons.size          if $game_party.weapon_number(n) > 0 and weapon_set.include?(n)            @new_equip[@left_index].bitmap.blt(10,y-6,            RPG::Cache.icon($data_weapons[n].icon_name),Rect.new(0,0,24,20))            @new_equip[@left_index].bitmap.draw_text(40,y,184,12,$data_weapons[n].name)            @new_equip[@left_index].bitmap.draw_text(40,y,140,12,$game_party.weapon_number(n).to_s,2)            @data[@left_index].push($data_weapons[n])            y += 14          end        end      end      if @left_index != 0        armor_set = $data_classes[@actor.class_id].armor_set        for n in 1...$data_armors.size          if $game_party.armor_number(n) > 0 and armor_set.include?(n)            if $data_armors[n].kind == @left_index-1              @new_equip[@left_index].bitmap.blt(10,y-6,              RPG::Cache.icon($data_armors[n].icon_name),Rect.new(0,0,24,20))              @new_equip[@left_index].bitmap.draw_text(40,y,184,12,$data_armors[n].name)              @new_equip[@left_index].bitmap.draw_text(40,y,140,12,$game_party.armor_number(n).to_s,2)              @data[@left_index].push($data_armors[n])              y += 14            end          end        end      end      @equip[@left_index].bitmap.clear      @equip[@left_index].bitmap.font.size = 12      @right_index = 0      @page = 0      @new_equip[@left_index].y = 0      @equip_choose.y = @right_index * 14 + 28      @help_text.bitmap.clear      if @data[@left_index][@right_index] != nil && @data[@left_index][@right_index]!= -1        @help_text.bitmap.draw_text(0,0,510,20,@data[@left_index][@right_index].description,1)      end      for i in 0..6        draw_par(i)      end      if @left_index == 0        @equip[@left_index].bitmap.blur_draw_text(0,40,40,24,$data_system.words.weapon,1,        Color.new(0,0,0,10),2)        return if $data_weapons[@actor.weapon_id].nil?        @equip[@left_index].bitmap.blt(8,12,        RPG::Cache.icon($data_weapons[@actor.weapon_id].icon_name),Rect.new(0,0,24,24))        a = $data_weapons[@actor.weapon_id].name.scan(/./)        a.each_index {|b| @equip[@left_index].bitmap.blur_draw_text(0,70+16*b,40,16,        a,1,Color.new(0,0,0,10),2)}      else        eval "@equip[@left_index].bitmap.blur_draw_text(0,        40,40,24,$data_system.words.armor#{@left_index},1,Color.new(0,0,0,10),2)"        eval "return if $data_armors[@actor.armor#{@left_index}_id].nil?"        eval "b = RPG::Cache.icon($data_armors[@actor.armor#{@left_index}_id].icon_name)"        eval "@equip[@left_index].bitmap.blt(8,12,b,Rect.new(0,0,24,24))"        eval "a = $data_armors[@actor.armor#{@left_index}_id].name.scan(/./)"        a.each_index {|b| @equip[@left_index].bitmap.blur_draw_text(0,70+16*b,40,16,        a,1,Color.new(0,0,0,10),2)}      end      return    end  end  def right_index(plus=false)    if plus      return if @right_index >= @data[@left_index].size - 1      @right_index += 1      page(true) if @right_index >= @page + 10      @equip_choose.y = @right_index * 14 - @page * 14 + 28    else      return if @right_index

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x

    帖子地址: 

    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-10-20 04:06 , Processed in 0.106638 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表