Scaling of windows

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

StrickenKid
Just popping in
Just popping in
Posts: 9
Joined: Wed Jun 23, 2010 05:59

Scaling of windows

Postby StrickenKid » Sat Oct 16, 2010 15:19

Hi,

I wanted to know if theres a way to keep each window scalable, because how it is now, the bigger the DirectX window is, the CEGUI windows are bigger and more pixalated.

If you don't understand what I mean here are some examples:

Standard:
http://pokit.etf.ba/upload/?pokit95edca ... 663749.png

Maximized:
http://pokit.etf.ba/upload/?pokit80c7c4 ... d9fb12.png

I want to use CEGUI on a full-screen game, is there a way to keep the CEGUI windows at the correct size?

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Scaling of windows

Postby Kulik » Mon Oct 18, 2010 11:30

I believe this was answered on IRC.

Code: Select all

(5:35:26 PM) CrazyEddie: StrickenKid: turn off auto scaling in the Imageset(s)
(5:35:58 PM) CrazyEddie: look in the xml files, you'll see a setting attribute for it
(5:36:08 PM) CrazyEddie: .imageset files
(5:37:07 PM) CrazyEddie: that'll work for most stuff
(5:37:59 PM) StrickenKid: ok
(5:38:01 PM) StrickenKid: ill try
(5:38:06 PM) CrazyEddie: you can turn it off in fonts too, though you may not want to
(5:38:26 PM) StrickenKid: i just want it to look right when the game is maximised
(5:38:44 PM) CrazyEddie: to stop window geometry from scaling you have to use only offset values for sizes and not scale values
(5:39:31 PM) CrazyEddie: so rather than: UDim(0.25, 0) you have UDim(0, 200)
(5:40:06 PM) Kulik: StrickenKid: if you want the sizes to not scale but window positions to scale (this is most situations IMO), just use tricks like UDim(1.0, -200) that means all the way to the right and then 200px to the left from here
(5:41:01 PM) CrazyEddie: or do similar things via using window alignments


Return to “Help”

Who is online

Users browsing this forum: No registered users and 5 guests