Clickable Icons - my latest rendition of...

Bug #1327929 reported by Travis on 2014-06-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stratagus
Fix Released
Undecided
cybermind

Bug Description

OK. So all the hard work is appreciated very much by myself and a mate with getting the game (wargus) to behave more like the original with the amount of tweaks being made to the interface code in the trunk.

I have been tweaking things more, and I have my latest versions of "icons.cpp", "mainscr.cpp" and "contenttype.cpp" ready for upload to the trunk. Problem is I got no clue how to do it, unless someone wants to teach me how to in windows???

For now though, here's the files.

Related branches

Travis (dinky-dye-aussie) wrote :
cybermind (iddqd-mail) wrote :

Your patch is mostly broken. contenttype.cpp doesn't contain any changes at all and your mainscr.cpp breaks infopanel when you place your mouse cursor over unit without clicking on it. So I've imported changes only from icons.cpp

Changed in stratagus:
status: New → Fix Committed
assignee: nobody → cybermind (iddqd-mail)
Travis (dinky-dye-aussie) wrote :

Only under OpenGL. When in software mode it doesn't cause infopanel to disappear at all.

I'm still trying to sort out the yellow border appearing around the icon displaying the current action. Any ideas on how to get it working? I've tried using:

if (flags & IconSelected)
     Video.DrawRectangle(ColorGreen, pos.x, pos.y, 46, 38);

but it causes the icon to disappear unless I add "DrawUIButton" before "Video.DrawRectangle", but then the border disappears. Also I can't get the border to follow the icon when its pressed. Need some help with it please

cybermind (iddqd-mail) wrote :

Well, I have used software mode and mainscr.cpp changes didn't worked as supposed.

Travis (dinky-dye-aussie) wrote :

I have figured out how to get the border to appear on the icon representing the current action being performed by the unit. I have compiled and tested it sucessfully. I have attached another patch of icons.cpp for the trunk

cybermind (iddqd-mail) on 2015-03-19
Changed in stratagus:
status: Fix Committed → Fix Released
milestone: none → 2.3
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments