Charmed Quark Systems, Ltd. - Support Forums and Community

Full Version: Horoscope template minimizing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11
Ok... I am having trouble getting this to work.. Maybe someone can haelp me fill in the blanks to get this done and then everyone can do this.

Here is my main screen with my modded ripper horoscope graphic template..
[Image: RackHoroscopemain.jpg]

Here are my settings for the main template Horoscope button...
[Image: HoroscoprMaintemplatebuttonsettings.jpg]

Here are the settings for the Cancer Horoscope button...
[Image: HoroscopeCancerbuttonsettings.jpg]

Here are the daily button settings...
[Image: HoroscopeDailybuttonsettings.jpg]

Here are the dynamic text window field settings...
[Image: HoroscopeDynamicTextFieldwindowsett.jpg]

Here are the Dynamic text window XLAT settings for Cancer
[Image: HoroscopeDynamicTextXLATwindowsetti.jpg]

tia,
Ron
can you post a zip of the template files so I can import them?
Interface variables have nothing to do with the variables driver. They are two separate things.
I just tried to mess with this for you and I just don't get it. Dean, perhaps a dummy step by step is in order here maybe even with some screen shots if you have the spare time.

I understand what you mean by setting the xlat in the template.

I creates two templates
1)Overlay
2)Main

In the overlay there is only one dynamic text widget with the name HoroscopeText. I click on the Overlay attributes and assigned "AllHoroscopes.%(IntfVar:myvar)_today" to the widget HoroscopeText. I then saved the Overlay

Then I created a new template Main with a single button and a single overlay widget. I set the command buttons actions to Intf. Viewer::Set Variable(myvar, sagittarius) On Click and saved.

I run the Main interface and click the button but nothing happens.
Squintz Wrote:can you post a zip of the template files so I can import them?
Try this... it is in the files folder....http://briefcase.yahoo.com/ellisr63

I hope you can download the 2 files from here. CQC would not allow me to upload the zip file as it was too big.
tia,
Ron
Squintz Wrote:I just tried to mess with this for you and I just don't get it. Dean, perhaps a dummy step by step is in order here maybe even with some screen shots if you have the spare time.

I understand what you mean by setting the xlat in the template.

I creates two templates
1)Overlay
2)Main

In the overlay there is only one dynamic text widget with the name HoroscopeText. I click on the Overlay attributes and assigned "AllHoroscopes.%(IntfVar:myvar)_today" to the widget HoroscopeText. I then saved the Overlay

Then I created a new template Main with a single button and a single overlay widget. I set the command buttons actions to Intf. Viewer::Set Variable(myvar, sagittarius) On Click and saved.

I run the Main interface and click the button but nothing happens.

After setting the variable don't you need to reload the overlay? I was headed down the same path. I don't understand however how you are embedding the variable in the field name. When I click on the field tab, I just get the horoscope driver and the field names themselves (IE Cancer_today, Leo_Today).
I am starting to think that Dean is pulling our leg on this one Smile

I have looked all arround and there does not seem to be any way to tell a Single Dynamic Text Widget what field to use from a particular driver. There needs to be an option for widgets the use fields to set the field in an action.
I think what is really needed here is an indirect addressing method. Isn't that something upcoming with release 2.0? I don't think Xlat will do what we are trying. An easy method would be to assign fields in a template placeholders and populate those placeholders with driver fields or static values on loading the template. We're almost there with variables if there was a way to assign a dynamic text widget a variable name instead of a driver field.

For example, a widget action would perform: Var1=Driver.field1, Var2 = Driver.field2, Var3 = Driver.field3, LoadTemplate or Overlay with Dynamic field1 assigned Var1, field2 assigned Var2, etc.
The Xlat thing will do what you want to do. The steps are:

1. Create a button on the main template that sets a variable to the sign you want (with the right case and so forth so that when it's used it will create a valid field name), and then loads the overlay template.
2. Create the template to load as an overlay that has a dynamic text field to display the value you want, and give it a name
3. In the Xlat tab of the overlay template's attributes, assign that dynamic text widget the field you want it to use, based on the incoming variable.

That's all that's needed. As long as you assign it a valid field name it will work. It's the same Xlat scheme that people are using for many other things.
Dean Roddey Wrote:The Xlat thing will do what you want to do. The steps are:

1. Create a button on the main template that sets a variable to the sign you want (with the right case and so forth so that when it's used it will create a valid field name), and then loads the overlay template.
2. Create the template to load as an overlay that has a dynamic text field to display the value you want, and give it a name
3. In the Xlat tab of the overlay template's attributes, assign that dynamic text widget the field you want it to use, based on the incoming variable.

That's all that's needed. As long as you assign it a valid field name it will work. It's the same Xlat scheme that people are using for many other things.

It's #3 I'm having a problem understanding...Call me dense.

Let's talk specifics:

1. I created a button that does:

Intf.Viewer::Set(HoroscopeZodiacSign, cancer) On Click
HoroscopeOverlay::LoadOverlay(test) on Click

2. Created an Overlay called test with Dynamic Text Widget named DailyHoroscope.

3. Here's where you lose me. What Key and Value based on the above should I enter into XLAT, and what goes into the Field? Is field left blank, because the only options are the actual Horoscope Driver fields that are specific to the sign.
Pages: 1 2 3 4 5 6 7 8 9 10 11