Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Jonwil- Errors in the code for drawing the HUD in shaderhud.cpp
Jonwil- Errors in the code for drawing the HUD in shaderhud.cpp [message #273565] Mon, 16 July 2007 02:31 Go to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
I don't really know where to report this, so I'll just make a topic about it.
In shaderhud.cpp there are a few errors regarding the drawing of the HUD which are fairly annoying..
if (QuadXPos < 0)
	{
		QuadXPos += ScreenResolution->Bottom;
	}
if (QuadYPos < 0)
	{
		QuadYPos += ScreenResolution->Right;
	}


which should be

if (QuadXPos < 0)
	{
		QuadXPos += ScreenResolution->Right;
	}
if (QuadYPos < 0)
	{
		QuadYPos += ScreenResolution->Bottom;
	}


The same mistake is also in the code for drawing the HealthBar, ShieldBar, HealthIcon, ShieldIcon. :[

Could you please fix this in the next scripts release?


http://img694.imageshack.us/img694/9055/tunamanlmao.png

[Updated on: Mon, 16 July 2007 02:33]

Report message to a moderator

Re: Jonwil- Errors in the code for drawing the HUD in shaderhud.cpp [message #273567 is a reply to message #273565] Mon, 16 July 2007 02:37 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
i dont get what it does but ok Very Happy fix it XD
Re: Jonwil- Errors in the code for drawing the HUD in shaderhud.cpp [message #273568 is a reply to message #273565] Mon, 16 July 2007 02:43 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
Its so that you can put negative values for the X and Y positions of each of those HUD elements and it makes them start at the bottom and the right positions instead of the top and left.
I would also fix it for myself but d3d9.h is not included in the scripts package. Sad


http://img694.imageshack.us/img694/9055/tunamanlmao.png

[Updated on: Mon, 16 July 2007 02:47]

Report message to a moderator

Re: Jonwil- Errors in the code for drawing the HUD in shaderhud.cpp [message #273645 is a reply to message #273565] Mon, 16 July 2007 10:38 Go to previous messageGo to next message
JohnDoe is currently offline  JohnDoe
Messages: 1416
Registered: May 2006
Karma: 0
General (1 Star)
tuna gettin all fat with it

lol
Re: Jonwil- Errors in the code for drawing the HUD in shaderhud.cpp [message #273654 is a reply to message #273568] Mon, 16 July 2007 12:10 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Tunaman wrote on Mon, 16 July 2007 10:43

I would also fix it for myself but d3d9.h is not included in the scripts package. Sad



Install the DirectX SDK, its in there.


http://steamsignature.com/card/1/76561197975867233.png
Re: Jonwil- Errors in the code for drawing the HUD in shaderhud.cpp [message #273656 is a reply to message #273645] Mon, 16 July 2007 12:18 Go to previous message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
JohnDoe wrote on Mon, 16 July 2007 13:38

tuna gettin all fat with it

lol

Thanks DP.. forgot about that, I usually use C# instead of C++ so I hadn't updated my compiler to work with the SDK yet.


http://img694.imageshack.us/img694/9055/tunamanlmao.png
Previous Topic: A fine web site to download Mods
Next Topic: Base defenses not working
Goto Forum:
  


Current Time: Sat Dec 21 01:05:15 MST 2024

Total time taken to generate the page: 0.00647 seconds