设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 3909|回复: 17
打印 上一主题 下一主题

[已经解决] 如何改变标题界面选项光标?

[复制链接]

Lv4.逐梦者

梦石
0
星屑
19299
在线时间
3075 小时
注册时间
2013-1-11
帖子
1288
1
发表于 2018-9-13 08:12:27 | 显示全部楼层
这个只要思考一下就也只需要两点,一个是把更新光标那里禁用掉,一个是绘制选项哪里改下颜色。
插入到 Window_TitleCommand 里面
  1.   def draw_item(index)
  2.     change_color(@index == index ? Color.new(0,0,0) : normal_color, command_enabled?(index))
  3.     draw_text(item_rect_for_text(index), command_name(index), alignment)
  4.   end
  5.   def update_cursor; refresh; end
复制代码

评分

参与人数 2星屑 +10 +1 收起 理由
VIPArcher + 10 认可答案
Lemax + 1 十分感谢!

查看全部评分

回复 支持 2 反对 0

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-23 04:41

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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