Results 1 to 2 of 2

Thread: How to detect when the editor is opening?

  1. #1
    Knight
    Join Date
    Nov 2006
    Location
    Oregon
    Posts
    99

    Default How to detect when the editor is opening?

    I've been looking at the low res platformer example. I noticed the function OnOpenEditor -- but I don't know where the heck this is called from.

    Anyone tell me how i can tell when the editor opens and closes so I can correctly set my resolutions for both modes?

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Default

    OnOpenEditor() and OnCloseEditor() are called by the engine itself, when the editor is opened/closed.

    The default functions exist in base/script/system/editor.lua, but if you check RT_LowRest/script/game_start.lua you'll see it has its own versions of them (I just cut and pasted the ones in from editor.lua, and added a few changes), which will automatically override the default versions.
    Seth A. Robinson
    Robinson Technologies

Similar Threads

  1. Problems opening the console
    By nanoflower in forum Novashell Game Creation System
    Replies: 4
    Last Post: 07-18-2007, 12:25 AM
  2. LUA editor
    By sphair in forum Novashell Game Creation System
    Replies: 0
    Last Post: 02-17-2007, 04:18 PM
  3. Editor in win-xp
    By K-13 in forum Dink Smallwood HD
    Replies: 1
    Last Post: 02-20-2006, 07:40 PM
  4. Editor won't run
    By in forum Dink Smallwood HD
    Replies: 1
    Last Post: 02-13-2005, 08:34 PM
  5. Another Game w\ editor
    By Davidi in forum RTsoft Tavern
    Replies: 2
    Last Post: 01-10-2004, 04:12 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •