Results 1 to 4 of 4
  1. #1
    edub18's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Germany
    Posts
    146
    Reputation
    10
    Thanks
    12
    My Mood
    Bored

    [SOLVED] Draw fonts

    Hey,
    im lookin' for a code to draw fonts in the top right corner. I just need the coordinates, because i dont know how to get them.

    Code:
      myText = self createFontString("arial", 2.0);
      myText setPoint("TOPRIGHT", "RIGHT", ???, ???);
      myText setText("EXP: " + self.myxp);
    Last edited by Insane; 09-15-2010 at 02:25 PM.

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,835
    Reputation
    3350
    Thanks
    75,774
    My Mood
    Breezy
    Try this:
    Code:
      self.myxp = self getRankXP()
      myText = self createFontString("bighud", 2.0);
      myText setPoint("TOPRIGHT", "TOPRIGHT", -2, 0);
      myText setText("EXP: "+self.myxp+" ");
    I don't think arial is a valid font for MW2. You can also change the 2.0 value to increase/decrease the size. Another font alternative is "objective". Oh and if self.myxp was meant to be something else that you created, then remove the first line.
    Last edited by master131; 09-15-2010 at 05:35 AM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7 *NEW* 2017 Update!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. #3
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive
    Code:
    "objective"
    "default" (looks like arial I think)
    "bigfixed"
    "smallfixed"
    there are some more but these are the ones I know

  4. #4
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    2,005
    /Marked as Solved

Similar Threads

  1. [Solved] Erro da font.
    By while in forum Combat Arms BR Coding Help
    Replies: 6
    Last Post: 05-18-2011, 12:32 PM
  2. [Solved] Anyone know how to convert .iwi font files, or open them?
    By ProDiiGy in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 05-18-2011, 12:22 PM
  3. [Solved] CAFlames and other hacks won't work... Solved
    By Hikatso in forum Combat Arms Help
    Replies: 17
    Last Post: 04-28-2011, 10:41 PM
  4. [Help]Drawing a custom crosshair[Solved]
    By ♪~ ᕕ(ᐛ)ᕗ in forum Visual Basic Programming
    Replies: 22
    Last Post: 01-19-2011, 07:04 AM
  5. [Help] Drawing pixels on screen?[Solved]
    By master131backup in forum Visual Basic Programming
    Replies: 14
    Last Post: 11-04-2010, 02:55 AM