设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 88|回复: 0

[转载发布] TSR_TextColorAddOn by The Northern Frog

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式




    download:
    TSR_TextColorAddOn v1.6.4
    Author: TSR, The Northern Frog

    RPG Maker MV let you change the font color in text windows using the escape code '\C[x]' where x range from 0 to 31, providing  colors from the default window skins of /img/system/Window.png.​

    This simple Plugin now allow you to add more text color codes, starting from 32. It also give the option of adding a second color to generate a color gradient effect on the text. You can also change the Outline color and Width of the text, all of this using the commonly used '\C' escape code.​

    In addition, the Plugin allow the use of '\C[x]' basically anywhere text can be input.​


    Spoiler: Screenshots










    Text Color Object Properties:
    ========================================================================​
    There is only one parameter called Text Color Object. It is a notebox where you can create your colors properties.​

    Properties consist of pairs of code:color, and each properties must be separated by comas. The codes are starting from 32 and can be any number you want. The color are defined using CSS. You can use either a predefined CSS color name or make your own using Hex value or rgba values to define the color.​

                    * Exemple: 'Aqua' or '#00ffff' will render the same color

    Fill the Text Color Object notebox to your liking, adding colors associated with code above 31 and separate each with comas.​

                    *Exemple: 32: Aqua, 33: DarkCyan, 34: DarkKhaki

    Then, use the associated code with '\C[x]', when allowed, to change the font color to the corresponding color.  Like, according to what's above, \C[32] will render Aqua colored text.              

    To use rgba(r, g, b, a) format  in the Text Color Object, enter your rgba values inside the brackets without comas and with a single white space, like this:

                     *Exemple:  rgba(0 0 0 0.5)

    Hence, writing:   

      32: Aqua   or   32: #00ffff   or 32: rgba(0 255 255 1) will render the same color.


    Text Color Gradient:
    ========================================================================
    Thanks to Shadowdragon, the Plugin now integrate the color gradient functions of ShadowDragon_TF.js allowing to render color gradient effect on text.


    To add a color gradient effect on a text, enter 2 colors in the brackets, like this:

                 Exemple:   C\[5, 27]   *white spaces after the coma doesn't matters


    Text Outline Color and Width:
    ========================================================================
    To change the Outline color of the text, add a color code preceded by the letter 'o':

                Exemple:  \C[12, o18]  render text color 12 with outline color 18


    You can combine gradient and outline color like:   \C[5, 27, o30]

                * Note that the outline color should always be the last parameter.


    Default outline width is 4 pixels, but sometime, you may want to adjust it depending of the font size you're using and the color effect you want. You can  change the outline width by adding 'w' follow by the width in pixels you want.

                Exemple: \C[5, 27, o30w3]   gradient 5 to 27, outline color 30 and width 3 pixels


                *Note that there's no coma between outline color and width. A white space can be accepted, but no coma!


    Using text code in database:
    ======================================================================
    By adding text color codes to database entries such as Items, Weapons and armors names, you can change their color when displayed. Color codes can also be use anywhere like Map Name entry or Game Title.​


    The same can be done with the Icon Escape Code \I[x] to easily display colors and icons in command menus if desired.​

    Exemple:  writing '\I[60]\C[11]' in the 'Item' entry of the 'Terms' section of  the database, will display icon 60 and color the text in both Battle Command window and Main Menu Command window.​

    Other codes that works are \V[x] to show variables value, \N[x] to display actor names and \G to show currency unit. Of course, result may vary when showing long string.​


    Try it for yourself and use it with parsimony, because showing too much colors is the same as not enough...​


    ToU:
    ========================================================================
    Free to use in any RPG Maker MV projects, including commercials.

    Credit is required for using this Plugin.

    Credit to 'TSR' followed by either 'The Northern Frog' or 'A frog from the north'

    Do not change the Header or the Terms of usage.

    Editing of the script is permited but credit would still be required.


    DO NOT REDISTRIBUTE! If you want to share it, share the link to my itchi.io account:
    https://the-northern-frog.itch.io/

    If you edited the plugin and would like to distribute it, contact me.

    This plugin was made for free use among the RMMV game dev community. Hence, it is free and will remain free.


    本贴来自国际rpgmaker官方论坛作者:TSR处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/tsr_textcoloraddon-by-the-northern-frog.121097/

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 07:37 , Processed in 0.120706 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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