//
// CHAT FRAME EDIT
//
// Message Container
%index = %this.addHudElement();
%this.setHudElementPosition(%index, 1500, 3);
%this.setHudElementPositionAnchor(%index, "HCenter", "Top");
%this.setHudElementBaseTextureSize(%index, 2000, 73);
%this.setHudElementScreenAnchor(%index, "Top");
%this.setHudElementParent(%index, $HudElement::MainContainer);
%this.setHudElementRenderWhenDead(%index, true);
//%this.setHudElementDrawRect(%index, true);
$HudElement::MessageContainer = %index;
// chat upper container
%index = %this.addChatContainerHudElement();
%this.setHudElementPosition(%index, 1500, 71);
%this.setHudElementPositionAnchor(%index, "HCenter", "Bottom");
%this.setHudElementBaseTextureSize(%index, 1680, 96);
%this.setHudElementScreenAnchor(%index, "Right", "Left", "Bottom", "Top");
%this.setHudElementParent(%index, $HudElement::MessageContainer);
%this.setHudElementRenderWhenDead(%index, true);
//%this.setHudElementDrawRect(%index, true);
$HudElement::ChatBorderContainer = %index;
// fill
%index = %this.addHudElement();
%this.setHudElementPosition(%index, 6, 6);
%this.setHudElementPositionAnchor(%index, "Top", "Left");
%this.setHudElementTexture(%index, "live/mods/autoexec/MiniHud/ChatFill");
%this.setHudElementBaseTextureSize(%index, 2000, 84);
%this.setHudElementScreenAnchor(%index, "Right", "Left", "Bottom", "Top");
%this.setHudElementParent(%index, $HudElement::ChatBorderContainer);
%this.setHudElementRenderWhenDead(%index, true);
//%this.setHudElementDrawRect(%index, true);
// chat container
%index = %this.addHudElement();
%this.setHudElementPosition(%index, 550, 8);
%this.setHudElementPositionAnchor(%index, "HCenter", "Top");
%this.setHudElementBaseTextureSize(%index, 1680, 80);
%this.setHudElementScreenAnchor(%index, "Right", "Left", "Bottom", "Top");
%this.setHudElementParent(%index, $HudElement::ChatBorderContainer);
%this.setHudElementRenderWhenDead(%index, true);
//%this.setHudElementDrawRect(%index, true);
$HudElement::ChatContainer = %index;
// chat display element
%index = %this.addChatDisplayHudElement();
%this.setHudElementPosition(%index, 550, 80);
%this.setHudElementPositionAnchor(%index, "HCenter", "Bottom");
%this.setHudElementBaseTextureSize(%index, 1670, 0);
%this.setHudElementScreenAnchor(%index, "Right", "Left", "Bottom");
%this.setHudElementParent(%index, $HudElement::ChatContainer);
%this.setHudElementResponder(%index, $HudElement::ChatBorderContainer);
%this.setHudElementRenderWhenDead(%index, true);
//%this.setHudElementDrawRect(%index, true);
$HudElement::CustomChatInterface = %index;
/// This is the bottom window where player chat is entered ///
// chat text entry container
%index = %this.addHudElement();
%this.setHudElementPosition(%index, 0, 63);
%this.setHudElementPositionAnchor(%index, "Left", "Bottom");
%this.setHudElementTexture(%index, "client/gui/images/hud/ChatEntryRule");
%this.setHudElementBaseTextureSize(%index, 960, 2);
%this.setHudElementScreenAnchor(%index, "Right", "Left", "Bottom");
%this.setHudElementParent(%index, $HudElement::ChatContainer);
%this.setHudElementRenderWhenDead(%index, true);
%this.setHudElementVisible(%index, false);
$HudElement::ChatEntryRule = %index;
// chat text entry
%index = %this.addTextEntryHudElement();
%this.setHudElementPosition(%index, 0, 80);
%this.setHudElementPositionAnchor(%index, "Bottom", "Left");
%this.setHudElementBaseTextureSize(%index, 960, 16);
%this.setHudElementScreenAnchor(%index, "Right", "Left", "Bottom");
%this.setHudElementParent(%index, $HudElement::ChatContainer);
%this.setHudElementRenderWhenDead(%index, true);
$HudElement::ChatTextEntry = %index;
//
// OVERDRIVE & VELOCITY REPLACEMENT
//
// ODBase Frame
%index = %this.AddHudElement();
%this.setHudElementPosition(%index, 975, 548);
%this.setHudElementTexture(%index, "mods/autoexec/Koncept/VODBG");
%this.setHudElementParent(%index, $HudElement::BaseContainer);
%this.setHudElementPositionAnchor(%index, "Right", "Bottom");
%this.setHudElementRenderWhenDead(%index, true);
//%this.setHudElementDrawRect(%index, true);
$HudOverlay::ODBaseFrame = %index;
// Overdrive Warning
%index = %this.addWarningHudElement();
%this.setHudElementPosition(%index, 975, 548);
%this.setHudElementPositionAnchor(%index, "Right", "Bottom");
%this.setHudElementTexture(%index, "mods/autoexec/Koncept/Vel");
%this.setOverdriveWarning(%index, OverdriveWarnSound);
%this.setHudElementParent(%index, $HudElement::BaseContainer);
$HudElement::OverdriveWarning = %index;
// Overdrive Indicator
%index = %this.addHudElement();
%this.setHudElementPosition(%index, 975, 548);
%this.setHudElementPositionAnchor(%index, "Right", "Bottom");
%this.setHudElementTexture(%index, "mods/autoexec/Koncept/OD");
%this.setOverdriveIndicator(%index);
%this.setHudElementParent(%index, $HudElement::BaseContainer);
$HudElement::OverdriveIndicator = %index;
}
};
activatePackage(Koncept);