Thread Tools Display Modes
04-28-09, 08:10 AM   #1
Nubsy
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 14
im lost lol

Hi there im a little lost im trying to make a options.lau to kepp my settings commands in there to keep my main.lau more clean but i cant seem to get it 2 work.

This is my options.lau
Code:
nubsy = {oUF = {

move_player = 0
lock_player = 0

move_target = 0
lock_target = 0

move_tot = 0
lock_tot = 0

move_pet = 0
lock_pet = 0
}}}
is there something i need to add to my main .lau ??
please help a noob like me lol
  Reply With Quote
04-28-09, 09:32 AM   #2
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Don't know if you just typo'd .LUA a couple of times but just so you know it's .LUA and not .LAU.


Your multi-dimensional array is off. Should be
Code:
nubsy = {
	["oUF"] = {
		["move_player"] = 0,
		["lock_player"] = 0,
		["move_target"] = 0,
		["lock_target"] = 0,
		["move_tot"] = 0,
		["lock_tot"] = 0,
		["move_pet"] = 0,
		["lock_pet"] = 0,
	},
}

You also need to add the file to your .toc. Here's an example.

oUF_MyOwnLayout.toc
Code:
## Interface: 30100
## Title: oUF_MyOwnLayout
## Author: I, Me and Myself
## Dependencies: oUF
options.lua
main.lua
  Reply With Quote
04-28-09, 10:53 AM   #3
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by Yourstruly View Post
Don't know if you just typo'd .LUA a couple of times but just so you know it's .LUA and not .LAU.
[...]
It also just Lua, not LUA, like ACE is an accidental capslock error.
  Reply With Quote
04-28-09, 11:43 AM   #4
Nubsy
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 14
tnx for the fast reply's but that didnt work for me i wnt lock or unlock my frames wen number is changed
  Reply With Quote
04-28-09, 11:51 AM   #5
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Unless you set up an script to do the locking and unlocking then changing the numbers won't do anything.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » im lost lol


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