Jump to content
Alloder.pro  about Allods with love 😱
Search In
  • More options...
Find results that contain...
Find results in...

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

Digest April

We talk about what was done and updated in the past month. We help keep abreast of events.

Read more

Game tooltips

Tooltips provide a way for 3rd party fansites and extensions to display detailed information on mouseover.

Read more

Changing UI aspect ratio


Guest neFAST
 Share

Recommended Posts

Hi folks, I was condering if there is any way to change the aspect ratio of all UI.

I mean when you resizing allods window, you can see that the user interface is scaled independently from the game 3D rendering in background.

But when in full screen I think the UI takes to much screen real estate.

I looked in all game's .cfg, (found a way to change the fov BTW) but nothing regarding ui ratio.

Any clue ?

Link to comment
Share on other sites

The command widgetsSystem:SetShrinkRatio( # ) does this function (kind of), names get real big though.

Try this code.

Code:
function Shrink( params )

widgetsSystem:SetShrinkRatio( .8 )

end

function Init()

common.RegisterEventHandler( Shrink, "EVENT_UPDATE_SHRINK_RATIO" )

end

Init()

And then resize your window and it'll activate, do it twice to ensure that all widgets have responded. (This will effect UserMods widgets as well.)

Edit: If someone wants a functional version for just useage.

http://www.kadoo.com/en/download/13270211-4fc

Link to comment
Share on other sites

Guest Carnifex

Yes, but the size off all texts aren't 1,5 times so big. So you have a little text in a big textfield. And little text (e.g. the numbers in your hud ;) ) are as difficult to read as before.

BTW: one other problem was, taht 2.0 was to big and so i had some overlaps of gui-elements...

Link to comment
Share on other sites

You lost me. Heh.

You're saying that the text sizes within panels that have sizeable texts like UserMods shrinks too much to be illegible. Like my HUD's texts. For this I'd recommend setting the shrink ratio to compliment your maximum resolution. .8 is good for 1920x1080, but it may not be for lower resolutions. Might need something like .9 or somethin'.

Then you're saying 1.7.1 of my HUD is overlapping your GUI? :P Or do you mean that resized AO 2.0 results in GUI elements overlapping? Confused.

Link to comment
Share on other sites

I think that it is quite possible that event sent by system generates 2 things:

1) Your shrink function which shrinks by 0.8

2) Original shrink function (made by devs) that shrinks appropriateley to screen resolution (sent in event).

And in some cases (UI) it works like you think it should coz for example it is executed "dev after your" and for texts it works in other way coz dev addon works first, then yours??

Well all above is just a guess so i can't proove or disproove that.

Link to comment
Share on other sites

Sadly widgetsSystem seems to not respond like a widget, this is probably because it isn't a widget but rather the coded system in charge of the display of widgets. I've run a couple widgetsSystem:WidgetFunctions on it and the game passes interesting errors that I've never seen before. Other times it just passes nil functions.

So in short, to control the blown up (inverse sizing), clipped (uses showClippedSymbol/ellipsis as true), or unchanged text (has no text sizing), we'd have to get control of those specific text widgets.

As a side: It's interesting that the API documentation doesn't have UserMods, but it also doesn't have our obselete commands. (IE the ones that are supposed to do the functions that we need. :P Like finding out unknown text groups through common.GetStateRelatedTextGroup() that supposedly used to pass all the state related text groups' names..) Maybe when that version of Allods hits the API point where the commands are not obsolete someone can find out all the TextGroup() names?

Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use