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

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

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

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

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

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

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

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

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

Подробнее

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

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

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

Default nameplate (Frames) addon


Гость ztealmax

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

hello is it possible to get hold of the original addon for ui for player, target, group etc?

I would love to just change the texture on the default Plates

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

  • 2 недели спустя...
Code:
---Plates:Target:Frame:Portrait:Combat
w = stateMainForm:GetChildUnchecked("Plates", false)
w = w:GetChildUnchecked("Target", false)
w = w:GetChildUnchecked("Frame", false)
Ссылка на комментарий
Поделиться на другие сайты

icreator hi and thank you for your response

im not sure how to use this code you posted to change default textures for nameplates?

Any hints would be greatly apriciated

Sincerally

Martin

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

Make an add-on with a (UIRelatedTextures).xdb referencing the texture you want then use w:SetBackgroundTexture(common.GetAddonRelatedTexture("NameofTexture")) in addition to what icreator posted.

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

stateMainForm:GetChildUnchecked("Plates", false):GetChildUnchecked("Target", false):GetChildUnchecked("Frame", false):SetBackgroundTexture(common.GetAddonRelatedTexture("NameofTexture"))

I think that will do the work xD

Correct me if i'm wrong.

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

  • 3 месяца спустя...

Could anyone please make me a working example so i can get started that would be greatly appriciated it would help me understand better how

it is coded :D

Maybe send it to [email protected] or add me to fb https://www.facebook.com/rootaccount (must be logged in to view)

For example just change the texture for the healthbar maybe in PLATES?

Just give me some hints on how to start what files are needed in /addons/myownaddon/*.*

For me this would really enhance the gaming experience :P

iguess this is whats needed inside the folder?

script.lua

AddonDesc.(UIAddon).xdb

MainForm.(WidgetForm).xdb

If so all that remains is what the ... shall be in them ;)

??

Sincerally

Martin

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

Do u use skype? Mine is in my profile.

You need a texture. That's the main point. You need a type of texture that is used in that UI element.

I am not sure about all the differences between (WidgetLayerTiledTexture) and (WidgetLayerTiledTexture), first one stretches on resizing and second "inserts texture spacers" if u understand me (Imagine a scroll where there are just 2 lines written, and a scroll where is like 10-15 lines, but their "headers" and "bottoms" are same size, only space between them increases).

I think u need to replace the existing texture with that of same type, but i am not sure.

Also you need an (UIRelatedTextures).xdb file with proper content.

There should be all your textures listed and named.

For example, a function common.GetAddonRelatedTexture("NameofTexture") gets you (it would be proper to say "returns", if you're familliar with programming) a texture named "NameofTexture" from your addon's related textures.

A function SetBackgroundTexture(self, parameter) sets background texture of panel before semicolon to one stated in parameter.

For example the code:

w:SetBackgroundTexture(IAmATexture)

Sets a texture called IAmATexture as background to widget called w.

Code

w:SetBackgroundTexture(common.GetAddonRelatedTexture("NameofTexture"))

Sets a texture found in related textures files under the name "NameofTexture" to widget called w.

You may also do the:

Texture = common.GetAddonRelatedTexture("NameofTexture")

w:SetBackgroundTexture(Texture )

With the same result.

Function :GetChildUnchecked("Plates", false) returns (gives you) the child of vidget called "Plates".

stateMainForm:GetChildUnchecked("Plates", false) searches all the childs of stateMainForm, and if he finds the one called "Plates" - it returns it (i.e. a link to it, so you can operate it).

Code:

stateMainForm:GetChildUnchecked("Plates", false):GetChildUnchecked("Target", false):GetChildUnchecked("Frame", false)

Returns you a child called "Frame" of a child called "Target" of a child called "Plates" of stateMainForm.

If you imagine it as a windows explorer (or a tree), it returns you the 4-th branch of thee "stateMainForm", like:

stateMainForm->Plates->Target->Frame. or stateMainForm\Plates\Target\Frame (however, the last comparsion is not accurate, i would rather say barbarianish).

So, basically what you need to do is get a "links" to all your panels (like target's frame) and set them all new textures.

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

You can see a properly filled (UIRelatedTextures).xdb file in "UnitDetector"(or many others) addon.

Example:

Code:
<?xml version="1.0" encoding="UTF-8" ?>

<UIRelatedTextures>

<Items>

<Item>

<name>DRUID</name>

<textureItem href="Classes/Druid.(UISingleTexture).xdb#xpointer(/UISingleTexture)" />

</Item>

<Item>

<name>MAGE</name>

<textureItem href="Classes/Mage.(UISingleTexture).xdb#xpointer(/UISingleTexture)" />

</Item>

</Items>

</UIRelatedTextures>

If you have such file (exactly like in example) then you may use common.GetAddonRelatedTexture("DRUID") and common.GetAddonRelatedTexture("MAGE"), which will return appropriate textures (Classes/Druid.(UISingleTexture).xdb#xpointer(/UISingleTexture) and other for mages one).

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

Thank you so much for this now i can fiddle around with this :P

Another question , any one know if there is something like Global UI scale? like i think all PLATES are to big should be about 70% instead of current 100%

any commands for that?

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

Search for set shrink ratio.

Not sure about usability.

BTW default size of screen is 1280x1024, if you have different screen resolution, all textures may be properly (or not properly) resized.

It is also advised to use high quality textures so people with resolutions 1600x1200 and more will see good pictures instead of terraria/minecraft art xD

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

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

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

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

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

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

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

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

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

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