Pink Petal Games

Feedback => New Features => Topic started by: sgb on December 20, 2009, 09:22:22 PM

Title: Please add Tiredness to the Girl Management screen
Post by: sgb on December 20, 2009, 09:22:22 PM
I think this is an important enough stat to warrant having it on the general info bars.  I'm pretty sure there's enough room for it, and if not truncating it to 'Tired: ##' is fine.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: delta224 on December 20, 2009, 09:25:56 PM
Will do.

edit-- it will fit on girls with short enough names, but the name length has always been an issue.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: DocClox on December 20, 2009, 11:05:38 PM
Well, I have the fixed width font working now. So I can do something I've always wanted to do and get the girl management screen lined up into proper columns. Which will let me move the field names into headers, which in turn should give us a lot more space to play with.

The main trouble is finding a fixed width font that doesn't look too high-tech. I thought monofur might work, but it still looks a bit too computer-like for my taste.

I've also moved the font file definitions into config.xml, and replaced g_FontName with a fonts section in cConfig.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: delta224 on December 20, 2009, 11:11:47 PM
More stuff to merge great.   ::)   At least it won't be too hard to merge this in now that they don't diverge to much.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: DocClox on December 20, 2009, 11:22:08 PM
Well, I wanted the fixed width font so I could put a financial report on the player page. I figure detailed financial reporting is going to make finding gold bugs a lot easier. And we're going to have a few of them.

But yeah, maybe its time I started working on the trunk directly again.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: delta224 on December 20, 2009, 11:49:13 PM
Work on the financial reports then start working on the trunk.  Most of the work is due to the jobs.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: DocClox on December 21, 2009, 07:00:20 AM
This is what I mean:

(http://content.imagesocket.com/images/winshota6d.png)

Everything lines up, and there's even room for more information (if you don't mind truncating long names, or compressing the week count for the movies). The next thing to do is shorten the list by one and add a header along the top identifying the columns. Utimately, I'd like buttons for each header, so you could sort on a column by clicking on its header. Still one step at a time...

We could do with a better fixed width font, however.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: delta224 on December 21, 2009, 09:04:27 AM
Nice, I will try to help out there.

edit-- I went over the previous fonts you guys went over in the font handling dev thread and I like Bitsream vera though it is a tad big.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: letmein on December 21, 2009, 02:06:28 PM
Definately go with a different font.  That shit just reminds me of DOS...
Title: Re: Please add Tiredness to the Girl Management screen
Post by: Mehzerz on December 21, 2009, 02:30:02 PM
Think about Helvetica or Futura. They're nice Sans-serif fonts that are easy to read in multiple sizes.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: delta224 on December 21, 2009, 02:40:31 PM
It needs to be a mono-spaced font that we can freely distribute.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: DocClox on December 21, 2009, 03:03:31 PM
Which is of course where the problems start. I had to try quite a few fonts just to find one that works this well. And the player home screen looks worse :(

The alternative (assuming we want the table to work in columns) is to use composite fields, however you do that in SDL. I could read up on the problem but we probably have higher priotities.

Alternatively, if anyone wants to evaluate some fonts for me, I can upload a development snapshot. Just copy the ttf file into the game folder and edit config.xml
Title: Re: Please add Tiredness to the Girl Management screen
Post by: zodiac44 on December 21, 2009, 05:04:32 PM
What about creating real columns instead of faking it with fixed width fonts?  Design it as a spreadsheet rather than as a text file and you don't have to worry about using fixed width fonts.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: DocClox on December 21, 2009, 05:37:37 PM
That's what I was saying above: It's the best solution, but I don't know how to do it, off hand. SDL isn't like vb where you just drag a control in from a pallette.

I seriously do need to read up on some SDL and get my head around how this game works at a graphical level, on the other hand, so maybe that's the thing to do. On the other hand we have a ton of other stuff needs doing that I do know how to do...
Title: Re: Please add Tiredness to the Girl Management screen
Post by: delta224 on December 21, 2009, 05:49:12 PM
I have a basic understanding of how sdl works, but right now I am deep in job related code that needs to be done.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: DocClox on December 21, 2009, 05:59:51 PM
I shall consult the Great God Google tomorrow morning.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: delta224 on December 21, 2009, 06:02:29 PM
Here a good sdl tutorial that I have looked over and been meaning to actually go over it depth to learn sdl.

http://www.lazyfoo.net/SDL_tutorials/ (http://www.lazyfoo.net/SDL_tutorials/)
Title: Re: Please add Tiredness to the Girl Management screen
Post by: DocClox on December 21, 2009, 07:03:52 PM
OK, thanks. That's helpful.

Not as complicated as I'd worried that it might be, but then it's still not going to be easy.

Maybe I should just forget about making another 1.29.4 release and start the final merge with 1.30.

[edit]

Of course there are other options. We could use a third party GUI package. Agar (http://libagar.org/screenshots.html.en), for instance is free, BSD licenced, and looks pretty slick. Downside is we'd need to rewrite pretty much everything to use it, and that could take quite a while.

Or we could just forget the whole thing, and go back to ragged lines of proportional text
Title: Re: Please add Tiredness to the Girl Management screen
Post by: delta224 on December 21, 2009, 07:18:13 PM
For now lets stick with ragged lines of proportional text and work on the more important matters.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: DocClox on December 21, 2009, 07:29:51 PM
For now lets stick with ragged lines of proportional text and work on the more important matters.

I suppose. I was just thinking, we could render the text onto its own surface, and then blit it on to the table using a rectangle sized for the field. Easiest way is probably to specify a table header with percentage values for each column. Then we have text that will truncate properly and won't run off the end of the table. The tables we have don't do that, and someone should really log a bug about that.

If we do that, we can use the scrolling stuff necno already wrote, or at least with fairly little modification.

But maybe you're right. Time I was in bed anyway.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: DocClox on December 22, 2009, 04:29:32 AM
Right. I've unpicked the changes that render the lists and the player screen in fixed width font, and I've taken the financial report stuff out of the player screen. It doesn't work yet and there's no way anyone was going to be able to read it without a monospaced font.

I think I've also figured out why my previous attemtps at merging having worked so well. I don't suppose you have the revision number of the last time you did a merge by any chance?
Title: Re: Please add Tiredness to the Girl Management screen
Post by: delta224 on December 22, 2009, 09:31:10 AM
170 I think. Let me check. Yeah 170 for the branch, and 171 for the trunk on the most recent merge.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: DocClox on December 22, 2009, 10:05:38 AM
OK. I'll try and merge in changes from 172 onwards then
Title: Re: Please add Tiredness to the Girl Management screen
Post by: delta224 on December 22, 2009, 10:18:03 AM
Good luck, I will continue working on the jobs.
Title: Re: Please add Tiredness to the Girl Management screen
Post by: fires_flair on December 25, 2009, 11:48:30 PM
maybe align it to the right, if it's not a chalange, then at least everything lines up. I don't know how difficult this will be, but what about allowing the characters to have two lines, so that one name is on one, the other on the next (or is that in the spread sheet catigory?)
Title: Re: Please add Tiredness to the Girl Management screen
Post by: DocClox on December 26, 2009, 12:17:48 AM
The trouble with right-alignment is we can only sanely do that against a character position. And without a monospaced font, the right borders would still be ragged, even though the lines were the same lenght.

That said, we could probably do something with evaluating the rendered length of text strings in pixels and truncating the string until it fit. But then I'd still end up blitting the text elements onto the line - so easier to just truncate them as part of the blit, really.