|
09-11-2009, 01:16 PM
|
|
A Griffon
|
|
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
|
|
data from welcome screen
I am trying to display some data from the welcome screen in a different modded window. It seems the dynamic data that in self contained in the welcome screen does not translate to a different window. I tried to place the object with the dynamic data in my modded window like the welcome has, but I get nothing as far as for instance Hot Zone listed in my window I am working on. Any suggestions on how to get the data to display outside of the welcome screen itself?
Basically I am trying to incorporate info on my stat bar (via button press) that shows the current HZ and DD info.
Thanks in advance!
|
09-11-2009, 01:50 PM
|
|
A Griffon
|
|
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
|
|
I was actually planning on implementing this to my StartButton Stat Bar as well.
If the DynamicData isn't working, you could simple just work backwards up the tree to the root, and then down to the (Today) element in the Welcome window.
You could either just set your text on button press, or also modify the Text element in the Welcome with an "OnTextChanged" to further update your custom element when the text changes.
Cheers.
|
09-11-2009, 02:26 PM
|
|
A Griffon
|
|
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
|
|
I figured by using a button to show the info would cause the data to update already. seems it doesn't. I will try working backwards as you stated and see if that works. Thanks. If you figure anything out plz let me know.
|
09-11-2009, 02:38 PM
|
Slayer of clock cycles
|
|
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
|
|
You could put a OnTextChange on the text object and have it update your window.
|
09-11-2009, 03:34 PM
|
|
A Griffon
|
|
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
|
|
the default welcome screen uses the same Name for each of the two labels. that will cause it not to update properly on text change correct?
Welcome
-----Today
--------Label (this is the HZ name)
--------Label (this is the DD name)
So would I have to mod the welcome screen to make the labels two different names then use the text change to catch the update?
|
09-11-2009, 03:47 PM
|
|
A Griffon
|
|
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
|
|
Hmm, well that's lame.
Maybe try changing the name from "Label" to something else (via the script) and see if you don't blow something up, and then try referencing label again (to see if one stayed unchanged) and then referencing the new one.
|
09-11-2009, 03:59 PM
|
|
A Griffon
|
|
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
|
|
well, I cant seem to get this one to work..hopefully someone will come up with a way to reference to the data and display properly. Either I have lost the number of Parent references or the data needs some kind of code like the miniskill window mod on the site used to extract data from the persona window.
|
09-11-2009, 04:08 PM
|
Slayer of clock cycles
|
|
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
|
|
That shouldn't have any effect on it at all.
TextObjectForDD.OnTextChange="Parent.Parent.Parent.WhatEverHud.WhateverWindow.Te xtObject.Text=Text"
|
09-11-2009, 04:09 PM
|
|
A Griffon
|
|
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
|
|
how will it know what label to update though, they are both called the same thing.
|
09-11-2009, 04:12 PM
|
Slayer of clock cycles
|
|
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
|
|
It don't need to know. The client populates the TextObject and the OnTextChange is fired from that object so if you use the properties name,text or what ever it will use the data from the TextObject that called the OnTextChange.
So OnTextChange="Parent......Object_You_Want_Data_COpied_To.Text=Text" would copy the text from the object that called OnTextChante to the Object on the left side..
InStead of going into the welecome window and getting the info, you are sending the info out of the welcome window into a object with a known path.
Last edited by Landiin : 09-11-2009 at 04:17 PM.
|
09-11-2009, 04:26 PM
|
|
A Griffon
|
|
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
|
|
I think Landiin is saying modify the Welcome screen to send the data to the Stat thinger, rather than the other way around.
|
09-11-2009, 04:41 PM
|
|
A Griffon
|
|
Join Date: Dec 2004
Server: Antonia Bayle
Posts: 250
|
|
From a custom window try:
Parent.Parent.Welcome.Today.Label.Name = HZ
Parent.Parent.Welcome.Today.Label.Name = DD
Parent.DD.Text = Parent.Parent.Welcome.Today.DD.LocalText
Parent.HZ.Text = Parent.Parent.Welcome.Today.HZ.LocalText
Assuming you've got 2 labels in your custom window named DD & HZ that is.
|
09-11-2009, 04:59 PM
|
|
A Griffon
|
|
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
|
|
Aye, that's what I was suggesting in my 2nd post.
|
09-11-2009, 05:13 PM
|
Slayer of clock cycles
|
|
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
|
|
Quote:
Originally Posted by Drumstix42
I think Landiin is saying modify the Welcome screen to send the data to the Stat thinger, rather than the other way around.
|
Yes that is the true :P
|
09-11-2009, 05:47 PM
|
|
A Griffon
|
|
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
|
|
Hehe thanks Landiin and Drums..yep much easier the way you two suggest. I was over thinking it.
|
09-13-2009, 12:18 PM
|
|
A Griffon
|
|
Join Date: Nov 2004
Server: Toxxulia
Posts: 584
|
|
Ok I got this to work on first login with a toon. However, when I swap toons, the data does not load from the welcome screen to the modded window I use. I get blank entries. It will only update if I reopen the welcome screen on the next loaded toon in game. I tried to force an open and close of the welcome screen when I press the button on the modded window to refresh the data from the welcome to the modded spot on my window. But, it does not refresh and remains blank. any suggs on getting the data to refresh my modded window without having to reopen the welcome screen every time I swap to a different toon without fully logging to desktop and then back into game?
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:45 PM.
|
|