游民星空 - 查攻略必备
下载游民App,免费领取游戏大作
《文明6》修改MOD合集第二弹 核子虎蹲炮、龙脉修改教程
游民星空[整理]
Shy夏夏
2017-03-23 19:31
0
强制下回合
Sid Meier's Civilization VI\Base\Assets\UI\ActionPanel.lua
下面
if pInputStruct:IsShiftDown() then
UI.RequestAction(ActionTypes.ACTION_ENDTURN); -- Shift + Enter = Force End Turn
end
下面
if pInputStruct:IsShiftDown() then
UI.RequestAction(ActionTypes.ACTION_ENDTURN); -- Shift + Enter = Force End Turn
end
这段是新加的,按shift强制进入下回合,下面那原本设定的强制进下回合不能用,可能有加什么条件,改之前记得要备份,如果你有备份,不能放在UI的数据夹,甚至有lua档案的数据夹都不行,包括子数据夹都不行,游戏会读取到你备份里的文件。
function OnInputHandler( pInputStruct:table )
local uiMsg:number = pInputStruct:GetMessageType();
if pInputStruct:IsShiftDown() then
UI.RequestAction(ActionTypes.ACTION_ENDTURN); -- Shift + Enter = Force End Turn
end
if uiMsg == KeyEvents.KeyUp then
if pInputStruct:GetKey() == Keys.VK_RETURN then
if pInputStruct:IsShiftDown() and (not UI.IsFinalRelease()) then
UI.RequestAction(ActionTypes.ACTION_ENDTURN); -- Shift + Enter = Force End Turn
else
DoEndTurn(); -- Enter = Normal End Turn
end
return true;
end
end
return false;
end
local uiMsg:number = pInputStruct:GetMessageType();
if pInputStruct:IsShiftDown() then
UI.RequestAction(ActionTypes.ACTION_ENDTURN); -- Shift + Enter = Force End Turn
end
if uiMsg == KeyEvents.KeyUp then
if pInputStruct:GetKey() == Keys.VK_RETURN then
if pInputStruct:IsShiftDown() and (not UI.IsFinalRelease()) then
UI.RequestAction(ActionTypes.ACTION_ENDTURN); -- Shift + Enter = Force End Turn
else
DoEndTurn(); -- Enter = Normal End Turn
end
return true;
end
end
return false;
end
顺便告诉你们,点部队的名字可以有简易部队选单,暗色的是驻防或者休眠,亮色的是未行动,不然直接跳回合没选单位挺麻烦。
下载地址:点击进入
相关内容请关注:文明6专区