04-07-2013, 17:54
(04-07-2013, 17:23)SailorMoon Wrote:I need this code to be in two separate functionsCode:SettingsTEXT()
{
self endon ( "disconnect" );
infosban = "TEXT";
infosban += "TEXT..";
infosban2 = "TEXT2";
infosban2 += "TEXT..";
self.text20 = self createFontString( "normalbold", 1.5 );
self.text20 setPoint ( "RIGHTTOP", "RIGHTTOP", -5, 0);
self.text20 setText ( infosban );
self.text21 = self createFontString( "normalbold", 1.5 );
self.text21 setPoint ( "RIGHTTOP", "RIGHTTOP", -5, 0);
self.text21 setText ( infosban2 );
}
1)SettingsTEXT()
self.text20 = self createFontString( "normalbold", 1.5 );
self.text20 setPoint ( "RIGHTTOP", "RIGHTTOP", -5, 0);
self.text20 setText ( infosban );
self.text21 = self createFontString( "normalbold", 1.5 );
self.text21 setPoint ( "RIGHTTOP", "RIGHTTOP", -5, 0);
self.text21 setText ( infosban2 );
2)BanerText()
infosban = "TEXT";
infosban += "TEXT..";
infosban2 = "TEXT2";
infosban2 += "TEXT..";