Control Character Color Expansion
Control Character Color Expansion 2014/10/12Creator name: VIPArcher
Introduction
This script expands on control character for color over 31.
Instructions:
On line 16, you can add more colors by following color code format (R, G, B [,A ]),
For text event, type \c to change text color.
How to Use
Paste this script above Main.
Script link
https://raw.githubusercontent.com/ovate/VIPArcher-rggs3/main/VA_ColorExpansion
Spoiler Code:
#==============================================================================
# ■ Control Character Color Expansion
# By :VIPArcher
#-- The script comes from http://rm.66rpg.com Please keep the information above.
#Feel free to use/ reprint
#==============================================================================
$VIPArcherScript ||= {};$VIPArcherScript[:textcolor] = 20141012
#--------------------------------------------------------------------------------
module VIPArcher
Text_Color = { #<-This line should not be deleted
#color number#color code(R, G, B [,A ]),
32 => Color.new(0, 0, 255,255),
33 => Color.new(0, 255, 0 ),
34 => Color.new(255, 0, 0 ),
35 => Color.new(233, 233, 233 )
#to continue, add here
};Text_Color.default = Color.new #<-This line should not be deleted
end
#--------------------------------------------------------------------------------
class Window_Base < Window
#--------------------------------------------------------------------------
# ● Get text color
# n : Text color number(0..31)
#--------------------------------------------------------------------------
alias vip_ex_text_color text_color
def text_color(n)
return VIPArcher::Text_Color if n > 31
vip_ex_text_color(n)
end
end
Credit and Thanks: VIPArcher
Terms of Use- Free for commercial and non-commercial use.
License - MIT License: http://opensource.org/licenses/mit-license.php
本贴来自国际rpgmaker官方论坛作者:ovate处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/control-character-color-expansion.96326/
页:
[1]