All pastes #116057 Raw Edit

SoapTranslateGUI

public lua v1 · immutable
·published 2006-08-05 01:49 UTC
rendered paste body
-- This sets the text of all the GUI texts, this is here for localization purposesfunction Soap:TranslateGUIText()	SoapAnchorFrameText:SetText(L"Timer bars will appear here.")	if SoapOptionsFrame then		-- close/run test bars buttons		SoapOptionsFrameBtnClose:SetText(L"Close")		SoapOptionsFrameBtnTestBars:SetText(L"Run Test Bars")		-- main labels (title/panel titles)		SoapOptionsFrameLblTitleText:SetText(L"Soap Options")		SoapOptionsFrameLblOptions:SetText(L"Options")		SoapOptionsFrameLblEvents:SetText(L"Events")				-- options panel - check button names		SoapOptionsFramePanelGeneralOptsChkBtnTargetOnly:SetText(L"Target Only")		SoapOptionsFramePanelGeneralOptsChkBtnColorBarsClass:SetText(L"Color Bars by Class")		SoapOptionsFramePanelGeneralOptsChkBtnStopBarsDeath:SetText(L"Stop Bars on Death")		SoapOptionsFramePanelGeneralOptsChkBtnStopBarsHostileDeath:SetText(L"Stop Bars on Hostile Death")		SoapOptionsFramePanelGeneralOptsChkBtnOnlyCastingTime:SetText(L"Only Casting Time")		SoapOptionsFramePanelGeneralOptsChkBtnStopCancelledSpell:SetText(L"Stop Cancelled Spell")						-- events panel - event names		SoapOptionsFramePanelEventsRegisteredChkBtnHostilePlayerBuffs:SetText(L"Hostile Player Buffs")		SoapOptionsFramePanelEventsRegisteredChkBtnHostilePlayerPeriodicBuffs:SetText(L"Periodic Hostile Player Buffs")		SoapOptionsFramePanelEventsRegisteredChkBtnHostilePlayerDamage:SetText(L"Hostile Player Damage")	endend----- XML FILE  for the SoapAnchorFrameText:SetText(L"Timer bars will appear here.")  <Frame name="SoapAnchorFrame" parent="UIParent" movable="true" enableMouse="true" hidden="true">      <Scripts>	     <OnLoad>this:RegisterForDrag("LeftButton") </OnLoad>         <OnDragStart>this:StartMoving()</OnDragStart>         <OnDragStop>this:StopMovingOrSizing()</OnDragStop>      </Scripts> 	  <Size><AbsDimension x="180" y="40"/></Size>     	  <Anchors>		<Anchor point="TOP" relativeTo="ZoneTextFrame" relativePoint="BOTTOM">			<Offset>				<AbsDimension x="0" y="10" />			</Offset>		</Anchor>      </Anchors>	 	  <Backdrop bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">        <EdgeSize>			<AbsValue val="16"/>		</EdgeSize>		<BackgroundInsets>			<AbsInset left="5" right="5" top="5" bottom="5"/>		</BackgroundInsets>      </Backdrop>		  <Layers>	     <Layer level="ARTWORK">				<FontString name="$parentText" inherits="GameFontNormal" text="text">				    <Anchors>						<Anchor point="CENTER" relativeTo="SoapAnchorFrame">							<Offset>								<AbsDimension x="0" y="0" />							</Offset>						</Anchor>					</Anchors>				</FontString> 		</Layer>	  </Layers> </Frame>