Jump to content
Eternal Lands Official Forums
Sign in to follow this  
Florian

Display of damage (floating message) scaled

Recommended Posts

Can you indent your code with tabs? There's a line in the patch that's indented with spaces.

Not again :P

I still don't get the hang of indentation I guess, in my IDE it looks well indented.

 

/EDIT patch updated

Edited by Florian

Share this post


Link to post
Share on other sites

To be honest, I prefer the space indentation rather than the tab indentation. With tabs, you can't for example separate the parameters of a function into several lines or it will be always broken for some people who don't work with the same tab size as you...

Share this post


Link to post
Share on other sites

restored health points are almost invisible (+100 restore)

--- actors.c	31 Mar 2008 07:44:55 -0000	1.233
+++ actors.c	1 Apr 2008 11:42:22 -0000
@@ -290,7 +290,7 @@
			else
#endif /* SKY_FPV_CURSOR */
			{
-				float font_scale2 = font_scale*powf(1.0f+((float)actor_id->damage)/1000.0f, 4.0);
+				float font_scale2 = font_scale*powf(1.0f+((float)abs(actor_id->damage))/1000.0f, 4.0);
				//draw_ortho_ingame_string(hx-(((float)get_string_width(str) * (font_scale*0.17*name_zoom)))*0.5f, a_bounce+hy+10.0f, 0, str, 1, font_scale*.14, font_scale*.21);
				draw_ortho_ingame_string(hx-(((float)get_string_width(str) * (font_scale2*0.17*name_zoom)))*0.5f, a_bounce+hy+10.0f, 0, str, 1, font_scale2*.14, font_scale2*.21);
			}			glDisable(GL_BLEND);

Share this post


Link to post
Share on other sites
When you restore the floating messages of the health points you restored have a very small font size.

Health gain is stored as negative damage? Oh LOL, didn't think of that :)

Applied :P

Share this post


Link to post
Share on other sites

patch is working fine...but i was wondering if the screen is a bit cluttered by numbers. I mean, while fighitng i have:

 

- def and att xp floating

- damage raining on my head

- damage on the mob (lot more)

- mana from pots

- restored health

- magic xp

- oh, and healthbar (actually numbers there too)

 

 

Maybe we could remove floating xp and let it "slide" next the statsbar...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×