模拟城市中文网

 找回密码
 入住
搜索
查看: 3634|回复: 5

自製整理菜單

[复制链接]
发表于 2007-9-22 15:52 | 显示全部楼层 |阅读模式
以下by plunder


有些菜單項目較多的插件就有專用的 MML(菜單管理 LOT), 但很少

試試 BSC Menu Management Lot Mod
http://www.simtropolis.com/stex/details.cfm?id=15677&v=1
可以管理一些指定的插件....看看支持的插件列表



再來這一段暫放這裏,關於自製整理菜單
(thz亂譯中)


Creating your own MML Mods自製自己的菜單
Creating your own MML Mod isn't very hard, once you understand the technique. First of all, you have to create a "construction lot" (母lot) . I suggest to use an existing lot of your set, or simply start with an empty grass or cement lot. Add some construction props and save it under a new name. Create a nice icon and import it with LEProp. Add a lot name and description as well by entering them in LEProp and clicking "Apply", then "Save DAT". Don't forget to add a note in the lot description that the construction lot will unhide the other icons of the set.

一旦了解技巧,自製一套選單,不難。首先,你必需創造一個"母檔lot""construction lot" ,(大概平常縮成一個母icon,包含一套子群的icon),建議使用你已既有的lot來做母lot,或簡單的以草皮地等開頭的lot。加一些props,然後save as新名。做個icon然後處理好(可用LeProp??)。
加個lot name 和descioption(可用Leprop?)
別忘了在lot description加個備忘,好讓lot可以"解除隱藏"這一套lot。

Now, open an existing MML Mod DAT file in ilive's Reader and copy the LUA script by right-clicking on the file and selecting "Copy file(s)". Paste it to the construction lot with right-clicking and "Paste file(s)". Now, add (or copy) a "Building: Landmark" occupant group to the Building Exemplar file of the construction lot. In the next step, you have to copy all Building Exemplar files from your set of lots to the construction lot as well. Im each of these Building Exemplar files, you have to add a "Conditional Building = True" property (simply copy one from an existing mod file).
用Reader開啟既存的MML Mod Dat,用鼠標右擊該檔copy LUA檔~~paste到你要弄的母lot。
加個occupant group(數值為Building:Landmark")
copy"所有buildings的exemplar檔"到那個綜合母lot,
然後,在每個子檔,要加"Conditional Building = True"這個property
(這個只要把既存的MMLmod抓這個property copy過去就好)

Finally, the LUA script needs to be edited. Change the instance ID by clicking on the "File Info" button and then the "Edit" button in the window that shows up. Enter the same IID as the Building Exemplar file of the construction lot has, but change the first number to "0". Click "OK" and then right-click in the file list and select "ReIndex". Now open the LUA script, hit "Edit" and change the package ID so it matches the IID of the LUA script. Scroll down to the list of IDs and change the first one (the one of the construction lot) to the Building Exemplar file instance ID. Look up the IIDs of the other lots (usually they are identical with the numbers in the file name, as the Lot Editor saves them). It can't hurt to add the lot names behind the "--", the green texts are only comments and won't be used by the script.

最後,LUA檔需要Edit編輯一下。
改變instance ID (按File Info→Edit,輸入和母檔的building exemplar一樣的IID,但改變第一個數字為0,
按ok然後右擊第一列表選擇"ReIndex" 開啟LUA檔,點Edit,改變package ID,以對應Lua的IID。
卷到 IDs列那邊,改變第一個(the one of the construction lot),改成Building Exemplar file的 instance ID.
查查其它子群Lot們的IIDs (通常他們和第一個一樣有相同的數值,因他們以LE save的時候應該就決定了那數值)


In addition, change the array variable (it shows up three times in front of the "=" in the first three rows and once between the "( )" in the last row) to a unique name (attention, use only capital letters and underscores!). Now, save the script by clicking "Apply", and then save the lot file. I suggest to rename it and place it in the "\zz_BSC_MML" folder, so it's loaded last when starting the game.

再來,改變array variable(可能icon為隱藏性)
(它在"="
還沒整理完 還沒寫完
~待續~


[ 本帖最后由 天唐永thianz 于 2007-9-23 19:18 编辑 ]

评分

参与人数 1威望 +3 收起 理由
rszxh + 3 语序需要修一下0.0

查看全部评分

发表于 2007-9-28 18:08 | 显示全部楼层
有样板么?发一个吧

You need to login so that you can access this part of Simtropolis.

不想register了
 楼主| 发表于 2007-9-28 20:17 | 显示全部楼层
MMLMod如附件


而且
剛才才發現
[转自天都城]BSC Menu Management Lot Mod的研究所得

MML我還沒有實際去做一個自己的選單。沒啥空。

MML我感覺用起來有一個比較大的缺點,就是不能連續按鼠標建設……(也許不能明白我說啥)

所以我只用在公園及地標菜單。像是marrast embankment堤防位於不長的海港選單,就不再使用MMLmod。




--
另外NAM好像用submenu(??忘了確切指令),如果有別的子選單的機會都可在以後試試

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?入住

x
发表于 2007-9-29 07:33 | 显示全部楼层
看来我理解错了,我一直想弄一个象收费站一样一个管多个的菜单
或者象NAM里按TAB切换的菜单
但都没有成功

[ 本帖最后由 rszxh 于 2007-9-29 07:34 编辑 ]
 楼主| 发表于 2007-9-29 17:45 | 显示全部楼层
天都城資料片有沒有做出過"子菜單"呢
如果有做出子菜單又是怎麼做的呢?
其實我主要的動機是"因為菜單太長了"。…要拉好久…
或是有沒有人看過simtropolis有介紹過子菜單做法的呢?有的話麻煩給個連結…

MML雖然算不上名符其實的子菜單,但已經減縮了一部分我的公園菜單,需要用的時候才把菜單拉長開來。


NAM的tab模式也是不錯的,有個指令也許相關,
比方我打開nam斜街道的exemplar,
有個指令叫做SubmenuKey:Networks:Road Menu

這個SubmenuKey可能就是nam弄的子菜單
发表于 2007-9-30 11:23 | 显示全部楼层
这是道路类的图标指向方式
道路类的exemplar type一般为highway
建筑类的exemplar type一般为building
所以我想借鉴的是里面的收费站
但我估计可能还是通过LUA实现的
但LUA实质上属于外置script
没有主程式的script读起来比较吃力……
您需要登录后才可以回帖 登录 | 入住

本版积分规则

小黑屋|手机版|模拟城市中文网

GMT+8, 2024-5-20 05:25 , Processed in 0.022493 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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