-
August 19th, 2014, 15:29 #1
Making changes to manager_desktop.lua from an external script.
I was wondering if it was possible to make changes to the variables in the manager_desktop.lua variables from an outside script.
I've tried this:
Code:local stackcolumns = 1; local stackiconsize = { 92, 50 }; local stackspacing = { 0, 0 }; local stackoffset = { 5, 0 }; local stacktodockspacing = 0; local dockiconsize = { 92, 27 }; local dockspacing = 2; local dockoffset = { 5, 0 }; function onInit() DesktopManager.stackcolumns = stackcolumns; DesktopManager.stackiconsize = stackiconsize; DesktopManager.stackspacing = stackspacing; DesktopManager.stackoffset = stackoffset; DesktopManager.stacktodockspacing = stacktodockspacing; DesktopManager.dockiconsize = dockiconsize; DesktopManager.dockspacing = dockspacing; DesktopManager.dockoffset = dockoffset; end
Thanks in advance.
Resire
-
August 19th, 2014, 15:54 #2
As you suspect, you can't access them externally because they are local to that script. You'll need to add some small functions to manager_desktop.lua to expose a function to allow you to change the local variables. Of course, this will mean that on each future version change of CoreRPG you'll have to see if manager_desktop.lua has changed since the previous versions and update accordingly.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
August 19th, 2014, 16:01 #3
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks