How can i get a Button working?
I have created this butten:
Intro.SkirmWindow =Turbine.UI.Lotro.Button();
Intro.SkirmWindow:SetText(otherText[locale][6]);
Intro.SkirmWindow:SetPosition( 40, 40 );
Intro.SkirmWindow:SetSize( 150, 20 );
Intro.SkirmWindow:SetParent(Intro);
and i want that the button opens this window:
skirmWindow=Turbine.UI.Lotro.Window();
skirmWindow:SetSize(380,765);
skirmWindow:SetPosition(Turbine.UI.Display:GetWidt h()/2-190,Turbine.UI.Display:GetHeight()/2-300);
skirmWindow:SetText(otherText[locale][1]);
and it would be great if this window shuts down at the same time:
Intro=Turbine.UI.Lotro.Window();
Intro:SetSize(250,200);
Intro:SetPosition(Turbine.UI.Display:GetWidth()/2-190,Turbine.UI.Display:GetHeight()/2-300);
Intro:SetText(otherText[locale][5]);
Is this possible?
It would be great if somebody can help me.
|