Custom Loading Screen

Custom Loading Screen

3M Downloads

Cannot use negative numbers properly

AlexIIL opened this issue ยท 23 comments

commented

Using "-32" fails, but "0-32" doesn't.

commented

Tell me please. The length of the progress bar can be 400 pixels?

commented

Er, wrong issue and yes? (I'm assuming you mean in response to #24)

commented

@AlexIIL Not really. This bug is gone. I have a slightly different problem.
I made a picture with progress bars 400x400 pixels. The height of each progress bar I have 32 pixels. And the result here is:
default

That file images.json:
http://pastebin.com/RPT8C9sm

If I make the width of 256 and a height of 16 in the config is all right.
But why is this happening when I picture sizes 400x400 and get yourself progress bars width and height 400h32?

commented

Oh, sorry, its to do with how minecraft interprets image sizes. It has to assume that all images are 256x256 in size, so you have to change the texture height and width to be between 0 and 256 :/ (Can I see your image file?)

(Internally, it changes all images sizes to be decimals between 0 and 1, so it divides the pixels by 256... which means that you should use an image of sizes that are multiples of 256, like 512, for the image to fit properly and use a good number)

commented

(I don't think I can change it... but I will have a look)

commented

@AlexIIL 512x512 will work fine? Or only 256x256?

progressbars1

commented

512x512 would be fine, but you would have to divide the pixel positions by 2 (so if your progress bar is 32 pixels high, you would use 16 as the height in the config)

commented

@AlexIIL That is, the progress bar should be the size 512ั…16?

one bar progress bar is 32 pixels. Accordingly, two strips of the progress bar is 64 pixels.

commented
@AlexIIL That is, the progress bar should be the size 512ั…16?

Sorry, yes. But 512x32 would also be ok

commented

@AlexIIL Thanks!

commented

Is it all working properly now?

commented

@AlexIIL Well, I need to alter the image size of 512x512, and then I can say

commented

@AlexIIL 512x512 not working. Only 256x256

commented

Huh. Does it not work at all or does it partially work?

commented

(And can you show me the image and your config file)

commented

@AlexIIL I made a picture size of 512x512. Progress bar sizes 512x32.
I ran the client.
And get this:
2

Config: http://pastebin.com/PMVV8SrB

commented

Change the texture width and height from 512, 32 to 256, 16 for both, and change the y value for the dynamic percentage to 17 and it should work fine

commented

@AlexIIL Well, I did, and everything is fine.
I wrote that 512x512 does not work simply.

commented

(The values for the texture go from 0 at one end of the texture to 256 at the other end)

commented

Ok. I guess I'm going to need to put that on a wiki and explain it properly to avoid confusion

commented

@AlexIIL Ok.
I have a question. Will the implementation of the change buttons in Gui? (Singleplayer, multiplayer, options and so on)

commented

No. Nothing I do affects the main menu or anything after that

commented

@AlexIIL Thanks