Go to Page... |
Compatibility: | Live (1.0) |
Updated: | 11/03/14 06:01 PM |
Created: | 04/25/14 07:59 PM |
Monthly downloads: | 12 |
Total downloads: | 2,128 |
Favorites: | 3 |
MD5: |
File Name |
Version |
Size |
Uploader |
Date |
3.0 |
1kB |
zireko |
10/28/14 06:07 AM |
|
2.5 |
1kB |
zireko |
10/26/14 06:23 AM |
|
2.0 |
1kB |
zireko |
04/28/14 09:38 AM |
|
1.0 |
1kB |
04/25/14 07:59 PM |
Comment Options |
04/25/14, 10:49 PM | |
|
Look here for help with the anchor not saving. I just had the same problem and this should be able to help you.
http://www.esoui.com/forums/showthread.php?t=1152 |
|
Pure_Decimation |
View Public Profile |
Send a private message to Pure_Decimation |
Find More Posts by Pure_Decimation |
Add Pure_Decimation to Your Buddy List |
zireko |
View Public Profile |
Send a private message to zireko |
Find More Posts by zireko |
Add zireko to Your Buddy List |
Pure_Decimation |
View Public Profile |
Send a private message to Pure_Decimation |
Find More Posts by Pure_Decimation |
Add Pure_Decimation to Your Buddy List |
04/26/14, 02:54 PM | |
So create something similar to that and then you need to call the saved vars file creation like this:
Code:
PureVars.SV = ZO_SavedVars:New( "Pure_Variables" , 2 , nil , PureVars.Defaults , nil ) The first part I think I got down. The part where I have to enter it into the savedVars I don't seem to understand very good. This is my SavedVar currently but I don't understand it very good at all. So I'm trying to figure out exactly where to place the code and do like you said. Lua Code:
|
|
|
zireko |
View Public Profile |
Send a private message to zireko |
Find More Posts by zireko |
Add zireko to Your Buddy List |
04/26/14, 03:24 PM | |
I know I must be putting the code in the wrong order or something. Not sure exactly where I'm messing up but I feel it's close.
Lua Code:
|
|
|
zireko |
View Public Profile |
Send a private message to zireko |
Find More Posts by zireko |
Add zireko to Your Buddy List |
04/27/14, 12:16 AM | ||
|
Lua Code:
You were close. That should work now. Just moved the stuff around so the functions were actually getting called.
Last edited by Pure_Decimation : 04/27/14 at 12:17 AM.
|
|
|
Pure_Decimation |
View Public Profile |
Send a private message to Pure_Decimation |
Find More Posts by Pure_Decimation |
Add Pure_Decimation to Your Buddy List |
04/27/14, 12:44 PM | |
I moved everything around and now I'm getting and error. I think it might be something to do with trying to pull up the savedVar. I'm gonna link all my code lua, xml, and txt and show the picture of the error. Maybe you can see what I'm messing up on. O and Pure thank for all this help.
LUA Lua Code:
XML Lua Code:
TXT Lua Code:
|
|
|
zireko |
View Public Profile |
Send a private message to zireko |
Find More Posts by zireko |
Add zireko to Your Buddy List |
04/27/14, 12:58 PM | ||
|
|
|
|
Pure_Decimation |
View Public Profile |
Send a private message to Pure_Decimation |
Find More Posts by Pure_Decimation |
Add Pure_Decimation to Your Buddy List |
04/27/14, 01:15 PM | |
(Firstly, go through your variable calls for variables within your table. Cause I see that some of them are not worded properly. Also when you call your "Roll" object, you need to place the parents (your top level control) name in front of it since that is how you call it in the XML file. Let me know if you need a more in depth explanation of these two things.)
When you say there not worded properly do you mean like some that are Roll and some that are roll with the lowercase letter? And can you give me an example of how to place the Roll object in the parents (your top level control) name in front of it? |
|
|
zireko |
View Public Profile |
Send a private message to zireko |
Find More Posts by zireko |
Add zireko to Your Buddy List |
04/27/14, 05:27 PM | ||
|
Code:
_, RollVars.SV.Dice.point, _, RollVars.SV.roll.relPoint, RollVars.SV.roll.offsetx, RollVars.SV.roll.offsety = Roll:GetAnchor(0) Code:
_, RollVars.SV.Roll.point, _, RollVars.SV.Roll.relPoint, RollVars.SV.Roll.offsetx, RollVars.SV.Roll.offsety = LootDiceRoll:GetAnchor(0) |
|
|
Pure_Decimation |
View Public Profile |
Send a private message to Pure_Decimation |
Find More Posts by Pure_Decimation |
Add Pure_Decimation to Your Buddy List |
04/27/14, 06:38 PM | ||
[quote=Pure_Decimation]
Ok I have the words fixed now what about the part where you said the parents (your top level control) can you show me an example of that so that I better know where to put it. |
||
|
zireko |
View Public Profile |
Send a private message to zireko |
Find More Posts by zireko |
Add zireko to Your Buddy List |
04/27/14, 07:51 PM | |||
|
[quote=zireko]
|
||
|
Pure_Decimation |
View Public Profile |
Send a private message to Pure_Decimation |
Find More Posts by Pure_Decimation |
Add Pure_Decimation to Your Buddy List |
04/27/14, 08:24 PM | |
Ok, sorry about that. I went in and fixed the code a little but for some reason I'm still getting the same error. I may still be miss understanding something somewhere. Here is the code that I fixed so far and I'm getting the error with.
LUA Lua Code:
|
|
|
zireko |
View Public Profile |
Send a private message to zireko |
Find More Posts by zireko |
Add zireko to Your Buddy List |
04/27/14, 09:03 PM | ||
|
Lua Lua Code:
XML Code:
<GuiXml> <Controls> <TopLevelControl name="LootDice" mouseEnabled="true" movable="true" hidden="false"> <Dimensions x="150" y="42" /> <Controls> <Backdrop name="$(parent)BG" inherits="ZO_ThinBackdrop" /> <Label name="$(parent)Roll" font="ZoFontWindowTitle" color="CFDCBD" wrapMode="ELLIPSIS" verticalAlignment="CENTER" horizontalAlignment="CENTER" text="LootDice" > <AnchorFill /> </Label> </Controls> </TopLevelControl> </Controls> </GuiXml> Code:
## Title: LootDice - By Zireko ## APIVersion: 100003 ## Description: A simple Loot Dice for group runs. ## Version: 1.0 ## SavedVariables: Roll_Variables LootDice.lua LootDice.xml
Last edited by Pure_Decimation : 04/27/14 at 09:04 PM.
|
|
|
Pure_Decimation |
View Public Profile |
Send a private message to Pure_Decimation |
Find More Posts by Pure_Decimation |
Add Pure_Decimation to Your Buddy List |
04/28/14, 09:47 AM | |
Thank you so much Pure. It is now working like you said and I'm reading over the code constantly to better understand how this works. You've taught me a lot and I have given you the credit for helping me with the update so much. Thank you again.
|
|
|
zireko |
View Public Profile |
Send a private message to zireko |
Find More Posts by zireko |
Add zireko to Your Buddy List |