Aqua-Soft Forums: Layers and Rotation - Aqua-Soft Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Layers and Rotation Rate Topic: -----

#1 User is offline   vampiredon Icon

  • Group: Member
  • Posts: 8
  • Joined: 24-January 07

Posted 28 January 2007 - 07:32 AM

It seems I was originally posting in the wrong area XD... but heres my question

I'm trying to make a desklet in AveScripter using JavaScript and XML. The problem I'm having is with the rotation of a layer. If I assign a rotation to a layer (specifically with text), the layer does not show up. After trying to hours to figure out what the deal was, I found that if I rotate the desklet in the desklet properties to anything other than 0, -180, or 180, the rotated layer shows up. Does anyone have an idea of what is going on or maybe what I am doing wrong?

Also, is there any way to create a layer or something else that is not constrained by the size of the side. For example I want to make a sort of "floating frame" that is detached from the desklet and after looking through the XML options available, I still have no idea about this or even if it is possible.
0

#2 User is offline   AndreasV Icon

  • Group: Developers
  • Posts: 2,137
  • Joined: 22-November 03

Posted 28 January 2007 - 03:12 PM

AveDesk bug. Fixed in 2.0.
0

#3 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 28 January 2007 - 09:58 PM

also, AveDesk doesn't have the "feature" to have multiply windows. a Desklet is 1 window only.
0

#4 User is offline   SirSmiley Icon

  • Douchebag
  • Group: Member
  • Posts: 1,885
  • Joined: 28-June 05

Posted 28 January 2007 - 10:39 PM

vampiredon;439987 said:

Also, is there any way to create a layer or something else that is not constrained by the size of the side. For example I want to make a sort of "floating frame" that is detached from the desklet and after looking through the XML options available, I still have no idea about this or even if it is possible.


The closest I think you're going to get to this is by spawning a new desklet. A good example is to look at pcm's SDK.
0

#5 User is offline   vampiredon Icon

  • Group: Member
  • Posts: 8
  • Joined: 24-January 07

Posted 29 January 2007 - 02:15 AM

Alright, if I need to create multiple desklets, my next thought is how I can get them to send information to each other... but let me delve into pcm's sdk desklet first. Thanks for the replies.
0

#6 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 29 January 2007 - 03:13 PM

Ya.. my SDK is a good example on passing information too.
0

#7 User is offline   vampiredon Icon

  • Group: Member
  • Posts: 8
  • Joined: 24-January 07

Posted 30 January 2007 - 01:31 AM

Ok, so I now have my desklet creating new desklets and I understand how to pass information to the newly created desklets (thanks pcm), but now I'm stuck with the question of how to send information from the newly created desklet back to the parent desklet. Specifically, it would be best if I could have the newly created desklet call a function in the parent desklet. I'm pretty sure I am going to need a reference to the parent desklet inside the new desklet, but I have no idea how to do that. Any ideas?
0

#8 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 30 January 2007 - 12:58 PM

You can pass the reference of the desklet over to the child. DESKLET/This variable
0

#9 User is offline   vampiredon Icon

  • Group: Member
  • Posts: 8
  • Joined: 24-January 07

Posted 09 February 2007 - 12:16 AM

Ok so I haven't been able to work on this for a little while, but I'm finally back into it :D

I'm diligently trying to figure out how the heck I can pass the DESKLET/this variable to the child desklet. It gives me this error when I try to pass it through a function to the child desklet:

-2147467259 AveScripter.AveScripterMain
The script engine does not support a dispatch object Line:116 Column:1
-------------------------------
-2147467259 AveScripter.AveScripterMain
The script engine does not support a dispatch object Line:116 Column:1
-------------------------------

(It gives me this error in the Parent Desklet)


Heres an example of what I'm trying to do in the code

// Parent Desklet

function OpenTaskEditor(){
	TaskWindow = desklet.LoadScriptDesklet('%SKINRESPATH%daytask.avedesklet', true);
	TaskWindow.SetXYPos(desklet.DeskletXPos, desklet.DeskletYPos);
	TaskWindow.SetVisible(true);
	TaskWindow.BringToFront();
	
	TaskWindow.ExecuteFunction('setInfo', 'this');
}



// Child Desklet

function setInfo(ParentDesklet){

	ParentDesklet.DoSomething();
}

0

#10 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 09 February 2007 - 02:41 PM

I haven't had the chance to try this but have you tried doing the following:

TaskWindow.ExecuteFunction('setInfo', this);

Pass it has a dispatch not a "String"
0

#11 User is offline   vampiredon Icon

  • Group: Member
  • Posts: 8
  • Joined: 24-January 07

Posted 09 February 2007 - 09:52 PM

Same error, I think I had tried that before too lol


Any other ideas? :D
0

#12 User is offline   vampiredon Icon

  • Group: Member
  • Posts: 8
  • Joined: 24-January 07

Posted 12 February 2007 - 01:15 AM

Could I pass it through an XML parameter? I think I tried that too but now I forget...
0

#13 User is offline   pcm Icon

  • Group: Member
  • Posts: 617
  • Joined: 02-May 05

Posted 12 February 2007 - 02:42 PM

Ok.. Try this version of AveScripter

http://www.avedesk.o...cripterBeta.zip

This isn't official release it was a quick "feature" addon I did

Desklet.ParentDesklet or This.ParentDesklet is auto assigned when you create a desklet using the LoadScriptDesklet. BUT

It when you reload AVEDESK it will not reassign the desklet. I'm not sure how to reassigne it again after everything is reloaded. But at least you can try to make your desklet work with this.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic