Перейти к содержанию

Дайджесты за январь-февраль

Обновления гайдов и аддонов

Январь Февраль

Мониторинг серверов и редактор аддонов

Представляем вам две легенды. То, о чем можно было только мечтать, стало реальностью.

Мониторинг серверов Редактор аддонов

Подсказки из игры на вашем сайте

Теперь вы можете отображать сведения о внутриигровых элементах простым наведением курсора мыши.

Подробнее

Апдейтер аддонов

Представляем вам программу для автообновления аддонов и делимся подробностями.

Подробнее Скачать

Changing UI aspect ratio


Гость neFAST

Рекомендуемые сообщения

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 ?

Ссылка на комментарий
Поделиться на другие сайты

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

Ссылка на комментарий
Поделиться на другие сайты

Uh, I did this with 2.0 and I get an funny, but not usable gui. So it's more an experimantal function of the api.

Ссылка на комментарий
Поделиться на другие сайты

Works fine in 1.1.02. Did you resize your window repeatedly to ensure that all elements were properly resized?

Here's my add-on description page for this with a picture of the resize.

http://allods-forum.gpotato.com/viewtopic.php?f=55&t=33801&sid=d2be347e88fbfeab891e142d7dc0c84b

Ссылка на комментарий
Поделиться на другие сайты

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...

Ссылка на комментарий
Поделиться на другие сайты

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.

Ссылка на комментарий
Поделиться на другие сайты

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.

Ссылка на комментарий
Поделиться на другие сайты

Quote:
Did you resize your window repeatedly to ensure that all elements were properly resized?

I did. With a .85 value, buff text is a bit too big but overall its playable. Thanks for the tip.

Is there anything we can do for text with SetTextScale?
http://allods.uuu9.com/moddocseng/LuaApi/FunctionTextViewSetTextScale.html
Ссылка на комментарий
Поделиться на другие сайты

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?

Ссылка на комментарий
Поделиться на другие сайты

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Восстановить форматирование

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

×
×
  • Создать...

Важная информация

Пользуясь сайтом, вы принимаете Условия использования