YoshiRulz
c3057298f9
Fix `forms.destroyall` not clearing the list
2024-08-25 03:39:01 +10:00
YoshiRulz
681a5764d6
Fix LuaPictureBox functions only working on the first form
...
fixes 672536305
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
2024-08-25 03:38:58 +10:00
YoshiRulz
bda40c7ba3
Dedup `forms.{drawString,drawText}` implementations
2024-08-25 03:38:41 +10:00
YoshiRulz
ccb69b18a9
Use a global import for `System.*`
2024-07-03 22:51:48 +10:00
James Groom
ef864536de
Fix typo'd `return;` in non-void method
...
fixes 672536305
2023-10-28 12:12:15 +10:00
James Groom
6725363052
Allow drawing on LuaPictureBoxes on multiple windows ( fixes #3778 )
...
fixes bb4ba2184
, though it wasn't working correctly before that either
this whole thing needs deduping
2023-10-28 02:35:27 +10:00
Morilli
8e557b0b9d
bump AnalysisModeGlobalization to Recommended
...
fixes CA1304, CA1309, CA1310, CA1311
temporarily silences CA1305
reduce severity of CA2101
2023-08-14 14:18:45 -07:00
YoshiRulz
1a30f6551e
Use LuaPictureBox' custom resize in all cases
2023-02-26 14:35:35 +10:00
CasualPokePlayer
2c3fb68776
fix PictureBox when width or height is null
2023-02-24 13:29:18 -08:00
CasualPokePlayer
b3c7f0fa48
IPlatformLuaLibEnv -> ILuaLibraries / Win32LuaLibraries -> LuaLibraries, cleanup usage of it, fix doc error in client.gettool
2022-12-10 21:46:22 -08:00
YoshiRulz
f101cb5a54
Additional corrections to newly-added Lua documentation
...
fixes 49cd836e1
, c7781d1c1
2022-12-11 13:35:29 +10:00
YoshiRulz
5197c36a5d
Remove `[Lua*StringParam]` as they're no longer relevant
...
fixes 45fbdb484
2022-12-09 05:40:31 +10:00
CasualPokePlayer
b687dea1b0
change every IntPtr<->int cast to IntPtr<->long. we got 64 bit integers with lua now, and a pointer is 64 bits, so might avoid some dumb bug due to truncations and some ungodly amount of ram being used
...
TODO: see if we can skip this cast nonsense. the lua tests indicate IntPtr should pass through fine, being considered "userdata", probably better so the user can't just pass raw numbers for the handle.
2022-12-06 04:53:35 -08:00
CasualPokePlayer
45fbdb4844
Move to NLua/KeraLua/Lua5.4 ( #3361 )
2022-12-01 00:51:02 -08:00
YoshiRulz
f1f0f1695c
Encapsulate `OpenFileDialog`/`SaveFileDialog`
2022-11-05 09:10:11 +10:00
YoshiRulz
fd2772707b
Update `forms.drawImageRegion` documentation with a diagram
...
only embeds on TASVideos Wiki, which I held off on updating because there are a
lot of changes and we can do them all at once
2022-10-30 18:19:23 +10:00
YoshiRulz
bb4ba2184f
Fix `forms.*` acting on every LuaPictureBox, not the specified one
...
fixes #3395
this has been broken since introduction in 2ddadeae2
2022-10-08 11:11:40 +10:00
YoshiRulz
26b6a1c4a9
Enable MA0020 and fix noncompliance
...
"Use direct methods instead of LINQ methods"
2022-07-22 03:51:47 +10:00
YoshiRulz
94e85f1079
Set `Form.Owner` to MainForm for Lua-made forms
2022-07-15 22:26:08 +10:00
YoshiRulz
09061843f4
Fix Lua string encoding bug ( resolves #190 )
2022-05-24 04:45:38 +10:00
YoshiRulz
afc442462c
Use `ClientSize` when resizing Lua Forms (see #3034 )
2022-05-07 23:01:36 +10:00
YoshiRulz
5012ba0f09
Use consistent whitespace/wrapping in Lua libs
2022-02-04 20:34:33 +10:00
YoshiRulz
d3e439982b
Add missing file existence check in `forms.drawIcon`
2022-02-04 20:34:28 +10:00
Chris W
38f3cdb687
Make sorting optional for `forms.setdropdownitems` (squashed PR #2923 )
...
* Add optional sort parameter to SetDropdownItems method
* Improve docs, use pattern matching
Co-authored-by: YoshiRulz <OSSYoshiRulz@gmail.com>
2021-09-08 14:18:51 +10:00
YoshiRulz
0a9d496ece
Accept all 4 colour formats in all Lua functions, update docs/wikitext
...
resolves #2602
2021-05-03 19:06:15 +10:00
YoshiRulz
611d1bfaa1
Use UIHelper in FormsLuaLibrary ( resolves #2604 )
2021-03-21 08:23:31 +10:00
YoshiRulz
cb6f435f9a
Refactor Lua forms.setproperty
...
see #2602
2021-01-31 09:39:15 +10:00
YoshiRulz
ce7aa1ff64
Convert abstract class LuaLibraries to an interface
2020-12-05 07:51:14 +10:00
YoshiRulz
89a66563f1
Cleanup FormsLuaLibrary.WindowClosed and usages
2020-12-05 07:50:40 +10:00
YoshiRulz
d51f9c3e88
Use LINQ instead of dumb in FormsLuaLibrary implementations
2020-12-05 07:50:37 +10:00
YoshiRulz
b541fe5b40
Use NLuaTableHelper for more conversion to/from LuaTable
...
also fix indexing that I broke in c8e10120d
2020-12-05 07:50:28 +10:00
YoshiRulz
c8e10120db
Encapsulate conversion to/from LuaTable, stop passing NLua to Lua libs
2020-12-03 22:54:47 +10:00
YoshiRulz
76f03a9508
Merge DelegatingLuaLibrary into LuaLibraryBase
2020-12-03 21:37:17 +10:00
YoshiRulz
be36c60e9e
Enable SA1208 and fix noncompliance (except in Cores)
...
"System using directives should be placed before other using directives"
2020-11-30 21:26:36 +10:00
YoshiRulz
72fd3f2fca
Replace static ConsoleLL.Log calls in FormsLL with LogOutputCallback
2020-11-26 22:31:27 +10:00
YoshiRulz
db63222f32
Use new _luaLibsImpl prop instead of LuaConsole.LuaImp via globals
2020-11-25 19:47:07 +10:00
YoshiRulz
a6d1c6595a
Pass LuaLibraries instance to Lua libs via ctors
2020-11-25 19:35:14 +10:00
YoshiRulz
f5752294ff
Simplify Lua lib ctors
2020-11-25 19:27:38 +10:00
YoshiRulz
7725d59636
Enable SA1124 "Do not use regions" and fix compliance
2020-05-15 17:00:53 +10:00
YoshiRulz
87ec2618a1
Revert "delete all regions"
...
This reverts commit e566d8e258
.
2020-05-15 17:00:49 +10:00
nattthebear
e566d8e258
delete all regions
2020-05-14 17:33:40 -04:00
YoshiRulz
3a3b22c03b
Move projects to src subdir (breaks build)
2020-05-03 10:57:38 +10:00