Author Topic: Simple Stats Window  (Read 4396 times)

0 Members and 1 Guest are viewing this topic.

Offline holmedogTopic starter

  • Jr. Member
  • **
  • Posts: 57
  • Activity:
    0%
  • Reputation Power: 2
  • holmedog has no influence.
  • Respect: +5
  • Referrals: 0
    • View Profile
Simple Stats Window
« on: November 05, 2011, 07:18:16 PM »
0
I like to watch a lot of video game streams (League of Legends) while I'm macroing.  One of the things that bothers me, though, is the inability to "see" what my character is doing while fullscreened.  So, I wrote this.  I wasn't really using it all that much, but then I got sick of opening my stats to see my weight and I incorporated it.  

This is two subs, one to do some initial menu setup and one to update the stats.  I included the loop I use to update the stats, but this is more for the subs.  I realize it's pretty simple, but I found it extremely useful so I'm sharing here.

Code: [Select]
gosub showmenu

while true = true
{
  gosub UpdateStats
  wait 10
}

Sub ShowMenu
  menu Clear
  menu Window Color None
  menu Window Size 160 80
  menu Font Transparent #true
  menu Window Title Stats
  menu Window Weight
  menu Font Size 12
  menu Font Color Lime
  menu Font Transparent #false
  menu Font Align Left
  menu Font BGColor none
  menu Font Color Red
  menu Font Color WindowText
  menu Font BGColor BtnFace
  menu Font Name Arial
  menu Font Style b
  menu Font Color Black
  menu Font BGColor Lime4
  menu Show 300 300
  menu delete EUOLabel4
return

Sub UpdateStats
  menu Text EUOLabel2 0 0 Weight: #WEIGHT / #MAXWEIGHT
  menu Text EUOLable3 0 20 Mana: #MANA / #MAXMANA
  menu Text EUOLable4 0 40 HP: #HITS / #MAXHITS
  menu Text EUOLable5 0 60 Stam: #Stamina / #maxstam
return
« Last Edit: November 05, 2011, 07:27:29 PM by holmedog »

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6191
  • Activity:
    3%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +273
  • Referrals: 3
    • View Profile
Re: Simple Stats Window
« Reply #1 on: November 06, 2011, 07:54:06 AM »
0
Nice idea! Thanks

Tags: