找回密码
 点一下
查看: 1195|回复: 9

格式测试

[复制链接]
发表于 2010-2-21 11:29:45 | 显示全部楼层 |阅读模式
[codes=galaxy]
//==================================================================================================
//
// Generated Map Script
//
// Name:   Kulas Ravine
// Author: Blizzard Entertainment
//
//==================================================================================================
include "TriggerLibs/NativeLib"

//--------------------------------------------------------------------------------------------------
// Library Initialization
//--------------------------------------------------------------------------------------------------
void InitLibs () {
    libNtve_InitLib();
}

//--------------------------------------------------------------------------------------------------
// Trigger Variables
//--------------------------------------------------------------------------------------------------
trigger gt_MeleeInitialization;

//--------------------------------------------------------------------------------------------------
// Trigger: Melee Initialization
//--------------------------------------------------------------------------------------------------
bool gt_MeleeInitialization_Func (bool testConds, bool runActions) {
    // Actions
    if (runActions) {
        MeleeInitOptions();
        MeleeInitAI();
        MeleeInitUnits();
        MeleeInitResources();
    }

    return true;
}

//--------------------------------------------------------------------------------------------------
void gt_MeleeInitialization_Init () {
    gt_MeleeInitialization = TriggerCreate("gt_MeleeInitialization_Func");
    TriggerAddEventMapInit(gt_MeleeInitialization);
}

//--------------------------------------------------------------------------------------------------
// Trigger Initialization
//--------------------------------------------------------------------------------------------------
void InitTriggers () {
    gt_MeleeInitialization_Init();
}

//--------------------------------------------------------------------------------------------------
// Map Initialization
//--------------------------------------------------------------------------------------------------
void InitMap () {
    InitLibs();
    InitTriggers();
}
[/codes]

用法:
  1. [codes=galaxy]
  2. ....
  3. [/codes]
复制代码
发表于 2010-2-21 11:42:43 | 显示全部楼层
我说怎么一打开就有颜色了~~
回复

使用道具 举报

发表于 2010-2-21 11:43:41 | 显示全部楼层
好看。。
回复

使用道具 举报

发表于 2010-2-21 20:18:01 | 显示全部楼层
参观
回复

使用道具 举报

发表于 2010-2-21 20:53:43 | 显示全部楼层
为什么不默认弄成等宽字体呢
回复

使用道具 举报

发表于 2010-2-22 04:19:30 | 显示全部楼层
'URLS' => array(
        1 => '',
        2 => '',
        3 => '',
        4 => '',
        5 => 'http://wiki.islga.org/index.php?title={FNAMEL}'
        ),

明显,这个WIKI少很多信息。
回复

使用道具 举报

发表于 2010-2-22 04:26:21 | 显示全部楼层
引用第5楼greedwind于2010-02-22 04:19发表的  :
    'URLS' => array(
        1 => '',
        2 => '',
        3 => '',
        4 => '',
.......

错了,应该是:
  1.     'URLS' => array(
  2.         1 => '',
  3.         2 => '',
  4.         3 => '',
  5.         4 => '',
  6.         5 => 'http://wiki.islga.org/index.php?title={FNAME}'
  7.         ),
复制代码

As of Version 1.0.7.21 there have been added two more symbols you can use to link to functions. {FNAMEL} will generate the lowercase version of the keyword, {FNAMEU} will generate the uppercase version. {FNAME} will provide the keyword as specified in the language file. Use one of these more specific placeholders if possible, as they result in less overhead while linking for case insensitive languages.
回复

使用道具 举报

 楼主| 发表于 2010-2-22 10:19:26 | 显示全部楼层
引用第6楼greedwind于2010-02-22 04:26发表的  :
好用了,谢谢gW~
回复

使用道具 举报

发表于 2010-2-22 10:44:53 | 显示全部楼层
发现,如果不填 code=XX直接写 [code]会使代码隐形
回复

使用道具 举报

 楼主| 发表于 2010-2-22 11:49:19 | 显示全部楼层
引用第8楼此方丽莎于2010-02-22 10:44发表的  :
发现,如果不填 code=XX直接写 [code]会使代码隐形
设置了使用codes=后面的内容来格式化文字,没有内容就无法识别。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 23:23 , Processed in 0.141567 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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