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

Project1

 找回密码
 注册会员
搜索

怎么样把‘数值输入处理’的窗口改得VX一样

查看数: 1321 | 评论数: 5 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2022-5-12 20:57

正文摘要:

或者有没有脚本?

回复

喵呜喵5 发表于 2022-5-16 01:16:32


和对话框内显示选项原理差不多,把原来的输入框背景改成透明的然后放到对话框上面即可,脚本:

https://script.miaowm5.com/post/4

评分

参与人数 2星屑 +50 +2 收起 理由
alexncf125 + 50 + 1 认可答案
新之梦 + 1 认可答案

查看全部评分

alexncf125 发表于 2022-5-13 10:54:25
那给多加句self.opacity = 0就是了
其他的不外乎也只是依条件调整一下位置

评分

参与人数 1+1 收起 理由
新之梦 + 1 好吧。只能学写脚本。

查看全部评分

alexncf125 发表于 2022-5-12 21:34:56
本帖最后由 alexncf125 于 2022-5-12 21:36 编辑

Window_NumberInput

  def update_placement
    self.width = Graphics.width#@digits_max * 20 + padding * 2
    self.height = fitting_height(4)#(1)
    self.x = 0#(Graphics.width - width) / 2

  def item_rect(index)
    Rect.new(index * 20 + 20, 0, 20, line_height)

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

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

GMT+8, 2024-5-16 16:25

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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