开发者

Need an alternative to ProgressBar control for player resource pools (Health, etc.) in a game

开发者 https://www.devze.com 2022-12-17 09:48 出处:网络
I\'m trying to implement a basic Health/Stamina/Mana readout in a Windows Forms application, and my first approach was to use a ProgressBar control. However, I\'m not fond of its visual representation

I'm trying to implement a basic Health/Stamina/Mana readout in a Windows Forms application, and my first approach was to use a ProgressBar control. However, I'm not fond of its visual representation in Aero (always green and too much distracting gloss animation), and I'm not quite ready to get into WPF development (which is, from what I can tell, the only way to modify it).

I also toyed with using a PictureBox control and sliding an image around horizontally, but it seemed like more trouble than it开发者_JAVA百科 was worth.

Has anyone experimented with this and come up with a relatively simple solution? I'm just looking for a point in the right direction.

Thanks in advance.


There are a LOT of progress bars here:

Code Project Progress Controls

and after checking out a few I think this could suit the Health/Stamina/Mana style Custom Progress


Well, if I were you, instead of using a control, I will try to draw it myself. Using GDI+ in WinForm is very easy, or you can use OpenGL/DirectX.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号