Home Forum Downloads My Favorites Register FAQ Mark Forums Read

Go Back   EQInterface Forums > Developer Discussion > General authoring help / discussion
User Name
Password

Reply
 
Thread Tools Display Modes
Old 10-25-2013, 08:28 PM   #1
Roochie
A Ghoul
 
Join Date: Oct 2013
Posts: 10
Default How to access current video mode/screen resolution?

hi, im new here. I've been messing around with some ui and its been relatively easy (i've done a little xml before) however i need to learn how to access the current screen resolution or video mode, and how to check weather or not its in fullscreen. Also this may be a dumb question, but can you do simple math operations in xml? i cant remember. like if i was defining an int could i set it to 2*3?

My other question was simply how to change the font size of a button. or any font in the ui really.

EDIT: i just realized this probably isnt very clear. sorry im tired. basically, the reason i want to access the screen resolution and stuff is cause i want to attempt to set a window's size to a percentage of the screen resolution. thus, if you changed to a larger video mode, the window would change as well

Last edited by Roochie : 10-25-2013 at 08:36 PM.
Roochie is offline   Reply With Quote
Old 10-26-2013, 02:28 AM   #2
firescue17
Premium Member
 
firescue17's Avatar
 
Join Date: Apr 2006
Server: Vox
Posts: 126
Interface Author - Click to view interfaces
Default

Quote:
Originally Posted by Roochie
the reason i want to access the screen resolution and stuff is cause i want to attempt to set a window's size to a percentage of the screen resolution.
EQ does not support this.

Quote:
Originally Posted by Roochie
My other question was simply how to change the font size of a button. or any font in the ui really.
<Font>#</Font>

Accepted values are 1, 2, 3, 4, or 5 with 1 being the smallest.
__________________

firescue17 is offline   Reply With Quote
Old 10-26-2013, 05:28 AM   #3
Turlo
Featured Artist
 
Join Date: Aug 2002
Posts: 317
Featured Artist
Default

The solution to your problem is to make different INI settings for each of the resolutions. You can't do a straight equation, but if you go through the common resolutions, you can have settings for each one in the iNI
__________________

"Ah, but you HAVE heard of me."
Turlo is offline   Reply With Quote
Old 10-26-2013, 01:18 PM   #4
Roochie
A Ghoul
 
Join Date: Oct 2013
Posts: 10
Default

Quote:
Originally Posted by firescue17
EQ does not support this.

<Font>#</Font>

Accepted values are 1, 2, 3, 4, or 5 with 1 being the smallest.


ah, i see. thanks for the tip! Although i do have another question about fonts, can you use more than 1 font on the same ui? and if so, how do you switch between them?

Quote:
Originally Posted by Turlo
The solution to your problem is to make different INI settings for each of the resolutions. You can't do a straight equation, but if you go through the common resolutions, you can have settings for each one in the iNI

Awesome! exactly what i needed to know as far as the resolution goes. thanks
Roochie is offline   Reply With Quote
Old 10-26-2013, 06:24 PM   #5
firescue17
Premium Member
 
firescue17's Avatar
 
Join Date: Apr 2006
Server: Vox
Posts: 126
Interface Author - Click to view interfaces
Default

Quote:
Originally Posted by Roochie
ah, i see. thanks for the tip! Although i do have another question about fonts, can you use more than 1 font on the same ui? and if so, how do you switch between them?


Awesome! exactly what i needed to know as far as the resolution goes. thanks

The default font is size 3 color black. It has to be declared on every, single element which you want to appear different.
firescue17 is offline   Reply With Quote
Old 10-26-2013, 07:33 PM   #6
Roochie
A Ghoul
 
Join Date: Oct 2013
Posts: 10
Default

Quote:
Originally Posted by firescue17
The default font is size 3 color black. It has to be declared on every, single element which you want to appear different.


actually what i meant was how change the actual font style. like aerial, times new romans, etc. is there a way to do this per window/button? or can you only have 1 font for the whole game?
Roochie is offline   Reply With Quote
Old 10-27-2013, 07:08 AM   #7
firescue17
Premium Member
 
firescue17's Avatar
 
Join Date: Apr 2006
Server: Vox
Posts: 126
Interface Author - Click to view interfaces
Default

Quote:
Originally Posted by Roochie
actually what i meant was how change the actual font style. like aerial, times new romans, etc. is there a way to do this per window/button? or can you only have 1 font for the whole game?

This is not supported either.
firescue17 is offline   Reply With Quote
Old 10-28-2013, 07:51 AM   #8
valaury3169
Enhanced Imperial Golem
 
Join Date: Jun 2008
Posts: 204
Interface Author - Click to view interfaces
Default

You can change the font in game, but it affects everything. You cannot define a font in the UI.
valaury3169 is offline   Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -5. The time now is 03:55 AM.


vBulletin Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI