Сообщений: 194
Тем: 8
Зарегистрирован: Feb 2012
Репутация:
3,775
RedWalker Написал:Russia_Font=L2Font-ru.SmallFont-ru
Вы эту строку имеете в виду?
Добавлено через 1 минуту
Вот целый блок в файле.
Но я так понимаю, здесь находятся все пути, а не только для чата.
Верно, так же указываются текстуры для лого и карт.
Сообщений: 9
Тем: 1
Зарегистрирован: Oct 2013
Репутация:
0
10-07-2013, 08:47 PM
(Сообщение последний раз редактировалось: 10-07-2013, 09:10 PM RedWalker.)
В таком случае я у того, кто не рад, стырю руоффские файлы и попробую их заменить в клиенте.
Добавлено через 22 минуты
И вуаля! Ничего не получилось. В случае замены файлов л2фонт и л2фонт-ру на л2фонт и л2фонт-е с соответственным переименованием мы получаем снова крит. В случае копирования л2фонт-ру без переименования получаем отсутствие каких-либо изменений.
Сообщений: 194
Тем: 8
Зарегистрирован: Feb 2012
Репутация:
3,775
RedWalker Написал:В таком случае я у того, кто не рад, стырю руоффские файлы и попробую их заменить в клиенте.
Добавлено через 22 минуты
И вуаля! Ничего не получилось. В случае замены файлов л2фонт и л2фонт-ру на л2фонт и л2фонт-е с соответственным переименованием мы получаем снова крит. В случае копирования л2фонт-ру без переименования получаем отсутствие каких-либо изменений. Попробуйте ещё один вариант, скачайте и закиньте в папку system.
Сообщений: 9
Тем: 1
Зарегистрирован: Oct 2013
Репутация:
0
Скачал, закинул. Даже распаковал) 0 изменений, эти файлы ведь ничего не заменяют, как они будут использоваться?
Сообщений: 1,580
Тем: 50
Зарегистрирован: Jul 2013
Репутация:
12,453
RedWalker Написал:Скачал, закинул. Даже распаковал) 0 изменений, эти файлы ведь ничего не заменяют, как они будут использоваться?
Переименуй так, чтобы заменили. Вдруг поможет.
Сообщений: 2,228
Тем: 77
Зарегистрирован: Jan 2012
Репутация:
12,733
Сообщений: 194
Тем: 8
Зарегистрирован: Feb 2012
Репутация:
3,775
В архиве есть исходники и библиотеки (dll), всё что требовалось закинуть эти dll в папку system.
Сообщений: 9
Тем: 1
Зарегистрирован: Oct 2013
Репутация:
0
10-08-2013, 12:56 AM
(Сообщение последний раз редактировалось: 10-08-2013, 12:57 AM RedWalker.)
Покорнейше благодарю. Мир спасен.
Добавлено через 1 минуту
Anarchy, в том? Я и файлов в систем таких не нашел. Позакидывал всеми возможными способами. Но уже проблема решена. Спасибо Вам тоже за содействие.
Сообщений: 10
Тем: 3
Зарегистрирован: Feb 2011
Репутация:
0
(10-07-2013, 11:58 PM)Anarchy Написал: В архиве есть исходники и библиотеки (dll), всё что требовалось закинуть эти dll в папку system.
Доброго времени суток!
Я использую клиент EU Grand Crusade 110 protocol. Тоже мучаюсь с русской раскладкой для чата - сделал русскую локально, но не могу сделать выбор из русского и английского языка, а так же не могу добавить в EU локаль писать в чат окна, при этом в окно логина - можно писать киррилцу )
Помогите куда копать? OptinWnd класс у меня не содержит логику и рядом настроек конфигурации игры О_о :
Открыть спойлер
OptionWnd
//================================================================================
// OptionWnd.
//================================================================================
class OptionWnd extends L2UIGFxScript;
var bool m_bL2Shader;
var bool m_bDOF;
var bool m_bShaderWater;
var int m_AntiAliasing;
var int m_PostProc;
var bool m_bAutoPartyMatching;
var int g_CurrentMaxWidth;
var int g_CurrentMaxHeight;
var int nPixelShaderVersion;
var int nVertexShaderVersion;
var bool isGAMINGSTATE;
var DialogBox dScript;
var bool bPartyMember;
var bool bPartyMaster;
var FlightShipCtrlWnd scriptShip;
var FlightTransformCtrlWnd scriptTrans;
var array<string> m_datasheetKeyReplace;
var array<string> m_datasheetKeyReplaced;
var bool isOpenShortCut;
var WindowHandle m_hPartyMatchWnd;
var WindowHandle m_hUnionMatchWnd;
var bool preEnterChattingOption;
const ID_OPENWINDOW= 12;
const ID_EXEC_FUNCTION= 11;
const ID_CALL_DIALOG= 10;
const DIALOGID_proc4= 13;
const DIALOGID_proc3= 12;
const DIALOGID_proc2= 11;
const DIALOGID_proc1= 10;
const PARTY_MODIFY_REQUEST= 9;
function OnRegisterEvent ()
{
RegisterEvent(9170);
RegisterEvent(9175);
RegisterEvent(1710);
RegisterEvent(1720);
RegisterEvent(3410);
RegisterEvent(4910);
RegisterEvent(4911);
RegisterGFxEvent(5870);
RegisterGFxEvent(3420);
RegisterGFxEvent(3430);
RegisterGFxEvent(510);
RegisterEvent(520);
RegisterEvent(4913);
RegisterEvent(4916);
RegisterEvent(4914);
RegisterEvent(4915);
RegisterEvent(4918);
RegisterEvent(4919);
RegisterEvent(1560);
RegisterEvent(40);
RegisterEvent(4917);
RegisterGFxEvent(3452);
RegisterGFxEvent(5871);
RegisterGFxEvent(691);
RegisterGFxEvent(692);
RegisterGFxEvent(6210);
RegisterGFxEvent(9320);
RegisterGFxEvent(9330);
}
function LoadAudioOption ()
{
local bool bMute;
if ( CanUseAudio() )
{
bMute = GetOptionBool("Audio","AudioMuteOn");
SetOptionBool("Audio","AudioMuteOn",bMute);
}
}
function LoadVideoOption ()
{
local bool bKeepMinFrameRate;
m_AntiAliasing = GetOptionInt("Video","AntiAliasing");
m_PostProc = GetOptionInt("Video","PostProc");
m_bL2Shader = GetOptionBool("Video","L2Shader");
m_bDOF = GetOptionBool("Video","S30DOFBOX");
m_bShaderWater = GetOptionBool("Video","S30WaterEffectBox");
bKeepMinFrameRate = GetOptionBool("Video","IsKeepMinFrameRate");
if ( !bKeepMinFrameRate )
{
if ( (nPixelShaderVersion >= 30) && (nVertexShaderVersion >= 30) )
{
SetL2Shader(m_bL2Shader);
if ( m_bL2Shader )
{
SetDOF(m_bDOF);
SetShaderWaterEffect(m_bShaderWater);
}
}
}
}
function LoadGameOption ()
{
local bool bChecked;
local int iChecked;
bChecked = False;
bChecked = GetOptionBool("Control","RightClickBox");
SetFixedDefaultCamera(bChecked);
if ( !GetINIBool("ScreenInfo","ShowZoneTitle",iChecked,"Option.ini") )
{
SetOptionBool("ScreenInfo","ShowZoneTitle",True);
}
if ( !GetINIBool("ScreenInfo","ShowGameTipMsg",iChecked,"Option.ini") )
{
SetOptionBool("ScreenInfo","ShowGameTipMsg",True);
}
}
function OnLoad ()
{
SetContainerWindow("SkinnedWindow",205);
AddState("GAMINGSTATE");
AddState("LOGINSTATE");
AddState("PAWNVIEWERSTATE");
AddState("ARENAGAMINGSTATE");
AddState("ARENABATTLESTATE");
SetOptionBool("ScreenInfo","HideDropItem",False);
GetShaderVersion(nPixelShaderVersion,nVertexShaderVersion);
LoadVideoOption();
LoadAudioOption();
LoadGameOption();
DataSheetAssignKeyReplacement();
scriptShip = FlightShipCtrlWnd(GetScript("FlightShipCtrlWnd"));
scriptTrans = FlightTransformCtrlWnd(GetScript("FlightTransformCtrlWnd"));
m_hPartyMatchWnd = GetWindowHandle("PartyMatchWnd");
m_hUnionMatchWnd = GetWindowHandle("UnionMatchWnd");
}
function DataSheetAssignKeyReplacement ()
{
m_datasheetKeyReplace[1] = "LEFTMOUSE";
m_datasheetKeyReplace[2] = "RIGHTMOUSE";
m_datasheetKeyReplace[3] = "BACKSPACE";
m_datasheetKeyReplace[4] = "ENTER";
m_datasheetKeyReplace[5] = "SHIFT";
m_datasheetKeyReplace[6] = "CTRL";
m_datasheetKeyReplace[7] = "ALT";
m_datasheetKeyReplace[8] = "PAUSE";
m_datasheetKeyReplace[9] = "CAPSLOCK";
m_datasheetKeyReplace[10] = "ESCAPE";
m_datasheetKeyReplace[11] = "SPACE";
m_datasheetKeyReplace[12] = "PAGEUP";
m_datasheetKeyReplace[13] = "PAGEDOWN";
m_datasheetKeyReplace[14] = "END";
m_datasheetKeyReplace[15] = "HOME";
m_datasheetKeyReplace[16] = "LEFT";
m_datasheetKeyReplace[17] = "UP";
m_datasheetKeyReplace[18] = "RIGHT";
m_datasheetKeyReplace[19] = "DOWN";
m_datasheetKeyReplace[20] = "SELECT";
m_datasheetKeyReplace[21] = "PRINT";
m_datasheetKeyReplace[22] = "PRINTSCRN";
m_datasheetKeyReplace[23] = "INSERT";
m_datasheetKeyReplace[24] = "DELETE";
m_datasheetKeyReplace[25] = "HELP";
m_datasheetKeyReplace[26] = "NUMPAD0";
m_datasheetKeyReplace[27] = "NUMPAD1";
m_datasheetKeyReplace[28] = "NUMPAD2";
m_datasheetKeyReplace[29] = "NUMPAD3";
m_datasheetKeyReplace[30] = "NUMPAD4";
m_datasheetKeyReplace[31] = "NUMPAD5";
m_datasheetKeyReplace[32] = "NUMPAD6";
m_datasheetKeyReplace[33] = "NUMPAD7";
m_datasheetKeyReplace[34] = "NUMPAD8";
m_datasheetKeyReplace[35] = "NUMPAD9";
m_datasheetKeyReplace[36] = "GREYSTAR";
m_datasheetKeyReplace[37] = "GREYPLUS";
m_datasheetKeyReplace[38] = "SEPARATOR";
m_datasheetKeyReplace[39] = "GREYMINUS";
m_datasheetKeyReplace[40] = "NUMPADPERIOD";
m_datasheetKeyReplace[41] = "GREYSLASH";
m_datasheetKeyReplace[42] = "NUMLOCK";
m_datasheetKeyReplace[43] = "SCROLLLOCK";
m_datasheetKeyReplace[44] = "UNICODE";
m_datasheetKeyReplace[45] = "SEMICOLON";
m_datasheetKeyReplace[46] = "EQUALS";
m_datasheetKeyReplace[47] = "COMMA";
m_datasheetKeyReplace[48] = "MINUS";
m_datasheetKeyReplace[49] = "SLASH";
m_datasheetKeyReplace[50] = "TILDE";
m_datasheetKeyReplace[51] = "LEFTBRACKET";
m_datasheetKeyReplace[52] = "BACKSLASH";
m_datasheetKeyReplace[53] = "RIGHTBRACKET";
m_datasheetKeyReplace[54] = "SINGLEQUOTE";
m_datasheetKeyReplace[55] = "PERIOD";
m_datasheetKeyReplace[56] = "MIDDLEMOUSE";
m_datasheetKeyReplace[57] = "MOUSEWHEELDOWN";
m_datasheetKeyReplace[58] = "MOUSEWHEELUP";
m_datasheetKeyReplace[59] = "UNKNOWN16";
m_datasheetKeyReplace[60] = "UNKNOWN17";
m_datasheetKeyReplace[61] = "BACKSLASH";
m_datasheetKeyReplace[62] = "UNKNOWN19";
m_datasheetKeyReplace[63] = "UNKNOWN5C";
m_datasheetKeyReplace[64] = "UNKNOWN5D";
m_datasheetKeyReplace[65] = "UNKNOWN0C";
m_datasheetKeyReplaced[1] = GetSystemString(1670);
m_datasheetKeyReplaced[2] = GetSystemString(1671);
m_datasheetKeyReplaced[3] = GetSystemString(1517);
m_datasheetKeyReplaced[4] = "Enter";
m_datasheetKeyReplaced[5] = "Shift";
m_datasheetKeyReplaced[6] = "Ctrl";
m_datasheetKeyReplaced[7] = "Alt";
m_datasheetKeyReplaced[8] = "Pause";
m_datasheetKeyReplaced[9] = "CapsLock";
m_datasheetKeyReplaced[10] = "ESC";
m_datasheetKeyReplaced[11] = GetSystemString(1672);
m_datasheetKeyReplaced[12] = "PageUp";
m_datasheetKeyReplaced[13] = "PageDown";
m_datasheetKeyReplaced[14] = "End";
m_datasheetKeyReplaced[15] = "Home";
m_datasheetKeyReplaced[16] = "Left";
m_datasheetKeyReplaced[17] = "Up";
m_datasheetKeyReplaced[18] = "Right";
m_datasheetKeyReplaced[19] = "Down";
m_datasheetKeyReplaced[20] = "Select";
m_datasheetKeyReplaced[21] = "Print";
m_datasheetKeyReplaced[22] = "PrintScrn";
m_datasheetKeyReplaced[23] = "Insert";
m_datasheetKeyReplaced[24] = "Delete";
m_datasheetKeyReplaced[25] = "Help";
m_datasheetKeyReplaced[26] = GetSystemString(1657);
m_datasheetKeyReplaced[27] = GetSystemString(1658);
m_datasheetKeyReplaced[28] = GetSystemString(1659);
m_datasheetKeyReplaced[29] = GetSystemString(1660);
m_datasheetKeyReplaced[30] = GetSystemString(1661);
m_datasheetKeyReplaced[31] = GetSystemString(1662);
m_datasheetKeyReplaced[32] = GetSystemString(1663);
m_datasheetKeyReplaced[33] = GetSystemString(1664);
m_datasheetKeyReplaced[34] = GetSystemString(1665);
m_datasheetKeyReplaced[35] = GetSystemString(1666);
m_datasheetKeyReplaced[36] = "*";
m_datasheetKeyReplaced[37] = "+";
m_datasheetKeyReplaced[38] = "Separator";
m_datasheetKeyReplaced[39] = "-";
m_datasheetKeyReplaced[40] = ".";
m_datasheetKeyReplaced[41] = "/";
m_datasheetKeyReplaced[42] = "NumLock";
m_datasheetKeyReplaced[43] = "ScrollLock";
m_datasheetKeyReplaced[44] = "Unicode";
m_datasheetKeyReplaced[45] = ";";
m_datasheetKeyReplaced[46] = "=";
m_datasheetKeyReplaced[47] = ",";
m_datasheetKeyReplaced[48] = "-";
m_datasheetKeyReplaced[49] = "/";
m_datasheetKeyReplaced[50] = "`";
m_datasheetKeyReplaced[51] = "[";
m_datasheetKeyReplaced[52] = "";
m_datasheetKeyReplaced[53] = "]";
m_datasheetKeyReplaced[54] = "'";
m_datasheetKeyReplaced[55] = ".";
m_datasheetKeyReplaced[56] = GetSystemString(1669);
m_datasheetKeyReplaced[57] = GetSystemString(1667);
m_datasheetKeyReplaced[58] = GetSystemString(1668);
m_datasheetKeyReplaced[59] = "-";
m_datasheetKeyReplaced[60] = "=";
m_datasheetKeyReplaced[61] = GetSystemString(1676);
m_datasheetKeyReplaced[62] = GetSystemString(1673);
m_datasheetKeyReplaced[63] = GetSystemString(1674);
m_datasheetKeyReplaced[64] = GetSystemString(1675);
m_datasheetKeyReplaced[65] = GetSystemString(1677);
}
function string GetUserReadableKeyName (string Input)
{
local int i;
local string output;
i = 0;
if ( i < m_datasheetKeyReplace.Length )
{
if ( m_datasheetKeyReplace[i] == Input )
{
output = m_datasheetKeyReplaced[i];
}
++i;
goto JL0007;
}
if ( output == "" )
{
output = Input;
}
return output;
}
function PartyLootingChanged (int selectedNum)
{
if ( bPartyMaster || IsRoomMaster() && !bPartyMember )
{
if ( GetOptionInt("Communication","PartyLooting") == selectedNum )
{
return;
}
setEnableLootingBox(False);
RequestPartyLootingModify(selectedNum);
}
}
function chkRequestRegistWaitingSubstitute (bool checked)
{
if ( checked == GetOptionBool("Communication","StartupAutoPartyMatching") )
{
return;
}
if ( m_bAutoPartyMatching )
{
return;
}
if ( checked )
{
RequestRegistWaitingSubstitute(1);
}
}
function HandleSwitchEnterchatting ()
{
local bool enableEnterChatting;
local FlightTransformCtrlWnd scriptFlgithForm;
local FlightShipCtrlWnd scriptFlightShip;
local ShortcutCommandItem shortcutItem;
scriptFlgithForm = FlightTransformCtrlWnd(GetScript("FlightTransformCtrlWnd"));
if ( scriptFlgithForm.isNowActiveFlightTransShortcut )
{
return;
}
scriptFlightShip = FlightShipCtrlWnd(GetScript("FlightShipCtrlWnd"));
if ( scriptFlightShip.isNowActiveFlightShipShortcut )
{
return;
}
Class'ShortcutAPI'.ActivateGroup("GamingStateDefaultShortcut");
Class'ShortcutAPI'.ActivateGroup("CameraControl");
Class'ShortcutAPI'.ActivateGroup("GamingStateGMShortcut");
if ( getInstanceUIData().getIsArenaServer() )
{
Class'ShortcutAPI'.ActivateGroup("TempStateShortcut");
preEnterChattingOption = GetChatFilterBool("Global","EnterChatting");
SetChatFilterBool("Global","EnterChatting",True);
enableEnterChatting = True;
CallGFxFunction(getCurrentWindowName(string(self)),"onSwitchDisableEnterChatting",string(True));
} else {
if ( GetChatFilterBool("Global","EnterChatting") )
{
Class'ShortcutAPI'.ActivateGroup("TempStateShortcut");
SetChatFilterBool("Global","EnterChatting",True);
enableEnterChatting = True;
} else {
Class'ShortcutAPI'.DeactivateGroup("TempStateShortcut");
SetChatFilterBool("Global","EnterChatting",False);
enableEnterChatting = False;
}
}
if ( (GetGameStateName() == "ARENABATTLESTATE") || (GetGameStateName() == "ARENAGAMINGSTATE") )
{
Class'ShortcutAPI'.DeactivateGroup("ArenaPickEnterChattingShortcut");
Class'ShortcutAPI'.ActivateGroup("ArenaGamingShortcut");
Class'ShortcutAPI'.ActivateGroup("ArenaGamingEnterChattingShortcut");
} else {
if ( GetGameStateName() == "ARENAPICKSTATE" )
{
Class'ShortcutAPI'.ActivateGroup("ArenaPickEnterChattingShortcut");
Class'ShortcutAPI'.DeactivateGroup("TempStateShortcut");
Class'ShortcutAPI'.DeactivateGroup("ArenaGamingShortcut");
Class'ShortcutAPI'.DeactivateGroup("ArenaGamingEnterChattingShortcut");
}
}
CallGFxFunction(getCurrentWindowName(string(self)),"onSwitchEnterChatting",string(enableEnterChatting));
}
function ToggleOpenMeWnd (bool isShortCut)
{
isOpenShortCut = isShortCut;
if ( IsShowWindow() )
{
HideWindow();
} else {
ShowWindow();
}
}
function ShortCutReset ()
{
ActiveFlightShort();
HandleSwitchEnterchatting();
}
function OnCallUCFunction (string funcName, string param)
{
switch (funcName)
{
case "ShortCutReset":
ShortCutReset();
break;
case "HandleSwitchEnterchatting":
HandleSwitchEnterchatting();
break;
case "PartyLootingChanged":
PartyLootingChanged(int(param));
break;
case "RequestRegistWaitingSubstitute":
chkRequestRegistWaitingSubstitute(bool(param));
break;
case "SetPcRoomBoxData":
SetPcRoomBoxData(bool(param));
break;
case "StateBoxShow":
StateBoxShow(bool(param));
break;
case "handleShaderOptionChange":
handleShaderOptionChange();
break;
case "setChattingOption":
setChattingOption();
break;
default:
}
}
function SetDefaultPositionByClick ()
{
GetCurrentResolution(g_CurrentMaxWidth,g_CurrentMaxHeight);
SetDefaultPosition();
}
function InitControlOption ()
{
CallGFxFunction(getCurrentWindowName(string(self)),"InitControlOption","");
}
function InitScreenInfoOption ()
{
CallGFxFunction(getCurrentWindowName(string(self)),"InitScreenInfoOption","");
}
function StateBoxShow (bool bChecked)
{
local TargetStatusWnd util;
util = TargetStatusWnd(GetScript("TargetStatusWnd"));
util.StateBoxShow(bChecked);
}
function SetPcRoomBoxData (bool bOption)
{
local InfoWnd Script;
Script = InfoWnd(GetScript("InfoWnd"));
if ( (Script != None) && isGAMINGSTATE )
{
Script.HandleToggleShowPCCafeEventWnd(True,bOption);
}
}
function ActiveFlightShort ()
{
if ( scriptShip.Me.IsShowWindow() )
{
SetChatFilterBool("Global","EnterChatting",True);
CallGFxFunction(getCurrentWindowName(string(self)),"onSwitchEnterChatting",string(True));
CallGFxFunction(getCurrentWindowName(string(self)),"onSwitchDisableEnterChatting",string(True));
Class'ShortcutAPI'.ActivateGroup("FlightStateShortcut");
scriptShip.updateLockButton();
} else {
if ( scriptTrans.Me.IsShowWindow() )
{
SetChatFilterBool("Global","EnterChatting",True);
CallGFxFunction(getCurrentWindowName(string(self)),"onSwitchEnterChatting",string(True));
CallGFxFunction(getCurrentWindowName(string(self)),"onSwitchDisableEnterChatting",string(True));
scriptTrans.updateLockButton();
Class'ShortcutAPI'.ActivateGroup("FlightTransformShortcut");
}
}
}
function handleShaderOptionChange ()
{
m_AntiAliasing = GetOptionInt("Video","AntiAliasing");
m_PostProc = GetOptionInt("Video","PostProc");
m_bL2Shader = GetOptionBool("Video","L2Shader");
m_bDOF = GetOptionBool("Video","S30DOFBOX");
m_bShaderWater = GetOptionBool("Video","S30WaterEffectBox");
SetHDR(m_PostProc);
SetAntialiasing(m_AntiAliasing);
SetShaderWaterEffect(m_bShaderWater);
SetDOF(m_bDOF);
SetL2Shader(m_bL2Shader);
}
function OnEvent (int a_EventID, string a_Param)
{
switch (a_EventID)
{
case 1710:
HandleDialogResult(True);
break;
case 1720:
HandleDialogResult(False);
break;
case 3410:
UIActivationUponStateChanges(a_Param);
break;
case 4910:
OnAskPartyLootingModify(a_Param);
break;
case 4911:
OnPartyLootingHasModified(a_Param);
break;
case 4917:
case 4916:
case 4913:
bPartyMember = False;
bPartyMaster = False;
OnPartyHasDismissed();
break;
case 4914:
bPartyMember = True;
bPartyMaster = False;
OnBecamePartyMember(a_Param);
break;
case 4915:
bPartyMember = False;
bPartyMaster = True;
OnBecamePartyMaster(a_Param);
break;
case 4918:
bPartyMember = True;
bPartyMaster = False;
OnHandOverPartyMaster();
if ( m_hPartyMatchWnd.IsShowWindow() == True )
{
m_hPartyMatchWnd.HideWindow();
}
if ( m_hUnionMatchWnd.IsShowWindow() == True )
{
m_hUnionMatchWnd.HideWindow();
}
break;
case 4919:
bPartyMember = False;
bPartyMaster = True;
OnRecvPartyMaster();
break;
case 40:
bPartyMember = False;
bPartyMaster = False;
OnRestart();
break;
case 1560:
OnPartyMatchRoomClose();
break;
case 9170:
m_bAutoPartyMatching = True;
break;
case 9175:
m_bAutoPartyMatching = False;
break;
default:
}
}
function HandleDialogResult (bool bOK)
{
local DialogBox dialogBoxScript;
dialogBoxScript = DialogBox(GetScript("DialogBox"));
if ( Class'UICommonAPI'.DialogIsOwnedBy(string(self)) )
{
if ( dialogBoxScript.DialogGetID() == 9 )
{
SetRequestPartyLootingModifyAgreement(bOK);
}
}
}
function setEnableLootingBox (bool bEnable)
{
CallGFxFunction(getCurrentWindowName(string(self)),"setEnableLootingBox",string(bEnable));
}
function setLootingBoxSelection (int SelectNum)
{
CallGFxFunction(getCurrentWindowName(string(self)),"setLootingBoxSelection",string(SelectNum));
}
function saveLootingBoxSelection ()
{
CallGFxFunction(getCurrentWindowName(string(self)),"saveLootingBoxSelection","");
}
function SetRequestPartyLootingModifyAgreement (bool bOK)
{
if ( bOK )
{
RequestPartyLootingModifyAgreement(1);
} else {
dScript.SetButtonName(1337,1342);
RequestPartyLootingModifyAgreement(0);
}
}
function OnPartyMatchRoomClose ()
{
if ( !bPartyMember && !bPartyMaster )
{
setLootingBoxSelection(GetOptionInt("Communication","PartyLooting"));
}
}
function OnPartyHasDismissed ()
{
setLootingBoxSelection(GetOptionInt("Communication","PartyLooting"));
setEnableLootingBox(True);
}
function OnBecamePartyMember (string a_Param)
{
local int Lootingtype;
ParseInt(a_Param,"Lootingtype",Lootingtype);
setLootingBoxSelection(Lootingtype);
setEnableLootingBox(False);
}
function OnBecamePartyMaster (string a_Param)
{
local int Lootingtype;
ParseInt(a_Param,"Lootingtype",Lootingtype);
setLootingBoxSelection(Lootingtype);
setEnableLootingBox(True);
}
function OnHandOverPartyMaster ()
{
setEnableLootingBox(False);
}
function OnRecvPartyMaster ()
{
saveLootingBoxSelection();
setEnableLootingBox(True);
}
function OnRestart ()
{
setLootingBoxSelection(GetOptionInt("Communication","PartyLooting"));
setEnableLootingBox(True);
if ( getInstanceUIData().getIsArenaServer() )
{
SetChatFilterBool("Global","EnterChatting",preEnterChattingOption);
}
}
function bool IsRoomMaster ()
{
local PartyWnd Script;
Script = PartyWnd(GetScript("PartyWnd"));
return Script.m_AmIRoomMaster;
}
function OnPartyLootingHasModified (string a_Param)
{
local int IsSuccess;
local int LootingScheme;
local string Schemestr;
local string strParam;
local PartyWnd Script;
local SystemMsgData SystemMsgCurrent;
local TextBoxHandle t_handle;
local L2Util util;
util = L2Util(GetScript("L2Util"));
Script = PartyWnd(GetScript("PartyWnd"));
ParseInt(a_Param,"IsSuccess",IsSuccess);
ParseInt(a_Param,"LootingScheme",LootingScheme);
if ( IsSuccess != 0 )
{
Script.SetMasterTooltip(LootingScheme);
Schemestr = util.getLootingString(LootingScheme);
t_handle = GetTextBoxHandle("PartyMatchRoomWnd.LootingMethod");
t_handle.SetText(Schemestr);
}
if ( bPartyMaster || IsRoomMaster() )
{
AddSystemMessage(3136);
if ( IsSuccess != 0 )
{
SetOptionInt("Communication","PartyLooting",LootingScheme);
} else {
setLootingBoxSelection(GetOptionInt("Communication","PartyLooting"));
}
setEnableLootingBox(True);
}
if ( IsSuccess == 0 )
{
goto JL050D;
}
if ( IsSuccess == 1 )
{
Schemestr = util.getLootingString(LootingScheme);
GetSystemMsgInfo(3138,SystemMsgCurrent);
ParamAdd(strParam,"MsgType",string(1));
ParamAdd(strParam,"WindowType",string(SystemMsgCurrent.WindowType));
ParamAdd(strParam,"FontType",string(SystemMsgCurrent.FontType));
ParamAdd(strParam,"BackgroundType",string(SystemMsgCurrent.BackgroundType));
ParamAdd(strParam,"LifeTime",string(SystemMsgCurrent.Lifetime * 1000));
ParamAdd(strParam,"AnimationType",string(SystemMsgCurrent.AnimationType));
ParamAdd(strParam,"Msg",MakeFullSystemMsg(SystemMsgCurrent.OnScrMsg,Schemestr));
ParamAdd(strParam,"MsgColorR",string(SystemMsgCurrent.FontColor.R));
ParamAdd(strParam,"MsgColorG",string(SystemMsgCurrent.FontColor.G));
ParamAdd(strParam,"MsgColorB",string(SystemMsgCurrent.FontColor.B));
ExecuteEvent(140,strParam);
PlaySound(SystemMsgCurrent.Sound);
setLootingBoxSelection(LootingScheme);
} else {
if ( IsSuccess == 2 )
{
Schemestr = util.getLootingString(LootingScheme);
GetSystemMsgInfo(3138,SystemMsgCurrent);
ParamAdd(strParam,"MsgType",string(1));
ParamAdd(strParam,"WindowType",string(SystemMsgCurrent.WindowType));
ParamAdd(strParam,"FontType",string(SystemMsgCurrent.FontType));
ParamAdd(strParam,"BackgroundType",string(SystemMsgCurrent.BackgroundType));
ParamAdd(strParam,"LifeTime",string(SystemMsgCurrent.Lifetime * 1000));
ParamAdd(strParam,"AnimationType",string(SystemMsgCurrent.AnimationType));
ParamAdd(strParam,"Msg",MakeFullSystemMsg(SystemMsgCurrent.OnScrMsg,Schemestr));
ParamAdd(strParam,"MsgColorR",string(SystemMsgCurrent.FontColor.R));
ParamAdd(strParam,"MsgColorG",string(SystemMsgCurrent.FontColor.G));
ParamAdd(strParam,"MsgColorB",string(SystemMsgCurrent.FontColor.B));
ExecuteEvent(140,strParam);
PlaySound(SystemMsgCurrent.Sound);
setLootingBoxSelection(LootingScheme);
}
}
}
function OnAskPartyLootingModify (string a_Param)
{
local string LeaderName;
local int LootingScheme;
local string Schemestr;
local L2Util util;
util = L2Util(GetScript("L2Util"));
if ( Class'UIAPI_WINDOW'.IsShowWindow("DialogBox") )
{
SetRequestPartyLootingModifyAgreement(False);
return;
}
dScript.SetButtonName(184,185);
Class'UICommonAPI'.DialogSetID(9);
Class'UICommonAPI'.DialogSetParamInt64(10 * 1000);
Class'UICommonAPI'.DialogSetDefaultCancle();
ParseString(a_Param,"LeaderName",LeaderName);
ParseInt(a_Param,"LootingScheme",LootingScheme);
Schemestr = util.getLootingString(LootingScheme);
Class'UICommonAPI'.DialogShow(1,7,MakeFullSystemMsg(GetSystemMessage(3134),Schemestr),string(self));
}
function UIActivationUponStateChanges (string a_Param)
{
if ( (a_Param == "GAMINGSTATE") || (a_Param == "ARENAGAMINGSTATE") || (a_Param == "ARENABATTLESTATE") || (a_Param == "ARENAPICKSTATE") )
{
HandleSwitchEnterchatting();
Class'ShortcutAPI'.RequestList();
isGAMINGSTATE = True;
} else {
isGAMINGSTATE = False;
}
SetAlwaysOnTop( !isGAMINGSTATE);
InitControlOption();
}
function setChattingOption ()
{
local ChatWnd Script;
local SystemMsgWnd SysMsgScript;
local int tempVal;
local int i;
local int resultNum;
Script = ChatWnd(GetScript("ChatWnd"));
SysMsgScript = SystemMsgWnd(GetScript("ChatWnd.SystemMsgWnd"));
i = 0;
if ( i < Script.m_sectionName.Length )
{
GetINIBool(Script.m_sectionName[i],"system",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bSystem = tempVal;
GetINIBool(Script.m_sectionName[i],"useitems",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bUseitem = tempVal;
GetINIBool(Script.m_sectionName[i],"damage",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bDamage = tempVal;
GetINIBool(Script.m_sectionName[i],"chat",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bChat = tempVal;
GetINIBool(Script.m_sectionName[i],"normal",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bNormal = tempVal;
GetINIBool(Script.m_sectionName[i],"party",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bParty = tempVal;
GetINIBool(Script.m_sectionName[i],"shout",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bShout = tempVal;
GetINIBool(Script.m_sectionName[i],"market",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bTrade = tempVal;
GetINIBool(Script.m_sectionName[i],"pledge",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bClan = tempVal;
GetINIBool(Script.m_sectionName[i],"tell",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bWhisper = tempVal;
GetINIBool(Script.m_sectionName[i],"ally",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bAlly = tempVal;
GetINIBool(Script.m_sectionName[i],"hero",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bHero = tempVal;
GetINIBool(Script.m_sectionName[i],"union",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bUnion = tempVal;
GetINIBool(Script.m_sectionName[i],"nonpcmessage",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bNoNpcMessage = tempVal;
GetINIBool(Script.m_sectionName[i],"worldChat",tempVal,"chatfilter.ini");
Script.m_filterInfo[i].bWorldChat = tempVal;
i++;
goto JL0048;
}
Script.m_UseChatSymbol = GetChatFilterBool("Global","OldChatting").Remove (GetINIBool("global","keywordsound",resultNum,"chatfilter.ini"),Script.m_KeywordFilterSound = resultNum);;
GetINIBool("global","keywordactivate",resultNum,"chatfilter.ini");
Script.m_KeywordFilterActivate = resultNum;
GetINIBool("global","UseAlpha",resultNum,"chatfilter.ini");
Script.m_UseAlpha = resultNum;
GetINIBool("global","ChatResizing",resultNum,"chatfilter.ini");
Script.m_ChatResizeOnOff = resultNum;
GetINIBool("global","SystemMsgWnd",resultNum,"chatfilter.ini");
Script.m_bUseSystemMsgWnd = resultNum;
GetINIBool("global","UseSystemMsg",resultNum,"chatfilter.ini");
Script.m_bSystemMsgWnd = resultNum;
GetINIBool("global","SystemMsgWndDamage",resultNum,"chatfilter.ini");
Script.m_bDamageOption = resultNum;
GetINIBool("global","SystemMsgWndExpendableItem",resultNum,"chatfilter.ini");
Script.m_bUseSystemItem = resultNum;
GetINIBool("global","UseWorldChatSpeaker",resultNum,"chatfilter.ini");
Script.m_bWorldChatSpeaker = resultNum;
GetINIString("global","Keyword0",Script.m_Keyword0,"chatfilter.ini");
GetINIString("global","Keyword1",Script.m_Keyword1,"chatfilter.ini");
GetINIString("global","Keyword2",Script.m_Keyword2,"chatfilter.ini");
GetINIString("global","Keyword3",Script.m_Keyword3,"chatfilter.ini");
if ( bool(Script.m_bUseSystemMsgWnd) )
{
Class'UIAPI_WINDOW'.ShowWindow("SystemMsgWnd");
} else {
Class'UIAPI_WINDOW'.HideWindow("SystemMsgWnd");
}
if ( bool(Script.m_ChatResizeOnOff) )
{
EnableChatWndResizing(False);
} else {
EnableChatWndResizing(True);
}
Script.SetDefaultAlpha(Script.m_UseAlpha);
SysMsgScript.SetDefaultAlpha(Script.m_UseAlpha);
Script.GetAllcurrentAssignedChatTypeID();
}
L2Font-ru.utx не отличается фактически от тектсур шрифта L2Fount-eu.utx
Так же вижу в настройках L2.ini:
Открыть спойлер
L2.ini
L2Font=NWindow.L2Font
Но при этом не могу найти в пакете NWindow такого класса
Учиться никогда не поздно и никогда не рано
|