Results 1 to 7 of 7
  1. #1
    litte's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    1

    Simple Static Text

    Hello guys.

    I´m Trying to do the tutorials in the forum but i dont have sucess.

    I only want to creat a static text in the top left corner.

    I alredy know hot to mod the server. I have the _rank inside de test.iwd

    but i dont know hot configur this to do what i want!

    Thanks!

    PS: Sorry for the bad english ...

  2. #2
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Code:
    ModInfo()
    {
    self endon( "disconnect" );
    info = self createFontString("hudbig", 0.4);
    info setPoint("TOPLEFT", "TOPLEFT", -3, 0);
    
    info setText("Text here!");
    
    }

  3. The Following User Says Thank You to mathieutje12 For This Useful Post:

    pyrozombie (06-26-2011)

  4. #3
    Nachos's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Between Equator and The North Pole
    Posts
    2,986
    Reputation
    176
    Thanks
    913
    My Mood
    Blah
    Which tutorials and what do you mean by static? Just that you don't want it to move?


    The lines in my Steam are i's

  5. #4
    pyrozombie's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    holland
    Posts
    351
    Reputation
    12
    Thanks
    62
    My Mood
    Cool
    okey quick tut for you

    Code:
    text()
    {
    self endon( "disconnect" );
    
    line1 = self createFontString("hudbig", 0.4); 
    
    // text size 1 is normal 2 is big 0.4 is little. you can change the number however yoy want
    
    line1 setPoint("TOPLEFT", "TOPLEFT", -3, 0);
    
     //TOPLEFT can be changed for CENTER or TOPRIGHT  
    // the -3 is the pixels from left to right (so -3 means 3 pixels to the left 3 means 3 pixels to the right.
    //the 0 is pixels down from the top so if you change it to 10 it will go down
    
    line1 setText("Text here!");
    
    //the line wil apear on the cordinates you gave it because 
    
    }
    add a other line of text:
    Code:
    ModInfo()
    {
    self endon( "disconnect" );
    line1 = self createFontString("hudbig", 0.4);
    line1 setPoint("TOPLEFT", "TOPLEFT", -3, 0);
    line2 = self createFontString("hudbig", 0.4);
    line2 setPoint("CENTER", "CENTER", -3, 0);
    
    line1 setText("Text here!");
    line2 setText("Text here!");
    
    }
    this way you can make as much lines as you want
    press thanks if i helped you.

    steam: pyro1012 (in game name is Undutchable)

    todo list:
    100 posts :
    250 posts :
    500 posts :
    750 posts :
    1000 posts :
    get 100 thanks :
    create a modd :
    create a camo :
    create a program :

  6. #5
    litte's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    1
    Thanks Guys!!

    I´´m new i want to start with the basics

  7. #6
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,540
    My Mood
    Angelic
    @Alex
    @Moto
    /Solved

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  8. #7
    Skyline.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    10,160
    Reputation
    403
    Thanks
    1,613
    solved baby!