0.4 UI thread
- The Silent One
- Graphics
- Posts: 1129
- Joined: Tue Jul 01, 2003 8:27 pm
Re: 0.4 UI thread
Thank you.
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.
- The Silent One
- Graphics
- Posts: 1129
- Joined: Tue Jul 01, 2003 8:27 pm
Re: 0.4 UI thread
More icons for the sitrep (very basic since they are used at such a small size):
- Attachments
-
- colony-starvation.png (3.88 KiB) Viewed 8404 times
-
- colony-growth.png (3.77 KiB) Viewed 8404 times
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.
- The Silent One
- Graphics
- Posts: 1129
- Joined: Tue Jul 01, 2003 8:27 pm
Re: 0.4 UI thread
I feel like I'm talking in monologue, I hope you guys don't mind me collecting my ideas here!
I have another suggestion for the sitrep: I'd really like to be able to alter the size of the sitrep entries. This would be especially helpful on displays with a high resolution (and in combination with my previous suggestion) - on my screen it is really hard to read the entries at 16x16. Mockup below. Also, new "colony bombarded" icons.
Feedback would be appreciated
I have another suggestion for the sitrep: I'd really like to be able to alter the size of the sitrep entries. This would be especially helpful on displays with a high resolution (and in combination with my previous suggestion) - on my screen it is really hard to read the entries at 16x16. Mockup below. Also, new "colony bombarded" icons.
Feedback would be appreciated
- Attachments
-
- colony-bombardement-own.png (4.99 KiB) Viewed 8389 times
-
- colony-bombardement.png (5.23 KiB) Viewed 8389 times
-
- sitrep.png (329.52 KiB) Viewed 8389 times
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.
Re: 0.4 UI thread
Not monologue, but probably ought to mention I can't change the 'colony has reached size 3' or 'colony has been destroyed' icons as, AFAICS, they're called directly from the C+ code, if I'm wrong I'll do it. I like the look of these and now I'm on a larger screen I concur about the size sometimes being too small.
Any other opinions?
Basically, if you've got an icon designed for an existing sitrep, make that clear and I'll look at whether I can change it in the scripts or if one of the actual devs needs to do backend stuff.
Any other opinions?
Basically, if you've got an icon designed for an existing sitrep, make that clear and I'll look at whether I can change it in the scripts or if one of the actual devs needs to do backend stuff.
Mat Bowles
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: 0.4 UI thread
The former ooks to me to be coming from an effectsgroup in SHP_GAL_EXPLO tech.MatGB wrote:...I can't change the 'colony has reached size 3' or 'colony has been destroyed' icons as, AFAICS, they're called directly from the C+ code...
Re: 0.4 UI thread
If it's a matter of reading the entries, the font size is controlled by the overall font size setting controllable via Options->UI. But I realize there are other uses of that setting which significantly constrain increases to it. You caught me in a mood to do some UI coding, so you're in luck-- https://github.com/freeorion/freeorion/pull/147 -- we'll see what everyone else thinks of it...The Silent One wrote:I'd really like to be able to alter the size of the sitrep entries. This would be especially helpful on displays with a high resolution (and in combination with my previous suggestion) - on my screen it is really hard to read the entries at 16x16.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0
Re: 0.4 UI thread
I'm pretty sure it would be fine to just replace the files in your local copy and push the changes. I can't imagine there would be code changes, especially if the size of the icons doesn't change, at least from what I've seen of the code.MatGB wrote:Not monologue, but probably ought to mention I can't change the 'colony has reached size 3' or 'colony has been destroyed' icons as, AFAICS, they're called directly from the C+ code, if I'm wrong I'll do it.
All my code and content provided herein or on GitHub is released under the GPL 2.0 and/or CC-BY-SA 3.0, as appropriate.
Re: 0.4 UI thread
Depends what they're being used for, in many sitrep cases there are shared icons for many things, this is making icons so we can split that up, which means you've got to find where the sitrep is generated in the first place, which isn't always clear (Geoff thinks one of the ones I couldn't find is in one of the unlocked at start of game techs, which I really do need to learn to check more for this sort of thing)wheals wrote:I'm pretty sure it would be fine to just replace the files in your local copy and push the changes. I can't imagine there would be code changes, especially if the size of the icons doesn't change, at least from what I've seen of the code.MatGB wrote:Not monologue, but probably ought to mention I can't change the 'colony has reached size 3' or 'colony has been destroyed' icons as, AFAICS, they're called directly from the C+ code, if I'm wrong I'll do it.
Mat Bowles
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Re: 0.4 UI thread
Aha, I see.MatGB wrote: Depends what they're being used for, in many sitrep cases there are shared icons for many things, this is making icons so we can split that up, which means you've got to find where the sitrep is generated in the first place, which isn't always clear (Geoff thinks one of the ones I couldn't find is in one of the unlocked at start of game techs, which I really do need to learn to check more for this sort of thing)
edit: Thinking about it, it probably shouldn't be too hard to find the name of the current icon by looking through the art/icons/sitrep directory, searching the code for where that file name is referenced, and replacing it. Of course, if it is in the C++ code you'd have to compile afterwards to make sure it worked out alright.
All my code and content provided herein or on GitHub is released under the GPL 2.0 and/or CC-BY-SA 3.0, as appropriate.
- The Silent One
- Graphics
- Posts: 1129
- Joined: Tue Jul 01, 2003 8:27 pm
Re: 0.4 UI thread
That's a good idea and you are correctwheals wrote:Thinking about it, it probably shouldn't be too hard to find the name of the current icon by looking through the art/icons/sitrep directory, searching the code for where that file name is referenced, and replacing it. Of course, if it is in the C++ code you'd have to compile afterwards to make sure it worked out alright.
SitRepEntry.cpp contains all the links to the sitrep icons. Knowing this, I will make a pull request for the new icons and the changed .cpp file soon.
Great, thanks. Let me know if the mood persists!Dilvish wrote:You caught me in a mood to do some UI coding, so you're in luck-- https://github.com/freeorion/freeorion/pull/147 -- we'll see what everyone else thinks of it...
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.
- The Silent One
- Graphics
- Posts: 1129
- Joined: Tue Jul 01, 2003 8:27 pm
Re: 0.4 UI thread
Actually, I'm wrong, it's not all of them. "SITREP_POP_THRESHOLD" is created in techs.txt. I guess there is a specific reason that the sitrep entry "types" are created in different parts of the source code?The Silent One wrote:SitRepEntry.cpp contains all the links to the sitrep icons. Knowing this, I will make a pull request for the new icons and the changed .cpp file soon.
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.
Re: 0.4 UI thread
Most sitreps are meant to be user scriptable/changeable, only the ones that are part of the guts of the game are hardcoded in the backend, ideally as many as possible should be scriptable (and therefore in default and changeable without recompiling).
Mat Bowles
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
- The Silent One
- Graphics
- Posts: 1129
- Joined: Tue Jul 01, 2003 8:27 pm
Re: 0.4 UI thread
I have put up a pull request for the icons on GitHub, first attempt, please tell me if I did it the right way.
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.
Re: 0.4 UI thread
The PR looks fine, can't comment on the content as it's C+ backend and that's beyond me (although it looks right from a strictly layman's perspective). Like I said there, I'd use the icon you called 'starvation' for colony destruction of any kind, depopulation, etc.
Mat Bowles
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.
- The Silent One
- Graphics
- Posts: 1129
- Joined: Tue Jul 01, 2003 8:27 pm
Re: 0.4 UI thread
What I meant is, I'm not sure how to use gitHub, on sourceforge I used to commit content directly to trunk. But I guess creating my own fork and sending pull requests like I did is the way to go?MatGB wrote:The PR looks fine, can't comment on the content as it's C+ backend and that's beyond me (although it looks right from a strictly layman's perspective).
I agree, rather than starvation, it could be called "colony_pop_decrease" or similar. For colony destruction, I had a little more figurative approach in mind:MatGB wrote:Like I said there, I'd use the icon you called 'starvation' for colony destruction of any kind, depopulation, etc.
- Attachments
-
- colony-destroyed-own.png (3.16 KiB) Viewed 8323 times
-
- colony-destroyed.png (3.27 KiB) Viewed 8323 times
If I provided any images, code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0.