Hello.
I want to change a game window size https://imgur.com/a/i8OrH(picture 1) to size (picture 2) with autosize icons, how i can do it?
ID:2315577
Nov 16 2017, 5:16 am
|
|
Nov 16 2017, 7:08 am
|
|
You want to look more into world.view and client.view to alter how much players can see. If you make your own interface, another thing to look out for is the stretch to fit setting and icon size setting on map elements, which I highly recommend you do, instead of using the default interface like in your pictures.
|
In response to BombanyTI
|
|
The winset proc is meant for altering properties of elements during runtime. So if you want, you can alter the icon_size of the map element during runtime, yes. You can also alter the client.view variable during runtime as well, which is the variable you want to increase or decrease to suit your needs.
Another reason to make your own interface, is the fact that child elements have a resize command option in their settings for you to play with. |
Ok, i typed
/world size = "10x10" /client size = "10x10" But its onlu enlarged my icons, not a window Look at pic https://imgur.com/a/NCLMm |
In response to BombanyTI
|
|
Create your own interface
|
In response to Spunky_Girl
|
|
I created my own interface, but how i can add "stretch to fit" on it?
|
In response to Spunky_Girl
|
|
inb4 i have a black lines on left and right. How i can fix?
https://media.discordapp.net/attachments/325025877702213633/ 381842985391751170/unknown.png?width=910&height=473 |
In response to BombanyTI
|
|
The map control has a setting in its options in the interface editor for "Stretch to Fit." To get rid of those black lines, you can either use Stretch to Fit, or set the client.view (or world.view) size.
|
In response to Spunky_Girl
|
|
It looks so big when i use "Stretch to fit" option
https://media.discordapp.net/attachments/325025877702213633/ 381912382034804748/unknown.png?width=888&height=474 world.view is 15x15, client too |
In response to BombanyTI
|
|
That's the downside to having an adjustable viewport. Not everyone is rocking the same resolution, so there isn't one uniform size you can set your viewport to. It's best to limit the "stretch to fit" to effectively none at all, since it skews your graphics in an ugly manner. Instead, make your viewport one size only, and size the client.view variable to that.
Another thing worth noting to make that easier, is making the map control sized in increments of your world.icon_size variable (usually 32). |
In response to Spunky_Girl
|
|
When i change my icon size or view my ingame hud are not in screen
|
In response to BombanyTI
|
|
You have to set your objects' screen_loc relative to the client's screen.
Ex:
screen_loc = "NORTH, WEST"
|