OpenRDX Forum Index OpenRDX

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Add Textures files to your library

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    OpenRDX Forum Index -> Your project
View previous topic :: View next topic  
Author Message
sigg
Dev/Admin


Joined: 20 Oct 2007
Posts: 634
Location: Rashgarroth EU / Tiras Porah

PostPosted: Sun 10/5/08 8:02 pm    Post subject: Add Textures files to your library Reply with quote

You're adding texture by using the function VFLUI.RegisterTexture.

Example :
Code:
VFLUI.RegisterTexture({
   name = "blizzard_bar";
   category = i18n("Status Bars (Horiz)");
   title = i18n("Blizzard");
   path = "Interface\\TargetingFrame\\UI-StatusBar";
   dx = 256; dy = 32;
});


name : this is the id of your texture and it must be unique.
title : your texture will appear with this title in the library.
category : all textures are sort by category. examples category : icon, bar, art ... You can create your own category if you wish.
path : path of your texture
dx, dy : (not mandatory) these indicate the size of your texture

See the file RDX/Metadata/Textures.lua
it contains all default textures of the library.

Where to put yours textures files ?
The best way is to put them inside your OOBE project.
Create a Textures folder
Interface/AddOns/OOBE_xxxxx/Textures
(xxxxx is the name of your OOBE)

Add yours "VFLUI.RegisterTexture" functions in the autoexec script of your main package.

See the example with AION_UI.
Back to top
View user's profile Send private message
Strit112



Joined: 04 Nov 2007
Posts: 59
Location: Denmark

PostPosted: Mon 12/8/08 7:53 pm    Post subject: Reply with quote

What's the i18n in category and title? Anything I should change if I change the name and category to something else? Or should I just ignore it?
_________________
Back again in RDX :>
Back to top
View user's profile Send private message MSN Messenger
Ai



Joined: 03 Nov 2007
Posts: 205

PostPosted: Mon 12/8/08 8:29 pm    Post subject: Reply with quote

I believe hat is for the localization.
_________________
Dragonmaw - Aí
Back to top
View user's profile Send private message MSN Messenger
wendylady



Joined: 31 Oct 2008
Posts: 21

PostPosted: Fri 4/3/09 10:35 am    Post subject: Reply with quote

do they have to be in .blp or can I use .tga?
Back to top
View user's profile Send private message
Ai



Joined: 03 Nov 2007
Posts: 205

PostPosted: Fri 4/3/09 11:25 am    Post subject: Reply with quote

you can use tga.
_________________
Dragonmaw - Aí
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    OpenRDX Forum Index -> Your project All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 4 Hours
www.phpbb.com
© fridgid 2005-2007