News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

Small buttons

Started by The Hood, January 25, 2014, 10:16:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

The Hood




See above - some buttons are now very small - I've not changed the pak files for these buttons in ages and they've always worked... r7038

Václav

The Hood, this is a bit older.
I found it in 7028.

But it is real game bug.

I found this when I one of my addons for pak96.comic did this - but I could not find reason.
DAT file is right.

And it is not issue of only buildings.
In Pak96.comic it is also on line manager button.

Strange is, that it is only on few buttons.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Dwachs

Do these icons change size with zoom in/out?
Parsley, sage, rosemary, and maggikraut.

The Hood

No, but the very small one in the boat toolbar does flicker up at normal size (and sometimes larger) for a moment when zooming but then returns to the small size you see here.

Dwachs

Maybe these graphics are slightly larger than the pakset's standard icon size? Then they get resized now.
Parsley, sage, rosemary, and maggikraut.

The Hood

They are all 32x32 - which is the correct icon size for pak128.Britain.

Václav

Quote from: Dwachs on January 25, 2014, 11:07:42 AM
Do these icons change size with zoom in/out?
Partially - not in order as they could in case of wrong dat file.

You can see in attached two dat files, that both are technically the same.
There is no difference (excluding object name, coords and so on).

StationParking_2_1 - menu icon is not changing
StationParking_4_1 - menu icon is changing



Both are addons for pak96.comic

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Ters

StationParking_2_1 has a button image that is 32x32 pixels. StationParking_4_1 has a button image that is 96x58 pixels.

Dwachs

Quote from: The Hood on January 25, 2014, 11:30:28 AM
They are all 32x32 - which is the correct icon size for pak128.Britain.
This icon is 33px wide, the same goes for 'slice-underground view icon'.
Parsley, sage, rosemary, and maggikraut.

Václav

Quote from: Ters on January 25, 2014, 04:07:18 PM
StationParking_2_1 has a button image that is 32x32 pixels. StationParking_4_1 has a button image that is 96x58 pixels.
It is very strange - because size you talk about, is size of cursor, not menu button.
But this atypical size of cursor have also other station extensions, that are greater than 1*1.

To you could check it, I attached also image files with menu icon and cursor.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Ters

Quote from: Václav on January 25, 2014, 07:40:05 PM
It is very strange - because size you talk about, is size of cursor, not menu button.

No, the cursor is 96x55 pixels. There is a stray pixel in the lower right corner of the button image, which appears to be the leftmost pixel of the cursor.

Václav

But originally you wrote:
Quote from: Ters on January 25, 2014, 04:07:18 PM
... StationParking_4_1 has a button image that is 96x58 pixels.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Ters

When I wrote that the the button image is 96x58, you wrote that that was the size of the cursor, which it wasn't. The button image is 96x58 and the cursor image is 96x55. 96+96=192, which is the width of the source image. But one pixel of the cursor isn't confined to it's half of the source image, and is therefore apparently counted as part of the button.

Václav

Ahh, so, I have to remake cursors to smaller size.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

prissi

No, just removing the stray pixel should be enough.

Václav

Due to way in which I created sets of icon and cursor, it is a bit simplier to re-size (and improve) cursor.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

prissi

THe cursor will not be touched by the program. The icon however will be scaled down as long as there is a stray pixel to the nearest of 32 pixel width.