Advertisement
Prehistoricman

Solo Documentation

Aug 12th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. ------------------FUNCTIONS------------------
  2. ApplyGUISettings(object Instance, selectable bool)
  3. Applies settings for GUI objects in the userdata directory.
  4. If selectable is true then AutoButtonColor to set to false.
  5. EG. applyGUIsettings(OS.GUI.TextButton, true)
  6.  
  7. CloseProgram(program string, forced bool, waitwhileclosing bool)
  8. Stops a process running by either changing the disabled property to true or making a closerequest.
  9. If forced is true, the script is disabled and GUI removed.
  10. Otherwise, an ObjectValue called CloseRequest is made inside the script.
  11. If waitwhileclosing is true, then the function will wait until the script disables itself.
  12. waitwhileclosing doesnt apply if the script is force disabled.
  13.  
  14. Execute(program string)
  15. Enables a script and adds it to the global running table.
  16. If the program contains a StringValue called SYSYEM or Program then it:
  17. Creates a Frame in GUI.Programs called string program (system programs get whole screen, normals get
  18. everything except the taskbar.
  19. Creates an ObjectValue inside of the program called GUIArea that points to the GUI frame the program
  20. has been assigned.
  21. EG. execute("Startup")
  22.  
  23. FindInTable(tab table, object value)
  24. Returns the object's position or false depending on whether the object specified is found in the table.
  25.  
  26. SWM.InitGUI(Frame GUIArea, Vector2 size, Vector2 position, string title, bool draggable, bool resizeable,
  27. function close, function minimise, function fullscreen)
  28. Creates a window for the program and attaches functions to buttons so the window is interactive and
  29. moveable.
  30.  
  31. Pause(object Instance, property Property, target Value)
  32. Waits until object.property == target.
  33. EG. pause(OS.GUI.Desktop, Position, UDim2.new(0, 0, 0, 0))
  34.  
  35.  
  36. ------------------VALUES------------------
  37. localarea.EexcuteOnStart returns string
  38. Something that programs run when they start up
  39.  
  40. localarea.GUI returns ScreenGui called GUI inside OS
  41. Area where GUI objects are stored.
  42.  
  43. GUIApplication.GUIArea returns Frame in ScreenGui called GUIApplication's name
  44. The application's GUI area.
  45.  
  46. localarea.OS returns parent of _INIT
  47.  
  48. localarea.OSState returns string
  49. Current state of the OS.
  50. "offline", "online", "noexecute"
  51.  
  52. localarea.OSVersion returns string
  53. Current version of the OS, defined in OS.Version.Value.
  54.  
  55. localarea.ProgramIDs returns table
  56. IDs of applications in the Running table
  57.  
  58. localarea.Running returns table
  59. A list of running executables.
  60.  
  61. localarea.Storage returns /Storage (userdata)
  62. A Frame with various common userdatas in.
  63.  
  64. localarea.SWM returns table
  65. Where all of the Solo Window Manager variables/functions are stored
  66.  
  67. localarea.Userdata returns ScreenGui called Userdata inside OS
  68. area where values are stored for user settings
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement