The International Simutrans Forum

PakSets and Customization => General Resources and Tools => Tools => Topic started by: VS on January 29, 2010, 09:33:14 PM

Title: Shades 6.0 first beta release
Post by: VS on January 29, 2010, 09:33:14 PM
Did it take half a year? Well, twice the goodness :D Finally got brushes working. No undo yet (next to do).

DOWNLOAD (http://vs.simutrans.com/misc_files/shades_6.0_alpha2.zip) - 6.0 alpha2 - 622 kB

Please test - but don't discard the old version yet, it's alpha for a reason.
Title: Re: Shades 6.0 second alpha release
Post by: vilvoh on January 29, 2010, 10:48:05 PM
Seems that alpha's word is on vogue between Simutrans tools developers.. :::)

It works, at least for me..
Title: Re: Shades 6.0 second alpha release
Post by: z9999+ on January 31, 2010, 11:12:13 AM
Is it possible to change font of some control/tooltips text ?
Some control/tooltips don't allow to show 2 bytes characters.
Title: Re: Shades 6.0 second alpha release
Post by: VS on January 31, 2010, 12:51:16 PM
Sorry, there is not much to do about this, except rewriting the whole program with a gui library which supports unicode. I'm still stuck with Delphi 7, which is 8 years old and apart from what can be imported from windows api, doesn't give a **** about languages and encoding.

I'm planning to switch to Lazarus, but this will be a long road... maybe once.
Title: Re: Shades 6.0 second alpha release
Post by: z9999+ on January 31, 2010, 03:11:20 PM
It's just a font problem, not unicode problem. Old FON font cause this problem.

But it's Okay, my main PC has no problem because I modified FontSubstitutes registry key.
Thank you for reply.
Title: Re: Shades 6.0 second alpha release
Post by: VS on January 31, 2010, 03:51:07 PM
So... I could change font name and it would work?
Title: Re: Shades 6.0 second alpha release
Post by: prissi on January 31, 2010, 08:00:10 PM
Actually you have to change the gui definition file, imho. But then it should work. (One could also eanle extended twxtservicea for incompatible programa in the properties (or so it should say), which can help sometimes too.)
Title: Re: Shades 6.0 second alpha release
Post by: z9999+ on January 31, 2010, 09:10:12 PM
As to Microsoft document, using 'MS Shell Dlg' instead of 'MS Sans Serif' should work in any language on Windows 2000 and later versions. But I'm not sure.

Entry of 'MS Shell Dlg' is there in FontSubstitutes by default, and will be mapped to local font.
Title: Re: Shades 6.0 second alpha release
Post by: VS on February 01, 2010, 09:03:33 PM
OK, next alpha will have font translation. There are two fonts needed, one normal and one monospace.

Undo is progressing nicely...
Title: Re: Shades 6.0 second alpha release
Post by: z9999+ on February 02, 2010, 07:39:58 AM
Thank yor for considering it and sorry for giving more work.

Quote from: VS on February 01, 2010, 09:03:33 PM
There are two fonts needed, one normal and one monospace.

If you are talking about 'Courier New', it is a TTF font and I believe it doesn't cause problem. Usually TTF font have auto font-link feature. ('Courier' is FON font.)

And if monospace font is only used for input box, there is no chance to input 2 bytes character in your application.  :)
Title: Re: Shades 6.0 second alpha release
Post by: VS on February 02, 2010, 10:20:58 AM
Monospace is for numerical entries - namely ARGB colours like FF00ABCD that look better with fixed width (I think...). Anyway, you can change both fonts to whatever you want :) And it wasn't much work once I knew what to do.




Beta for 6.0 is here! Undo now works in most common cases (dunno about external editing). Fonts are translatable (needs restart).

DOWNLOAD (http://vs.simutrans.com/misc_files/shades_6.0_beta1.zip) - 6.0 beta1 - 640 kB
Title: Re: Shades 6.0 first beta release
Post by: z9999+ on February 03, 2010, 07:56:55 AM
Quote from: VS on February 02, 2010, 10:20:58 AM
Fonts are translatable (needs restart).

Thank you, it worked.

I didn't know translation file can change font face of control.
I thought you need to change all resources.

I appreciate it. Thanks again.
Title: Re: Shades 6.0 first beta release
Post by: VS on February 03, 2010, 10:51:42 AM
Well, it's a loop over all components which sets their font to something :)




What brushes would be useful? I have these (24px), any comments?
Title: Re: Shades 6.0 first beta release
Post by: VS on February 03, 2010, 10:59:45 PM
Last beta:
http://vs.simutrans.com/misc_files/shades_6.0_beta2.zip

If you have a new translation or can update old one, please, do it...
Title: Re: Shades 6.0 first beta release
Post by: z9999+ on February 04, 2010, 05:33:27 PM
- Multiple undo feature seems not working well. Try fill bucket tool.
- When I click or drag to outside of image with pen tool, error window, 'Source rectangle is invalid.', continue to open even if I click within image until I change tool. And this error also forbid undo.
- Text 'Selected' on status bar is not translated when application started. If I select pen color again, it will change to translation.
Title: Re: Shades 6.0 first beta release
Post by: vilvoh on February 04, 2010, 06:44:54 PM
Quote from: VS on February 03, 2010, 10:51:42 AM
What brushes would be useful? I have these (24px), any comments?

Imho, only the first eight ones are useful. The rest would be good for a pure painting program.
Title: Re: Shades 6.0 first beta release
Post by: VS on February 04, 2010, 11:10:51 PM
z9999: Thank you :) I fixed the last 2 bugs, but I can't replicate first. I'll try more...
Title: Re: Shades 6.0 first beta release
Post by: MoTw on February 06, 2010, 03:32:13 PM
Is there going to be a Linux-Version? I didn't find one before.
Title: Re: Shades 6.0 first beta release
Post by: VS on February 06, 2010, 04:06:05 PM
No.
Title: Re: Shades 6.0 first beta release
Post by: isidoro on February 07, 2010, 01:24:42 AM
Quote from: MoTw on February 06, 2010, 03:32:13 PM
Is there going to be a Linux-Version? I didn't find one before.

I tried it with wine (www.winehq.com (http://www.winehq.com)) and seems to work ok.
Title: Re: Shades 6.0 first beta release
Post by: MoTw on February 07, 2010, 09:31:31 AM
Quote from: isidoro on February 07, 2010, 01:24:42 AM
I tried it with wine (www.winehq.com (http://www.winehq.com)) and seems to work ok.

Yes, it does, but Wine is a bit slow on my computer and it creates lots of unnessecary files... A native version would be better, but if not...
Title: Re: Shades 6.0 first beta release
Post by: VS on February 07, 2010, 11:07:01 AM
Re Linux, let's put it differently: if you restructure the code for new, cross-platform libraries and compiler, you're quite the hero. Because I can't do it in time shorter than a year at best.

The project started some 4 years ago and actually taught me a lot about programming... As you can imagine, the original was quite naive and messy. I spent a lot of time making it actually workable for further programming, and it's still not where I'd like to see it. Only then I can start resolving the library problem, and after that, finally try to port it.

This needs time, time, time, time... where can I buy it?
Title: Re: Shades 6.0 first beta release
Post by: MoTw on February 07, 2010, 01:10:23 PM
OK, no Linux. ;) I'll be fine with Wine.

Quote from: VS on February 07, 2010, 11:07:01 AM
This needs time, time, time, time... where can I buy it?
Here you are: http://www.buytime.at/ :D  ;) (in german)
Title: Re: Shades 6.0 first beta release
Post by: The Hood on February 07, 2010, 01:16:18 PM
I use shades under wine - it's not as slow as other programs as it's quite a simple tool.  Tilecutter is much slower under wine than shades, for example...
Title: Re: Shades 6.0 first beta release
Post by: MoTw on February 07, 2010, 01:36:32 PM
Quote from: The Hood on February 07, 2010, 01:16:18 PM
I use shades under wine - it's not as slow as other programs as it's quite a simple tool.  Tilecutter is much slower under wine than shades, for example...

I didn't mean that _Shades_ is slow, but running _wine_ makes my PC (Netbook) slow. Anyway, that's neither Linux' nor Shades' fault.
Title: Re: Shades 6.0 first beta release
Post by: VS on February 07, 2010, 10:39:09 PM
Mwahahaha, I just have to say for all that I'm a total idiot. The undo bugs were all just logical. Tomorrow is stable release, unless I'm incapacitated by the two hours of school.