查看: 2087|回复: 5

[已经解决] 怎么物品说明能容纳很多字且能翻页?

[复制链接]
梦石
0
星屑
50
在线时间
36 小时
注册时间
2012-4-1
回帖
19
发表于 2012-11-16 20:07:01 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

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

×
求解/w\   这货想到线索类道具直接显示一整篇文章而不是使用后显示文章

八宝粥的基叔

梦石
0
星屑
4957
在线时间
5234 小时
注册时间
2009-4-29
回帖
14054

贵宾

发表于 2012-11-16 22:06:10 | 显示全部楼层
物品说明就那么一行,要显示很多文字应该有困难吧。
要不就必须做个新的显示窗口,其实也可以考虑使用详尽帮助脚本。
物品默认的帮助文字是有字数限制的,如果文字很多酒必须考虑用上注释栏。

评分

参与人数 2星屑 +80 收起 理由
咕噜 + 50 我很赞同
八宝粥先生 + 30

查看全部评分

《逝去的回忆3:四叶草之梦》真情发布,欢迎点击图片下载试玩喵。

《逝去的回忆3》的讨论群:
一群:192885514
二群:200460747
回复

使用道具 举报

梦石
0
星屑
50
在线时间
36 小时
注册时间
2012-4-1
回帖
19
 楼主| 发表于 2012-11-17 08:36:51 | 显示全部楼层
protosssonny 发表于 2012-11-16 22:06
物品说明就那么一行,要显示很多文字应该有困难吧。
要不就必须做个新的显示窗口,其实也可以考虑使用详尽 ...

那怎么添加新的窗口0w0?

评分

参与人数 1星屑 +2 收起 理由
怪蜀黍 + 2 这也许比较难表达

查看全部评分

回复

使用道具 举报

伴侣:北岛谜烟

发表于 2012-11-17 12:21:04 | 显示全部楼层
hoyinlin96 发表于 2012-11-17 08:36
那怎么添加新的窗口0w0?

如果是我我会浪费公共事件去弄显示文章什么的

评分

参与人数 2星屑 +6 收起 理由
satgo1546 + 3 我很赞同
Password + 3 我很赞同……

查看全部评分

本人收不到提醒(点评|回复|@人),总之有事情到空间留言一起普通普通
回复

使用道具 举报

梦石
0
星屑
663
在线时间
750 小时
注册时间
2012-11-10
回帖
903
发表于 2012-11-30 20:25:07 | 显示全部楼层
做个事件,把文字做成图片,使用这个物品之后显示图片。

评分

参与人数 1星屑 +50 收起 理由
咕噜 + 50 我很赞同

查看全部评分

有本事就来阻止我啊,主体单元『天照』!
回复

使用道具 举报

梦石
0
星屑
48
在线时间
2459 小时
注册时间
2011-12-18
回帖
1419
发表于 2012-11-30 22:35:51 | 显示全部楼层
结城照美 发表于 2012-11-30 20:25
做个事件,把文字做成图片,使用这个物品之后显示图片。

物品说明是在光标移动到该物品时自动显示的对于该物品的描述,而非使用之后才显示,其实如果字数不是非常多,滚动帮助窗口脚本就可以让说明窗口显示更多的字数了,当然用详尽帮助更好一点。
附送滚动帮助窗口脚本一枚:
[pre lang="ruby" line="1"]#===============================================================================
# Scrolling Window_Help
#-------------------------------------------------------------------------------
# Version: 1.1a
# Author: Cozziekuns (rmrk)
# Last Date Updated: 12/6/2011
#===============================================================================
# Description:
#-------------------------------------------------------------------------------
# This script allows you to auto scroll the text in Window_Help if it becomes
# too long for the window to hold. Originally, RPG Maker would auto resize the
# text to make it thin and aesthetically displeasing to the eye.
#===============================================================================
# Updates
# ------------------------------------------------------------------------------
# o 12/06/2011 - Started Script
# o 09/07/2011 - Updated script with a bugfix.
#===============================================================================
# Instructions
# ------------------------------------------------------------------------------
# Copy and paste this script above ? Main Process but below ? Materials, and
# edit the modules to your liking.
#===============================================================================

module COZZIEKUNS
  module SCROLLING_WINDOW_HELP
    SCROLL_SPEED = 1 # The higher the scroll speed, the faster the text will scroll.
    SCROLL_REFRESH_RATE = 1 # The lower the refresh rate, the faster the text will scroll.
    SCROLL_INITIAL_WAIT = 60 # The amount of time before the text starts to scroll (in milliseconds)
  end
end

#==============================================================================
# ** Window_Help
#------------------------------------------------------------------------------
#  This window shows skill and item explanations along with actor status.
#==============================================================================

class Window_Help < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  alias coz_scrolltxt_wh_14199_initialize initialize
  def initialize(*args)
    coz_scrolltxt_wh_14199_initialize
    @scroll = false
    @frames = 0
  end
  #--------------------------------------------------------------------------
  # * Set Text
  #  text  : character string displayed in window
  #  align : alignment (0..flush left, 1..center, 2..flush right)
  #--------------------------------------------------------------------------
  def set_text(text, align = 0)
    if text != @text or align != @align
      text_width = contents.text_size(text).width + 40 > self.contents.width - 40
      text_width = false if align != 0
      if text_width
        self.contents = Bitmap.new(self.width + contents.text_size(text).width + 8, self.height - 32)
        @scroll = true
      else
        self.contents = Bitmap.new(self.width - 32, self.height - 32)
        @scroll = false
      end
      self.ox = 0
      self.contents.clear
      self.contents.font.color = normal_color
      self.contents.draw_text(4, 0, text_width ? self.contents.text_size(text).width : self.width - 40, WLH, text, align)
      @text = text
      @align = align
      @frames = 0
    end
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    @frames += 1
    f_refresh = COZZIEKUNS::SCROLLING_WINDOW_HELP::SCROLL_REFRESH_RATE
    f_wait = COZZIEKUNS::SCROLLING_WINDOW_HELP::SCROLL_INITIAL_WAIT
    speed = COZZIEKUNS::SCROLLING_WINDOW_HELP::SCROLL_SPEED
    if @scroll == true
      if (Graphics.frame_count % f_refresh == 0) and @frames >= f_wait
        self.ox += speed
      end
      if self.ox >= self.contents.text_size(@text).width
        self.ox = -self.contents.text_size(@text).width / 2
      end
    end
  end
end[/pre]

评分

参与人数 1星屑 +80 收起 理由
咕噜 + 80 认可答案

查看全部评分

这是一个深不见底的坑,这是一个广袤无边的坑,我才刚刚放上了一抔泥土……

《六道·陈国篇》开坑了……↓点我
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部