Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Feature] On screen stats (Easy)
#1
[spoiler]Client Side Only
Find:
Code:
' Checking fps
                Case "/fps"
                    BFPS = Not BFPS
Under Add:
Code:
' Checking Stats
                Case "/vital"
                    Vital = Not Vital
Find:
Code:
Public BFPS As Boolean ' FPS
Under Add:
Code:
Public Vital As Boolean ' Stats
Find:
Code:
' draw FPS
        If BFPS Then
            Call DrawText(TexthDC, (MAX_MAPX - 1) * PIC_X - 4, 1, Trim$("FPS: " & GameFPS), QBColor(Yellow))
        End If
Under Add:
If you want numbers like 14/14
Code:
' draw Stats
        If Vital Then
            Call DrawText(TexthDC, (MAX_MAPX - 1) * PIC_X - 440, 335, Trim$("HP: " & GetPlayerVital(MyIndex, Vitals.HP) & "/" & GetPlayerMaxVital(MyIndex, Vitals.HP)), QBColor(Red)) 'HP
            Call DrawText(TexthDC, (MAX_MAPX - 1) * PIC_X - 440, 350, Trim$("MP: " & GetPlayerVital(MyIndex, Vitals.MP) & "/" & GetPlayerMaxVital(MyIndex, Vitals.MP)), QBColor(Blue)) 'MP
            Call DrawText(TexthDC, (MAX_MAPX - 1) * PIC_X - 440, 365, Trim$("SP: " & GetPlayerVital(MyIndex, Vitals.SP) & "/" & GetPlayerMaxVital(MyIndex, Vitals.SP)), QBColor(Yellow)) 'SP
        End If
If you want percents Add:
Code:
' draw Stats
        If Vital Then
            Call DrawText(TexthDC, (MAX_MAPX - 1) * PIC_X - 440, 335, Trim$("HP: " & frmMirage.lblHP.Caption), QBColor(Red)) 'HP
            Call DrawText(TexthDC, (MAX_MAPX - 1) * PIC_X - 440, 350, Trim$("MP: " & frmMirage.lblMP.Caption), QBColor(Blue)) 'MP
            Call DrawText(TexthDC, (MAX_MAPX - 1) * PIC_X - 440, 365, Trim$("SP: " & frmMirage.lblSP.Caption), QBColor(Yellow)) 'SP
        End If
[/spoiler][Image: vitalp.png]
Reply
#2
I like the new version of doing it much easier to read and understand, making it horiontal would be better i think, But that shouldn't be to hard to figure out when placing this in. Nice work mate, Keep it up Egon.
Reply
#3
You can play with the 440 and 300 numbers then.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)