HERO DISPLAY - HTML QUESTION

Open beta forum.

Moderators: Slitherine Core, The Lordz, Panzer Corps Moderators, Panzer Corps Design

Post Reply
Chris10
Captain - Bf 110D
Captain - Bf 110D
Posts: 890
Joined: Tue Mar 27, 2012 1:06 am
Location: Spain

HERO DISPLAY - HTML QUESTION

Post by Chris10 »

I spent days trying to find out how the hero tooltip is called to show the hero stats.
Could somebody please enlighten me ? ... :cry:
Its certainly not located in the units.html nor in the main.html and not in panzercorps.css
What Iam looking to achieve is displaying the hero info in the main UI when clicking on a unit to avoid the triple clicking UNIT>GENERAL>BATTLE HISTORY>Hoover over hero picture
I already tried to call the hero pic to the main UI on Unit selected but it doesnt show up
Is there any possibility doin it with the current state of the engine or is the hero tooltip hardcoded to be shown only where it is shown right now ?

I add screens of current state and what Iam looking to achieve

CURRENT:
Image

WHAT IAM LOOKING FOR:
Displaying hero pics in 69x69px under minimap with hoover over tootip showing stats

Right now the picture is obviously photoshopped
Image
huertgenwald
2nd Lieutenant - Panzer IVF/2
2nd Lieutenant - Panzer IVF/2
Posts: 696
Joined: Wed Oct 05, 2011 6:39 pm
Location: Eifel / south of Aachen

Re: HERO DISPLAY - HTML QUESTION

Post by huertgenwald »

If you're interested in HTML, use the "title" attribute, like so:

http://www.w3schools.com/tags/att_standard_title.asp
Chris10
Captain - Bf 110D
Captain - Bf 110D
Posts: 890
Joined: Tue Mar 27, 2012 1:06 am
Location: Spain

Re: HERO DISPLAY - HTML QUESTION

Post by Chris10 »

huertgenwald wrote:If you're interested in HTML, use the "title" attribute, like so:

http://www.w3schools.com/tags/att_standard_title.asp
I havent tried this and anyway its only a tooltip text for an element so it has nothing to do with what I wanna do..or at least it seems so in my small ignorant html world :wink: ...however...if the hero stuff is hardcoded then there is no way displaying it at another location (or another window) than the one specified in the exe...I already tried various approaches in order to display the hero panel at the UI...without sucess
This why Iam asking if there is a technical barrier...if there is I stop wasting my time on it :D
IainMcNeil
Site Admin
Site Admin
Posts: 13558
Joined: Fri Apr 01, 2005 10:19 am

Re: HERO DISPLAY - HTML QUESTION

Post by IainMcNeil »

It is coded as it refers to data in memory not something that the html itself can do.
Chris10
Captain - Bf 110D
Captain - Bf 110D
Posts: 890
Joined: Tue Mar 27, 2012 1:06 am
Location: Spain

Re: HERO DISPLAY - HTML QUESTION

Post by Chris10 »

IainMcNeil wrote:It is coded as it refers to data in memory not something that the html itself can do.
thnx for info Iain...I thought it to be hardcoded :)
fsx
Warhammer Moderator
Warhammer Moderator
Posts: 389
Joined: Mon Dec 26, 2011 2:47 pm

Re: HERO DISPLAY - HTML QUESTION

Post by fsx »

At first, I dont konw HTML good enough.

Perhaps, you could add the small heroes head icons in the statbase (near ammo, fuel..- you have three lines).
Normally the small icons availabe in the "list"-boxes of the units, could it be that they also works in the mainwindow (because the listboxes are substructures in the mainwindow)?
But only the informations like the tooltipp over the small heroes heads would be available.
Post Reply

Return to “Panzer Corps Open Beta”