找回密码
 点一下
楼主: Red_Wolf

WE完全汉化V1.2.2版 5月14日更新

[复制链接]
发表于 2007-5-27 10:05:57 | 显示全部楼层
jass helper的也不是新语言,看看完成后的J文件就知道了,就是用缓存等功能组合来实现的,只不过表面上写的是新语言,最后还是编译成了一般的JASS而已
回复

使用道具 举报

发表于 2007-5-27 12:01:56 | 显示全部楼层
弱问:你们怎么做到发的帖子jass代码高亮处理的?
承认没有看到谁处理code,的确他们加的都只是自定义的函数.

有一个WE叫Local Handle Var GUI,这个里面就有很多自定义函数,就是如同我说的方法1那么办的,最后把那些函数再贴过去.
比如下面是我自己用的一个小的代码库.这些函数对我还是有点用的.
如果都弄成GUI的,肯定用上比较爽.
  1. //golbals
  2. globals
  3. gamecache udg_GameCache
  4. endglobals
  5. //--------------------Types-------------------------------------------
  6. //types
  7. function H2I takes handle h returns integer
  8. return 0
  9. endfunction
  10. //省略
  11. //--------------------GameCache-------------------------------------------
  12. //
  13. //GameCache
  14. function GameCacheInit takes nothing returns gamecache
  15. if udg_GameCache==null then
  16. call FlushGameCache(InitGameCache("GameCacheInit.w3x"))
  17. set udg_GameCache=InitGameCache("GameCacheInit.w3x")
  18. endif
  19. return udg_GameCache
  20. endfunction
  21. function FlushHandle takes handle h returns nothing
  22. call FlushStoredMission(GameCacheInit(),H2S(h))
  23. endfunction
  24. //integer
  25. function WriteInt takes handle h, string label, integer x returns nothing
  26. local string k=H2S(h)
  27. if x==0 then
  28. call FlushStoredInteger(GameCacheInit(),k,label)
  29. else
  30. call StoreInteger(GameCacheInit(),k,label,x)
  31. endif
  32. endfunction
  33. function ReadInt takes handle h, string label returns integer
  34. return GetStoredInteger(GameCacheInit(), H2S(h), label)
  35. endfunction
  36. function AddInt takes handle h, string label, integer x returns nothing
  37. local string k=H2S(h)
  38. if x==0 then
  39. call FlushStoredInteger(GameCacheInit(),k,label)
  40. else
  41. call StoreInteger(GameCacheInit(),k,label,x+ReadInt(h,label))
  42. endif
  43. endfunction
  44. //省略
  45. //-------------------Timer--------------------------------------------
  46. function RunTimer takes real timerout,code handlerFunc,boolean periodic returns timer
  47. local timer temp=CreateTimer()
  48. call TimerStart(temp,timerout,periodic,handlerFunc)
  49. return temp
  50. endfunction
  51. function CountAdd takes nothing returns nothing
  52. endfunction
  53. //省略
  54. //--------------------Points-------------------------------------------
  55. function AngleBPoints takes location a,location b returns real
  56. return Atan2(GetLocationY(b)-GetLocationY(a),GetLocationX(b)-GetLocationX(a))
  57. endfunction
  58. function AngleBUnits takes unit a,unit b returns real
  59. return Atan2(GetUnitY(b)-GetUnitY(a),GetUnitX(b)-GetUnitX(a))
  60. endfunction
  61. function AngleBPointsXY takes real x1, real y1, real x2, real y2 returns real
  62. return Atan2BJ((y2-y1),(x2-x1))
  63. endfunction
  64. //把一个单位移动到距点l,方向为a,距离为d的地方
  65. function MovePoint takes location l,real d,real a returns nothing
  66. call MoveLocation(l,d*Cos(a),d*Sin(a))
  67. endfunction
  68. //省略.
复制代码
回复

使用道具 举报

 楼主| 发表于 2007-5-28 09:30:01 | 显示全部楼层
好吧,看来都没明白我的意思.....
比如,添加一个code类型很简单,但是GUI里默认的code=无用,只有单句的函数,以下这样的code才有实现价值
function xxx takes nothing returns nothing
call A()
call B()    //这些函数都可以自己在GUI里添加,就像ForGroup的扩展菜单
call C()
endfunction

set c = function xxx


我想添加的不是自定义函数,而是想改动编辑器的UI结构,比如在条件中写动作
回复

使用道具 举报

发表于 2007-6-2 09:32:01 | 显示全部楼层
真的郁闷的
           我什么都不懂
    那位师傅能教我下吗???
回复

使用道具 举报

发表于 2007-6-9 21:19:01 | 显示全部楼层
正在找汉化,~~~谢谢楼主分享
回复

使用道具 举报

发表于 2007-6-13 16:01:43 | 显示全部楼层
呵呵真不错顶一个
回复

使用道具 举报

发表于 2007-6-14 07:05:13 | 显示全部楼层
已经使用中.....发掘着...
回复

使用道具 举报

发表于 2007-6-19 09:18:19 | 显示全部楼层
我发现一个问题
LZ的钱....是
回复

使用道具 举报

 楼主| 发表于 2007-6-23 14:15:27 | 显示全部楼层
引用第43楼ytzhsh于2007-06-19 09:18发表的  :
我发现一个问题
LZ的钱....是

555~~
果然人太穷了到哪都被B4阿~~
回复

使用道具 举报

发表于 2007-7-4 01:44:23 | 显示全部楼层
用ENE WE 2006编辑的地图可以用这个编辑否?
回复

使用道具 举报

 楼主| 发表于 2007-7-4 08:12:08 | 显示全部楼层
UI之间只要地图能打开能保存就能通用
回复

使用道具 举报

发表于 2007-7-4 10:17:49 | 显示全部楼层
设置完后用原版WE打开?
回复

使用道具 举报

 楼主| 发表于 2007-7-4 10:48:34 | 显示全部楼层
嗯,用EnE也一样
回复

使用道具 举报

发表于 2007-7-21 22:55:30 | 显示全部楼层
我的魔兽是1.20的,WE版本不知道,用这个UI,没用之前A单位防御我设的是30,用了后改防御为15,但是保存再打开看或测试时,该单位的防御还是30!!
按SHIFT+ENTER给物品加了N个物品技能,但是测试时发现,装备此物品只有该物品部分技能,加攻击力,防御和属性等都没有!!!
[s:122][s:122][s:122][s:122][s:122][s:122][s:122][s:122][s:122][s:122][s:122][s:122][s:122]
回复

使用道具 举报

发表于 2007-7-26 12:26:50 | 显示全部楼层
来顶个
回复

使用道具 举报

发表于 2007-7-31 16:15:10 | 显示全部楼层
本部分内容设定了隐藏,需要回复后才能看到
回复

使用道具 举报

发表于 2007-9-4 22:20:52 | 显示全部楼层
很好,很强大。
谢谢了。
回复

使用道具 举报

发表于 2007-9-6 18:19:53 | 显示全部楼层
现在汉化的英文都混一起了..以前看不明白英文就找汉化....现在有了汉化...有很多教程又还是英文的..我无语了..
回复

使用道具 举报

发表于 2007-10-13 16:35:46 | 显示全部楼层
有了,照顶不误
回复

使用道具 举报

发表于 2007-10-13 22:40:39 | 显示全部楼层
支持,好东西当然要顶
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-26 02:48 , Processed in 0.254020 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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