[Patch] Lock windows

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Message
Author
User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: [Patch] Lock windows

#16 Post by Geoff the Medio »

Comitted, but the icons are not different enough between the mouseover and normal versions. Can you make the mouseover versions brighter?

Eloque
Space Squid
Posts: 53
Joined: Mon Jul 21, 2014 11:56 am

Re: [Patch] Lock windows

#17 Post by Eloque »

I was struggling with that. I tried doing it using just hex colors, but I might resort to using some sort of effect to highlight it. It's now a full #FFFFFF, can't go brighter then that.

I suppose I could also darken the non mouseover button, tried that as well. New set of icon is attached.
Attachments
buttons.zip
(6.4 KiB) Downloaded 109 times
Code, justify, code - Pitr
Attached patches are released under GPL 2.0 or later, artwork and such are released under CC-BY-SA 3.0 license.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: [Patch] Lock windows

#18 Post by Geoff the Medio »

Much better.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: [Patch] Lock windows

#19 Post by Geoff the Medio »

Eloque wrote:I've added pinning to a few windows that were pretty straightforward, working on Pedia now.
Various Windows on the design screen, the production producible items list, and the research display panel should be simple to make pinnable.

Eloque
Space Squid
Posts: 53
Joined: Mon Jul 21, 2014 11:56 am

Re: [Patch] Lock windows

#20 Post by Eloque »

Panels in design are now pinable. Pedia window is pinable.

Also, changed code to only have one function in CUIWnd to position buttons, this was previously done at two spots, InitButtons and and SizeMove. Moved the duplicate code to new function, PositionButtons, that is now called from both the old functions.

edit: header files were not in the patch it seems, uploaded the correct one.
Attachments

[The extension patch has been deactivated and can no longer be displayed.]

Code, justify, code - Pitr
Attached patches are released under GPL 2.0 or later, artwork and such are released under CC-BY-SA 3.0 license.

Eloque
Space Squid
Posts: 53
Joined: Mon Jul 21, 2014 11:56 am

Re: [Patch] Lock windows

#21 Post by Eloque »

Patch to pin pedia inside research window.
Also a small change to the pedia constructor, to make sure the buttons get placed if the window doesn't get moved or resized before rendering.
Attachments

[The extension patch has been deactivated and can no longer be displayed.]

Code, justify, code - Pitr
Attached patches are released under GPL 2.0 or later, artwork and such are released under CC-BY-SA 3.0 license.

Eloque
Space Squid
Posts: 53
Joined: Mon Jul 21, 2014 11:56 am

Re: [Patch] Lock windows

#22 Post by Eloque »

Patch to pin windows in production panel
Attachments

[The extension patch has been deactivated and can no longer be displayed.]

Code, justify, code - Pitr
Attached patches are released under GPL 2.0 or later, artwork and such are released under CC-BY-SA 3.0 license.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: [Patch] Lock windows

#23 Post by Geoff the Medio »

Pinning patches committed.

Edit: Resizing causes many duplicate O and X buttons to be created on the pedia window...

Eloque
Space Squid
Posts: 53
Joined: Mon Jul 21, 2014 11:56 am

Re: [Patch] Lock windows

#24 Post by Eloque »

That's a bug then, I will look into it.
Code, justify, code - Pitr
Attached patches are released under GPL 2.0 or later, artwork and such are released under CC-BY-SA 3.0 license.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: [Patch] Lock windows

#25 Post by Geoff the Medio »


Post Reply