找回密码
 点一下
查看: 4119|回复: 13

关于JASS高亮显示颜色方案征集

[复制链接]
发表于 2006-4-3 17:26:37 | 显示全部楼层 |阅读模式
以下是JASS高亮字(举例):
请把你的高亮颜色方案列出来(粘贴本贴,选择颜色。请注意:JASS TAG的底色为纯白,但尽量避免和论坛底色相近。)

Block Builders:
function endfunction takes returns loop endloop if then endif elseif else type
extends constant native globals endglobals


Keywords:
call return set exitwhen local not and or

System Values:
null true false

Types:
nothing array string integer real code boolean handle event player widget unit destructable item ability buff force group trigger triggercondition triggeraction timer location region rect boolexpr sound conditionfunc filterfunc unitpool itempool race alliancetype racepreference gamestate igamestate fgamestate playerstate playergameresult unitstate aidifficulty eventid gameevent playerevent playerunitevent unitevent limitop widgetevent dialogevent unittype gamespeed gamedifficulty gametype mapflag mapvisibility mapsetting mapdensity mapcontrol playerslotstate volumegroup camerafield camerasetup playercolor placement startlocprio raritycontrol blendmode texmapflags effect effecttype weathereffect terraindeformation fogstate fogmodifier dialog button quest questitem defeatcondition timerdialog leaderboard multiboard multiboarditem trackable gamecache version itemtype texttag playerscore

AI Functions:
PlayerEx Trace TraceI TraceII TraceIII InitAI StandardAI Min Max SetZepNextWave ........

Trigger Functions:
Deg2Rad Rad2Deg Sin Cos Tan Asin Acos Atan Atan2 SquareRoot Pow I2R R2I I2S R2S R2SW S2I S2R SubString  WidgetDropItem ......

AI Constant:
ARCHMAGE PALADIN MTN_KING BLOOD_MAGE AVATAR BASH THUNDER_BOLT THUNDER_CLAP DEVOTION_AURA DIVINE_SHIELD HOLY_BOLT RESURRECTION BLIZZARD BRILLIANCE_AURA MASS_TELEPORT WATER_ELEMENTAL BANISH FLAME_STRIKE SUMMON_PHOENIX SIPHON_MANA JAINA MURADIN GARITHOS KAEL COPTER GYRO ELEMENTAL .......

Trigger Constant:
FALSE TRUE JASS_MAX_ARRAY_SIZE PLAYER_NEUTRAL_PASSIVE PLAYER_NEUTRAL_AGGRESSIVE PLAYER_COLOR_RED PLAYER_COLOR_BLUE PLAYER_COLOR_CYAN PLAYER_COLOR_PURPLE PLAYER_COLOR_YELLOW PLAYER_COLOR_ORANGE ......

Operator:  
数学计算:
        +       加
        -       减
        *       乘
        /       除
        
    比较符号:
        >, <, >=, <=        分别是大于,小于, 大于等于, 小于等于
        ==                  等于
        !=                  不等于
        
        注意: 双=号(==)才是比较, 单=号是赋值, 不要搞错了!!!

    布尔条件
        and         条件和
        or          条件或
        not         否定条件

    字符串操作符
        +           字符串叠加, 如"Greed" + "wind"的结果"Greedwind"

3) Jass里还有什么特殊用途的字符和字串?
    //      注释, 以 //开头的语句将不执行
    ()      函数参数列表, 如 call myfunction()
    []      数组元素标记, 如 myarray[0]
    ""      字符串引用符, 如 "I love Greedwind"
    ''      单位/物品/技能代码引用符号, 如 'A001', 'Hpal'
            注意: Jass中可以用单引号括起4个字母表示数值型的值(integer)
    \       跳脱符号(与Java/C一样),
            如: 在字符串里使用双引号 set mystring = "This is a \"string\""
            mystring 的值实际上是: This is a "string"
            如果直接 set mystring = "This is a "string"" 将出错
            因为""是字符串引用符
    0       用于数字前面, 则表示八进制的数, 如 016
    0x      用于数字前面, 则表示十六进制的数, 如 0x1FA0

[ 本帖最后由 greedwind 于 2006-4-3 18:28 编辑 ]
发表于 2006-4-3 17:35:45 | 显示全部楼层
function Chr takes integer i returns string
    if i == 0 then
        return null
    elseif i >= 8 and i <= 10 then
        return SubString(\"\\b\\t\\n\", i - 8, i - 7)
    elseif i >= 12 and i <= 13 then
        return SubString(\"\\f\\r\", i - 12, i - 11)
    elseif i >= 32 and i <= 127 then
        return SubString(\" !\\\"#$%%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\", i - 32, i - 31)
    endif
    return \"\"
endfunction

[ 本帖最后由 白银の游戏王 于 2006-4-3 17:57 编辑 ]
回复

使用道具 举报

发表于 2006-4-3 17:41:34 | 显示全部楼层
对不起
看错了

[ 本帖最后由 zyl910 于 2006-4-3 18:11 编辑 ]
回复

使用道具 举报

发表于 2006-4-3 17:45:44 | 显示全部楼层
我觉得与JassShop配色方案一致最好


懒得修改文本了
把JassShop的配置文件贴上来了
[Fonts]
RootName=Courier New
RootSize=10
RootHeight=-13
RootColor=-16777208
RootStyle=
CommentsColor=8421504
CommentsStyle=
KeywordsColor=0
KeywordsStyle=[Bold]
KeywordValueColor=8388608
KeywordValueStyle=
TypesColor=16711680
TypesStyle=
StringsColor=8421376
StringsStyle=
ValuesColor=16744448
ValuesStyle=
OperatorsColor=128
OperatorsStyle=[fsBold]
AIAFunctionsColor=8388736
AIAFunctionsStyle=
AIUFunctionsColor=16744576
AIUFunctionsStyle=[Italic]
AIConstantsColor=8388863
AIConstantsStyle=
AIGlobalsColor=128
AIGlobalsStyle=
BJConstantsColor=16711935
BJConstantsStyle=[Italic]
BJFunctionsColor=4227072
BJFunctionsStyle=[Italic]
BJGlobalsColor=255
BJGlobalsStyle=[Italic]
CJConstantsColor=16711808
CJConstantsStyle=
CJFunctionsColor=32768
CJFunctionsStyle=
CJTypesColor=16711680
CJTypesStyle=
MPConstantsColor=0
MPConstantsStyle=
MPFunctionsColor=0
MPFunctionsStyle=
MPGlobalsColor=0
MPGlobalsStyle=
USUFunctionsColor=12615680
USUFunctionsStyle=[Italic]
USConstantsColor=255
USConstantsStyle=
USAFunctionsColor=8388736
USAFunctionsStyle=[Bold]
USTypesColor=16711680
USTypesStyle=[Italic]
USGlobalsColor=128
USGlobalsStyle=[Italic]
回复

使用道具 举报

 楼主| 发表于 2006-4-3 17:53:57 | 显示全部楼层
原帖由 zyl910 于 2006-4-3 17:45 发表
我觉得与JassShop配色方案一致最好


懒得修改文本了
把JassShop的配置文件贴上来了

请注释一下,大部分看得懂
回复

使用道具 举报

 楼主| 发表于 2006-4-3 17:54:52 | 显示全部楼层
USUFunctionsColor 是什么意思?
用户定义函数?

还有用的COLOR CODE是HEX么?

[ 本帖最后由 greedwind 于 2006-4-3 17:56 编辑 ]
回复

使用道具 举报

发表于 2006-4-3 18:00:00 | 显示全部楼层
原帖由 greedwind 于 2006-4-3 17:54 发表
USUFunctionsColor 是什么意思?
用户定义函数?

还有用的COLOR CODE是HEX么?


应该是Windows颜色
0xAABBGGRR格式的

我也没试过
测试中...

[ 本帖最后由 zyl910 于 2006-4-3 18:02 编辑 ]
回复

使用道具 举报

 楼主| 发表于 2006-4-3 18:17:52 | 显示全部楼层
原帖由 zyl910 于 2006-4-3 18:00 发表


应该是Windows颜色
0xAABBGGRR格式的

我也没试过
测试中...

应该是十进制的, 看BJGlobalsColor=255 便知道了。
回复

使用道具 举报

发表于 2006-4-3 18:24:58 | 显示全部楼层
BJGlobalsColor=255

十六进制表示是:0x000000FF??红色
回复

使用道具 举报

 楼主| 发表于 2006-4-3 18:30:00 | 显示全部楼层
原帖由 zyl910 于 2006-4-3 18:24 发表
BJGlobalsColor=255

十六进制表示是:0x000000FF??红色

这个知道咯,在HTML,好像是#0000FF,没有透明定义的。

[ 本帖最后由 greedwind 于 2006-4-3 18:31 编辑 ]
回复

使用道具 举报

 楼主| 发表于 2006-4-3 18:34:18 | 显示全部楼层
有空的人跟据我的贴设计个STYLESHEET(HTML)吧,这样更好统一风格。
回复

使用道具 举报

发表于 2006-4-3 18:36:07 | 显示全部楼层
原帖由 greedwind 于 2006-4-3 18:30 发表

这个知道咯,在HTML,好像是#0000FF,没有透明定义的。


HTML中貌似素#RRGGBB的
  1. #[color=#ff0000]RR[/color][color=#00ff00]GG[/color][color=#0000ff]BB[/color]
复制代码

效果
#RRGGBB

[ 本帖最后由 白银の游戏王 于 2006-4-3 18:38 编辑 ]
回复

使用道具 举报

发表于 2006-4-3 18:44:08 | 显示全部楼层
// 注释
CommentsColor=8421504    // WebColor: #808080
CommentsStyle=

// 关键字
KeywordsColor=0    // WebColor: #000000
KeywordsStyle=[Bold]

// 关键字值,如true、false
KeywordValueColor=8388608    // WebColor: #000080
KeywordValueStyle=

// 类型
TypesColor=16711680    // WebColor: #0000FF
TypesStyle=

// 字符串数据
StringsColor=8421376    // WebColor: #008080
StringsStyle=

// 值
ValuesColor=16744448    // WebColor: #0080FF
ValuesStyle=

// 运算符
OperatorsColor=128    // WebColor: #800000
OperatorsStyle=[fsBold]

AIAFunctionsColor=8388736    // WebColor: #800080
AIAFunctionsStyle=

AIUFunctionsColor=16744576    // WebColor: #8080FF
AIUFunctionsStyle=[Italic]

AIConstantsColor=8388863    // WebColor: #FF0080
AIConstantsStyle=

AIGlobalsColor=128    // WebColor: #800000
AIGlobalsStyle=

BJConstantsColor=16711935    // WebColor: #FF00FF
BJConstantsStyle=[Italic]

BJFunctionsColor=4227072    // WebColor: #008040
BJFunctionsStyle=[Italic]

BJGlobalsColor=255    // WebColor: #FF0000
BJGlobalsStyle=[Italic]

CJConstantsColor=16711808    // WebColor: #8000FF
CJConstantsStyle=

CJFunctionsColor=32768    // WebColor: #008000
CJFunctionsStyle=

CJTypesColor=16711680    // WebColor: #0000FF
CJTypesStyle=

MPConstantsColor=0    // WebColor: #000000
MPConstantsStyle=

MPFunctionsColor=0    // WebColor: #000000
MPFunctionsStyle=

MPGlobalsColor=0    // WebColor: #000000
MPGlobalsStyle=

USUFunctionsColor=12615680    // WebColor: #0080C0
USUFunctionsStyle=[Italic]

USConstantsColor=255    // WebColor: #FF0000
USConstantsStyle=

USAFunctionsColor=8388736    // WebColor: #800080
USAFunctionsStyle=[Bold]

USTypesColor=16711680    // WebColor: #0000FF
USTypesStyle=[Italic]

USGlobalsColor=128    // WebColor: #800000
USGlobalsStyle=[Italic]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-4-19 11:31 , Processed in 0.073750 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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