Jump to content


Photo

'Code editor' with Library maker (GM 8)


  • Please log in to reply
1 reply to this topic

#1 AnonyMouse

AnonyMouse

    GMC Member

  • GMC Member
  • 128 posts

Posted 15 March 2012 - 09:23 PM

Hi, I am trying to make my own library and to use 'Code editor' instead of normal interface. I thought that this is something like the "execute code" from Control tab. Actually it is not working, never mind what I wrote in it (my drag_drop action) nothing happens. I am sure I am missing something or I made something totally wrong but what?

P.S. Hm, I figured it out, I should use the other "Kind", not in the interface. But what is the use of
Kind: Normal
Interface: Code editor
Execution: Code?

Edited by AnonyMouse, 15 March 2012 - 09:57 PM.

  • 0

#2 IsmAvatar

IsmAvatar

    Good Samaritan

  • GMC Member
  • 2411 posts
  • Version:GM8

Posted 27 March 2012 - 08:21 PM

The Library Maker isn't very polished, so there are still some "not useful" features left over in it.

Execution: Code is for custom library actions which need to execute more than a simple function, so they cannot simply select "Function". It was not intended for Code Actions, because Code actions are intended to only execute the code that the User enters, not the code that the Library enters. Despite this, Mark probably got confused when he made the official library, as he decided to mark Code actions as using the Execute: Code for it anyways. Either way, Code actions ignore the Execution type.

Interface: Code editor is more or less useless and is ultimately ignored. Originally, it was probably intended to indicate that the appearance of the action should be a code editor (as you'd expect). In the end, it was overridden by the special Action Kind: Code. Code actions still select Code editor as their Interface kind, but I doubt it would make a difference if they selected something else.

I hope this helps.

I am by no means an expert, as I haven't played with the different options very thoroughly, but I have done a fair bit recently for my upcoming LibMaker, so I know a bit. If someone knows the system better than me, by all means, step forward and correct me ;-)
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users