Sid Meier's Civilization V

Sid Meier's Civilization V

48 个评价
UI - EditUnitNames Vanilla
   
奖励
收藏
已收藏
取消收藏
标签: Other
文件大小
发表于
10.165 KB
2013 年 12 月 6 日 下午 5:19
1 项改动说明 ( 查看 )

订阅以下载
UI - EditUnitNames Vanilla

描述
Right-click a unit's name to edit it at any time - not just after a promotion.
Uses UnitPanel.lua - not compatible with any other mods that modify that file.

Vanilla version of the mod - for the expansions look for
UI - EditUnitNames
BNW Version
UI - EditUnitNames 3
GnK Version

I have no way to test the vanilla version of this mod, so let me know if it works.

To get this functionality with other Unit Panel mods, insert the following into the mod's UnitPanel.lua:

function OnUnitNameRClicked()
-- rename this unit

if UI.GetHeadSelectedUnit() then
local popupInfo = {
Type = ButtonPopupTypes.BUTTONPOPUP_RENAME_UNIT,
Data1 = UI.GetHeadSelectedUnit():GetID(),
Data2 = -1,
Data3 = -1,
Option1 = false,
Option2 = false;
}
Events.SerialEventGameMessagePopup(popupInfo);
end
end
Controls.UnitNameButton:RegisterCallback( Mouse.eRClick, OnUnitNameRClicked );
9 条留言
Knarlox 2018 年 8 月 5 日 上午 7:06 
Can you add edit improvements names ?
InsaneWorld 2015 年 10 月 4 日 下午 9:19 
Finally finished that game and started a new one, but it doesn't seem to work. I had it activated when I made the game.
Kalurak  [作者] 2015 年 6 月 10 日 下午 11:49 
To the best of my knowledge, you can't enable mods after you start a game.
InsaneWorld 2015 年 6 月 10 日 下午 10:10 
So is there any way you can enable new mods on existing games? I'm a bit of a noob.
Kalurak  [作者] 2013 年 12 月 15 日 上午 9:54 
This version works only without any expansions. See the description for versions of the mod for the expansions.
mangoshi 2013 年 12 月 15 日 上午 9:30 
Works without BNW?
EZ PZ 23Z 2013 年 12 月 15 日 上午 8:00 
still pretty coooool
Cid Silverwing 2013 年 12 月 14 日 上午 1:16 
@ AppleDice: You can't use mods you just downloaded on games you didn't enable them on.
AppleDice 2013 年 12 月 8 日 下午 5:17 
It works!
Can't do it with existing games though. :(