-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Gui improvements #1154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gui improvements #1154
Conversation
2c844fd to
dbd1c06
Compare
|
Nice! |
heinezen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Nice work!
|
There are two slp/shp files you probably want to reference there eventually. btnunit.shp (50730) is for units, and ico_bld2.shp (50706, but there's 4 identical ones, iirc) is for buildings. Eventually you probably want itemicon.shp (50731) as well, those are the icons for the amount of wood carried, armor, attack range etc. The progress bar is in sundial.shp (50764), and if you want to make it really identical you should get unithalo.shp (53003) as well, to display behind the unit icon. The correct icon you get from the dat file, in genieutils it is References, in case I missed something (it's some time since I implemented it); https://github.com/sandsmark/freeaoe/blob/master/src/ui/UnitInfoPanel.cpp is the info panel itself, and here I collected all the filenames with IDs I've found; https://github.com/sandsmark/freeaoe/blob/master/src/resource/AssetManager.cpp#L400-L620 (and excuse the messy code it isn't really meant to be read by others, but you can see the files I load for what I hope) |
|
@sandsmark HUGE help, thanks mate Made the icon to be exported to the unit type and then made the gui actually showing the correct icon (and added the border from 53003.slp). And also added the team tag (Enemy, Ally or nothing) bellow the name and civ) I think this is a good point for merge (progress and health bars next month...) |
|
@MaanooAk Looks fine :) Keep in mind that a lot of the changes could become obsolete with the new nyan gamestate, so you might want to look out for that. |
Gui improvements
Some small gui improvements. There always have been those small gui things that make the first glance of the game little bit... so:
(Health bar is placeholder (next pr))
Edit (simonsan): Closes #611