Hiding the mouse cursor (DEF-1619)

Also how do we get rid of these build errors when using defos? Right now this type of add-in isn’t very clean to me. I’m not a c++ coder so I’m a bit lost when using this one. It doesn’t work like any other add-in I’m using. It appears defos. doesn’t work like any other methods in the engine.

/example/example.gui_script
	Line 14: Global variable in lowercase initial, Did you miss `local` or misspell it?
	Line 14: setting non-standard global variable 'toggle_cursor_lock'
	Line 16: Undefined global `defos`.
	Line 16: accessing undefined variable 'defos'
	Line 21: Global variable in lowercase initial, Did you miss `local` or misspell it?
	Line 21: setting non-standard global variable 'extract_to_savefolder'
	Line 28: Need check nil.
	Line 29: Need check nil.
	Line 30: Need check nil.
	Line 36: unused variable 'appname'
	Line 37: Undefined global `defos`.
	Line 37: accessing undefined variable 'defos'
	Line 37: Undefined global `defos`.
	Line 37: accessing undefined variable 'defos'
	Line 41: Undefined global `defos`.
	Line 41: accessing undefined variable 'defos'
	Line 42: Undefined global `defos`.
	Line 42: accessing undefined variable 'defos'
	Line 43: Undefined global `defos`.
	Line 43: accessing undefined variable 'defos'
	Line 44: Undefined global `defos`.
	Line 44: accessing undefined variable 'defos'
	Line 50: Undefined global `defos`.
	Line 50: accessing undefined variable 'defos'
	Line 50: accessing undefined variable 'extract_to_savefolder'
	Line 56: Undefined global `defos`.
	Line 56: accessing undefined variable 'defos'
	Line 56: accessing undefined variable 'extract_to_savefolder'
	Line 61: Undefined global `defos`.
	Line 61: accessing undefined variable 'defos'
	Line 69: Undefined global `defos`.
	Line 69: accessing undefined variable 'defos'
	Line 72: Undefined global `defos`.
	Line 72: accessing undefined variable 'defos'
	Line 75: Undefined global `defos`.
	Line 75: accessing undefined variable 'defos'
	Line 79: Undefined global `defos`.
	Line 79: accessing undefined variable 'defos'
	Line 82: Undefined global `defos`.
	Line 82: accessing undefined variable 'defos'
	Line 87: Undefined global `defos`.
	Line 87: accessing undefined variable 'defos'
	Line 90: accessing undefined variable 'toggle_cursor_lock'
	Line 93: Undefined global `defos`.
	Line 93: accessing undefined variable 'defos'
	Line 96: Undefined global `defos`.
	Line 96: accessing undefined variable 'defos'
	Line 101: Undefined global `defos`.
	Line 101: accessing undefined variable 'defos'
	Line 113: Undefined global `defos`.
	Line 113: accessing undefined variable 'defos'
	Line 113: Undefined global `defos`.
	Line 113: accessing undefined variable 'defos'
	Line 116: Undefined global `defos`.
	Line 116: accessing undefined variable 'defos'
	Line 122: Undefined global `defos`.
	Line 122: accessing undefined variable 'defos'
	Line 125: Undefined global `defos`.
	Line 125: accessing undefined variable 'defos'
	Line 136: Undefined global `defos`.
	Line 136: accessing undefined variable 'defos'
	Line 149: Undefined global `defos`.
	Line 149: accessing undefined variable 'defos'
	Line 151: Undefined global `defos`.
	Line 151: accessing undefined variable 'defos'
	Line 153: Undefined global `defos`.
	Line 153: accessing undefined variable 'defos'
	Line 154: Undefined global `defos`.
	Line 154: accessing undefined variable 'defos'
	Line 156: Undefined global `defos`.
	Line 156: accessing undefined variable 'defos'
	Line 157: Undefined global `defos`.
	Line 157: accessing undefined variable 'defos'
	Line 158: Undefined global `defos`.
	Line 158: accessing undefined variable 'defos'
	Line 159: Undefined global `defos`.
	Line 159: accessing undefined variable 'defos'
	Line 162: Global variable in lowercase initial, Did you miss `local` or misspell it?
	Line 162: setting non-standard global variable 'update_clipping_label'
	Line 164: Global variable in lowercase initial, Did you miss `local` or misspell it?
	Line 164: setting non-standard global variable 'text'
	Line 166: Global variable in lowercase initial, Did you miss `local` or misspell it?
	Line 166: setting non-standard global variable 'text'
	Line 169: accessing undefined variable 'text'
	Line 176: Undefined global `defos`.
	Line 176: accessing undefined variable 'defos'
	Line 180: Undefined global `defos`.
	Line 180: accessing undefined variable 'defos'
	Line 184: Undefined global `defos`.
	Line 184: accessing undefined variable 'defos'
	Line 188: Undefined global `defos`.
	Line 188: accessing undefined variable 'defos'
	Line 192: Undefined global `defos`.
	Line 192: accessing undefined variable 'defos'
	Line 196: Undefined global `defos`.
	Line 196: accessing undefined variable 'defos'
	Line 201: Undefined global `defos`.
	Line 201: accessing undefined variable 'defos'
	Line 207: Undefined global `defos`.
	Line 207: accessing undefined variable 'defos'
	Line 212: Undefined global `defos`.
	Line 212: accessing undefined variable 'defos'
	Line 218: Undefined global `defos`.
	Line 218: accessing undefined variable 'defos'
	Line 226: Undefined global `defos`.
	Line 226: accessing undefined variable 'defos'
	Line 231: Undefined global `defos`.
	Line 231: accessing undefined variable 'defos'
	Line 232: accessing undefined variable 'update_clipping_label'
	Line 237: accessing undefined variable 'toggle_cursor_lock'
	Line 242: Undefined global `defos`.
	Line 242: accessing undefined variable 'defos'
	Line 242: Undefined global `defos`.
	Line 242: accessing undefined variable 'defos'
	Line 242: Undefined global `defos`.
	Line 242: accessing undefined variable 'defos'
	Line 247: Undefined global `defos`.
	Line 247: accessing undefined variable 'defos'
	Line 258: Undefined global `defos`.
	Line 258: accessing undefined variable 'defos'