Commit Graph

363 Commits

Author SHA1 Message Date
Josh Tynjala
4ea5807853 Merge pull request #1527 from junsred/prevent-clipboard-being-set-as-null
prevent clipboard being set as null
2022-04-29 09:17:23 -07:00
Junsred
0c077da2bb better readability 2022-04-29 00:17:16 +03:00
Junsred
c0a77a01fb prevent clipboard being set as null 2022-04-28 15:27:24 +03:00
Joseph Cloutier
50488aee53 Clarify purpose of data validation variables.
This value doesn't actually contain default values, but instead helps
verify that the correct fields are present and have the correct types.
It also doesn't need to show up in code completion.
2022-04-27 11:51:39 -04:00
Joseph Cloutier
3bbbb189c2 Reduce clutter by merging related files.
There's no need to have three separate files containing a single static
variable each. Ideally, the `Data` types should include the variable,
which can be accomplished using abstracts.

`from Dynamic` is required in Haxe 3 and simplifies things in Haxe 4.
2022-04-27 01:28:56 -04:00
Josh Tynjala
1f954d268f Better naming/organization for application/metadata/window validation types 2022-04-26 14:21:07 -07:00
Josh Tynjala
ee39b85a9e Fix compatibility with older Haxe 2022-04-26 13:20:43 -07:00
Joshua Granick
1c92c707cc Run Haxe formatter 2022-03-23 14:02:39 -07:00
Joshua Granick
362be074f4 Merge HXProject defaults and exclude architectures at end 2022-03-23 14:00:32 -07:00
Joshua Granick
54338c082a Default to high DPI on HTML5 2022-03-21 16:53:05 -07:00
Joshua Granick
92b213b56b Revert "Set window.scale on DOM mode"
This reverts commit 5189413361.
2022-03-21 08:40:08 -07:00
Joshua Granick
5189413361 Set window.scale on DOM mode 2022-03-21 08:30:02 -07:00
Joshua Granick
6917d04090 Fix preloader for processed libraries (IE: NyanCat) 2022-03-19 12:01:55 -07:00
Joshua Granick
f34c274bb1 Silence deprecated motionevent warnings on Firefox 2022-03-19 11:29:01 -07:00
Josh Tynjala
dbecf2276c HTTPRequest: withCredentials in XMLHttpRequest and manageCookies in AIR's URLLoader are not the same
HTML5 doesn't have the ability to disable cookies, as far as I can tell, but we can disable them on native targets.
2022-03-18 15:14:46 -07:00
Zeta
68135c0d33 Remove custom zip reader.
This file was added 8 years ago, and currently breaks `haxe.zip.Reader` usage on all targets but Neko.
I don't see a reason why it should be kept around, so let's delete it.
Closes #1400.
2022-03-13 21:35:04 +01:00
Josh Tynjala
fbefc24a22 Fix PP_vOdiii__v required but PP_vOiiii__v found in hdll error (references #1521)
Includes tweaks to commit 45955412eb to allow the code to continue working in HashLink

Co-authored-by: ShaharMS <88977041+ShaharMS@users.noreply.github.com>
2022-03-10 14:52:16 -08:00
Josh Tynjala
2e31ae9fd0 NativeHTTPRequest: manage cookies for the current session if withCredentials is true 2022-03-09 15:51:39 -08:00
Josh Tynjala
925e2b67e7 Image: compatibility fix to allow use of genes library to compile as ES modules 2022-02-11 10:32:47 -08:00
Joshua Granick
45955412eb Resolve KeyCode data type issue on Neko 2022-01-13 15:11:25 -08:00
player-03
2f35e0b24c Merge pull request #1498 from player-03/loadAudioBuffer
Fix error when loading embedded audio.
2021-12-20 10:05:16 -05:00
Josh Tynjala
0ecf27d2d6 disable_preloader_assets haxedef
When the project contains no assets, excludes asset-related classes for big file size savings
2021-11-18 10:46:07 -08:00
Josh Tynjala
e3d49867fb AssetHelper: don't bother creating the default library if there are no assets 2021-11-17 15:13:02 -08:00
Josh Tynjala
bedeed591b Added new -air-simulator option for lime test air -ios (or lime test air -android)
This launches the AIR simulator (ADL), but it passes additional options to tell it to simulate a mobile device.
2021-11-12 14:58:22 -08:00
Joseph Cloutier
9f6da5e5c5 Fix error when loading embedded audio.
`loadAudioBuffer` skipped actually creating an `AudioBuffer`. Oops!
Fortunately, `getAudioBuffer` works fine, so I copied that code.
2021-11-09 15:35:21 -05:00
Joshua Granick
2750cf5011 Allow unset values for library.preload/.generate 2021-10-31 15:44:57 -07:00
Josh Tynjala
f6fb941c99 Electron window width/height should default to 0, the same as html5, for consistency
Before this change, html5 would automatically resize the stage if the window resized, but electron would be letterboxed. They should both automatically resize the stage when the window is resized
2021-10-19 18:05:33 -07:00
player-03
e2b66cbe95 More clarifications. 2021-10-14 20:34:53 -04:00
pfoof
ed477763cb More clarifications. 2021-10-07 21:50:55 +02:00
pfoof
c31349e7ed Clarified lime.net.URIParser 2021-10-07 21:34:51 +02:00
pfoof
7754ae8a5a Merge branch 'documentation' of github.com:pfoof/lime into documentation 2021-10-07 21:12:18 +02:00
pfoof
1aec979511 Added documentation for lime.net.URIParser.
Every field is described with examples.
2021-10-07 21:10:23 +02:00
player-03
cf308cd4cb Clarify FileDialog.hx documentation.
If we're going to write documentation here, we should include all the features and edge cases.
2021-10-07 13:30:58 -04:00
pfoof
b9c06ff299 Added comment/docs for lime.ui.FileDialog. 2021-10-06 21:27:41 +02:00
Joshua Granick
c650924a7e Compile fix 2021-07-27 15:00:30 -07:00
Joshua Granick
1ecf38f5b3 Fix CFFI calls in FileDialog for HL target 2021-07-27 14:50:05 -07:00
Griss
486d69fdcf Update FileDialog.hx 2021-07-27 14:50:05 -07:00
Joshua Granick
105cc69cb7 Do not add double end-slash in PackedAssetLibrary (#1447) 2021-07-23 09:18:34 -07:00
Giuppe
f56391b8bb fix: Shader compiler is giving warnings only when there are errors present 2021-07-23 09:05:50 -07:00
Alan
7a58c24582 MOD: start adb server beforehand 2021-07-23 09:03:06 -07:00
Alan
5c94adecd3 FIX: wrap adb command in sh -c "..."
This enables the stdout redirection to work on non-Windows platforms
2021-07-23 09:03:06 -07:00
Joseph Cloutier
76d953e909 Fix NativeAudioSource.stop()
The `setCurrentTime()` function calls `AL.sourcePlay()` if `playing` is
still true, so that should only be called after `playing = false;`.

One could also place the call before `AL.sourceStop()`, but that will
lead to a few extra function calls. Plus, if `stop()` is supposed to
reset the playback time, it should probably do that whether or not the
sound is playing (i.e., outside the `if` block).
2021-07-23 09:01:22 -07:00
Joseph Cloutier
195b1dbaef Reword comment for accuracy
Fixing a mistake I made in 0d1df40.
2021-07-23 09:01:22 -07:00
Justin Espedal
151606b119 Change packed assets header to "lime-asset-pack"
This is a little more distinct than "asset-pack", further reducing the chance of the resulting file being mistaken for something it isn't.
2021-07-23 09:00:44 -07:00
Justin Espedal
5136482127 Don't let packed asset files begin with a compression header
Packed asset libraries are sequences of individual files, sometimes compressed, and concatenated. If each file is compressed, this causes the asset pack as a whole to begin with compressed file headers, which may cause some software to mistake the file as being one large compressed file, which it isn't.

For example, some html5 web portals may try to automatically determine if a file is gzip-compressed, and if they are, serve the file with the "content-encoding: gzip" header. That will cause a web browser to decompress the file while downloading it, leading to two issues:

1. The compressed file header is only for the first file in the pack, so we'll only receive the data for the first file.
2. The data will be in an already-decompressed state, which we don't expect.

This will manifest as an error like "Uncaught incorrect header check" when trying to load and decompress what we expect to be compressed data.

This change prepends the string "asset-pack" to the start of the file. It's applied to all pack types, not just compressed ones. For uncompressed packs, I presume that there's the possibility that whatever file header happens to be present on the first file in the pack has other inadvertent effects.
2021-07-23 09:00:44 -07:00
Giuppe
34d997d316 fix getShaderInfoLog null result check on HashLink target 2021-04-16 03:54:28 +02:00
Justin Espedal
f110d52e5a Allow hyphen for launchStoryboard template property typing
When parsing the attributes attached to a launchStoryboard element, in addition to the colon character (`:`), allow the hyphen character (`-`) to be used as the separator between a template property's name and its type.

Although colon is familiar to Haxe developers as the variable type specifier (e.g. `var i:Int = 0;`), the colon character's expected usage within xml is to separate the local name from the namespace. So usage of colon here could be unexpected, and also causes trouble in formalizing the specification as an xsd.

Retain the ability to parse `:` for backward compatibility.
2021-04-15 00:34:53 +09:00
player-03
caa7feff1c Reword comment for clarity
(Also for grammar and consistent line length.)
2021-04-10 20:40:51 -07:00
player-03
a4aa3f2dd8 Simplify native_audio_buffers implementation
The previous version was backwards - `native_audio_buffers` would be ignored if defined, and used if not defined. Worse, with all the `!` operators, it was hard to tell.

This implementation tries to fix the error in a way that is easier for a human to check.
2021-04-10 20:40:51 -07:00
m0rkeulv
feae6af85a Making NativeAudio buffers configurable & playback behaving like other sources. 2021-04-10 20:40:51 -07:00